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