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