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