Add a target for i386-netbsdpe.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2002-05-24 TAMURA Kent <kent@netbsd.org>
2
3 * configure.in: Add a target for i386-netbsdpe.
4 * configure: Regenerate.
5
6 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7
8 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
9 (obj_elf_common): Call elf_common.
10 (obj_elf_tls_common): New function.
11 (elf_pseudo_tab): Support .tls_common.
12 (special_sections): Add .tdata and .tbss.
13 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
14 sections.
15 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
16 (obj_elf_parse_section_letters): Include T in error message.
17 * config/tc-ppc.c (ppc_section_letter): Likewise.
18 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
19 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
20 SEC_MERGE.
21 * config/tc-sparc.c (md_apply_fix3): Likewise.
22 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
23 Define them if not BFD_ASSEMBLER.
24 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
25 and @NTPOFF.
26 (md_apply_fix3): Add TLS relocs.
27 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
28 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
29 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
30 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
31 (ia64_elf_section_letter): Include T in error message.
32 (md_begin): Support TLS operators.
33 (md_operand): Likewise.
34 (ia64_gen_real_reloc_type): Support TLS relocs.
35 * testsuite/gas/i386/tlspic.s: New file.
36 * testsuite/gas/i386/tlsd.s: New file.
37 * testsuite/gas/i386/tlsnopic.s: New file.
38 * testsuite/gas/i386/tlsd.d: New file.
39 * testsuite/gas/i386/tlsnopic.d: New file.
40 * testsuite/gas/i386/tlspic.d: New file.
41 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
42 * testsuite/gas/ia64/tls.s: New file.
43 * testsuite/gas/ia64/tls.d: New file.
44 * testsuite/gas/ia64/ia64.exp: Add tls test.
45 * write.c (adjust_reloc_syms): Don't change symbols in
46 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
47
48 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
49
50 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
51 round the relocation up rather than down.
52
53 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
54
55 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
56 flag.
57 * doc/as.texinfo: Document that the COFF version of .section
58 ignores the 'a' flag.
59
60 2002-05-23 Alan Modra <amodra@bigpond.net.au>
61
62 * config/tc-alpha.c (assemble_tokens): Protect use of
63 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
64
65 * write.c (size_seg): Check adjustment to last frag.
66 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
67 section alignment.
68 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
69 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
70 (write_object_file): Invoke md_do_align if available, and use
71 frag_align_code on text sections.
72 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
73 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
74 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
75 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
76 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
77 BFD_ASSEMBLER too.
78
79 2002-05-22 H.J. Lu <hjl@gnu.org>
80
81 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
82 for source file.
83
84 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
85
86 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
87 as ELF builds.
88
89 2002-05-22 H.J. Lu <hjl@gnu.org>
90
91 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
92 for one .loc for compiler.
93
94 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
95
96 * config/tc-mips.c (macro): Relax warning, it's toot strict for
97 embedded-PIC.
98
99 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
100
101 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
102 Optimize the rotate by zero case.
103
104 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
105
106 * configure.in: Remove accidental enabling of bfd_gas=yes for
107 sh-coff targets.
108 * configure: Regenerate.
109
110 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
111
112 * app.c: Fix formatting.
113 * as.c: Likewise.
114 * ehopt.c: Likewise.
115 * expr.c: Likewise.
116 * input-file.c: Likewise.
117 * listing.c: Likewise.
118 * macro.h: Likewise.
119 * stabs.c: Likewise.
120 * symbols.c: Likewise.
121
122 2002-05-17 Alan Modra <amodra@bigpond.net.au>
123
124 * config/obj-generic.c: Delete file.
125 * config/obj-generic.h: Likewise.
126
127 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
128
129 * config/tc-avr.c (mcu_types): Update for new devices.
130
131 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
132
133 * config/tc-mips.c (macro): Warn about wrong la/dla use.
134
135 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
136
137 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
138 worked sometimes by accident. Fix copy&paste comment.
139
140 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
141
142 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
143 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
144 (mips_elf_final_processing): Let n32 use .reginfo.
145
146 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
147
148 * config/tc-mips.c (append_insn): Fix too small range of variable.
149
150 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
151
152 * config/tc-arm.c (arm_cleanup): Remove redundant call to
153 listing_prev_line().
154
155 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
156
157 * config/tc-arm.c (md_assemble): Remove redundant call to
158 listing_prev().
159
160 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
161 loc_directive_seen.
162
163 * stabs.c (s_stab_generic): Fix grammatical error in warning
164 message.
165
166 2002-05-13 Alan Modra <amodra@bigpond.net.au>
167
168 * write.c (subsegs_finish): Don't specially align last subseg.
169
170 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
171
172 * stabs.c (s_stab_generic): Warn about a description field that is
173 too big.
174
175 * config/obj-coff.c: Fix compile time warnings when compiling
176 without BFD_ASSEMBLER defined.
177 Fix formatting.
178
179 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
180 target.
181 (md_pcrel_from_section): Use md_pcrel_from().
182
183 2002-05-11 Bruno Haible <bruno@clisp.org>
184
185 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
186 by dwarf2_directive_loc, instead of calling dwarf2_where.
187
188 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
189
190 * config/obj-coff.h: Fix formatting.
191 * config/tc-mcore.c: Likewise.
192 * config/tc-mn10300.c: Likewise.
193 * config/tc-openrisc.c: Likewise.
194 * config/tc-or32.c: Likewise.
195 * config/tc-pdp11.c: Likewise.
196 * config/tc-ppc.c: Likewise.
197 * config/tc-ppc.h: Likewise.
198 * config/tc-sh64.c: Likewise.
199 * config/tc-sh.c: Likewise.
200 * config/tc-tic54x.c: Likewise.
201 * config/tc-xstormy16.c: Likewise.
202 * config/tc-xstormy16.h: Likewise.
203
204 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
205
206 * config/obj-coff.c: Fix formatting.
207 * config/obj-elf.c: Likewise.
208 * config/tc-alpha.c: Likewise.
209 * config/tc-arm.c: Likewise.
210 * config/tc-d10v.c: Likewise.
211 * config/tc-d30v.c: Likewise.
212 * config/tc-h8300.c: Likewise.
213 * config/tc-hppa.c: Likewise.
214
215 2002-05-09 Alan Modra <amodra@bigpond.net.au>
216
217 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
218 reloc when no_cond_jump_promotion.
219
220 2002-05-08 Jim Wilson <wilson@redhat.com>
221
222 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
223 current variable part of frag.
224
225 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
226
227 * config/tc-mmix.c: Fix formatting.
228 * config/tc-mmix.h: Likewise.
229
230 2002-05-08 Alan Modra <amodra@bigpond.net.au>
231
232 * configure: Regenerate.
233
234 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
235
236 * config/tc-m68k.c: Fix formatting.
237
238 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
239
240 * Makefile.am: Honour DESTDIR.
241 * Makefile.in: Regenerate.
242
243 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
244
245 * config/tc-ia64.c: Fix formatting.
246 * config/tc-ia64.h: Likewise.
247
248 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
249
250 * config/tc-mips.c: Fix formatting.
251 * config/tc-s390.c: Likewise.
252 * config/tc-s390.h: Likewise.
253
254 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
255
256 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
257 information for instructions.
258
259 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
260
261 * as.h: Fix formatting.
262 * cgen.c: Likewise.
263 * cgen.h: Likewise.
264 * dwarf2dbg.c: Likewise.
265 * frags.h: Likewise.
266 * gasp.c: Likewise.
267 * macro.c: Likewise.
268 * read.c: Likewise.
269 * stabs.c: Likewise.
270 * symbols.c: Likewise.
271
272 2002-05-02 Alan Modra <amodra@bigpond.net.au>
273
274 * app.c (mri_pseudo): Only declare for TC_M68K.
275
276 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
277 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
278 BFD_RELOC_16_BASEREL.
279 (md_assemble): Likewise.
280 (md_apply_fix3): Likewise.
281
282 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
283
284 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
285 zero into an add of zero - it is not the same.
286
287 2002-05-01 Arati Dikey <aratid@kpit.com>
288
289 * tc-sh.c (get_specific): Generate warning if the same
290 destination register is used in parallel instructions.
291
292 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
293
294 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
295
296 2002-05-01 Alan Modra <amodra@bigpond.net.au>
297
298 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
299 backwards to prevent cascading errors.
300
301 2002-04-30 Mark Mitchell <mark@codesourcery.com>
302
303 * configure.in: Add support for powerpc-*-windiss.
304 * configure: Regenerated.
305
306 2002-04-28 Alan Modra <amodra@bigpond.net.au>
307
308 * config/tc-s390.c (md_parse_option): Formatting.
309
310 * config/tc-i386.c: Formatting fixes, add missing space in error
311 message.
312
313 2002-04-24 Christian Groessler <chris@groessler.org>
314
315 * config/tc-z8k.c (build_bytes): Add support for new cases:
316 CLASS_IGNORE and ARG_NIM4.
317 (md_assemble): Prevent destruction of input_line_pointer if
318 get_operands returns failure.
319
320 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
321
322 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
323 instructions to be generated by macros.
324
325 2002-04-24 Andreas Schwab <schwab@suse.de>
326
327 * config/tc-i386.c (output_jump, output_disp)
328 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
329 more.
330 (md_apply_fix3): Remember addend value for rela relocations.
331 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
332
333 2002-04-22 Chris Demetriou <cgd@broadcom.com>
334
335 * config/tc-mips.c (macro_build): Add close-parenthesis missing
336 from previous change.
337
338 2002-04-22 Eric Christopher <echristo@redhat.com>
339
340 * config/tc-mips.c (macro_build): Add warning if macro instructions
341 are expanded into a branch delay slot.
342
343 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
344
345 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
346 numbers, gdb relies on them to detect the start of the prologue.
347
348 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
349
350 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
351 symbols in merge sections.
352
353 2002-04-16 Alan Modra <amodra@bigpond.net.au>
354
355 * as.c (main): Don't reference _bfd_chunksize.
356
357 2002-04-15 Tom Rix <trix@redhat.com>
358
359 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
360 symbols in merge sections.
361
362 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
363
364 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
365 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
366 argument for the precision.
367 (gen_to_words): Update accordingly.
368
369 2002-04-10 Alan Modra <amodra@bigpond.net.au>
370
371 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
372 BFD_VERSION_STRING unavailable.
373 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
374
375 Tue Apr 9 16:45:48 2002 J"orn Rennecke <joern.rennecke@superh.com>
376
377 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
378 symbol_used_in_reloc_p is true.
379
380 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
381 endian hosts.
382
383 2002-04-04 Alan Modra <amodra@bigpond.net.au>
384
385 * dep-in.sed: Cope with absolute paths.
386 * Makefile.am (dep.sed): Subst TOPDIR.
387 Run "make dep-am".
388 * Makefile.in: Regenerate.
389
390 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
391
392 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
393 (mips_ip): Remove unused variable.
394 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
395 unsigned char with bfd_byte.
396 (s_file): Remove unused variable.
397 (s_mips_ent): Likewise.
398
399 2002-04-03 Tom Rix <trix@redhat.com>
400
401 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
402 (build_insn): Same.
403 (find_opcode): Fix warning in as_warn.
404 * config/tc-d10v.h: Update Copyright.
405
406 2002-04-03 Alan Matsuoka <alanm@redhat.com>
407 Tom Rix <trix@redhat.com>
408
409 From Jeff Knaggs <jknaggs@redhat.com>
410 * config/tc-d10v.c (check_resource_conflict): New function to
411 check for resource conflicts.
412
413 From Jason Eckhardt <jle@redhat.com>
414 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
415 imm3 fields.
416 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
417 reserved control registers is used.
418 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
419 imm3 fields.
420
421 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
422 * tc-d10v.c (parallel_ok): Prevent packing only if the first
423 instruction cannot be packed.
424
425 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
426 * gas/config/tc-d10v.c (check_resource_conflict): Only check
427 write-write conflicts.
428 (md_assemble): Reformat introductory comment.
429 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
430 arguments.
431
432 2002-04-03 Alan Modra <amodra@bigpond.net.au>
433
434 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
435 O_logical_not>): Derive final_seg from add_symbol.
436 <O_multiply..O_logical_or>: More final_seg twiddles.
437
438 2002-04-01 Jessica Han <jessica@cup.hp.com>
439
440 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
441 in 32-bit mode.
442
443 2002-03-27 Andreas Schwab <schwab@suse.de>
444
445 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
446 field for pc-relative fixups.
447 (output_disp): Likewise.
448 (md_estimate_size_before_relax): Likewise.
449 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
450 pc-relative fixups in 64bit mode.
451
452 2002-03-22 Alan Modra <amodra@bigpond.net.au>
453
454 * config/te-aix5.h: Typo fix.
455
456 2002-03-21 Alan Modra <amodra@bigpond.net.au>
457
458 * Makefile.am: Run "make dep-am".
459 * Makefile.in: Regenerate.
460 * doc/Makefile.in: Regenerate.
461
462 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
463
464 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
465 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
466
467 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
468
469 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
470 the EXTENDED bit here; report the estimate according to the
471 current size.
472
473 2002-03-18 Tom Rix <trix@redhat.com>
474
475 * configure.in: Add AIX 5 support.
476 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
477 * config/te-aix5.h: New file. AIX 5 support.
478 * configure: Regenerate.
479
480 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
481
482 * po/fr.po: Updated version.
483
484 2002-03-16 Andreas Jaeger <aj@suse.de>
485
486 * doc/c-mips.texi (Machine Dependencies): Add new node.
487
488 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
489
490 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
491 (mips_opts): Initialize "ase_mips3d" member.
492 (file_ase_mips3d): New variable.
493 (CPU_HAS_MIPS3D): New macro.
494 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
495 based on command line options and configuration defaults.
496 (macro_build, mips_ip): Accept MIPS-3D instructions if
497 mips_opts.ase_mips3d is set.
498 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
499 Add support for "-mips3d" and "-no-mips3d" options.
500 (OPTION_ELF_BASE): Move to accomodate new options.
501 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
502 (mips_elf_final_processing): Add a comment indicating that a
503 MIPS-3D ASE ELF header flag should be set, when one exists.
504 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
505 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
506 nomips3d" directives.
507
508 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
509
510 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
511 a weak symbol in same section to be within reach.
512
513 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
514
515 * po/fr.po: Updated version.
516
517 2002-03-12 Andreas Schwab <schwab@suse.de>
518
519 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
520 body record so that an error is given for misplaced .save
521 pseudo-ops.
522
523 2002-03-09 Alan Modra <amodra@bigpond.net.au>
524
525 * config/tc-i386.h (REX_OPCODE): Define.
526 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
527 (rex_byte): typedef to int.
528 * config/tc-i386.c: Group prototypes and vars together.
529 Formatting fixes. Remove occurrences of "register" keyword.
530 (true): Delete.
531 (false): Delete.
532 (mode_from_disp_size): Add INLINE keyword to prototype.
533 (fits_in_signed_byte): Likewise.
534 (fits_in_unsigned_byte): Likewise.
535 (fits_in_unsigned_word): Likewise.
536 (fits_in_signed_word): Likewise.
537 (fits_in_unsigned_long): Likewise.
538 (fits_in_signed_long): Likewise.
539 (type_names): Constify.
540 (intel_float_operand): Constify param.
541 (add_prefix): Use REX_OPCODE.
542 (md_assemble): Likewise. Modify for changed rex_byte.
543 (parse_insn): Split out of md_assemble.
544 (parse_operands): Likewise.
545 (swap_operands): Likewise.
546 (optimize_imm): Likewise.
547 (optimize_disp): Likewise.
548 (match_template): Likewise.
549 (check_string): Likewise.
550 (process_suffix): Likewise.
551 (check_byte_reg): Likewise.
552 (check_long_reg): Likewise.
553 (check_qword_reg): Likewise.
554 (check_word_reg): Likewise.
555 (finalize_imm): Likewise.
556 (process_operands): Likewise.
557 (build_modrm_byte): Likewise.
558 (output_insn): Likewise.
559 (output_branch): Likewise.
560 (output_jump): Likewise.
561 (output_interseg_jump): Likewise.
562 (output_disp): Likewise.
563 (output_imm): Likewise.
564
565 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
566
567 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
568
569 2002-03-06 Alan Modra <amodra@bigpond.net.au>
570
571 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
572 relocs except when BFD64.
573
574 * write.c (number_to_chars_bigendian): Don't abort when N is
575 larger than sizeof (VAL).
576 (number_to_chars_littleendian): Likewise.
577
578 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
579
580 * config/tc-hppa.c (md_apply_fix3): Add cast.
581 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
582 e_rrsel.
583
584 2002-03-05 Paul Koning <pkoning@equallogic.com>
585
586 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
587 (parse_ac5): New function for parsing float regs in float operand.
588 (parse_expression): Remove attempt to make literals be octal.
589 (parse_op_no_deferred): Support float literals.
590 (parse_op): Reject attempts to refer to float regs.
591 (parse_fop): New function, like parse_op but for float operand.
592 (md_assemble): Add cases to parse float operands. Also fix
593 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
594
595 2002-03-04 H.J. Lu <hjl@gnu.org>
596
597 * config/obj-elf.c (special_section): Add .init_array,
598 .fini_array and .preinit_array.
599
600 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
601 .init_array and .fini_array.
602
603 2002-03-01 Jakub Jelinek <jakub@redhat.com>
604
605 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
606 visibility.
607 (obj_frob_symbol): Copy visibility.
608
609 2002-02-28 Jakub Jelinek <jakub@redhat.com>
610
611 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
612 s_text.
613 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
614
615 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
616
617 * po/es.po: Updated.
618
619 2002-02-26 Chris Demetriou <cgd@broadcom.com>
620
621 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
622 only, undo the changes made on 2001-06-08, with the
623 effect being that common or extern symbols are
624 adjusted for embedded-PIC, but weak symbols are not.
625 (md_estimate_size_before_relax: Likewise, with the effect
626 that extern symbols are treated the same as weak symbols
627 only if not embedded-PIC.
628 (mips_fix_adjustable) Likewise, with the effect that
629 weak or extern symbols are not adjusted for embedded-PIC.
630 (md_apply_fix3): Tweak so that the case where value is zero
631 is handled more correctly for embedded-PIC code.
632
633 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
634
635 * doc/as.texinfo (Overview): Add missing @ifset IA64
636
637 * configure.in (LINGUAS): Add es.po.
638 * configure: Regenerate.
639 * po/es.po: New file.
640
641 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
642
643 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
644 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
645 and NO_PIC cases. Code cleanup.
646 (macro2): Fix handling of 64bit register loads.
647
648 2002-02-25 David Mosberger <davidm@hpl.hp.com>
649
650 * doc/as.texinfo: Add entry for IA64.
651 * doc/c-ia64.texi: New file.
652
653 2002-02-25 Alan Modra <amodra@bigpond.net.au>
654
655 * config/tc-hppa.c: Update copyright date.
656
657 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
658 Remove references to chip manufacturers.
659 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
660 Correct comments.
661 (md_show_usage): Remove references to chip manufacturers. Mention
662 -mpower4.
663 (md_begin): Test power4 opcode flag bits.
664
665 2002-02-22 David Mosberger <davidm@hpl.hp.com>
666
667 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
668 count exceeds prologue count.
669 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
670 (unwind.label_prologue_count): New member.
671
672 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
673
674 (get_saved_prologue_count): New function.
675 (save_prologue_count): New function.
676 (free_saved_prologue_count): New function.
677 (dot_label_state): Record state label by calling save_prologue_count().
678 (dot_copy_state): Restore prologue count by calling
679 get_saved_prologue_count().
680 (generate_unwind_image): Free up list of saved prologue
681 counts by calling free_saved_prologue_counts().
682
683 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
684
685 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
686 function declarations.
687
688 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
689
690 * NEWS: Note that GASP is now deprecated.
691 * Makefile.am: Do not build gasp-new by default.
692 * Makefile.in: Regenerate.
693 * doc/Makefile.am: Do not install gasp.info.
694 * doc/Makefile.in: Regenerate.
695 * gas/gasp.texi: Note that gasp is now deprecated.
696
697 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
698
699 * NEWS: Mark 2.12 branch.
700
701 2002-02-19 Tom Tromey <tromey@redhat.com>
702
703 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
704
705 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
706
707 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
708 option input.
709
710 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
711
712 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
713 Make bit size independent of architecture switch.
714 (md_begin): Add warning for -m64 with -Aesa.
715 (s390_md_end): Use renamed architecture defines.
716
717 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
718
719 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
720
721 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
722
723 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
724 instead of CRIS.
725
726 2002-02-15 Chris Demetriou <cgd@broadcom.com>
727
728 * config/tc-mips.c (md_estimate_size_before_relax): Really
729 make sure we treat weak like extern only for ELF. (Fixes
730 patch from 2001-07-25.)
731
732 2002-02-15 Ben Elliston <bje@redhat.com>
733
734 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
735 works as expected.
736
737 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
738
739 * NEWS: Mention support for MMIX.
740
741 2002-02-13 Chris Demetriou <cgd@broadcom.com>
742
743 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
744 a sequence of indpendent 'if' statements for easier debugging
745 and future modification.
746
747 2002-02-13 Matt Fredette <fredette@netbsd.org>
748
749 * config/tc-m68k.c (md_show_usage): No longer display a
750 hard-coded "68020" for the default CPU, instead display the
751 canonical name of the true, configured default CPU.
752 (m68k_elf_final_processing): Mark objects for sub-68020
753 CPUs with the new EF_M68000 flag.
754
755 2002-02-13 Andreas Schwab <schwab@suse.de>
756
757 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
758 pc-relative relocations to merge sections in 64-bit mode.
759
760 2002-02-13 Ben Elliston <bje@redhat.com>
761
762 * NEWS: Document floating point number handling in gasp.
763 * gasp.c: Include <assert.h> and "xregex.h".
764 (is_flonum): New function.
765 (chew_flownum): Likewise.
766 (change_base): Consume flonums from the input, where possible.
767 * doc/gasp.texi (Constants): Document floating point numbers.
768
769 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
770
771 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
772 that implicitly use LR and RR selectors.
773
774 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
775
776 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
777 and `epsw' as available on AM33 and above only.
778 (other_register_name): Add logic to handle machine type encoded in
779 reg_number.
780
781 2002-02-11 Tom Rix <trix@redhat.com>
782
783 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
784 xcoff64.
785
786 Mon Feb 11 11:23:38 2002 Alexandre Oliva <aoliva@redhat.com>
787
788 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
789 Use all over.
790
791 Mon Feb 11 12:59:29 CET 2002 Jan Hubicka <jh@suse.cz>
792
793 * i386.c (md_assemble): Support 32bit address prefix.
794 (i386_displacement): Likewise.
795 (i386_index_check): Accept 32bit addressing in 64bit mode.
796
797 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
798
799 * config/tc-sh.c (dot): Removed unused function.
800
801 2002-02-11 Alan Modra <amodra@bigpond.net.au>
802
803 * Makefile.am: "make dep-am".
804 * Makefile.in: Regenerate.
805 * aclocal.m4: Regenerate.
806 * config.in: Regenerate.
807 * configure: Regenerate.
808 * doc/Makefile.in: Regenerate.
809
810 2002-02-10 Richard Henderson <rth@redhat.com>
811
812 * doc/c-alpha.texi: New file.
813 * doc/Makefile.am (CPU_DOCS): Add it.
814 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
815
816 2002-02-09 Richard Henderson <rth@redhat.com>
817
818 * config/tc-alpha.c (O_samegp): New.
819 (USER_RELOC_P): Include it.
820 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
821 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
822 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
823 (alpha_validate_fix): New.
824 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
825
826 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
827
828 * doc/c-cris.texi: New.
829 * doc/all.texi: @set CRIS.
830 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
831 Include c-cris.texi.
832 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
833 * doc/Makefile.in: Regenerate.
834
835 2002-02-08 Chris Demetriou <cgd@broadcom.com>
836
837 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
838 determine if a number is a sign-extended 32-bit number.
839 (load_register): Use IS_SEXT_32BIT_NUM.
840 (macro): Check if load/store macro handling is using a
841 constant 32-bit address on 64-bit address systems, and if
842 so optimize the generation of that address.
843
844 2002-02-08 Richard Henderson <rth@redhat.com>
845
846 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
847 we've eliminated all foreign relocation types yet.
848 (alpha_fix_adjustable): Likewise.
849
850 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
851
852 Contribute sh64-elf.
853 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
854 Stephen Clarke <Stephen.Clarke@st.com>
855 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
856 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
857 * config/tc-sh.c (md_relax_table): Added default sizes for
858 non-PC-relative UNDEF_MOVI, and relaxation sequences for
859 MOVI_16, MOVI_32 and MOVI_48.
860 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
861 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
862 and MOVI_16.
863 (shmedia_md_estimate_size_before_relax): Remove redundant
864 blocks. Set fragP->fr_var even if relaxation type unchanged.
865 Retain UNDEF_MOVI until expression decays to number.
866 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
867 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
868 relocation types. Take fixP->fx_addnumber into account too.
869 (shmedia_md_apply_fix): Likewise.
870 (shmedia_md_convert_frag): Likewise.
871 (shmedia_build_Mytes): Likewise.
872 (sh64_consume_datalabel): Complain about nested datalabel.
873 Support PIC relocs. Call sh_parse_name.
874 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
875 in tc-sh.h to SHmedia reloc types.
876 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
877 MOVI_GOTPC): New relaxation constants.
878 (md_relax_table): Introduce relaxation directives for PIC-related
879 constants.
880 (sh_PIC_related_p): Handle datalabel.
881 (sh_check_fixup): Choose SH5 PIC relocations.
882 (sh_cons_fix_new): Added BDF_RELOC_64.
883 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
884 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
885 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
886 current ISA is SHmedia, get 7 bytes.
887 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
888 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
889 void function.
890 * config/tc-sh64.c (shmedia_apply_fix): Rename to
891 shmedia_apply_fix3 and make void.
892 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
893 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
894 as_bad.
895 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
896 * config/tc-sh64.h (md_parse_name): Take &c as argument.
897 2001-03-14 DJ Delorie <dj@redhat.com>
898 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
899 * doc/Makefile.in(CPU_DOCS): Ditto.
900 * doc/c-sh64.texi: New file.
901 * doc/as.texinfo: Add SH64 support.
902 2001-03-13 DJ Delorie <dj@redhat.com>
903 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
904 A_REUSE_PREV so that its purpose is more obvious.
905 (shmedia_build_Mytes): Ditto.
906 2001-03-07 DJ Delorie <dj@redhat.com>
907 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
908 before processing.
909 (sh64_vtable_inherit): Ditto.
910 (strip_datalabels): New, strip "datalabel" from given line.
911 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
912 pseudos.
913 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
914 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
915 call ...
916 (shmedia_build_Mytes): ... to here.
917 2001-03-06 DJ Delorie <dj@redhat.com>
918 * config/tc-sh.c: Remove sh64-specific uaquad now that there
919 is a generic one.
920 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
921 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
922 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
923 address by one in call to dwarf2_emit_insn.
924 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
925 Implement ".abi" pseudo and correct .cranges descriptors. Correct
926 alignment handling broken by imported changes.
927 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
928 (sh64_handle_align): Declare.
929 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
930 (sh64_max_mem_for_rs_align_code): Declare.
931 (enum sh64_isa_values): Moved here from tc-sh64.c.
932 (md_do_align): Define.
933 (sh64_do_align): Declare.
934 (struct sh64_tc_frag_data): New.
935 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
936 changed.
937 (TC_FRAG_INIT): Change to set new datatype.
938 (struct sh64_segment_info_type): Rename member
939 last_flushed_location to last_contents_mark. All users changed.
940 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
941 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
942 * config/tc-sh.c (md_pseudo_table): Add ".abi".
943 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
944 of unsetting seen_insn.
945 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
946 call sh64_update_contents_mark.
947 (sh_handle_align): Remove HAVE_SH64-conditioned code.
948 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
949 enum sh64_isa_values.
950 (sh64_set_contents_type): Drop segT parameter. All callers changed.
951 (emitting_crange): Boolean guard moved to file scope from function
952 scope in sh64_set_contents_type.
953 (s_sh64_abi): New.
954 (sh64_update_contents_mark): New; most split out from
955 sh64_flush_pending_output.
956 (shmedia_md_end): Call sh64_update_contents_mark. Set
957 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
958 (sh64_do_align): New function.
959 (sh64_max_mem_for_rs_align_code): New function.
960 (sh64_handle_align): Rename from shmedia_do_align. Make
961 non-static. Add head comment. Emit zero bytes for n bytes modulo
962 four. Change return-type to void.
963 (shmedia_elf_new_section): Remove.
964 (shmedia_md_assemble): Call sh64_update_contents_mark.
965 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
966 new frag. Call sh64_update_contents_mark after making the new
967 frag.
968 (sh64_flush_pending_output): Just call sh64_update_contents_mark
969 and sh_flush_pending_output.
970 (sh64_flag_output): Also call md_flush_pending_output, but add
971 condition on not emitting_crange.
972 (sh64_tc_cons_fix_new): Remove.
973 2001-01-12 Nick Clifton <nickc@redhat.com>
974 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
975 alignment handling scheme imported from sourceware.
976 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
977 * config/tc-sh64.h (TARGET_FORMAT): Define.
978 (sh64_target_format): Prototype.
979 * config/tc-sh64.c (sh64_target_mach): New function.
980 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
981 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
982 zero_address_frag instead of copying the frag of the symbol.
983 (shmedia_frob_file_before_adjust): Ditto.
984 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
985 to valueT to remove signedness.
986 (shmedia_md_convert_frag): Add parameter final. Rename parameter
987 headers to output_bfd. Do not evaluate symbols if final is false;
988 do emit fixups.
989 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
990 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
991 to the current frag, call shmedia_md_convert_frag to emit fixups
992 and make frag_wane neutralize the frag. Update comments.
993 * config/tc-sh.c (md_convert_frag): Change caller of
994 shmedia_md_convert_frag.
995 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
996 * config/tc-sh64.h: Tweak comments and correct formatting.
997 * config/tc-sh64.c: Ditto.
998 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
999 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
1000 for the no-relocation case.
1001 (shmedia_check_limits): Fix range check being off-by-one for PTA.
1002 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
1003 wrappers.
1004 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
1005 comment.
1006 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
1007 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
1008 expansion.
1009 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
1010 Correct comment.
1011 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1012 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
1013 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
1014 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
1015 al>: Set lowest bit of field to relocate to 1 and rest to empty,
1016 if reloc is emitted.
1017 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1018 New options plus bugfixes.
1019 * config/tc-sh.c (md_longopts): New options "-no-expand" and
1020 "-expand-pt32".
1021 (md_parse_option): Handle new options.
1022 (md_show_usage): Add blurb for new options.
1023 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
1024 (sh64_expand, sh64_pt32): New variables.
1025 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
1026 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
1027 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
1028 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
1029 <resolved previously-pc-relative relocs>: Handle
1030 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
1031 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
1032 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
1033 points to SHcompact code.
1034 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
1035 SH64PCREL16)>: Check that ISA of what operand points at and
1036 PTA/PTB matches, or emit error.
1037 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
1038 SHMEDIA_BFD_RELOC_PT.
1039 (shmedia_immediate_op): If pcrel, emit fixup also for constant
1040 operand.
1041 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
1042 condition for MOVI expansion.
1043 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
1044 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
1045 sh64_expand.
1046 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
1047 fixup.
1048 (sh64_target_format): Error-check setting of sh64_pt32 and
1049 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
1050 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
1051 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
1052 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1053 * config/tc-sh64.c: Improve comments.
1054 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
1055 not say the linker will check correctness of PTA/PTB expansion.
1056 (shmedia_md_end): Make non-static.
1057 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
1058 prototype.
1059 * config/tc-sh.c (sh_finalize): Remove.
1060 * config/tc-sh.h (md_end): Do not define.
1061 Remove prototype for sh_finalize.
1062 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1063 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
1064 sh64_section_data container when storing section type in tdata
1065 field in elf_section_data.
1066 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
1067 EF_SH5.
1068 * Makefile.am: Update dependencies.
1069 * Makefile.in: Regenerate.
1070 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
1071 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
1072 dwarf2_emit_insn call with test on debug_type.
1073 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1074 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
1075 CRT_SH5_ISA32 sticky for 64-bit.
1076 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1077 Generate .crange sections when switching ISA mode or emitting
1078 constants in same section as code.
1079 * config/tc-sh64.c: Reformat structure definitions.
1080 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
1081 variables.
1082 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
1083 to emit a .cranges descriptor when contents type changes. Only
1084 emit error if changing contents type and -no-mix is in effect.
1085 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
1086 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
1087 (shmedia_md_end): Set sh64_end_of_assembly. Pass
1088 sh64_flush_last_crange over sections.
1089 When checking main symbol of datalabel symbol, check for
1090 STO_SH5_ISA32, not ISA type of section in definition.
1091 (shmedia_frob_file_before_adjust): Check main symbol for
1092 STO_SH5_ISA32; don't check ISA type of section in definition.
1093 (shmedia_frob_section_type): Adjust for .cranges; set section flag
1094 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
1095 .cranges entries have been output.
1096 (shmedia_elf_new_section): Just call md_flush_pending_output.
1097 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
1098 fix. Do not set tc_segment_info_data.in_code for section. Call
1099 sh64_set_contents_type for SHmedia code.
1100 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
1101 false. Call md_flush_pending_output.
1102 (sh64_target_format): Check that -no-mix and
1103 -shcompact-const-crange are used in sane combination with other
1104 options.
1105 (shmedia_md_pcrel_from_section): Check type of fix for how to
1106 adjust pc-relative.
1107 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
1108 not ISA type of section in definition.
1109 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
1110 hold contents-type state.
1111 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
1112 (sh64_flush_pending_output): Declare.
1113 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
1114 (sh64_tc_cons_fix_new): Declare.
1115 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
1116 call sh64_flag_output.
1117 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
1118 call sh64_set_contents_type to mark SHcompact code and set
1119 seen_insn.
1120 (md_longopts): New options "-no-mix" and
1121 "-shcompact-const-crange".
1122 (md_parse_option): Handle new options.
1123 (md_show_usage): Add blurb for new options.
1124 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
1125 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1126 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
1127 (sh64_last_insn_frag): New.
1128 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
1129 to get frag for insn opcode for generating fixups; do not assume it
1130 is the same frag.
1131 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
1132 for new insn.
1133 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
1134 section.
1135 (TC_FRAG_TYPE): Define as fragS *.
1136 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
1137 (sh64_last_insn_frag): Declare.
1138 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
1139 not == NULL before dereferencing.
1140 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1141 Get rid of BFD section flag and EF_SH64_ABI64.
1142 * config/tc-sh64.c (shmedia_frob_section_type): Use
1143 elf_section_data (sec)->tdata, not a specific BFD section flag, to
1144 communicate the section as containing SHmedia code. Describe why.
1145 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
1146 EF_SH64 regardless of ABI.
1147 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
1148 in error message. Handle resolved expressions for
1149 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1150 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
1151 (shmedia_check_limits): Handle BFD_RELOC_64.
1152 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
1153 a STO_SH5_ISA32 symbol, only the BFD value.
1154 2000-12-11 Ben Elliston <bje@redhat.com>
1155 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
1156 dwarf2_generate_asm_lineno.
1157 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
1158 Handle PC-relative MOVI expansions with assembler relaxation.
1159 Generate PC-relative relocs from 16-bit PC-relative expressions.
1160 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
1161 (shmedia_md_pcrel_from_section): ...here.
1162 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
1163 turned completely resolved. Adjust relocation type for 16-bit
1164 immediate operands that has turned PC-relative. Adjust back for
1165 MD_PCREL_FROM_SECTION being applied twice.
1166 (shmedia_md_convert_frag): Always emit reloc for expression with
1167 global or weak symbol. Handle relaxation result for PC-relative
1168 expressions.
1169 (shmedia_md_estimate_size_before_relax): An expression with a weak
1170 or global symbol can not be relaxed. Break out tests for
1171 relaxable symbol into variable sym_relaxable.
1172 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
1173 UNDEF_MOVI)>: Break out any PC-relative expression and change
1174 relaxation type.
1175 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
1176 opjp.
1177 <case A_IMMS16>: Fix typo for initial minor relaxation type of
1178 MOVI expansion. If X_op_symbol of the immediate expression is
1179 set, make an expression symbol for the argument to frag_var.
1180 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
1181 relaxations.
1182 (END): Adjust for new relaxations.
1183 (md_relax_table): Add entries for new relaxations.
1184 2000-12-07 Ben Elliston <bje@redhat.com>
1185 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
1186 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1187 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
1188 SHORI operand offsets in PT/PTA/PTB expansions.
1189 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1190 Implement DataLabel semantics.
1191 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
1192 shmedia_frob_file_before_adjust.
1193 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
1194 (DATALABEL_SUFFIX): Define.
1195 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
1196 symbol list to update "datalabel" symbols to their main symbol
1197 counterparts.
1198 (shmedia_frob_file_before_adjust): New.
1199 (sh64_adjust_symtab): For remaining datalabel symbols, set to
1200 undefined and set STT_DATALABEL.
1201 (sh64_frob_label): Initialize TC symbol field.
1202 (sh64_consume_datalabel): Actually implement semantics. New
1203 parameter operandf, call it instead of expression.
1204 (sh64_exclude_symbol): New.
1205 * config/tc-sh64.h (md_parse_name): Pass on the function operand
1206 to sh64_consume_datalabel.
1207 (tc_symbol_new_hook): Define to tc_frob_symbol.
1208 (TC_SYMFIELD_TYPE): Define to symbolS *.
1209 (tc_frob_symbol): Define to call sh64_exclude_symbol.
1210 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
1211 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
1212 case.
1213 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
1214 generating dwarf2 debug information.
1215 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1216 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
1217 elf64-sh64 for the 64-bit ABI.
1218 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
1219 option.
1220 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1221 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
1222 case-insensitivity.
1223 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1224 * config/tc-sh64.c: Tweak comments, formatting and error messages.
1225 (enum sh64_abi_values): New type.
1226 (enum sh64_isa_values): New type.
1227 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
1228 (seen_shcompact_mode, seen_shmedia_mode): Delete.
1229 (sh64_abi): Replace shmedia_64.
1230 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
1231 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
1232 (s_sh64_mode): Check validity for this target.
1233 (sh64_target_format): Initialize defaults for ISA and ABI.
1234 Fallback to old object format if no SH64 ISA or ABI has been
1235 specified.
1236 * config/tc-sh.c (md_parse_option): Check combinations for errors.
1237 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
1238 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
1239 * config/tc-sh64.h: Fix typo in comment.
1240 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
1241 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
1242 <PT fixups for absolute values>: Size will be longest, not
1243 shortest.
1244 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
1245 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
1246 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
1247 and l1 to hold lowercase of two first characters. Change all
1248 remaining TO_LOWER to tolower.
1249 * config/tc-sh64.c (TO_LOWER): Delete.
1250 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
1251 (md_parse_name): Define.
1252 (sh64_consume_datalabel): Declare.
1253 (DOLLAR_DOT): Define.
1254 * config/tc-sh64.c (shmedia_parse_exp): New.
1255 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
1256 (shmedia_parse_reg): Remove const from src
1257 parameter.
1258 (shmedia_get_operands): Ditto for args parameter and ptr variable.
1259 (shmedia_md_assemble): Ditto for op_end variable.
1260 (shmedia_get_operand): Ditto for ptr parameter and src variable.
1261 Use shmedia_parse_exp, not parse_exp.
1262 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
1263 parameter. All callers changed.
1264 (shmedia_get_operand): Add shmedia_arg_type parameter. All
1265 callers changed.
1266 (shmedia_parse_reg): Put first two character in local variables.
1267 Use tolower, not TO_LOWER. If no register is found and argtype
1268 indicates a control register, scan shmedia_creg_table
1269 case-insensitive.
1270 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1271 * Makefile.am (CPU_TYPES): Add sh64.
1272 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
1273 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
1274 Regenerate dependencies.
1275 * Makefile.in: Regenerate.
1276 * configure.in: Add support for sh64-*-elf*.
1277 * configure: Regenerate.
1278 * config/tc-sh64.h: New.
1279 * config/tc-sh64.c: New.
1280 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
1281 .mode, .isa and .uaquad.
1282 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
1283 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
1284 [HAVE_SH64] (END): Define as 10.
1285 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
1286 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
1287 MOVI_64): Define.
1288 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
1289 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
1290 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
1291 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
1292 Define.
1293 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
1294 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
1295 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
1296 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
1297 SHmedia instructions. Handle state-change after switching to
1298 SHcompact.
1299 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
1300 (md_parse_option) [HAVE_SH64]: Parse new options.
1301 (md_show_usage) [HAVE_SH64]: Show usage of new options.
1302 (md_convert_frag) [HAVE_SH64] <default>: Call
1303 shmedia_md_convert_frag instead of abort.
1304 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
1305 BFD_RELOC_SH_SHMEDIA_CODE.
1306 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
1307 SHcompact or SHmedia code.
1308 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
1309 shmedia_md_apply_fix instead of abort.
1310 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
1311 result from calling shmedia_md_estimate_size_before_relax instead
1312 of calling abort.
1313 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
1314 do the work.
1315 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
1316 shmedia_init_reloc and do nothing more if it returns non-zero.
1317 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
1318 * po/POTFILES.in: Regenerate.
1319 * po/gas.pot: Regenerate.
1320
1321 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
1322
1323 * config/tc-sh.c (parse_at): Install the correct version of
1324 2002-02-04's patch.
1325
1326 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
1327 assume fixP->fx_subsy is non-NULL.
1328
1329 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1330
1331 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
1332 A_DISP_PC_ABS, and adjust it by -4.
1333 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
1334 expected.
1335 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
1336 the operand type is not A_DISP_PC_ABS.
1337
1338 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1339
1340 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
1341 common and weak symbols. Handle common and weak symbols as
1342 undefined symbols with regards to GREG handling and merging.
1343 (mmix_frob_file): Ditto.
1344
1345 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1346
1347 * configure.in (hppa-*-netbsd*): New target.
1348 * configure: Regenerate.
1349 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
1350
1351 2002-02-02 Alan Modra <amodra@bigpond.net.au>
1352
1353 * config/tc-v850.c: Add missing prototypes amd use old-style
1354 function definitions.
1355 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
1356 (sdata_section tdata_section, zdata_section, sbss_section,
1357 tbss_section, zbss_section, rosdata_section, rozdata_section,
1358 scommon_section, tcommon_section, zcommon_section,
1359 call_table_data_section, call_table_text_section): Delete.
1360 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1361 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
1362 v850_call_table_data, v850_call_table_text): Delete.
1363 (struct v850_seg_entry): New.
1364 (v850_seg_table): New.
1365 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
1366 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
1367 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
1368 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
1369 (do_v850_seg): New.
1370 (v850_seg): New.
1371 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
1372 recording of alignment.
1373 (md_pseudo_table): Use v850_seg.
1374 (md_begin): Don't init .call_table_data and .call_table_text here.
1375 Set v850_seg_table bss entry.
1376
1377 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1378
1379 Support on-demand global register allocation by passing on
1380 base-plus-offset relocs to the linker.
1381 * config/tc-mmix.c: Tweak and fix typos in comments.
1382 (allocate_undefined_gregs_in_linker): New variable.
1383 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
1384 (md_longopts): Add --linker-allocated-gregs.
1385 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
1386 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
1387 (md_show_usage): Update text for -x. Add text for
1388 --linker-allocated-gregs.
1389 (tc_gen_reloc): Derive default value for addend from val and
1390 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
1391 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
1392 GREG if allocate_undefined_gregs_in_linker.
1393 * doc/as.texinfo (Overview) <Target MMIX options>: Add
1394 --linker-allocated-gregs.
1395 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
1396 --linker-allocated-gregs. Mention that it's implied by -x.
1397 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
1398 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
1399
1400 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
1401
1402 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1403
1404 * Makefile.am: Run "make dep-am"
1405 * Makefile.in: Regenerate.
1406
1407 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1408
1409 * config/tc-or32.c: New file.
1410 * config/tc-or32.h: New file.
1411 * configure.in: Add support for or32 targets.
1412 * configure: Regenerate.
1413 * config/obj-coff.c: Add support for or32 targets.
1414 * config/obj-coff.h: Add support for or32 targets.
1415 * Makefile.am: Add support for or32 targets.
1416 * Makefile.in: Regenerate.
1417 * NEWS: Mention support for OpenRISC.
1418 * doc/Makefile.in: Regenerate.
1419 * po/POTFILES.in: Regenerate.
1420 * po/gas.pot: Regenerate.
1421
1422 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
1423
1424 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
1425 and mod.
1426
1427 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1428
1429 * config/tc-mips.c (tc_gen_reloc): Arrange for
1430 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
1431 their LO16 parts, even for ELF.
1432
1433 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
1434
1435 * config/tc-i386.c: Protect definitions of true and false
1436 from redefinition.
1437
1438 2002-01-28 Jakub Jelinek <jakub@redhat.com>
1439
1440 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
1441 made because of .weak, if they are neither defined nor used in any
1442 way.
1443
1444 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1445
1446 * configure: Regenerated.
1447
1448 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1449
1450 * doc/Makefile.am (install): Depend on install-info.
1451 * doc/Makefile.in: Regenerate.
1452
1453 2002-01-26 Nick Clifton <nick@redhat.com>
1454
1455 * po/fr.po: Updated version
1456
1457 2002-01-24 Kazu Hirata <kazu@hxi.com>
1458
1459 * config/tc-h8300.c (check_operand): Don't print a warning
1460 when a valid 24-bit address is given to a 16-bit address
1461 operand.
1462
1463 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1464
1465 * config/tc-sh.c (sh_elf_suffix): Removed.
1466 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
1467 sh_end_of_match, sh_parse_name): New functions.
1468 (sh_elf_cons): Simplify.
1469 (parse_exp): Reject misplaced PIC operands.
1470 (md_undefined_symbol): Simplify.
1471 (sh_fix_adjustable): Let @GOTOFF be adjusted.
1472 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
1473 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
1474 Complain if subsy remains at the end.
1475 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
1476 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
1477
1478 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
1479
1480 * config/tc-mn10300.c (xr_registers): Move `pc'...
1481 (other_registers): ... here.
1482
1483 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1484
1485 * Makefile.am: Run "make dep-am".
1486 * Makefile.in: Regenerate.
1487 * gas/po/POTFILES.in: Regenerate.
1488
1489 2002-01-21 DJ Delorie <dj@redhat.com>
1490
1491 * config/obj-coff.c (obj_coff_init_stab_section): Make the
1492 stabstr_name allocation permanent, as it will be referenced from
1493 the section hash.
1494
1495 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1496
1497 * configure.in (ia64-*-netbsd*): New target.
1498 * configure: Regenerate.
1499
1500 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
1501
1502 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
1503 to @dots call.
1504 <Detailed description, ARM options>: Ditto.
1505 * doc/c-arm.texi (ARM Options): Ditto.
1506
1507 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1508
1509 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
1510 do_mia, do_mar and do_mra respectively.
1511 (do_mav_*): Renamed from do_c_*.
1512 (mav_reg_required_here, mav_parse_offset): Renamed from
1513 cirrus_reg_required_here and cirrus_parse_offset respectively.
1514 (MAV_MODE?): Renamed from CIRRUS_MODE?.
1515
1516 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1517 Keith Walker <keith.walker@arm.com>
1518
1519 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
1520 (insns): Add pattern for bxj instruction.
1521 (do_bxj): New function.
1522 (arm_cpus): Add arm926ej.
1523 (arm_archs): Add armv5tej.
1524
1525 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1526
1527 * doc/c-arm.texi: Add new fpe options to list of supported flags.
1528
1529 2002-01-19 Keith Walker <keith.walker@arm.com>
1530
1531 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
1532
1533 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1534
1535 * NEWS: Mention new ARM command-line options and VFP support.
1536
1537 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
1538 uses changed.
1539 (ARM_CEXT_MAVERICK): Similarly.
1540 (ARM_ANY): Now means any core instruction.
1541 (CPU_DEFAULT): Default to ARM_ANY.
1542 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
1543 (pic_code): Declare for all object types. Make type int.
1544 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
1545 (march_fpu_opt, mfpu_opt): Declare.
1546 (md_longopts): Tidy up conditional definitions.
1547 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
1548 (arm_long_opts): New tables.
1549 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
1550 (arm_parse_extension): New function.
1551 (md_parse_option): Rewrite using new table-driven system.
1552 (md_show_usage): Use new table-driven system.
1553 (md_begin): Calculate cpu_variant from command line option data.
1554 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
1555 command-line options.
1556 * doc/c-arm.texi: Likewise.
1557
1558 2002-01-18 Andreas Jaeger <aj@suse.de>
1559
1560 * as.c (parse_args): Update year.
1561
1562 2002-01-17 Timothy Wall <twall@alum.mit.edu>
1563
1564 * config/tc-tic54x.c (encode_address): Add a more informative
1565 warning about incorrect syntax.
1566
1567 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1568
1569 * po/gas.pot: Regenerate.
1570
1571 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1572
1573 * macro.c (get_any_string): Add no-c-format comment to prevent
1574 confusion when translating string.
1575 * gasp.c (get_any_string): Add no-c-format comment to prevent
1576 confusion when translating string.
1577
1578 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1579 Johannes Stezenbach <js@convergence.de>
1580 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
1581 matched before the shorter ones.
1582 (my_getSmallParser): Fix handling of nested parentheses in
1583 percent_op's. Code cleanup.
1584 (my_getPercentOp): New function, code from my_getSmallParser.
1585 (my_getSmallExpression): Fix handling of closing parentheses.
1586 Code cleanup. Better comments.
1587
1588 2002-01-16 Nick Clifton <nickc@redhat.com>
1589
1590 po/tr.po: New file: Turkish translation.
1591 configure.in (LINGUAS): Add "tr".
1592 configure: Regenerate.
1593
1594 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
1595
1596 Support for VFP instructions
1597 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
1598 (cp_address_required_here): New argument wb_ok. When false, do not
1599 accept write-back forms of addressing. Change all callers.
1600 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
1601 (FPU_VFP_EXT_V2): Define.
1602 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
1603 Define in terms of above.
1604 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
1605 (vfp_reg): New struct.
1606 (vfp_regs): New array of registers.
1607 (insns): Add VFP instructions.
1608 (sn_table): New array of VFP single-precision register names.
1609 (dn_table): New array of VFP double-precision register names.
1610 (all_reg_maps): Add the new register tables.
1611 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
1612 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
1613 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
1614 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
1615 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
1616 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
1617 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
1618 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
1619 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
1620 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
1621 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
1622 (do_vfp_sp_dp_cvt): New functions.
1623 (md_begin): Set soft-float flag for appropriate VFP work.
1624 (md_atof): Handle VFP-format doubles.
1625 (md_parse_option): Handle VFP command-line options.
1626 (md_show_usage): Display VFP command-line options.
1627
1628 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
1629
1630 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
1631 various command line options.
1632
1633 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1634
1635 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
1636 vtinherit relocs.
1637 (xstormy16_md_apply_fix3): Do not return a value.
1638
1639 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1640
1641 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
1642 the -EL/-EB option that matches the target's endianness.
1643 (md_parse_option): Likewise.
1644
1645 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1646
1647 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
1648 is not dependent on ARM_BI_ENDIAN.
1649
1650 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1651
1652 * tc-arm.c (all error messages): Normalize capitalization of messages.
1653
1654 * tc-arm.h (md_operand): Delete define.
1655 * tc-arm.c (in_my_get_expression): New static variable.
1656 (my_get_expression): Set and clear it.
1657 (md_operand): New function. If called from my_get_expression
1658 put the error in inst.error.
1659 (output_inst): Now takes argument of instruction being assembled.
1660 Print it out with any error message.
1661 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
1662 with '=' syntax.
1663 (end_of_line): Don't update inst.error if it is already set.
1664
1665 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
1666
1667 * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
1668 op that can be translated into a mvn instruction.
1669
1670 2002-01-11 Steve Ellcey <sje@cup.hp.com>
1671
1672 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
1673 setting default md.flags.
1674 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
1675 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
1676 * gas/config/tc-ia64.c (setup_unwind_header): Add support
1677 for 32 bit unwind info blocks.
1678 (generate_unwind_image): Add support for different types
1679 of unwind images (32 bits and/or big-endian).
1680 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
1681 (ia64_target_format): Add support for hpux target formats.
1682 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
1683 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
1684 SHT_FINI_ARRAY elf section types.
1685
1686 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
1687
1688 * tc-arm.c (struct reg_entry): Move before prototypes.
1689 (int_register, cp_register, fp_register): Delete.
1690 (reg_table): Delete. Replaced with ...
1691 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
1692 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
1693 (mav_dspsc_table): ... one table per register set.
1694 (arm_reg_hsh): Delete.
1695 (struct reg_map): New structure.
1696 (all_reg_maps): New array.
1697 (enum arm_reg_type): New enums.
1698 (build_reg_hsh): New function.
1699 (insert_reg_alias): Use hash table passed by caller. Adjust all
1700 callers.
1701 (create_register_alias): New function, split out from ...
1702 (md_assemble): ... here.
1703 (md_begin): Build new register hash tables.
1704 (arm_reg_parse): New argument for the hash table to search. Adjust all
1705 callers.
1706 (arm_reg_parse_any): New function.
1707 (co_proc_number): Look up the processor number in the processor hash
1708 table.
1709 (cirrus_regtype): Delete.
1710 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
1711 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
1712 (ARM_EXT_MAVERICKsc_register): Delete.
1713 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
1714 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
1715 functions.
1716 (do_c_triple_4, do_c_triple_5): Delete.
1717 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
1718 (do_c_quad_6): Delete.
1719 (do_c_quad_6[ab]): New functions.
1720 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
1721 arguments to use new register parsing methods.
1722 (cirrus_reg_required_here): Likewise.
1723 (insns): Reclassify cirrus maverick worker functions.
1724 (cirrus_valid_reg): Delete.
1725
1726 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1727
1728 * configure.in (sh*le): Set cpu_type=sh and endian=little.
1729 (sh*-*-netbsdelf*): New target.
1730 * configure: Regenerate.
1731 * tc-sh.h: Update copyright years.
1732 (TARGET_FORMAT): Add version for TE_NetBSD.
1733
1734 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1735
1736 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
1737 negative.
1738
1739 2002-01-06 Alan Modra <amodra@bigpond.net.au>
1740
1741 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
1742 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
1743
1744 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
1745
1746 * tc-mips.c (mips_cprestore_valid): New flag.
1747 (mips_frame_reg_valid): New flag.
1748 (macro) [M_JAL_2]: Check both flags.
1749 [M_JAL_A]: Likewise.
1750 (s_cprestore): Set mips_cprestore_valid.
1751 (tc_get_register): If setting mips_frame_reg, set
1752 mips_frame_reg_valid and clear mips_cprestore_valid.
1753 (s_mips_ent): Clear both flags.
1754 (s_mips_end): Clear both flags.
1755
1756 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1757
1758 * write.c (write_object_file): Make use of bfd_section_list_remove.
1759 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
1760 * config/tc-mmix.c (mmix_frob_file): Likewise.
1761
1762 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1763
1764 * configure.in (i386-*-netbsdelf*): Collapse target into...
1765 (i386-*-netbsd*): ...this. Add support for x86-64.
1766 * configure: Regenerated.
1767
1768 2002-01-03 matthew green <mrg@redhat.com>
1769
1770 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
1771
1772 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1773
1774 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
1775 NULL frag link.
1776
1777 For older changes see ChangeLog-0001
1778 \f
1779 Local Variables:
1780 mode: change-log
1781 left-margin: 8
1782 fill-column: 74
1783 version-control: never
1784 End:
This page took 0.065289 seconds and 5 git commands to generate.