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