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