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