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