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