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