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