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