* config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
[binutils-gdb.git] / gas / ChangeLog
1 2003-06-23 Mark Mitchell <mark@codesourcery.com>
2
3 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
4
5 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
6
7 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
8 Instructions.
9
10 * gas/config/tc-i386.h (CpuPNI): New.
11 (CpuUnknownFlags): Add CpuPNI.
12
13 2003-06-23 <davidm@hpl.hp.com>
14
15 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
16 freebsd, openvms, and nsk (non-stop kernel).
17
18 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
19
20 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
21 all locals have been declared.
22
23 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
24
25 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
26 special handling for n32 ABI.
27 (macro): Likewise.
28
29 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
30
31 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
32 2003-06-11 change.
33
34 2003-06-19 Christian Groessler <chris@groessler.org>
35
36 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
37 now, not only a warning. Add some more checks to detect invalid
38 registers.
39 (get_operand): For CLASS_IR remember register size in mode struct.
40 (get_specific): Handle new CLASS_IRO type. Add register size
41 checks for CLASS_IR and CLASS_IRO.
42 (md_apply_fix3): Fix undefined usage of buf.
43
44 2003-06-19 Alan Modra <amodra@bigpond.net.au>
45
46 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
47 (ppc_change_csect): Add align param. Align frag at start of csect.
48 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
49 (ppc_frob_section): Align vma.
50
51 2003-06-18 Jakub Jelinek <jakub@redhat.com>
52
53 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
54 (output_cie): Don't pad.
55 (output_fde): Add align argument. Pad to align if not 0.
56 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
57 Pad just last FDE to EH_FRAME_ALIGNMENT.
58
59 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
60
61 * config/tc-s390.c (init_default_arch): Make current_mode_mask
62 dependent on s390_arch_size and current_cpu dependent on
63 current_mode_mask.
64
65 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
66
67 * configure.in: Add c4x as an architecture variant to tic4x.
68 * configure: Regenerate.
69 * Makefile.in: Regenerate.
70 * doc/Makefile.in: Regenerate.
71
72 2003-06-18 Alan Modra <amodra@bigpond.net.au>
73
74 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
75 ".TOC." from PPC64_TOC relocs.
76
77 2003-06-17 Alan Modra <amodra@bigpond.net.au>
78
79 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
80
81 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
82
83 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
84 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
85 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
86 s_cprestore,s_cpadd): Use them.
87
88 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
89
90 * configure.in: Add specific case for cris-*-linux-gnu* with
91 em=linux.
92 * configure: Regenerate.
93 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
94 if TE_LINUX defined, else FALSE.
95 (bfd_boolean demand_register_prefix): Set default from
96 DEFAULT_CRIS_AXIS_LINUX_GNU.
97 (symbols_have_leading_underscore): Similar.
98 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
99
100 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
101
102 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
103 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
104 FPU_ARCH_FPA for AOUT.
105 (md_begin): Don't try to guess the floating point architecture from
106 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
107
108 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
109
110 * configure.in: Add i386-netbsd-gnu target.
111 * configure: Regenerate.
112
113 2003-06-12 Tom Tromey <tromey@redhat.com>
114
115 * doc/as.texinfo (Comm): Added @node. Moved before CFI
116 directives node.
117
118 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
119
120 * config/tc-mips.c (append_insn): In a compound relocation, take the
121 field width from the final (outermost) operator.
122
123 2003-06-11 Richard Henderson <rth@redhat.com>
124
125 * dw2gencfi.c (struct cfi_escape_data): New.
126 (cfi_add_CFA_nop): Remove.
127 (CFI_escape, dot_cfi_escape): New.
128 (dot_cfi): Remove nop.
129 (cfi_pseudo_table): Remove nop; add escape.
130 (output_cfi_insn): Likewise.
131 (select_cie_for_fde): Stop on escape.
132 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
133 * read.c, read.h (do_parse_cons_expression): New.
134 * doc/as.texinfo (.cfi_escape): New.
135
136 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
137
138 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
139 (s_cprestore): Likewise.
140 (s_cpreturn): Likewise.
141
142 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
143
144 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
145 with zeros.
146
147 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
148
149 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
150 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
151 exceptions from size assert. Remove most of the addend fixup
152 specialcasing. Remove value, use valP directly. simplify fx_addnumber
153 handling. Remove zero addend specialcases.
154 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
155 the addend fixup specialcase.
156 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
157
158 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
159
160 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
161 in the RELOC_EXPANSION_POSSIBLE case.
162
163 2003-06-11 Alan Modra <amodra@bigpond.net.au>
164
165 * config/tc-i960.c (line_comment_chars): Add '#'.
166 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
167
168 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
169
170 * po/Make-in (DESTDIR): New.
171 (install-data-yes): Support $(DESTDIR).
172 (uninstall): Likewise.
173
174 2003-06-11 Alan Modra <amodra@bigpond.net.au>
175
176 * Makefile.am: Run "make dep-am".
177 * Makefile.in: Regenerate.
178 * po/POTFILES.in: Regenerate.
179
180 2003-06-10 Doug Evans <dje@sebabeach.org>
181
182 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
183 CGEN_INSN_RELAXED.
184 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
185 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
186 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
187
188 2003-06-10 Alan Modra <amodra@bigpond.net.au>
189 Gary Hade <garyhade@us.ibm.com>
190
191 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
192 (md_apply_fix3): Special case lq insn.
193
194 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
195
196 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
197 lists. Allow single-register ranges.
198
199 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
200
201 * config/tc-h8300.c (h8300sxnmode): New.
202 (md_pseudo_table): Add .h8300sxn entry.
203
204 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
205
206 * NEWS: Updated for the new -n option for the i386 assembler.
207
208 * config/tc-i386.c (optimize_align_code): New.
209 (md_shortopts): Add 'n'.
210 (md_parse_option): Handle 'n'.
211 (md_show_usage): Add '-n'.
212
213 * config/tc-i386.h (optimize_align_code): Declared.
214 (md_do_align): Optimize code alignment only if optimize_align_code
215 is not 0.
216
217 * doc/as.texinfo: Add the new -n option.
218
219 * doc/c-i386.texi: Document the new -n option.
220
221 2003-06-07 Richard Henderson <rth@redhat.com>
222
223 * doc/as.texinfo: Document .cfi_rel_offset.
224
225 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
226 (cfi_add_CFA_offset): Detect invalid offsets.
227 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
228 (cfi_add_CFA_restore_state): Restore it.
229 (CFI_rel_offset): New.
230 (cfi_pseudo_table): Add it.
231 (dot_cfi): Handle it.
232
233 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
234
235 * app.c (do_scrub_chars): Add states 14 and 15 to handle
236 predicate for ia64.
237
238 2003-06-05 Michael Snyder <msnyder@redhat.com>
239
240 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
241 (build_bytes): Ditto.
242
243 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
244
245 * config/tc-h8sx.c (DMODE): Remove.
246 (colonmod24): Don't choose a default if the operand is a 16-bit
247 constant integer.
248 (fix_operand_size): New function.
249 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
250 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
251
252 2003-06-05 Michal Ludvig <mludvig@suse.cz>
253
254 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
255 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
256 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
257 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
258 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
259 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
260 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
261 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
262 (cfi_pseudo_table): New directives .cfi_return_column,
263 .cfi_restore, .cfi_undefined, .cfi_same_value,
264 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
265 (dot_cfi, output_cfi_insn): Handle new directives.
266 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
267 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
268 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
269
270 2003-06-04 Richard Henderson <rth@redhat.com>
271
272 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
273
274 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
275
276 2003-06-04 Richard Henderson <rth@redhat.com>
277
278 * config/tc-alpha.c (s_alpha_usepv): New.
279 (md_pseudo_table): Add it.
280 (alpha_cfi_frame_initial_instructions): New.
281 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
282 (tc_cfi_frame_initial_instructions): New.
283 * doc/c-alpha.texi: Document .usepv.
284
285 2003-06-04 Jakub Jelinek <jakub@redhat.com>
286
287 * as.c (show_usage): Document --execstack and --noexecstack.
288 (parse_args): Add --execstack and --noexecstack.
289 (main): Create .note.GNU-stack section if --execstack or
290 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
291 * as.h (flag_execstack, flag_noexecstack): New.
292
293 2003-06-03 Chris Demetriou <cgd@broadcom.com>
294
295 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
296 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
297 (OPTION_MISC_BASE): New defines.
298 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
299 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
300 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
301 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
302 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
303 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
304 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
305 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
306 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
307 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
308 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
309 (OPTION_TRAP): Redefine in terms of new defines.
310 (md_longopts): Reorder entries.
311
312 2003-05-14 Michael Snyder <msnyder@redhat.com>
313 From Bernd Schmidt <bernds@redhat.com>
314 and Michael Snyder <msnyder@redhat.com>
315 and Alexandre Oliva <aoliva@redhat.com>
316 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
317 * config/tc-h8300.h: Ditto.
318
319 2003-06-03 Nick Clifton <nickc@redhat.com>
320
321 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
322 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
323 before calling bfd_reloc_type_lookup.
324
325 2003-06-02 Alan Modra <amodra@bigpond.net.au>
326
327 * read.c (emit_expr): Set dot_value.
328 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
329
330 2003-06-02 Alan Modra <amodra@bigpond.net.au>
331
332 * macro.c (sub_actual): Don't lose string if it turns out that
333 &string wasn't an arg.
334
335 2003-05-31 Richard Henderson <rth@redhat.com>
336
337 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
338 (cfi_finish): Set flag_traditional_format around .eh_frame data.
339
340 2003-05-29 Richard Henderson <rth@redhat.com>
341
342 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
343 (all_frame_data, plast_frame_data, cur_frame_data): New.
344 (s_alpha_ent): Record data for dwarf2 cfi.
345 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
346 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
347 * config/tc-alpha.h (md_end): New.
348 (DWARF2_DEFAULT_RETURN_COLUMN): New.
349 (DWARF2_CIE_DATA_ALIGNMENT): New.
350
351 2003-05-29 Nick Clifton <nickc@redhat.com>
352
353 * configure.in: Add i386-*-freebsd* entry.
354 * configure: Regenerate.
355
356 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
357
358 * config/tc-m32r.c: Amend comment to refer to Renesas
359
360 2003-05-27 Richard Henderson <rth@redhat.com>
361
362 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
363 symbol_create call.
364 (current_location): Use symbol_temp_new_now.
365 * stabs.c (s_stab_generic): Use symbol_temp_new.
366 * symbols.c (temp_label_name): Remove.
367 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
368
369 2003-05-27 Richard Henderson <rth@redhat.com>
370
371 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
372 * as.c (main): Always call cfi_finish.
373 * config/tc-i386.c (x86_dwarf2_return_column): New.
374 (x86_cie_data_alignment): New.
375 (md_begin): Set them.
376 (tc_x86_cfi_init): Remove.
377 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
378 return int, not unsigned long; don't as_bad here.
379 (tc_x86_frame_initial_instructions): Streamline; use
380 updated api.
381 * config/tc-i386.h (tc_cfi_init): Remove.
382 (DWARF2_DEFAULT_RETURN_COLUMN): New.
383 (DWARF2_CIE_DATA_ALIGNMENT): New.
384
385 2003-05-27 Richard Henderson <rth@redhat.com>
386
387 * symbols.c (temp_label_name): New.
388 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
389 (symbol_set_value_now): New.
390 * symbols.h: Prototype them.
391 * dwarf2dbg.c: Use them.
392 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
393
394 2003-05-23 Jason Eckhardt <jle@rice.edu>
395
396 * config/tc-i860.c (target_xp): Declare variable.
397 (OPTION_XP): Declare macro.
398 (md_longopts): Add option -mxp.
399 (md_parse_option): Set target_xp.
400 (md_show_usage): Add -mxp usage.
401 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
402 (md_assemble): Don't try expansions if XP_ONLY is set.
403 * doc/c-i860.texi: Document -mxp option and i860XP support.
404
405 2003-05-23 Eric Christopher <echristo@redhat.com>
406
407 * config/tc-mips.c (macro_build_jalr): Warning patrol.
408
409 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
410
411 * config/tc-mips.c (append_insn): Use actual relocation size for new
412 fixp's. Don't relax overflow checking for partial_inplace relocations.
413 Use the actual relocation type in combined relocs, not just the type
414 of the first one.
415 (macro_build_jalr): Use actual relocation size for new fix.
416 (s_cpsetup, s_gpdword): Likewise.
417
418 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
419
420 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
421
422 2003-05-22 Nick Clifton <nickc@redhat.com>
423
424 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
425 section relative offsets for relocs that will not be based on the
426 section symbol.
427 (xstormy16_md_apply_fix3): Remove previous patch to this
428 function.
429
430 2003-05-07 Eric Christopher <echristo@redhat.com>
431
432 * config/tc-mips.c (mips_abicalls): New variable.
433 (md_parse_option): Use.
434 (s_option): Ditto.
435 (s_abicalls): Ditto.
436 (mips_elf_final_processing): Set EF_MIPS_PIC and
437 EF_MIPS_CPIC dependent on above.
438
439 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
440
441 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
442
443 2003-05-21 Nick Clifton <nickc@redhat.com>
444
445 * config/obj-elf.c: Include dwarf2dbg.h.
446 (elf_pseudo_tab): Add .file and .loc.
447 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
448 * config/tc-arm.c: Likewise.
449 * config/tc-h8300.c: Likewise.
450 * config/tc-hppa.c: Likewise.
451 * config/tc-ia64.c: Likewise.
452 * config/tc-m68hc11.c: Likewise.
453 * config/tc-m68k.c: Likewise.
454 * config/tc-mmix.c: Likewise.
455 * config/tc-mn10300.c: Likewise.
456 * config/tc-ppc.c: Likewise.
457 * config/tc-sh.c: Likewise.
458 * config/tc-sparc.c: Likewise.
459 * config/tc-v850.c: Likewise.
460 * config/tc-frv.c: Likewise, and remove redundant inclusion of
461 dwarf2dbg.h.
462 * config/tc-ip2k.c: Likewise.
463 * config/tc-iq2000.c: Likewise.
464 * config/tc-xstormy16.c: Likewise.
465 * config/tc-xtensa.c: Likewise.
466 * Makefile.am: Regenerate dependencies.
467 * Makefile.in: Regenerate.
468 * aclocal.m4: Regenerate.
469 * config.in: Regenerate.
470 * configure: Regenerate.
471 * po/POTFILES.in: Regenerate.
472 * po/gas.pot: Regenerate.
473
474 2003-05-21 Nick Clifton <nickc@redhat.com>
475
476 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
477 BFD_ASSEMBLER targets.
478 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
479 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
480 defining BFD_ASSEMBLER.
481
482 2003-05-20 Michal Ludvig <mludvig@suse.cz>
483
484 * as.c (main): Remove tc_cfi_init().
485 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
486 with '%'.
487 (cfi_pseudo_table): Add "cfi_register" entry.
488 (cfi_make_insn): Handle CFA_register.
489 (cfi_output_insn): Ditto.
490 (dot_cfi): Ditto.
491 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
492 (dot_cfi_endproc): Reuse already emitted CIEs.
493 * testsuite/gas/cfi/cfi-i386.d: New pattern.
494 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
495
496 2003-05-20 Nick Clifton <nickc@redhat.com>
497
498 * config/tc-xstormy16.c: Include dwarf2dbg.h.
499 (md_pseudo_table): Add entries for .loc and .line.
500
501 2003-05-20 Alan Modra <amodra@bigpond.net.au>
502
503 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
504 defined.
505 (dot_cfi_endproc): Avoid C99 construct.
506
507 2003-05-20 Michal Ludvig <mludvig@suse.cz>
508
509 * dw2gencfi.c, dw2gencfi.h: New files.
510 * config/tc-i386.c (tc_x86_cfi_init): New function.
511 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
512 * as.c (parse_args): Set verbose flag on --verbose.
513 (main): Call tc_cfi_init()/cfi_finish().
514 * as.h (verbose): New external variable.
515 * read.c (pobegin): Insert CFI pops to the list.
516 * symbols.c (local_symbol_make): Make symbol external.
517 * symbols.h (local_symbol_make): New prototype.
518 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
519 * Makefile.in: Regenerate.
520 * doc/as.texinfo: Added node "CFI directives" with description of
521 all implemented .cfi_* directives.
522 * doc/Makefile.in: Regenerate.
523 * po/POTFILES.in: Regenerate.
524
525 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
526
527 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
528 insns.
529 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
530
531 2003-05-18 Jason Eckhardt <jle@rice.edu>
532
533 * config/tc-i860.c (i860_process_insn): Initialize fc after
534 each opcode mismatch.
535
536 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
537
538 * configure.in: Accept i[3-7]86 variants.
539 * configure: Regenerate.
540
541 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
542
543 * config/tc-mips.h: Fix comment formatting.
544
545 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
546
547 * read.c (old_buffer, old_input, old_limit): Remove variables.
548 (read_a_source_file): Delete label contin.
549 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
550 input as with macros, instead of in separate old_* variables.
551 Zero-terminate string being scrubbed.
552
553 2003-05-12 Nick Clifton <nickc@redhat.com>
554
555 * config/tc-xstormy16.c (skipping_fptr): New local variable.
556 (md_assemble): Reset skipping_fptr.
557 (md_operand): If @fptr() is followed by a minus sign, set
558 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
559 @fptr is detected, ignore it and reset skipping_fptr.
560
561 2003-05-11 Jason Eckhardt <jle@rice.edu>
562
563 * config/tc-i860.c (MAX_FIXUPS): Define.
564 (struct i860_fi fi[]): New struct.
565 (struct i860_it the_insn): Add above as member and move fields
566 exp, reloc, pcrel and fup into i860_fi.
567 (md_assemble): Replace all instances of exp, reloc, pcrel
568 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
569 Add a loop to possibly emit multiple fix-ups for each insn.
570 (i860_process_insn): Likewise.
571 (i860_get_expression): Likewise.
572 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
573
574 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
575
576 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
577
578 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
579
580 * config/tc-ia64.c (alias_hash): New.
581 (alias_name_hash): New.
582 (secalias_hash): New.
583 (secalias_name_hash): New.
584 (md_pseudo_table): Add "secalias".
585 (md_begin): Initialize alias_hash, alias_name_hash,
586 secalias_hash and secalias_name_hash.
587 (struct alias): New.
588 (dot_alias): Implement .alias and .secalias directives.
589 (do_alias): New.
590 (ia64_adjust_symtab): New.
591 (do_secalias): New.
592 (ia64_frob_file): New.
593
594 * config/tc-ia64.h (ia64_adjust_symtab): New.
595 (tc_adjust_symtab): Defined.
596 (ia64_frob_file): New.
597 (tc_frob_file): Defined.
598
599 2003-05-07 Dmitry Diky <diwil@mail.ru>
600
601 * tc-msp430.c: Add missing lines to known cpus list.
602
603 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
604
605 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
606 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
607 * config.in, configure: Rebuilt.
608
609 2003-05-05 H.J. Lu <hjl@gnu.org>
610
611 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
612 howto->partial_inplace is false.
613
614 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
615
616 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
617 symbol_used_in_reloc_p check.
618 (md_apply_fix3): Remove check for howto->pcrel_offset.
619
620 2003-05-03 H.J. Lu <hjl@gnu.org>
621
622 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
623 fatal error for unknown section attribute.
624
625 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
626 unknown section attribute.
627 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
628 * config/tc-ppc.c (ppc_section_letter): Likewise.
629
630 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
631 (ia64_elf_section_type): Accept "unwind".
632
633 2003-05-02 H.J. Lu <hjl@gnu.org>
634
635 * read.h (demand_copy_string): New.
636
637 * config/tc-alpha.c (demand_copy_string): Removed.
638
639 2003-05-02 Michael Snyder <msnyder@redhat.com>
640
641 * write.h (FAKE_LABEL_NAME): Allow override
642 (for targets that like eg. a leading dot in a local label).
643
644 2003-05-02 Nick Clifton <nickc@redhat.com>
645
646 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
647 addend with the symbol's value for pc-relative relocations against
648 a defined symbol - this will be done automatically.
649
650 2003-05-01 H.J. Lu <hjl@gnu.org>
651
652 * config/obj-elf.c (obj_elf_type): Accept "notype" and
653 "STT_NOTYPE".
654
655 2003-05-01 H.J. Lu <hjl@gnu.org>
656
657 * config/tc-ia64.h (tc_canonicalize_section_name): New.
658
659 * config/obj-elf.c (obj_elf_section_name): Call
660 tc_canonicalize_section_name if it is defined.
661
662 2003-05-01 H.J. Lu <hjl@gnu.org>
663
664 * config/tc-ia64.c (ia64_check_label): New.
665 * config/tc-ia64.h (tc_check_label): New.
666
667 * read.c (read_a_source_file): Call tc_check_label after
668 creating a user-defined label if defined.
669
670 2003-05-02 Alan Modra <amodra@bigpond.net.au>
671
672 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
673 -be and split strings to below 509 bytes in length.
674
675 2003-05-01 Christian Groessler <chris@groessler.org>
676
677 * expr.h: Fix comments in operatorT typedef.
678 * config/tc-z8k.c: Add 2003 to copyright message.
679 Fold s_segm() and s_unseg() into one function s_segm(parm) which
680 decides by the parameter.
681 (md_begin): Don't set linkrelax. Only set Z8002 default if no
682 command line argument was given to select the intended
683 architecure.
684 (get_interrupt_operand): Warn if NOP type code is emitted.
685 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
686 (apply_fix): Call newfix with additional 'size' parameter.
687 (build_bytes): Remove unused variable 'nib'. Detect overflow in
688 4 bit immediate arguments.
689 (md_longopts): Add 'linkrelax' option.
690 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
691 variable when 'linkrelax' command line option is specified.
692 (md_show_usage): Display 'linkrelax' option.
693 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
694 R_CALLR and R_REL16.
695 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
696
697 2003-04-30 H.J. Lu <hjl@gnu.org>
698
699 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
700 (ia64_float_to_chars): Likewise.
701 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
702 and ia64_float_to_chars by tc_segment_info_data.endian from
703 the current segment if byteorder == -1.
704 (md_begin): Call dot_byteorder to set target_big_endian.
705 (md_atof): Call ia64_float_to_chars to convert floating point.
706 (ia64_float_to_chars_bigendian): New function.
707 (ia64_float_to_chars_littleendian): Likewise.
708 (ia64_elf_section_change_hook): Likewise.
709
710 * config/tc-ia64.h (ia64_number_to_chars): New.
711 (md_number_to_chars): Changed to (*ia64_number_to_chars)
712 (ia64_elf_section_change_hook): New.
713 (md_elf_section_change_hook): Defined.
714 (ia64_segment_info_type): New struct.
715 (TC_SEGMENT_INFO_TYPE): Defined.
716
717 2003-04-30 H.J. Lu <hjl@gnu.org>
718
719 * config/tc-ia64.c (md_section_align): Deleted.
720
721 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
722 (md_section_align): New.
723
724 2003-04-30 H.J. Lu <hjl@gnu.org>
725
726 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
727 and add real16.
728 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
729 "real16.ua".
730 (md_atof): Add 6 byte padding of zero for real16.
731
732 2003-04-29 Nick Clifton <nickc@redhat.com>
733
734 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
735 start of a version name.
736
737 2003-04-28 Chris Demetriou <cgd@broadcom.com>
738
739 * configure.in (mips-*-*n*bsd*): Replace with...
740 (mips-*-netbsd*, mips-*-openbsd*): These.
741 * configure: Regenerate.
742
743 2003-04-28 H.J. Lu <hjl@gnu.org>
744
745 * config/tc-hppa.c (hppa_symbol_chars): New.
746 * config/tc-hppa.h (tc_symbol_chars): Likewise.
747
748 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
749
750 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
751
752 2003-04-25 Chris Demetriou <cgd@broadcom.com>
753
754 * NEWS: Belatedly mention support for MIPS32 Release 2.
755
756 2003-04-24 Eric Christopher <echristo@redhat.com>
757
758 * config/tc-mips.c (nopic_need_relax): Revert previous
759 change.
760
761 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
762
763 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
764 * config/tc-h8300.c (dwarf2dbg.h): Include
765 (md_pseudo_table): Handle .loc and .file
766 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
767 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
768 * Makefile.in: Regenerate.
769
770 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
771
772 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
773 (md_pseudo_table): Add h8300hn, h8300sn.
774 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
775 * doc/c-h8300.texi : Add documentation for new machine directives.
776
777 2003-04-24 Nick Clifton <nickc@redhat.com>
778
779 * config/tc-ppc.c (ppc_symbol_chars): Define.
780 * config/tc-ppc.h (tc_symbol_chars): Define.
781
782 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
783
784 * config/tc-sh.c: Amend comment to refer to SuperH.
785 * config/tc-sh.h: Likewise.
786 (LISTING_HEADER): Amend to refer to SuperH.
787 * config/tc-sh64.c: Change comment to refer to SuperH.
788 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
789 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
790 * doc/c-sh.texi: Amend to refer to SuperH.
791 Add SuperH architecture documentation references.
792 * doc/c-sh64.texi: Change to refer to SuperH.
793
794 2003-04-23 H.J. Lu <hjl@gnu.org>
795
796 * app.c (do_scrub_chars): More checks for valid labels.
797
798 2003-04-22 H.J. Lu <hjl@gnu.org>
799
800 * app.c (do_scrub_chars): Check for valid label.
801
802 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
803
804 * doc/as.texinfo: Replace references to Mitsubishi M32R with
805 references to Renesas M32R.
806 * doc/c-m32r.texi: Likewise.
807
808 2003-04-21 Richard Henderson <rth@redhat.com>
809
810 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
811 (out_file_list): Assign non-null filename after generating error.
812
813 2003-04-18 Jakub Jelinek <jakub@redhat.com>
814
815 * ehopt.c (check_eh_frame): For aug_size == 0
816 in state_seeing_aug_size state skip the state_skipping_aug
817 state.
818
819 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
820
821 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
822 'Renesas'.
823 * doc/c-h8500.texi: Likewise.
824 * doc/c-sh.texi: Likewise.
825 * doc/c-sh64.texi: Likewise.
826 * doc/h8.texi: Likewise.
827 * config/tc-h8300.c: Likewise.
828 * config/tc-h8300.h: Likewise.
829 * config/tc-h8500.c: Likewise.
830 * config/tc-h8500.h: Likewise.
831 * config/tc-sh.c: Likewise.
832 * config/tc-sh.h: Likewise.
833 * config/tc-sh64.c: Likewise.
834 * config/tc-sh64.h: Likewise.
835
836 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
837
838 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
839 * config/tc-mips.c: Use signed add for n32 address arithmetic.
840 (append_insn): When filling delay slots with instructions
841 that have fixups that tc_gen_reloc might consider modifyable
842 in variant frags, start a new frag.
843 (load_address): Generate GOT_DISP with of without offset
844 depending on whether symbol is local. For -xgot, use
845 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
846 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
847 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
848 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
849 <ld_st>: In NewABI with small got, always use
850 GOT_PAGE/GOT_OFST, with the latter in the load/store
851 instruction. With big got, use GOT_HI16/GOT_LO16 or
852 GOT_PAGE/GOT_OFST.
853 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
854 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
855 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
856 (md_convert_frag): Use memmove for safe copying of overlapping
857 regions.
858
859 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
860
861 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
862 -mlong, -mshort-double and -mlong-double options; use table @code.
863 (M68HC11-Syntax): Update to document 68HC12 operands.
864 (M68HC11-Modifiers): New section for operand modifiers.
865 (M68HC11-Directives): New section for specific assembler directives.
866 (M68HC11-Branch): Fix Overfull hbox error.
867
868 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
869
870 * config/tc-mips.c (macro): Add comments explaining the rationale
871 for Chris' change.
872
873 2003-04-09 Chris Demetriou <cgd@broadcom.com>
874
875 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
876 constant address that Alexandre took out by accident. Reject
877 64-bit addresses that are not sign extensions of 32 bits only if
878 we don't support 64-bit address constants.
879
880 2003-04-09 Alan Modra <amodra@bigpond.net.au>
881
882 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
883
884 2003-04-08 Nick Clifton <nickc@redhat.com>
885
886 * as.c (perform_an_assembly_pass): If using cgen, call
887 gas_cgen_begin.
888 * cgen.c (gas_cgen_begin): New function. If
889 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
890 otherwise call cgen_clear_signed_overflow_ok.
891 * cgen.h: Prototype gas_cgen_begin.
892
893 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
894
895 * write.c (write_relocs): Remove unused variable.
896
897 2003-04-06 Chris Demetriou <cgd@broadcom.com>
898
899 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
900 (macro): Use new macro to decide whether to emit constant address
901 as 32 or 64 bits if addresses are 32-bit wide but registers are
902 64-bit wide.
903
904 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
905
906 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
907 (M6811_OP_PAGE_ADDR): New internal define.
908 (get_operand): New modifier %page and %addr to obtain page and
909 address part of a far-function.
910 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
911 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
912 relocs.
913 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
914 (find_opcode): Add comment.
915 (md_estimate_size_before_relax): Force relocation of
916 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
917 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
918 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
919 on the symbol itself so that DWARF2 strings are merged correctly.
920
921 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
922
923 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
924 default tic4x target format to 'coff2-tic4x'.
925 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
926 s/c3x/tic3x/
927 * config/tc-tic4x.h: Ditto
928
929 2003-04-03 Nick Clifton <nickc@redhat.com>
930
931 * NEWS: Mention support for Xtensa architecture.
932
933 2003-04-02 Philip Blundell <philb@gnu.org>
934
935 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
936
937 2003-04-02 Chris Demetriou <cgd@broadcom.com>
938
939 * config/tc-mips.c (macro2): Adjust implementation of
940 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
941 in the case where the source and destination registers
942 are the same.
943
944 2003-04-01 Bob Wilson <bob.wilson@acm.org>
945
946 * Makefile.am (CPU_TYPES): Add xtensa.
947 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
948 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
949 (xtensa-relax.o): New target.
950 Run "make dep-am".
951 * Makefile.in: Regenerate.
952 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
953 extra_objects for xtensa targets.
954 * configure: Regenerate.
955 * write.c (write_object_file): Add new md_post_relax_hook.
956 * config/tc-xtensa.c: New file.
957 * config/tc-xtensa.h: Likewise.
958 * config/xtensa-istack.h: Likewise.
959 * config/xtensa-relax.c: Likewise.
960 * config/xtensa-relax.h: Likewise.
961 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
962 * doc/Makefile.in: Regenerate.
963 * doc/all.texi: Set new XTENSA variable.
964 * doc/as.texinfo: Set new Xtensa variable. Describe
965 Xtensa-specific options. Define line comment character for
966 Xtensa. Add Xtensa processors to list of ELF targets where
967 alignment is specified in bytes. Add new Xtensa-Dependent node.
968 Add acknowledgements for those contributing to the Xtensa port.
969 * doc/internals.texi: Describe new md_post_relax_hook.
970 * doc/c-xtensa.texi: New file.
971
972 2003-04-01 Nick Clifton <nickc@redhat.com>
973 Richard Earnshaw <rearnsha@arm.com>
974
975 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
976 (ARM_ARCH_IWMMXT): Simplify.
977 (insns): Place iwmmx instructions in correct place in table.
978 (arm_add_note): New function: Add a note entry to a .note section.
979 (md_begin): Make the default architecture be unknown.
980 Suppress the creation of an arm note section.
981
982 2003-03-26 Eric Christopher <echristo@redhat.com>
983
984 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
985
986 2003-03-25 Stan Cox <scox@redhat.com>
987 Nick Clifton <nickc@redhat.com>
988
989 Contribute support for Intel's iWMMXt chip - an ARM variant:
990
991 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
992 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
993 (enum wreg_type, enum iwmmxt_insn_type): New types.
994 (wr_register, wc_register, wcg_register): New macros.
995 (iwmmxt_table): New variable.
996 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
997 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
998 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
999 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1000 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1001 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1002 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1003 cp_byte_address_offset, cp_byte_address_required_here,
1004 check_iwmmxt_insn): New functions.
1005 (asm_opcode_insns): Add iWMMXt instructions.
1006 (md_begin): Set the mach value for iWMMXt targets. Create a note
1007 section to identify iwmmxt binaries.
1008 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1009 * doc/c-arm.texi: Document the support for the iWMMXt.
1010 * NEWS: Mention new support.
1011
1012 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1013
1014 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1015 * doc/all.texi: Likewise.
1016 * doc/c-tic54x.texi: Likewise.
1017
1018 2003-03-21 Andreas Schwab <schwab@suse.de>
1019
1020 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1021 avoid aliasing issue.
1022
1023 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1024
1025 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1026 (current_arch_mask): Rename to current_mode_mask.
1027 (current_arch_requested): Remove variable.
1028 (current_cpu): New variable.
1029 (init_default_arch): Set defaults values for s390_arch_size,
1030 current_mode_mask and current_cpu.
1031 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1032 (md_begin): Replace current_arch_mask by current_cpu.
1033 (md_assemble): Adapt check and error message to current_mode_mask and
1034 current_cpu.
1035
1036 2003-03-09 James E Wilson <wilson@tuliptree.org>
1037
1038 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1039 * read.c (get_line_sb): Return end of line character or '\n' if
1040 it is zero or non-existent.
1041
1042 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1043
1044 * config/tc-mips.c (mips_validate_fix): New function.
1045 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1046 (mips_validate_fix): Declare.
1047
1048 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1049
1050 * Reverted 2003-03-02's patch.
1051
1052 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1053
1054 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1055 (TC_DWARF2_EMIT_OFFSET): Provide default.
1056 (out_debug_aranges, out_debug_info): Use it.
1057 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1058 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1059 (ia64_gen_real_reloc_type): ... here.
1060 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1061
1062 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1063
1064 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1065 (s_mips_ent): Likewise.
1066
1067 2003-03-04 Dmitry Diky <diwil@mail.ru>
1068
1069 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1070 and x1123 devices, add missed x437.
1071 (md_show_usage): Sort device list.
1072
1073 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1074
1075 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1076 (md_begin): Use preset_target_arch.
1077 (md_longopts): Make isa option unconditional.
1078 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1079 set preset_target_arch.
1080 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1081 by -S_GET_VALUE (fixP->fx_subsy).
1082 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1083 and the addend is 0.
1084 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1085 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1086
1087 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1088
1089 * config/tc-mips.c (append_insn): Add handling of
1090 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1091 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1092 misaligned address and reange overflow.
1093 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1094 earlier warnings about misaligned address and reange overflow.
1095 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1096 (md_apply_fix): Likewise. Fix warning output.
1097 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1098 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1099 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1100
1101 2003-02-21 Nick Clifton <nickc@redhat.com>
1102
1103 * NEWS: Mention availability of test generator program.
1104
1105 2003-02-21 Miles Bader <miles@gnu.org>
1106
1107 * config/tc-v850.c (system_registers): Add v850e debug registers.
1108 (system_register_name): Accept up to 27 (the last v850e sys register).
1109
1110 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1111
1112 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1113 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1114 Capitalize section headings consistently. Format index entries more
1115 consistently. Unconditionalize text about whether text and data
1116 sections are alterable. Use @ifnottex for alternatives to @tex output
1117 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1118 .size and .type directives. Be more polite about bad bug reports.
1119 Move FDL into a separate file.
1120 * doc/fdl.texi: New file.
1121
1122 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1123
1124 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1125 (macro): Check it to decide whether a new frag is needed.
1126 (my_getSmallExpression): Set it.
1127
1128 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1129
1130 * cgen.c: Fix typo: intial -> initial.
1131
1132 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1133
1134 * app.c (do_scrub_chars): Handle '||' in two states.
1135
1136 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1137
1138 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1139 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1140
1141 2003-02-11 Uwe Stieber <uwe@wwws.de>
1142
1143 * configure.in: Add support for kaOS as cross build target system.
1144 * configure: Regenerated.
1145
1146 2003-02-10 Nick Clifton <nickc@redhat.com>
1147
1148 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1149 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1150 bfd_mach_arm_ep9312 machine number.
1151
1152 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1153
1154 * config/tc-mips.c (reloc_needs_lo_p): New function.
1155 (fixup_has_matching_lo_p): New function.
1156 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1157 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1158 if that fixup already has a matching %lo(). Don't call frag_wane here.
1159 (macro): Call frag_wane here if the last unmatched hi was in the
1160 current frag.
1161 (pic_need_relax): New function, split out from...
1162 (md_estimate_size_before_relax): ...here.
1163 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1164 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1165
1166 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1167
1168 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1169
1170 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1171
1172 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1173 x@toc+off works.
1174
1175 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1176
1177 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1178 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1179 accept x@got+off etc.
1180 (md_assemble): Handle TLS relocs.
1181 (ppc_force_relocation): Force for all TLS relocs.
1182 (ppc_fix_adjustable): Likewise.
1183 (md_apply_fix3): Handle TLS relocs.
1184
1185 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1186
1187 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1188 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1189
1190 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1191
1192 * config/tc-mips.c (enum small_ex_type): Remove.
1193 (imm_unmatched_hi): Remove.
1194 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1195 argument from calls to append_insn.
1196 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1197 instead.
1198 (macro_build): Update append_insn calls.
1199 (mips16_macro_build, macro_build_lui): Likewise.
1200 (mips_ip): Rework handling of small expressions. Move explicit
1201 relocation handling into my_getSmallExpression. Assume that the
1202 value of 'o' operands is zero if there is only one bracketed
1203 expression left.
1204 (percent_op): Make constant. Record the BFD relocation code
1205 associated with each operator.
1206 (my_getSmallParser, my_getPercentOp): Remove.
1207 (parse_relocation): New function.
1208 (my_getSamllExpression): Rework. Fill in relocations here
1209 rather than in mips_ip.
1210
1211 2003-01-29 Nick Clifton <nickc@redhat.com>
1212
1213 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1214 assembler's handling of # <linenum> "<filename>" directives work.
1215
1216 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1217
1218 * dwarf2dbg.c: Include filenames.h.
1219 (struct file_entry): Make filename const char *.
1220 (dirs, dirs_in_use, dirs_allocated): New variables.
1221 (get_filenum): Add NUM argument. Build directory table.
1222 (dwarf2_where): Adjust caller.
1223 (dwarf2_directive_file): Use get_filenum to allocate
1224 slot in file and directory tables.
1225 (dwarf2_directive_loc): Recreate full filename from
1226 directory and filename part if needed for listing.
1227 (out_file_list): Output directory table.
1228 Output main source file dirname before its filename.
1229
1230 2003-01-28 Dmitry Diky <diwil@mail.ru>
1231
1232 * config/tc-msp430.c: Replace occurences of 'tolower' with
1233 'TOLOWER'.
1234
1235 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1236
1237 * config/tc-ia64.c (dot_vframesp): Correct error message.
1238 (dot_vframepsp): Ditto.
1239
1240 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1241
1242 * configure.in (em): Set to irix on all Irix systems.
1243 * configure: Rebuilt.
1244 * config/te-irix.h: New file.
1245 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1246 whether to use Irix-specific 64-bit format.
1247
1248 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1249
1250 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1251
1252 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1253
1254 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1255 (tc_gen_reloc): Handle TLS relocs.
1256 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1257 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1258 relocs.
1259 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1260 (obj_elf_type): Handle tls_object.
1261
1262 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1263
1264 * config/tc-s390.c (s390_tls_suffix): New function.
1265 (elf_suffix_type): Add suffix enums for TLS relocations.
1266 (s390_elf_suffix): Add suffix strings for TLS relocations.
1267 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1268 bfd relocations.
1269 (md_gather_operands): Map new instruction operand/elf suffix
1270 combinations for TLS to bfd relocations.
1271 (tc_s390_fix_adjustable): Add new TLS relocations.
1272 (tc_s390_force_relocation): Likewise.
1273 (md_apply_fix3): Likewise.
1274
1275 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1276
1277 * as.h: Update copyright date.
1278 * symbols.c: Likewise.
1279 * config/tc-d10v.h: Likewise.
1280 * config/tc-fr30.h: Likewise.
1281 * config/tc-i960.h: Likewise.
1282 * config/tc-mips.h: Likewise.
1283
1284 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1285 (MD_APPLY_SYM_VALUE): Move.
1286
1287 2003-01-23 Nick Clifton <nickc@redhat.com>
1288
1289 * NEWS: Announce sh2e support.
1290
1291 Add sh2e support:
1292 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1293 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1294 (sh_elf_final_processing): Handle arch_sh2e.
1295
1296 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1297
1298 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1299 * symbols.h (S_FORCE_RELOC): Likewise.
1300 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1301 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1302 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1303 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1304 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1305 * write.c (generic_force_reloc): New function.
1306 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1307 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1308 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1309 * as.h (generic_force_reloc): Declare.
1310 * doc/internals.texi (S_FORCE_RELOC): Update.
1311 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1312
1313 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1314 generic_force_reloc.
1315 (alpha_fix_adjustable): Likewise.
1316 * config/tc-arm.c (arm_force_relocation): Likewise.
1317 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1318 * config/tc-frv.c (frv_force_relocation): Likewise.
1319 * config/tc-i386.c (md_apply_fix3): Likewise.
1320 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1321 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1322 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1323 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1324 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1325 * config/tc-mips.c (mips_force_relocation): Likewise.
1326 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1327 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1328 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1329 * config/tc-sh.c (sh_force_relocation): Likewise.
1330 (md_pcrel_from_section): Likewise.
1331 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1332 * config/tc-v850.c (v850_force_relocation): Likewise.
1333 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1334 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1335 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1336 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1337
1338 * config/tc-d10v.c (d10v_force_relocation): Delete.
1339 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1340 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1341 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1342 * config/tc-fr30.c (fr30_force_relocation): Delete.
1343 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1344 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1345 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1346 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1347 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1348 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1349 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1350 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1351 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1352 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1353 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1354 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1355 * config/tc-i386.c (i386_force_relocation): Delete.
1356 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1357 BFD_ASSEMBLER.
1358 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1359 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1360 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1361 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1362 S_FORCE_RELOC.
1363 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1364 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1365
1366 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1367
1368 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1369 sh64_elf_section_data.
1370 * config/tc-sh64.h: Include elf32-sh64.h.
1371 * config/tc-m68hc11.c: Don't include stdio.h.
1372 (md_show_usage): Fix missing continuation.
1373 * Makefile.am: Run "make dep-am".
1374 * Makefile.in: Regenerate.
1375
1376 2003-01-22 Nick Clifton <nickc@redhat.com>
1377
1378 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1379
1380 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1381
1382 * configure.in: Handle *-*-aros*.
1383 * configure: Regenerated from configure.in.
1384
1385 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1386
1387 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1388 gotplt and pltoff relocations.
1389 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1390 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1391 gotplt and pltoff to bfd relocations.
1392 (md_gather_operands): Map new instruction operand/elf suffix
1393 combinations to bfd relocations.
1394 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1395 to the list of unadjustable relocations.
1396 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1397 and pltoff relocations.
1398 (md_apply_fix3): Add the new relocations.
1399
1400 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1401
1402 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1403 with a subsy symbol.
1404
1405 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1406
1407 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1408 of relocs for memory bank addressing.
1409
1410 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1411
1412 * config/tc-m68hc11.c (md_show_usage): Update usage.
1413 (md_parse_option): Recognize -m68hcs12.
1414 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1415 HCS12.
1416 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1417
1418 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1419
1420 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1421
1422 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1423
1424 * Makefile.am: Run "make dep-am".
1425 * Makefile.in: Regenerate.
1426 * po/POTFILES.in: Regenerate.
1427
1428 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1429
1430 * read.c (get_absolute_expr): New, split out from..
1431 (get_absolute_expression): ..here.
1432 * read.h (get_absolute_expr): Declare.
1433 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1434 Trim size to arch bits_per_address, and test for negative input
1435 via get_absolute_expr.
1436
1437 2003-01-07 DJ Delorie <dj@redhat.com>
1438
1439 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1440 on operand type.
1441 (xstormy16_md_apply_fix3): Use adjustment.
1442
1443 2003-01-02 Ben Elliston <bje@redhat.com>
1444
1445 * configure.in: Add iq2000-elf target.
1446 * configure: Regenerate.
1447 * config/tc-iq2000.c: New file.
1448 * config/tc-iq2000.h: Likewise.
1449 * po/gas.pot: Regenerate.
1450
1451 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1452
1453 * config/tc-mips.c: Update copyright years to include 2003.
1454 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1455 Additionally, clean up their code slightly and clean up their
1456 comments some more.
1457
1458 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1459
1460 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1461
1462 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1463 $(CPU_DOCS)".
1464 * doc/Makefile.in: Regenerate.
1465
1466 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1467
1468 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1469 of .init and .fini sections for array initializers and finalizers.
1470
1471 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1472
1473 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1474 the "+D" operand, which will be used only by the disassembler.
1475
1476 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1477
1478 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1479 CPU variants.
1480 * configure: Regenerate.
1481 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1482 (macro_build): Handle "K" operand.
1483 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1484 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1485 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1486 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1487 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1488 (validate_mips_insn): Implement "+" as a way to extend the
1489 allowed operands, and implement "K", "+A", "+B", and "+C"
1490 operands.
1491 (OPTION_MIPS32R2): New define.
1492 (md_longopts): Add entry for OPTION_MIPS32R2.
1493 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1494 (md_parse_option): Handle OPTION_MIPS32R2.
1495 (s_mipsset): Reimplement handling of ".set mipsN" options
1496 and add support for ".set mips32r2".
1497 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1498 (md_show_usage): Document "-mips32r2" option.
1499 * doc/as.texinfo: Document "-mips32r2" option.
1500 * doc/c-mips.texi: Likewise.
1501
1502 2002-12-30 Dmitry Diky <diwil@mail.ru>
1503
1504 * configure.in: Add msp430 target.
1505 * configure: Regenerate.
1506 * Makefile.am: Add msp430 target.
1507 * Makefile.in: Regenerate.
1508 * config/tc-msp430.c: New file: msp430 assembler.
1509 * config/tc-msp430.h: New file: target macros for msp430.
1510 * doc/Makefile.am: Add msp430 target.
1511 * doc/Makefile.in: Regenerate.
1512 * doc/as.texinfo: Include msp430 documenation.
1513 * doc/all.texi: Enable msp430 documentation.
1514 * doc/c-msp430.texi: New file: document msp430 specific features
1515 of the assembler.
1516
1517 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1518
1519 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1520 (dwarf2_finish): Use it.
1521 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1522 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1523
1524 2002-12-20 DJ Delorie <dj@redhat.com>
1525
1526 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1527 BFD_RELOC_XSTORMY16_12.
1528
1529 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1530
1531 * doc/as.texinfo (Invoking): Typo fix.
1532 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1533
1534 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1535
1536 * doc/c-alpha.texi: Fix typos.
1537 * doc/c-arm.texi: Likewise.
1538 * doc/c-d10v.texi: Likewise.
1539 * doc/c-i370.texi: Likewise.
1540 * doc/c-i960.texi: Likewise.
1541 * doc/c-ia64.texi: Likewise.
1542 * doc/c-mmix.texi: Likewise.
1543 * doc/c-ns32k.texi: Likewise.
1544 * doc/c-pdp11.texi: Likewise.
1545 * doc/c-pj.texi: Likewise.
1546 * doc/c-sh64.texi: Likewise.
1547 * doc/c-sparc.texi: Likewise.
1548 * doc/c-tic54x.texi: Likewise.
1549 * doc/c-v850.texi: Likewise.
1550 * doc/c-vax.texi: Likewise.
1551 * doc/internals.texi: Likewise.
1552
1553 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1554
1555 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1556 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1557 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1558 arrange not to issue warnings about use of AT when AT is not
1559 actually used.
1560
1561 2002-12-17 Nick Clifton <nickc@redhat.com>
1562
1563 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1564 prevent it being confused with -k.
1565
1566 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1567
1568 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1569 has already been set up, use it.
1570
1571 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1572
1573 * ChangeLog-9295: Fix a typo.
1574 * README: Likewise.
1575 * config/tc-d10v.c: Fix a comment typo.
1576 * config/tc-dlx.c: Likewise.
1577 * config/tc-h8300.h: Likewise.
1578 * config/tc-h8500.h: Likewise.
1579 * config/tc-mips.c: Likewise.
1580 * config/tc-s390.c: Likewise.
1581 * config/tc-sh.h: Likewise.
1582 * config/tc-tic80.h: Likewise.
1583 * config/tc-w65.h: Likewise.
1584 * config/tc-z8k.c: Likewise.
1585 * config/tc-z8k.h: Likewise.
1586 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1587
1588 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1589
1590 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1591 Simplify sign extension. Remove redundant unsigned < 0 test.
1592 * config/tc-i960.c (md_ri_to_chars): Prototype.
1593 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1594 (dump_literals): Init brarsym, and test later instead of isforce.
1595
1596 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1597 (parse): Constify line and lineptr.
1598 (md_begin): Calculate endop here.
1599
1600 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1601
1602 * config/obj-vms.c: Formatting. Include fnctl.h.
1603 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1604 (Object_Record_Offset): Make it a size_t.
1605 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1606 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1607 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1608 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1609 (vms_fixup_data_section <data_size>): Add here instead.
1610 * config/e-criself.c: Fix typo in last change.
1611
1612 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1613
1614 * write.c (write_object_file): Fix signed/unsigned warning.
1615 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1616 * config/e-criself.c (criself_bfd_name): Prototype.
1617 * config/obj-aout.c (s_sect): Remove unused function.
1618 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1619 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1620 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1621 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1622 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1623 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1624 (vms_fixup_text_section <text_siz>): Likewise.
1625 (synthesize_data_segment <data_size>): Likewise.
1626 (vms_fixup_xtors_section <sect_no>): Likewise.
1627 (structure_count): Don't use implicit int type.
1628 * config/tc-a29k.c (insert_sreg): Prototype.
1629 (define_some_regs): Prototype, make static.
1630 (parse_operand): Likewise.
1631 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1632 (md_show_usage <stream>): Likewise.
1633 (md_section_align <segment>): Likewise.
1634 (md_convert_frag <all args>): Likewise.
1635 (md_estimate_size_before_relax <all args>): Likewise.
1636 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1637 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1638 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1639 (md_undefined_symbol <name>): Likewise.
1640 (md_convert_frag <all args>): Likewise.
1641 (write_long <opcode>): Likewise.
1642 (tc_gen_reloc <seg>): Likewise.
1643 (md_estimate_size_before_relax <all args>): Likewise.
1644 (md_apply_fix3 <seg>): Likewise.
1645 (s_d30v_align <ignore>): Likewise.
1646 (build_insn): Correct format string.
1647 (md_apply_fix3): Likewise.
1648 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1649 (md_undefined_symbol <name>): Likewise.
1650 (md_convert_frag <all args>): Likewise.
1651 (md_cgen_lookup_reloc <insn>): Likewise.
1652 (md_begin): Delete unused vars.
1653 (md_assemble): Likewise.
1654 (md_estimate_size_before_relax): Likewise.
1655 (fr30_relax_frag): #if 0 out, seems unused.
1656 (md_atof): Remove declaration of atof_ieee.
1657 (restore_colon): Prototype.
1658 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1659 (frv_find_in_vliw): Likewise.
1660 (frv_debug_tomcat): Likewise.
1661 (frv_adjust_vliw_count): Likewise.
1662 (frv_tomcat_shuffle): Likewise.
1663 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1664 frv_find_in_vliw call.
1665 (md_atof): Remove declaration of atof_ieee.
1666 * config/tc-h8500.c (cons): Delete declaration.
1667 (md_begin <opcode>): Constify.
1668 (displacement_size, immediate_size, absolute_size): Remove.
1669 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1670 (tc_crawl_symbol_chain <headers>): Likewise.
1671 (md_undefined_symbol <name>): Likewise.
1672 (tc_headers_hook <headers>): Likewise.
1673 (md_parse_option <c,arg>): Likewise.
1674 (md_show_usage <stream>): Likewise.
1675 (md_convert_frag <headers, seg>): Likewise.
1676 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1677 (md_atof): Remove declaration of atof_ieee.
1678 (tc_aout_fix_to_chars): Remove unused function.
1679 (parse_reg): Prototype.
1680 (parse_exp): Prototype.
1681 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1682 (parse_reglist): Prototype.
1683 (get_operand): Prototype.
1684 (get_operands): Prototype.
1685 (get_specific): Prototype. Make "this_index" signed.
1686 (check): Prototype, make static.
1687 (insert): Prototype
1688 (build_relaxable_instruction): Prototype, make static.
1689 (build_bytes): Prototype.
1690 (wordify_scb): Prototype.
1691 * config/tc-h8500.h (start_label): Declare.
1692 (tc_coff_sizemachdep): Declare.
1693 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1694 (i370_rmode <unused>): Likewise.
1695 (i370_csect <unused>): Likewise.
1696 (i370_dc <unused>): Likewise.
1697 (i370_ds <unused>): Likewise.
1698 (i370_elf_lcomm <unused>): Likewise.
1699 (i370_ltorg <ignore>): Likewise.
1700 (i370_using <ignore>): Likewise.
1701 (i370_drop <ignore>): Likewise.
1702 (i370_byte <ignore>): Likewise.
1703 (i370_tc <ignore>): Likewise.
1704 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1705 (md_convert_frag <all args>): Likewise.
1706 (md_undefined_symbol <name>): Likewise.
1707 (md_pcrel_from_section <sec>): Likewise.
1708 (tc_gen_reloc <seg>): Likewise.
1709 (i370_section_letter): #if 0 unused functions.
1710 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1711 (symbol_locate): Prototype.
1712 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1713 (md_number_to_disp, md_number_to_field): Remove.
1714 (md_apply_fix3): Correct format string and cast "fup".
1715 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1716 (s_endian <ignore>): Likewise.
1717 (md_undefined_symbol <name>): Likewise.
1718 (tc_crawl_symbol_chain <headers>): Likewise.
1719 (tc_set_bal_of_call): Likewise.
1720 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1721 (i960_handle_align <fragp>): Likewise.
1722 (i960_validate_fix <this_segment_type>): Likewise
1723 (tc_gen_reloc <section>): Likewise.
1724 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1725 (struct memS, struct regop): Forward declare.
1726 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1727 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1728 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1729 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1730 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1731 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1732 (md_number_to_field): Likewise.
1733 (md_number_to_disp): Remove unused function.
1734 (md_atof): Remove declaration of atof_ieee.
1735 (md_apply_fix3): Correct md_number_to_imm call.
1736 * config/tc-ip2k.c (md_assemble): Warning fix.
1737 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1738 (fill_insn <ignore>): Likewise.
1739 (debug_sym <ignore>): Likewise.
1740 (md_undefined_symbol <name>): Likewise.
1741 (m32r_scomm <ignore>): Likewise.
1742 (md_convert_frag <abfd>): Likewise.
1743 (md_cgen_lookup_reloc <insn>): Likewise.
1744 (m32r_record_hi16 <seg>): Likewise.
1745 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1746 (allow_m32rx): Prototype.
1747 (first_writes_to_seconds_operands): Prototype.
1748 (writes_to_pc): Prototype.
1749 (can_make_parallel): Prototype.
1750 (make_parallel): Prototype.
1751 (target_make_parallel): Prototype.
1752 (assemble_two_insns): Prototype.
1753 (m32r_record_hi16): Prototype.
1754 (md_atof): Remove declaration of atof_ieee.
1755 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1756 (m32r_force_relocation): Prototype.
1757 (m32r_elf_section_change_hook): Prototype.
1758 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1759 (md_show_usage): Fix signed/unsigned warning.
1760 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1761 (calcop): Ditto for reg_prefix var.
1762 (hexval): Add cast to fix signed/unsigned warning.
1763 (md_number_to_disp): Delete unused function.
1764 (md_number_to_field): Likewise.
1765 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1766 (match_name): Prototype.
1767 (get_bf2): Prototype.
1768 (get_bf_offset_expression): Prototype.
1769 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1770 (md_undefined_symbol <ignore>): Likewise.
1771 (md_create_short_jump <all args>): Likewise.
1772 (md_create_long_jump <all args>): Likewise.
1773 (md_convert_frag <abfd, sec>): Likewise.
1774 (md_apply_fix3 <segment>): Likewise.
1775 (md_section_align <segment>): Likewise.
1776 (md_pcrel_from_section <sec>): Likewise.
1777 (tc_gen_reloc <section>): Likewise.
1778 (reg_m, reg_n, immediate): Delete unused vars.
1779 (dump_literals): Fix signed/unsigned warning.
1780 (enter_literal): Likewise.
1781 (parse_imm): Likewise. Also fix format string.
1782 (parse_mem): Remove unused var.
1783 (md_assemble <LS>): Abort on unexpected inst.
1784 (md_atof): Remove declaration of atof_ieee.
1785 (md_parse_option): Remove unused vars.
1786 (md_apply_fix3): Fix format strings, cast args.
1787 (tc_gen_reloc): Delete unused var.
1788 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1789 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1790 (md_undefined_symbol <name>): Likewise.
1791 (md_convert_frag <abfd>): Likewise.
1792 (tc_gen_reloc <seg>): Likewise.
1793 (check_operand <insn>): Likewise.
1794 (md_convert_frag): Fix format strings.
1795 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1796 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1797 (md_atof): Remove declaration of atof_ieee.
1798 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1799 (md_apply_fix3): Fix bogus >>='s.
1800 (md_undefined_symbol): Delete unused var.
1801 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1802 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1803 (fake_opcode): Adjust for pj_opc_int_t change.
1804 (md_begin): Likewise.
1805 (md_assemble): Likewise.
1806 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1807 instead of non-existent third arg of parse_exp_save_ilp.
1808 (md_parse_option): Correct "little" and "big" calls.
1809 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1810 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1811 (tc_gen_reloc <section>): Likewise.
1812 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1813 (debug): Rewrite using VA_* macros.
1814 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1815 (md_convert_frag): Likewise.
1816 (md_parse_option): Likewise.
1817 (md_show_usage): Likewise.
1818 (md_undefined_symbol): Likewise.
1819 (tc_gen_reloc): Likewise.
1820 (md_operand): Likewise.
1821 (tc_aout_pre_write_hook): Delete.
1822 (struct tic30_insn): Make "operands" unsigned.
1823 (struct tic30_par_insn): Likewise.
1824 (md_assemble): Likewise for "count", "i" and "numops".
1825 (tic30_parallel_insn): Likewise for vars here.
1826 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1827 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1828 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1829 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1830 (md_undefined_symbol): Likewise.
1831 (md_parse_option): Likewise.
1832 (md_convert_frag): Likewise.
1833 (tc_coff_symbol_emit_hook): Likewise.
1834 (md_atof): Remove declaration of atof_ieee.
1835 (const_overflow): Warning fixes, tidy.
1836 (get_operands): Delete unused vars.
1837 (internal_error_a): Adjust format string to expect a long for arg.
1838 (find_opcode): Warning fixes, simplify.
1839 (build_insn): Cast internal_error_a arg.
1840 (md_begin): Likewise.
1841 (md_apply_fix3): Likewise.
1842 (md_assemble): Delete unused var.
1843 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1844 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1845 (whatreg, parse_reg, parse_exp): Make static, prototype.
1846 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1847 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1848 (get_operand, get_operands, get_specific, newfix): Likewise.
1849 (apply_fix, build_bytes): Likewise.
1850 (md_atof): Remove declaration of atof_ieee.
1851 (tc_aout_fix_to_chars): Delete.
1852 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1853 Fix s_unseg call.
1854 (md_parse_option): Fix s_segm and s_unseg calls.
1855
1856 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1857
1858 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1859 Adjust callers.
1860 (RELAX_BRANCH_RELOC_S2): Delete.
1861 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1862 Do not handle BFD_RELOC_16_PCREL.
1863 (macro_build, mips_ip): Likewise.
1864 (md_pcrel_from): Return 4 for undefined symbols regardless of
1865 mips_pic.
1866 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1867 Don't dereference howto if no such relocation is available.
1868 Do not apply hack for in-place zero addend in NEWABI.
1869 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1870
1871 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1872 Alan Modra <amodra@bigpond.net.au>
1873
1874 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1875 (TC_LINKRELAX_FIXUP): Add comments.
1876
1877 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1878
1879 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1880 avoid warnings.
1881 (r_register_name, xr_register_name): Add prototype declarations.
1882
1883 2002-12-08 H.J. Lu <hjl@gnu.org>
1884
1885 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1886 copied from tc-i386.c.
1887
1888 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1889
1890 Fix Bug savannah/1825:
1891 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1892 (md_relax_table): Define specific relax for PC-rel offsets.
1893 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1894 (m68hc11_relax_frag): Handle the new relax code.
1895 (md_convert_frag): Likewise.
1896 (md_estimate_size_before_relax): Likewise.
1897
1898 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1899
1900 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1901
1902 2002-12-05 Richard Henderson <rth@redhat.com>
1903
1904 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1905 (ia64_gen_real_reloc_type): Handle it.
1906 (pseudo_func): Add @ltoffx.
1907 (md_begin): Build .<ltoffx>.
1908 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1909
1910 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1911
1912 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1913 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1914 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1915 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1916 COFF to call arm_force_relocation.
1917
1918 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1919
1920 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1921 instruction.
1922 (emit_one_bundle): Handle "hint" instruction.
1923 (operand_match): Match IA64_OPND_AR_CSD.
1924
1925 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1926
1927 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1928 inside #if.
1929
1930 2002-12-03 Nick Clifton <nickc@redhat.com>
1931
1932 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1933 .PPC.EMB.apuinfo sections.
1934
1935 2002-12-03 Richard Henderson <rth@redhat.com>
1936
1937 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1938
1939 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1940
1941 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1942 (cons, s_align_bytes): Delete declaration.
1943 (relax): Delete.
1944 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1945 strings common.
1946 (dot): Delete unused function.
1947 (w65_expression): Remove unused arg.
1948 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1949 call.
1950 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1951 parse_exp call.
1952 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1953 value.
1954 (check): Remove unused function.
1955 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1956 on unhandled switch case.
1957 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1958 "opcode".
1959 (tc_crawl_symbol_chain): Delete unused function.
1960 (tc_headers_hook): Likewise.
1961 (tc_Nout_fix_to_chars): Likewise.
1962 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1963 (md_parse_option): Likewise.
1964 (md_convert_frag): Likewise.
1965 (tc_coff_symbol_emit_hook): Likewise.
1966 (md_show_usage): Likewise.
1967 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1968 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1969 (w65_expression): Declare.
1970
1971 * po/POTFILES.in: Regenerate.
1972
1973 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1974 and ARM_ADRL_IMMEDIATE.
1975
1976 2002-12-02 Nick Clifton <nickc@redhat.com>
1977
1978 * gasp.c: Delete. It has been deprecated.
1979 * NEWS: Mention that gasp has been removed.
1980 * Makefile.am: Remove references to gasp.
1981 * makefile.vms: Likewise.
1982 * mpw-make.sed: Likewise.
1983 * Makeile.in: Regenerate.
1984 * doc/gasp.texi: Delete.
1985 * doc/Makefile.am: Remove references to gasp.texi.
1986 * doc/Makefile.in: Regenerate.
1987 * macro.c: Delete references to gasp.
1988 Remove use of comment_char function parameter as it is no longer
1989 needed.
1990 * macro.h: Update prototypes to remove comment_char parameter.
1991 Fix formatting.
1992 * read.c (read_a_source_file, s_irp): Remove comment_char
1993 parameter from invocation of functions in macro.c
1994
1995 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1996
1997 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1998
1999 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2000
2001 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2002 (tc_gen_reloc): Mark section param as not used.
2003
2004 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2005
2006 Fix Bug savannah/1825:
2007 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2008 that are not pc-relative.
2009 (m68hc11_relax_frag): Declare.
2010
2011 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2012 the offsetable indexed addressing modes (n,r).
2013 (build_insn): Cleanup some locals.
2014 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2015 relaxation of difference between two symbols of same section.
2016 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2017 only when this is a PC-relative operand and the offset is not absolute.
2018 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2019 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2020 be handled by m68hc11_relax_frag.
2021
2022 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2023
2024 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2025 (32-bit int, 64-bit double).
2026 (md_longopts): New options -mshort, -mlong, -mshort-double and
2027 -mlong-double to control the ABI.
2028 (md_show_usage): Update.
2029 (md_parse_option): Handle new options.
2030 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2031
2032 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2033
2034 * symbols.c (report_op_error): New function, broken out of ...
2035 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2036 operators.
2037
2038 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2039
2040 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2041 for BFD_RELOC_32_PLT_PCREL.
2042
2043 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2044
2045 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2046 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2047 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2048 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2049 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2050 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2051 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2052 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2053 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2054 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2055 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2056 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2057 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2058 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2059 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2060 TRUE/FALSE. Formatting.
2061
2062 2002-11-29 Nick Clifton <nickc@redhat.com>
2063
2064 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2065 assume a value of zero.
2066 (do_bkpt): Likewise.
2067
2068 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2069
2070 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2071 for TLS relocations.
2072
2073 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2074
2075 * config/tc-ia64.c (md_apply_fix3): Add default case.
2076
2077 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2078
2079 * symbols.c (S_SET_THREAD_LOCAL): New function.
2080 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2081 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2082 for TLS relocations.
2083 * config/tc-ia64.c (md_apply_fix3): Likewise.
2084 * config/tc-alpha.c (md_apply_fix3): Likewise.
2085
2086 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2087
2088 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2089 to entsize.
2090
2091 2002-11-26 DJ Delorie <dj@redhat.com.
2092
2093 * dwarf2dbg.c (scale_addr_delta): New.
2094 (size_inc_line_addr): Use it.
2095 (emit_inc_line_addr): Use it.
2096
2097 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2098
2099 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2100 (md_assemble): Don't pass on branches to constants as relaxable.
2101 Tweak comment.
2102
2103 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2104
2105 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2106
2107 2002-11-21 Randolph Chung <randolph@tausq.org>
2108
2109 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2110 only if they have default visibility.
2111
2112 2002-11-21 Richard Henderson <rth@redhat.com>
2113
2114 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2115 S_IS_DEFINED test.
2116
2117 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2118
2119 * config/tc-mcore.c (mcore_pool_count): New function.
2120 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2121
2122 2002-11-20 Klee Dienes <kdienes@apple.com>
2123
2124 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2125 coalesce the name fields to use the same pointer.
2126
2127 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2128 the name fields to use the same pointer.
2129 (get_specific): Check for opcodes with the same name using strcmp
2130 as well as comparing the pointer.
2131
2132 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2133
2134 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2135 fx_subsy non-NULL.
2136
2137 2002-11-19 Richard Henderson <rth@redhat.com>
2138
2139 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2140 visibility portion of st_other.
2141
2142 2002-11-19 Klee Dienes <kdienes@apple.com>
2143
2144 * config/tc-h8300.c (struct h8_instruction): New type, used to
2145 wrap h8_opcodes with length, noperands, idx, and size fields
2146 (computed at run-time).
2147 (h8_instructions): New variable.
2148 (md_begin): Allocate the storage for h8_instructions. Fill
2149 h8_instructions with pointers to the appropriate opcode and the
2150 correct value for the additional fields.
2151 (clever_message): Update to use h8_instructions instead of
2152 h8_opcodes.
2153 (build_bytes): Ditto.
2154 (get_specific): Ditto.
2155 (md_assemble): Ditto.
2156
2157 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2158
2159 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2160 adjustments to symbols in merge sections.
2161
2162 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2163
2164 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2165
2166 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2167
2168 * dwarf2dbg.h (dwarf2_format): New enum.
2169 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2170 (out_debug_line, out_debug_info): Add code for handling 64-bit
2171 DWARF 2 formats.
2172 * config/tc-mips.h (mips_dwarf2_format): Declare.
2173 * config/tc-mips.c (mips_dwarf2_format): New function.
2174 * doc/internals.texi (DWARF2_FORMAT): Document.
2175
2176 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2177
2178 * config/tc-mips.c (s_change_section): Make sure input buffer
2179 is not accessed past the end. Don't hand
2180 obj_elf_change_section a pointer into the input buffer.
2181
2182 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2183
2184 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2185 GOT_LO16 on NEWABI.
2186
2187 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2188
2189 * config/tc-tic4x.c: Fixed proper commandline
2190 parameters. Added support for new opcode-list format. General
2191 error message fixups.
2192 (c4x_inst_add): Reject insn not for our CPU
2193 (md_begin): Added matrix for setting the proper opcode-level &
2194 device-flags according to cpu type and revision. Rewrite the
2195 opcode hasher.
2196 (c4x_operand_parse): Fix opcode bug
2197 (c4x_operands_match): New function argument. Added dry-run
2198 mechanism, that is optional error generation. Added constraint 'i'
2199 and 'j'.
2200 (c4x_insn_check): Added new function for post-verification of the
2201 generated insn.
2202 (md_assemble): Check all opcodes before croaking because of an
2203 argument mismatch. Need this to be able to fully support
2204 ortogonally arguments.
2205 (md_parse_options): Revised commandprompt swicthes and added new
2206 ones.
2207 (md_show_usage): Complete rewrite of printout.
2208
2209 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2210
2211 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2212 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2213 warning when using constant direct bigger than 2^16. Add the new
2214 arguments.
2215
2216 2002-11-11 Christopher Faylor <cgf@redhat.com>
2217
2218 * configure.in: Use .gdbinit under Cygwin.
2219 * configure: Regenerate.
2220
2221 2002-11-11 Christopher Faylor <cgf@redhat.com>
2222
2223 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2224 STRICT_PE_FORMAT.
2225
2226 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2227
2228 * config/tc-tic4x.c: Declare as many functions as possible as
2229 static. Maintenance on the general indenting. Removed unnecessary
2230 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2231 function. Add support for new DSP, TMS320VC33. Fix bug for
2232 converting flonum constants.
2233 (c4x_do_align): Add proper align handling. Setup align to insert
2234 NOP's.
2235 (c4x_gen_to_words): Support for extended TI type floats.
2236 (md_atof): Proper dumping of multiple-word littlenums.
2237 (c4x_atof): Added support for extended TI type floats.
2238 (c4x_stringer): Added new function to handle compact strings.
2239 (c4x_emit_char): Added new function argument to handle custom
2240 length inserts, like single-byte strings.
2241 * config/tc-tic4x.h: Add proper align handling with NOP's.
2242 * Makefile.am: Added tic4x dependecy
2243 * Makefile.in: Regenerate
2244
2245 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2246
2247 * macro.c (get_any_string): Correct logic for not going beyond end
2248 of in->ptr[].
2249
2250 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2251
2252 * config/tc-mmix.c (get_putget_operands): Mark both possible
2253 operands as invalid at beginning.
2254
2255 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2256 Initialize target of fixup to zero.
2257
2258 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2259
2260 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2261 NEWABI, but we should still emit HI16_S for non-PIC n32.
2262
2263 2002-11-06 Richard Henderson <rth@redhat.com>
2264
2265 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2266 (alpha_fix_adjustable): ... here.
2267 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2268
2269 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2270
2271 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2272 of a label.
2273
2274 2002-11-05 H.J. Lu <hjl@gnu.org>
2275
2276 * config/tc-mips.c (support_64bit_objects): Check *l before it
2277 is freed.
2278
2279 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2280
2281 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2282 SEC_LOAD flags for sections marked as 's'.
2283
2284 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2285
2286 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2287 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2288 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2289 default.
2290
2291 * dep-in.sed: Fix typo.
2292
2293 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2294
2295 * configure.in: Update ARM CPU patterns.
2296 * configure: Regenerated.
2297
2298 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2299
2300 * itbl-lex.l: Use #include <> for generated headers.
2301 * itbl-ops.c: Likewise.
2302
2303 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2304
2305 * doc/gasp.texi: Fix typo in deprecation note.
2306
2307 2002-10-23 Nick Clifton <nickc@redhat.com>
2308
2309 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2310 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2311
2312 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2313
2314 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2315 (tc_frob_file_before_adjust): Don't define.
2316 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2317 function.
2318 (mmix_frob_file_before_adjust): Remove ineffective function.
2319
2320 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2321
2322 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2323 (cris_relax_frag): New function.
2324 (md_estimate_size_before_relax) <case ENCODE_RELAX
2325 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2326 expressions that will become absolute expressions to relaxation.
2327 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2328 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2329 value, not distance to symbol.
2330 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2331 Ditto. Correct placement of fixup.
2332 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2333 (gen_bdap): Ditto.
2334 * config/tc-cris.h (cris_relax_frag): Declare.
2335 (md_relax_frag): Define.
2336
2337 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2338
2339 * config/obj-elf.c (special_sections): Use correct types for init
2340 array sections.
2341 (obj_elf_change_section): Don't mess with init array section type.
2342
2343 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2344
2345 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2346 for relocs against symbols in a merged section.
2347
2348 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2349
2350 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2351 table as register names.
2352
2353 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2354
2355 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2356 for option -m31.
2357
2358 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2359
2360 * expr.c (operand): Add support for n.nn flonums.
2361
2362 2002-10-17 Johannes Stezenbach <js@convergence.de>
2363
2364 * itbl-parse.y (entry): Provide empty action.
2365
2366 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2367
2368 * configure.in (BFDVER_H): Set and subst.
2369 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2370 * Makefile.am: Run "make dep-am".
2371 (BFDVER_H): Define.
2372 * configure: Regenerate.
2373 * Makefile.in: Regenerate.
2374 * doc/Makefile.in: Regenerate.
2375
2376 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2377
2378 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2379 (MD_APPLY_SYM_VALUE): Define for PE too.
2380
2381 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2382
2383 * Makefile.am: Run "make dep-am".
2384 (CPU_OBJ_VALID): sh64 coff is invalid.
2385 * as.c: #include "bfdver.h".
2386 * Makefile.in: Regenerate.
2387 * config.in: Regenerate.
2388
2389 2002-10-14 Momchil Velikov <velco@fadata.bg>
2390
2391 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2392
2393 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2394
2395 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2396 * configure: Regenerate.
2397
2398 2002-10-13 Eric Christopher <echristo@redhat.com>
2399 Alexandre Oliva <aoliva@redhat.com>
2400
2401 * config/tc-mips.c (s_gpdword): New function.
2402 (mips_pseudo_table): Add .gpdword.
2403 (mips_need_elf_addend_fixup): never for NEWABI.
2404 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2405 GPREL32 as done.
2406 (s_cpadd): Generate .cpadd on NEWABI.
2407
2408 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2409
2410 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2411
2412 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2413
2414 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2415 (md_relax_frag): Adjust macro.
2416 * config/tc-mips.c (mips_relax_branch): New variable.
2417 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2418 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2419 (RELAX_MIPS16_P): Adjust.
2420 (append_insn): Emit branch to non-constant in a frag_var if
2421 branch-relaxation is desirable and possible.
2422 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2423 (OPTION_ELF_BASE): Adjust.
2424 (md_parse_option): Handle new options.
2425 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2426 branch relaxation.
2427 (relaxed_branch_length): New function.
2428 (md_estimate_size_before_relax): Handle branch frags.
2429 (mips_relax_frag): Likewise.
2430 (md_convert_frag): Handle branch frags. Warn if branch is
2431 relaxed.
2432
2433 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2434
2435 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2436 emitted.
2437 (md_apply_fix3): Add TLS relocs.
2438 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2439 @DTPOFF.
2440
2441 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2442 Alan Modra <amodra@bigpond.net.au>
2443
2444 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2445 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2446
2447 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2448
2449 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2450 inside loop.
2451
2452 2002-10-09 Richard Shann <richard.shann@superh.com>
2453 Stephen Clarke <stephen.clarke@superh.com>
2454
2455 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2456 Linux environment.
2457
2458 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2459
2460 * contig/tc-sh.c (sh_local_pcrel): New.
2461 (sh_force_relocation): Use sh_local_pcrel.
2462 (md_pcrel_from_section): Check the relocation type whether it
2463 should be resolved locally. Use S_FORCE_RELOC.
2464
2465 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2466
2467 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2468 (TC_FORCE_RELOCATION): Tidy arg.
2469
2470 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2471 Ken Raeburn <raeburn@cygnus.com>
2472 Aldy Hernandez <aldyh@redhat.com>
2473 DJ Delorie <dj@redhat.com>
2474 Michael Meissner <meissner@redhat.com>
2475 Eric Christopher <echristo@redhat.com>
2476 Richard Sandiford <rsandifo@redhat.com>
2477
2478 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2479 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2480 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2481 (hilo_interlocks): True for CPU_VR5500.
2482 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2483 (mips_fix_vr4122_bugs): New.
2484 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2485 (mips_emit_delays): Likewise.
2486 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2487 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2488 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2489 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2490 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2491 (OPTION_ELF_BASE): Bump.
2492 (md_parse_option): Handle the new options.
2493 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2494 vr5400 and vr5500.
2495
2496 2002-09-29 H.J. Lu <hjl@gnu.org>
2497
2498 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2499 twice if howto->pcrel_offset is true.
2500
2501 2002-09-28 Matt Thomas <matt@3am-software.com>
2502 Jason Thorpe <thorpej@wasabisystems.com>
2503
2504 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2505 convert undefined references to GOT32/PLT32 if PIC code is
2506 requested. Fix comment.
2507
2508 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2509
2510 * config/tc-sh.c (sh_force_relocation): Return 0 for
2511 some PC relative relocations when not relaxing.
2512
2513 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2514
2515 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2516 Define them if not BFD_ASSEMBLER.
2517 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2518 @tlsld.
2519 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2520 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2521 (tc_gen_reloc): Handle x86-64 TLS relocs.
2522
2523 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2524
2525 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2526 fixups to current or absolute section.
2527
2528 2002-09-26 Jim Wilson <wilson@redhat.com>
2529
2530 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2531 and frag_more.
2532
2533 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2534
2535 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2536 capable configuration.
2537 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2538 generation.
2539 (mips_ip): Likewise.
2540
2541 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2542
2543 * config/tc-mips.c (append_insn): Fix jump overflow check.
2544
2545 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2546
2547 * config/tc-i386.c (process_operands): Warn about "lea" segment
2548 overrides.
2549
2550 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2551
2552 * write.c: Delete set_segment_vma and prototype. Update all callers.
2553
2554 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2555
2556 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2557 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2558 Rename "fseg" to "sym_seg".
2559 * Makefile.am: Run "make dep-am".
2560 * Makefile.in: Regenerate.
2561 * doc/Makefile.in: Regenerate.
2562
2563 2002-09-20 Nick Clifton <nickc@redhat.com>
2564
2565 * symbols.c (colon): Do not allow symbols to be created in the
2566 absolute section if WORKING_DOT_WORD is not defined and
2567 new_broken_words would require a new frag to be created.
2568
2569 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2570
2571 * expr.c (expr): Simplify foo-foo here.
2572 (clean_up_expression): Remove O_subtract code.
2573
2574 * write.h (struct fix): Add fx_dot_value.
2575 (dot_value): Declare.
2576 * write.c (dot_value): New var.
2577 (fix_new_internal): Save dot_value as fx_dot_value.
2578 (fixup_segment): Adjust fx_offset using fx_dot_value.
2579 * expr.c (expr): Update dot_value.
2580
2581 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2582
2583 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2584 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2585 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2586 if not defined.
2587 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2588 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2589 BFD_RELOC_386_TLS_GOTIE.
2590
2591 2002-09-19 Richard Henderson <rth@redhat.com>
2592
2593 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2594 branch type relocs.
2595 (alpha_force_relocation): Don't special-case branch type relocs.
2596
2597 2002-09-19 Nick Clifton <nickc@redhat.com>
2598
2599 * config/tc-m68k.c (select_control_regs): Handle situation where
2600 architecture has not yet been selected.
2601
2602 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2603
2604 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2605 (IS_SEXT_16BIT_NUM): New macro.
2606 (macro_build_ldst_constoffset): New function, to build a set of
2607 instructions to do a load or store from a constant offset relative
2608 to a given register.
2609 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2610 .cprestore pseudo-op.
2611
2612 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2613
2614 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2615
2616 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2617
2618 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2619
2620 2002-09-17 Stan Cox <scox@redhat.com>
2621
2622 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2623 (macro): Likewise for la. Likewise for ld.
2624 (mips_after_parse_args): Make -xgot optional, not the default.
2625 (md_apply_fix3): Allow composite relocation to set up gp.
2626 (tc_gen_reloc): Allow relaxing for newabi.
2627 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2628 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2629
2630 2002-09-17 Nick Clifton <nickc@redhat.com>
2631
2632 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2633 BFD_RELOC_ARM_IMMEDIATE has been done.
2634 (tc_gen_reloc): Do not issue reloc number of unimplemented
2635 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2636 their name is already in the error message - plus remove them
2637 from the default case.
2638
2639 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2640 behavior of instructions.
2641
2642 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2643
2644 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2645 Convert functions to K&R format.
2646
2647 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2648
2649 * config/tc-mips.c (pdr_seg): Define only for ELF.
2650 (s_change_section): Remove unused variable. Don't use for nonELF.
2651
2652 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2653
2654 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2655 obj-elf.h
2656 * config/obj-elf.h (obj_elf_change_section): Likewise.
2657
2658 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2659
2660 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2661 (out_debug_info): Likewise.
2662
2663 2002-09-16 Bruno Haible <bruno@clisp.org>
2664
2665 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2666 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2667 * config/tc-i386.c (i386_target_format): Likewise.
2668 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2669 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2670
2671 2002-09-13 Nick Clifton <nickc@redhat.com>
2672
2673 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2674 when deciding if any operands have been skipped.
2675
2676 2002-09-11 Nick Clifton <nickc@redhat.com>
2677
2678 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2679
2680 * po/tr.po: Updated Turkish translation.
2681
2682 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2683
2684 * config/tc-i386.c (md_apply_fix3): Allow addend for
2685 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2686 BFD_RELOC_386_TLS_LE_32.
2687
2688 2002-09-05 Jeff Law <law@redhat.com>
2689
2690 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2691 marker relocations such as ENTRY/EXIT.
2692 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2693 to both OBJ_ELF and OBJ_SOM.
2694
2695 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2696
2697 * doc/internals.texi (md_apply_fix3): Expand.
2698 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2699 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2700 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2701 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2702 EXTERN_FORCE_RELOC): Document.
2703 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2704 * as.h: Don't include struc-symbol.h for arc.
2705 (IS_ELF): Define.
2706 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2707 subtract absolute symbol.
2708 * obj.h (struct format_ops): Add frob_file_before_fix.
2709 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2710 * symbols.c (S_FORCE_RELOC): New function.
2711 * symbols.h (S_FORCE_RELOC): Declare.
2712 * write.c (TC_FORCE_RELOCATION): Change default.
2713 (TC_FORCE_RELOCATION_ABS): Define.
2714 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2715 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2716 (TC_FORCE_RELOCATION_SECTION): Don't define.
2717 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2718 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2719 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2720 (TC_VALIDATE_FIX_SUB): Define.
2721 (TC_FIX_ADJUSTABLE): Don't define.
2722 (MD_APPLY_SYM_VALUE): Define this instead.
2723 (abs_section_sym): New variable.
2724 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2725 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2726 Don't put the absolute section sym on fixups here.
2727 (fix_segment): New function.
2728 (write_relocs): Don't call fixup_segment from here.
2729 (write_object_file): Instead call tc_frob_file_before_fix,
2730 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2731 Don't output the absolute section symbol.
2732 (fixup_segment): Rewrite.
2733 * write.h (abs_section_sym): Declare.
2734 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2735 obj_aout_frob_file.
2736 (aout_format_ops): Adjust to suit.
2737 * config/obj-aout.h (obj_frob_file): Don't define.
2738 (obj_frob_file_before_fix): Define.
2739 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2740 (S_FORCE_RELOC): Define.
2741 * config/obj-bout.h (S_FORCE_RELOC): Define.
2742 * config/obj-coff.c (coff_format_ops): Init new field.
2743 * config/obj-coff.h: Formatting fixes.
2744 (obj_sec_sym_ok_for_reloc): Define.
2745 (S_FORCE_RELOC): Define.
2746 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2747 (ecoff_frob_file): .. from here.
2748 (ecoff_format_ops): Add new function.
2749 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2750 (obj_frob_file_before_fix): Define.
2751 * config/obj-elf.c (elf_format_ops): Init new field.
2752 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2753 * config/obj-ieee.h: Formatting fixes.
2754 (S_FORCE_RELOC): Define.
2755 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2756 * config/obj-vms.h (S_FORCE_RELOC): Define.
2757 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2758 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2759 for BFD_RELOC_32 and BFD_RELOC_64.
2760 (alpha_fix_adjustable): Remove extern and weak tests.
2761 (alpha_before_fix): Rename from alpha_adjust_symtab.
2762 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2763 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2764 (TC_VALIDATE_FIX): Tweak param name.
2765 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2766 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2767 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2768 (MD_APPLY_SYM_VALUE): Define.
2769 (tc_adjust_symtab): Don't define.
2770 (alpha_adjust_symtab): Don't declare.
2771 (tc_frob_file_before_fix): Define.
2772 (alpha_before_fix): Declare.
2773 (TC_INIT_FIX_DATA): Tweak param names.
2774 * config/tc-arc.c: Include "struc-symbol.h".
2775 (md_pcrel_from): Remove undefined sym fudge.
2776 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2777 Don't set fx_addnumber.
2778 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2779 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2780 (EXTERN_FORCE_RELOC): Define.
2781 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2782 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2783 (arm_validate_fix): Return void.
2784 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2785 Add plt and got reloc tests.
2786 (arm_force_relocation): Call S_FORCE_RELOC.
2787 * config/tc-arm.h (struct fix): Forward declare.
2788 (TC_VALIDATE_FIX): No longer set add_symbolP.
2789 (arm_validate_fix): Adjust declaration.
2790 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2791 (TC_FORCE_RELOCATION): Tweak param name.
2792 (TC_INIT_FIX_DATA): Likewise.
2793 (obj_fix_adjustable): Don't define.
2794 (tc_fix_adjustable): Call arm_fix_adjustable.
2795 (TC_FIX_ADJUSTABLE): Don't define.
2796 (MD_APPLY_SYM_VALUE): Define.
2797 (EXTERN_FORCE_RELOC): Define.
2798 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2799 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2800 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2801 Remove *valP fudges and code to subtract abs sym. Don't set
2802 fx_addnumber.
2803 * config/tc-avr.h: Formatting.
2804 (EXTERN_FORCE_RELOC): Define.
2805 (MD_APPLY_SYM_VALUE): Define.
2806 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2807 (md_apply_fix3): Remove code to subtract abs sym.
2808 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2809 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2810 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2811 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2812 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2813 (tc_fix_adjustable): Remove extern, weak tests.
2814 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2815 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2816 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2817 and code to subtract abs sym.
2818 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2819 (d10v_force_relocation): Call S_FORCE_RELOC.
2820 * config/tc-d10v.h: Don't include write.h.
2821 (struct fix): Instead, forward declare.
2822 (MD_PCREL_FROM_SECTION): Tweak param names.
2823 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2824 (d10v_fix_adjustable): Likewise.
2825 (obj_fix_adjustable): Don't define.
2826 (tc_fix_adjustable): Define.
2827 (TC_FORCE_RELOCATION): Tweak param name.
2828 (MD_APPLY_SYM_VALUE): Define.
2829 (EXTERN_FORCE_RELOC): Define.
2830 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2831 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2832 and code to subtract abs sym.
2833 * config/tc-d30v.h: Don't include write.h.
2834 (struct fix): Instead, forward declare.
2835 (MD_PCREL_FROM_SECTION): Tweak param names.
2836 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2837 (MD_APPLY_SYM_VALUE): Define.
2838 (EXTERN_FORCE_RELOC): Define.
2839 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2840 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2841 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2842 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2843 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2844 Don't use fx_addnumber.
2845 * config/tc-dlx.h: Don't include write.h.
2846 (md_convert_frag): We're not alpha twice over.
2847 (EXTERN_FORCE_RELOC): Define.
2848 (obj_fix_adjustable): Don't define.
2849 (tc_fix_adjustable): Define.
2850 (TC_FIX_ADJUSTABLE): Don't define.
2851 (MD_APPLY_SYM_VALUE): Define.
2852 (LOCAL_LABELS_DOLLAR): Undef always.
2853 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2854 (fr30_fix_adjustable): Remove extern, weak tests.
2855 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2856 (obj_fix_adjustable): Don't define.
2857 (tc_fix_adjustable): Define.
2858 (struct fix): Forward declare.
2859 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2860 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2861 (frv_fix_adjustable): Don't do extern, weak tests.
2862 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2863 (TC_FIX_ADJUSTABLE): Don't define.
2864 (obj_fix_adjustable): Don't define.
2865 (tc_fix_adjustable): Define.
2866 (struct fix): Forward declare.
2867 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2868 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2869 * config/tc-h8300.h (struct fix): Forward declare.
2870 (EXTERN_FORCE_RELOC): Define.
2871 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2872 (hppa_fix_adjustable): Don't test extern or weak. Don't
2873 symbol_mark_used_in_reloc.
2874 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2875 and S_IS_WEAK.
2876 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2877 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2878 (TC_FORCE_RELOCATION_SECTION): Don't define.
2879 (MD_APPLY_SYM_VALUE): Define.
2880 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2881 to subtract abs sym.
2882 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2883 (MD_APPLY_SYM_VALUE): Define.
2884 (MD_PCREL_FROM_SECTION): Tweak param name.
2885 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2886 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2887 (i386_force_relocation): New function.
2888 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2889 (TC_VALIDATE_FIX): Likewise.
2890 (TC_FIX_ADJUSTABLE): Don't define.
2891 (MD_APPLY_SYM_VALUE): Define.
2892 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2893 (i386_force_relocation): Declare.
2894 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2895 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2896 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2897 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2898 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2899 (EXTERN_FORCE_RELOC): Define.
2900 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2901 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2902 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2903 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2904 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2905 Remove #if 0 code. Invert return boolean.
2906 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2907 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2908 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2909 (tc_coff_sizemachdep): Prototype.
2910 (i960_handle_align): Likewise.
2911 (i960_validate_fix): Adjust declaration.
2912 (reloc_callj): Likewise.
2913 (EXTERN_FORCE_RELOC): Define.
2914 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2915 (TC_FORCE_RELOCATION_ABS): Define.
2916 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2917 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2918 (TC_FIX_ADJUSTABLE): Don't define.
2919 (MD_APPLY_SYM_VALUE): Define.
2920 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2921 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2922 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2923 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2924 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2925 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2926 (MD_APPLY_SYM_VALUE): Define.
2927 (EXTERN_FORCE_RELOC): Define.
2928 (TC_FORCE_RELOCATION): Tweak param name.
2929 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2930 (m32r_fix_adjustable): Don't test extern, weak.
2931 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2932 (MD_APPLY_SYM_VALUE): Define.
2933 (obj_fix_adjustable): Don't define.
2934 (tc_fix_adjustable): Define.
2935 (tc_frob_file): Don't define.
2936 (tc_frob_file_before_fix): Define.
2937 (EXTERN_FORCE_RELOC): Define.
2938 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2939 BFD_RELOC_VTABLE_ENTRY address.
2940 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2941 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2942 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2943 Remove duplicated fx_done code.
2944 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2945 (EXTERN_FORCE_RELOC): Define.
2946 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2947 relaxable_symbol.
2948 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2949 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2950 (TC_FIX_ADJUSTABLE): Don't define.
2951 (EXTERN_FORCE_RELOC): Define.
2952 (MD_APPLY_SYM_VALUE): Define.
2953 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2954 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2955 Remove fx_addsy tests.
2956 (mcore_force_relocation): Call S_FORCE_RELOC.
2957 (mcore_fix_adjustable): Don't test fx_addsy.
2958 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2959 (EXTERN_FORCE_RELOC): Define.
2960 (obj_fix_adjustable): Don't define.
2961 (tc_fix_adjustable): Define.
2962 (MD_APPLY_SYM_VALUE): Define.
2963 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2964 (mips_pic): No longer static.
2965 (mips_force_relocation): Call S_FORCE_RELOC.
2966 (mips_fix_adjustable): Remove extern, weak tests.
2967 * config/tc-mips.h (enum mips_pic_level): Declare.
2968 (mips_pic): Declare.
2969 (tc_frob_file): Don't define.
2970 (tc_frob_file_before_fix): Define this instead.
2971 (EXTERN_FORCE_RELOC): Define.
2972 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2973 with reg_section tests. Set fx_done instead of calling
2974 symbol_clear_used_in_reloc on bad relocs.
2975 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2976 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2977 (mmix_adjust_symtab): Simplify list handling. Abort on any
2978 nonsense.
2979 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2980 BFD_RELOC_MMIX_LOCAL.
2981 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2982 (EXTERN_FORCE_RELOC): Define.
2983 (MD_PCREL_FROM_SECTION): Tweak param name.
2984 (tc_frob_file): Don't define.
2985 (tc_frob_file_before_fix): Define this instead.
2986 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2987 Remove SEC_CODE checks.
2988 (mn10300_fix_adjustable): Remove extern and weak tests.
2989 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2990 (TC_FORCE_RELOCATION): Tweak param name.
2991 (obj_fix_adjustable): Don't define.
2992 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2993 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2994 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2995 (openrisc_fix_adjustable): Don't test fx_addsy.
2996 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2997 (obj_fix_adjustable): Don't define.
2998 (tc_fix_adjustable): Define this instead.
2999 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3000 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3001 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3002 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3003 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3004 (MD_APPLY_SYM_VALUE): Define.
3005 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3006 Don't subtract symbol value.
3007 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3008 (EXTERN_FORCE_RELOC): Define.
3009 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3010 (MD_APPLY_SYM_VALUE): Define.
3011 (obj_fix_adjustable): Don't define.
3012 (tc_fix_adjustable): Define this instead.
3013 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3014 section sym.
3015 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3016 (ppc_force_relocation <elf version>): New.
3017 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3018 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3019 comments. Don't subtract fx_subsy as that is already done.
3020 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3021 (MD_PCREL_FROM_SECTION): Likewise.
3022 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3023 ppc_force_relocation.
3024 (TC_FORCE_RELOCATION_SECTION): Delete.
3025 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3026 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3027 (MD_APPLY_SYM_VALUE): Define.
3028 * config/tc-s390.c: #include "dwarf2dbg.h".
3029 (s390_insn): Remove excess parens.
3030 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3031 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3032 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3033 non-NULL. Don't subtract off fx_addsy value.
3034 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3035 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3036 (TC_FIX_ADJUSTABLE): Don't define.
3037 (MD_APPLY_SYM_VALUE): Define.
3038 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3039 (SWITCH_TABLE): Likewise.
3040 (sh_force_relocation): Call S_FORCE_RELOC.
3041 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3042 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3043 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3044 fx_addnumber is zero on entry. Save val in fx_addnumber.
3045 (tc_gen_reloc): Don't subtract fx_subsy.
3046 * config/tc-sh.h (struct fix): Move.
3047 (obj_fix_adjustable): Don't define.
3048 (tc_fix_adjustable): Define this instead.
3049 (TC_FIX_ADJUSTABLE): Don't define.
3050 (MD_APPLY_SYM_VALUE): Define.
3051 (SWITCH_TABLE_CONS): Define.
3052 (SWITCH_TABLE): Define.
3053 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3054 (TC_VALIDATE_FIX_SUB): Define.
3055 (MD_PCREL_FROM_SECTION): Tweak param name.
3056 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3057 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3058 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3059 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3060 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3061 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3062 (TC_VALIDATE_FIX_SUB): Define.
3063 (MD_PCREL_FROM_SECTION): Tweak param name.
3064 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3065 (tc_gen_reloc): Use S_FORCE_RELOC.
3066 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3067 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3068 (TC_FORCE_RELOCATION_ABS): Define this instead.
3069 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3070 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3071 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3072 (MD_APPLY_SYM_VALUE): Define.
3073 (TC_FIX_DATA_PRINT): Tweak param name.
3074 * config/tc-tic30.c (USE_STDOUT): Don't define.
3075 (md_parse_option): Remove stupid debug code.
3076 (tc_gen_reloc): Don't use fx_addnumber.
3077 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3078 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3079 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3080 (tc_fix_adjustable): Define this instead.
3081 (TC_FIX_ADJUSTABLE): Don't define.
3082 (MD_APPLY_SYM_VALUE): Define this instead.
3083 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3084 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3085 (TC_FIX_ADJUSTABLE): Don't define.
3086 (MD_APPLY_SYM_VALUE): Define this instead.
3087 (tc_fix_adjustable): Remove extern and weak tests.
3088 * config/tc-w65.h (struct fix): Forward declare.
3089 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3090 S_FORCE_RELOC.
3091 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3092 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3093 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3094 absolute symbol.
3095 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3096 (MD_APPLY_SYM_VALUE): Define.
3097 (obj_fix_adjustable): Don't define.
3098 (tc_fix_adjustable): Define this instead.
3099 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3100
3101 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3102
3103 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3104 (ppc_fix_adjustable <coff version>): Cleanup.
3105
3106 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3107 (md_parse_option): No -a64 without BFD64.
3108 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3109 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3110
3111 2002-09-04 Nick Clifton <nickc@redhat.com>
3112
3113 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3114 instructions into the hash table if the target cpu is the BookE32.
3115
3116 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3117
3118 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3119 ATTRIBUTE_UNUSED.
3120
3121 2000-08-28 Catherine Moore <clm@redhat.com>
3122
3123 * tc-v850.c (v850_relax): Declare.
3124 (v850_longcode): New routine.
3125 (v850_handle_align): New routine.
3126 (md_pseudo_table): Add longcall and longjump.
3127 (md_parse_option): Check for relax option.
3128 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3129 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3130 (md_apply_fix3): Likewise.
3131 (v850_force_relocation): Likewise.
3132 (v850_comm): Change the current section.
3133 (md_assemble): Ensure that the correct value is put in the
3134 fixup.
3135 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3136 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3137 Remove redundant v850ea support.
3138 * tc-v850.h (HANDLE_ALIGN): Define.
3139 (v850_handle_align): Declare.
3140 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3141
3142 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3143
3144 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3145 * configure: Regenerate.
3146 * NEWS: Mention new port.
3147
3148 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3149
3150 * config/obj-coff.c: Add sdef definition.
3151 * config/obj-coff.h: Add tic4x include file and set
3152 target format.
3153 * config/tc-tic4x.c: New file.
3154 * config/tc-tic4x.h: New file.
3155
3156 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3157
3158 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3159 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3160 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3161 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3162 (RELOC_ENUM): Define.
3163 (fix_new_internal): Use RELOC_ENUM.
3164 (fix_new, fix_new_exp): Likewise.
3165 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3166 Replace gotos with continue.
3167 (write_relocs): Formatting. Avoid symbol loops in
3168 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3169 errors, and error number in other cases.
3170 (fixup_segment): Remove param names from prototype. Rename
3171 "this_segment_type" to "this_segment". Update linkrelax comment.
3172 Remove "size, "place" and "where" local vars. Formatting. Update
3173 "no symbol" comment. Remove #if 0 and #if 1.
3174
3175 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3176
3177 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3178
3179 * dwarf2dbg.c: Always include dwarf2dbg.h.
3180 (dwarf2_directive_file): Adjust dummy version args.
3181 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3182 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3183 when symbol values differ.
3184 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3185 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3186 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3187
3188 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3189
3190 * config/tc-w65.c (md_section_align): Fix typo.
3191 (md_parse_option): Return 0, not 1.
3192
3193 2002-08-22 Nick Clifton <nickc@redhat.com>
3194
3195 * doc/as.texinfo (Section): Note that if '@' is a comment
3196 character then another symbol is used to prefix the section's
3197 type.
3198
3199 2002-08-22 Christian Groessler <chris@groessler.org>
3200
3201 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3202 "case 0" case.
3203
3204 2002-08-12 Graeme Peterson <gp@qnx.com>
3205
3206 * configure.in: Add support for sh-**-nto* target.
3207 * configure: Regenerate.
3208
3209 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3210
3211 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3212
3213 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3214
3215 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3216 is ELF.
3217 (ppc_apuinfo_section_add): Define only if format is ELF.
3218 (md_assemble): Emit APUinfo section only if format is ELF.
3219 Fix formatting.
3220
3221 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3222
3223 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3224 * config/tc-frv.c: Likewise.
3225 * config/tc-hppa.c: Likewise.
3226 * config/tc-ia64.c: Likewise.
3227 * config/tc-ip2k.c: Likewise.
3228 * config/tc-m68hc11.c: Likewise.
3229 * config/tc-m68k.c: Likewise.
3230 * config/tc-mmix.c: Likewise.
3231 * config/tc-mn10300.c: Likewise.
3232 * config/tc-sh.c: Likewise.
3233 * config/tc-sparc.c: Likewise.
3234 * config/tc-v850.c: Likewise.
3235
3236 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3237
3238 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3239 by zero.
3240
3241 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3242
3243 From matthew green <mrg@redhat.com>
3244
3245 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3246 PPC_OPCODE_PPC is, except for BookE architectures.
3247 (md_parse_option): Add support for -mspe.
3248 (md_show_usage): Add -mspe.
3249 (md_parse_option): Add support for -me500 and
3250 -me500x2 to generate code for Motorola e500 core complex.
3251 (md_show_usage): Add -me500 and -me500x2.
3252
3253 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3254 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3255 PPC_APUINFO_BRLOCK): New macros.
3256
3257 (ppc_cleanup): New function.
3258 (ppc_apuinfo_section_add): New function.
3259 (APUID): New macro.
3260 (md_assemble): Collect info and write the APUinfo section.
3261
3262 * config/tc-ppc.h (md_cleanup): Define.
3263 (ppc_cleanup): Export.
3264 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3265
3266 2002-08-17 Stan Cox <scox@redhat.com>
3267
3268 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3269 config/tc-mips.c (s_change_section): New function to support
3270 IRIX .section pseudo-op.
3271
3272 2002-08-16 Nick Clifton <nickc@redhat.com>
3273
3274 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3275
3276 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3277
3278 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3279 the fix-up against on the right frag.
3280 (s_cpsetup): Likewise. Parse third argument as expression, to
3281 handle global symbols and forward/backward labels correctly.
3282
3283 2002-08-14 Nick Clifton <nickc@redhat.com>
3284
3285 * read.c (stringer): Catch attempts to create strings in the abs
3286 section.
3287
3288 * config/tc-alpha.c: Fix compiling for COFF targets.
3289 Some minor formatting tidyups.
3290
3291 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3292
3293 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3294 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3295 according to the reloc.
3296 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3297 (TC_FORCE_RELOCATION): Define.
3298 (tc_m68hc11_force_relocation): Declare.
3299
3300 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3301 (s_m68hc11_relax): New function for relax group.
3302 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3303 beginning of jump instruction.
3304 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3305 address computation.
3306 (tc-gen_reloc): Update.
3307 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3308 PC-relative fixup.
3309 (tc_m68hc11_force_relocation): New function, handle new relocs.
3310 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3311 reloc for the linker relax pass.
3312 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3313 and VTABLE relocs.
3314
3315 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3316
3317 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3318 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3319 (s_m68hc11_mode): New function for .mode pseudo op.
3320 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3321 pseudo op.
3322 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3323 (m68hc11_elf_final_processing): Declare.
3324
3325 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3326
3327 * config/tc-m68hc11.c (md_begin): Take into account additional
3328 page operand for call instruction.
3329 (print_opcode_format): Likewise.
3330 (check_range): Likewise for page range checking.
3331 (get_operand): Don't skip a possible comma in operands.
3332 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3333 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3334 (fixup24): New to handle call reloc.
3335 (build_insn): Handle missing page operand for call instruction.
3336 (find): Likewise.
3337 (md_apply_fix3): Take into account new relocs.
3338 (get_operand): Fix the mode for indexed indirect addressing.
3339 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3340
3341 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3342
3343 * config/tc-mips.c (mips_ip): Don't work out the value of
3344 constant %hi()s here.
3345
3346 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3347
3348 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3349 for ELF, and don't bother checking ELF relocs when non-ELF.
3350 (i386_immediate): Allow absolute_section expressions for aout.
3351 (i386_displacement): Likewise. Also test bfd_is_com_section.
3352 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3353 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3354 not when fx_addsy. Remove dead code.
3355
3356 2002-08-09 Graeme Peterson <gp@qnx.com>
3357
3358 * configure.in: Add support for ppc-*-nto* target.
3359 * configure: Regenerate.
3360
3361 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3362
3363 * config/tc-i386.h: Reorganize.
3364
3365 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3366
3367 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3368 immediate offset in "dla" and "la" expansions.
3369
3370 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3371
3372 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3373 Remove "bfd_gas=yes" from target table when covered later.
3374 Consolidate some entries.
3375 * configure: Regenerate
3376
3377 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3378
3379 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3380 at start of insn, pass it to output_disp and output_imm.
3381 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3382 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3383 properly addend.
3384 (output_imm): Added arguments. Compute properly addend for
3385 R_386_GOTPC.
3386 (md_apply_fix3): Remove R_386_GOTPC handling.
3387
3388 2002-08-06 George France <france@handhelds.org>
3389
3390 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3391 and m21264b processor names and cpu types.
3392 * doc/c-alpha.texi: Documented new types.
3393
3394 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3395
3396 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3397
3398 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3399
3400 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3401 handling to BFD_RELOC_MIPS16_GPREL.
3402
3403 2002-08-01 Nick Clifton <nickc@redhat.com>
3404
3405 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3406 pool is computed using signed arithmetic so that proper sign
3407 extension is performed if X_add_number is a 64-bit integer.
3408
3409 2002-08-01 H.J. Lu <hjl@gnu.org>
3410 Daniel Jacobowitz <drow@mvista.com>
3411
3412 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3413 .debug_line section unless it has line information.
3414
3415 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3416
3417 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3418 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3419 Allow default displacement size to be an option "--disp-size-default".
3420 (md_number_to_disp): Make error messages include value. Use %d to
3421 print integers, not %s.
3422 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3423 get duplicate messages sometimes.
3424 (convert_iif): Grow frag to max possible instruction size. Avoid
3425 creating unnecessary fixes.
3426 (md_number_to_field) Add prototype.
3427 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3428 prototypes and make static.
3429 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3430 (evaluate_expr): Use resultP argument instead of exprP global.
3431 (get_addr_mode): Quiten compiler warnings.
3432 (encode_operand): eliminate unused variables. Quiten compiler
3433 warnings. Eliminate nul character in format strings.
3434 (parse): argc is unsigned.
3435 (reloc): Type cast index to quieten compiler.
3436 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3437 (md_convert_frag): Note unused parameters. Remove unused
3438 variables.
3439 (md_create_long_jump, md_create_short_jump,
3440 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3441 unused parameters.
3442
3443 2002-07-31 Nick Clifton <nickc@redhat.com>
3444
3445 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3446 of the PDP-11 and 2.11BSD a.out support.
3447
3448 2002-07-31 Momchil Velikov <velco@fadata.bg>
3449
3450 * config/tc-v850.c (md_assemble): Fix range check for immediate
3451 operand.
3452
3453 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3454
3455 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3456 to Broadcom SB-1 core support.
3457
3458 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3459
3460 * config/tc-mips.c (mips_target_format): Fix formatting.
3461 Add recognition of n32 ABI formats.
3462
3463 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3464
3465 * tc-mips.c (load_address): Don't clobber $at when loading a
3466 64-bit address in non-PIC code if noat is in effect.
3467 (macro): Likewise.
3468
3469 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3470
3471 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3472 used in division/multiply macro expansions similarly to how they
3473 are used in the variants with break instructions.
3474 (macro2): Likewise.
3475
3476 2002-07-30 Graeme Peterson <gp@qnx.com>
3477
3478 * configure.in: Add support for arm-*-nto target.
3479 * configure: Regenerate.
3480
3481 2002-07-30 Nick Clifton <nickc@redhat.com>
3482
3483 * config/tc-arm.c (struct literal_pool): Add fields to allow
3484 multiple literal pools to be maintained.
3485 (find_literal_pool): New function.
3486 (find_or_make_literal_pool): New function.
3487 (add_to_literal_pool): Use find_or_make_literal_pool.
3488 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3489 needed.
3490 (s_ltorg): Use find_literal_pool.
3491 (arm_cleanup): Dump all literal pools.
3492 * doc/c-arm.texi: Document new behaviour of only dumping literal
3493 pools upon request.
3494
3495 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3496
3497 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3498 rather than PPC_OPCODE_32 for powerpc64*.
3499
3500 2002-07-25 Nick Clifton <nickc@redhat.com>
3501
3502 * po/es.po: Updated Spanish translation.
3503 * po/fr.po: Updated French translation.
3504
3505 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3506
3507 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3508 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3509 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3510 * configure, config.in: Regenerate.
3511 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3512 (mips_set_options): Remove "abi" field.
3513 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3514 with mips_abi.
3515 (mips_cpu): Remove.
3516 (mips_arch_string, mips_arch_info): New vars.
3517 (mips_tune_string, mips_tune_info): New vars.
3518 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3519 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3520 (mips_isa_to_str, mips_cpu_to_str): Remove.
3521 (mips_ip): If the selected architecture is a generic ISA rather
3522 than a processor, only mention the ISA level in error messages.
3523 (OPTION_MCPU): Remove.
3524 (OPTION_FP64): New.
3525 (md_longopts): Add -mfp64, remove -mcpu.
3526 (mips_set_option_string): New fn.
3527 (md_parse_option): Make -mipsN update file_mips_isa rather than
3528 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3529 Don't let -mgp32 and -mfp32 change the ABI.
3530 (show): Move to end of file. Constify string argument.
3531 (md_show_usage): Move to the end of the file. Read available
3532 architectures from mips_cpu_info_table.
3533 (mips_set_architecture): New fn.
3534 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3535 is an alias for -march=mipsN. Don't change the ABI based on other
3536 flags. Infer the register size from the ABI as well as the
3537 architecture. Complain about more conflicting arguments.
3538 Unify logic with GCC.
3539 (s_mipsset): Don't change the ABI.
3540 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3541 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3542 "mipsN"-type entries. Remove entries that vary only in the
3543 manufacturer's prefix, or that have "000" replaced by "k".
3544 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3545 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3546 (mips_parse_cpu): New fn.
3547 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3548 (mips_cpu_info_from_isa): Minor formatting tweak.
3549
3550 2002-07-24 Nick Clifton <nickc@redhat.com>
3551
3552 * po/sv.po: Updated Swedish translation.
3553 * po/es.po: Updated Spanish translation.
3554
3555 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3556
3557 * Makefile.am: Run "make dep-am".
3558 * Makefile.in: Regenerate.
3559 * doc/Makefile.in: Regenerate.
3560 * config.in: Regenerate.
3561 * po/POTFILES.in: Regenerate.
3562
3563 2002-07-23 Nick Clifton <nickc@redhat.com>
3564
3565 * po/fr.po: Updated French translation.
3566
3567 2002-07-23 Nick Clifton <nickc@redhat.com>
3568
3569 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3570 GAS.
3571
3572 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3573
3574 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3575 instead of S_IS_EXTERN.
3576 (md_estimate_size_before_relax): Likewise.
3577 (mips_fix_adjustable): Likewise.
3578
3579 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3580
3581 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3582
3583 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3584 Nick Clifton <nickc@redhat.com>
3585
3586 * cond.c (s_ifdef): Treat a referenced but not yet defined
3587 symbol as if it were undefined, in exactly the same way as
3588 .equiv.
3589
3590 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3591 consider referenced bug not yet defined symbols to be
3592 undefined.
3593
3594 2002-07-18 Denis Chertykov <denisc@overta.ru>
3595 Frank Ch. Eigler <fche@redhat.com>
3596 Alan Lehotsky <alehotsky@cygnus.com>
3597 John Healy <jhealy@redhat.com>
3598 Jeff Johnston <jjohnstn@redhat.com>
3599
3600 * configure.in: Add ip2k configuraton.
3601 * configure: Regenerate.
3602 * Makefile.am: Add ip2k configuraton.
3603 * Makefile.in: Regenerate.
3604 * configure: Regenerate.
3605 * Makefile.in: Regenerate.
3606 * config/tc-ip2k.c: New file.
3607 * config/tc-ip2k.h: New files.
3608 * NEWS: Mention new support.
3609 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3610 * doc/Makefile.in: Regenerate.
3611 * doc/all.texi: Set IP2K
3612 * doc/as.texinfo: Add IP2K description.
3613 * doc/c-ip2k.texi: New file.
3614
3615 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3616
3617 * NEWS: Reformat to match style of other NEWS files.
3618
3619 2002-07-17 Jan Hubicka <jh@suse.cz>
3620
3621 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3622
3623 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3624
3625 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3626
3627 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3628
3629 * NEWS: Add 'Changes in 2.13'.
3630
3631 2002-07-15 Matt Fredette <fredette@netbsd.org>
3632
3633 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3634
3635 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3636
3637 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3638 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3639 not CODE_64BIT.
3640
3641 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3642
3643 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3644 (ppc_frob_file_before_adjust): New function.
3645 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3646 (ppc_elf_frob_symbol): Don't declare.
3647 (tc_frob_file_before_adjust): Define.
3648 (ppc_frob_file_before_adjust): Declare.
3649
3650 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3651 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3652 flags.
3653 (ppc_size): Delete.
3654 (ppc_xcoff64): Rename to ppc_obj64.
3655 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3656 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3657 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3658 or bfd_mach_ppc.
3659 (ppc_target_format): Use ppc_obj64 to select format.
3660 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3661 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3662 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3663 (tc_frob_symbol): Likewise.
3664 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3665 BFD_DEFAULT_TARGET_SIZE.
3666 (ppc_tc): Likewise.
3667 (ppc_is_toc_sym): Likewise.
3668 (md_apply_fix3): Likewise.
3669 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3670 BFD_DEFAULT_TARGET_SIZE.
3671 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3672 (tc_frob_symbol): Likewise.
3673
3674 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3675
3676 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3677 (mips_ip): Likewise.
3678
3679 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3680
3681 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3682 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3683 (md_apply_fix3): Formatting. Remove redundant test.
3684 (tc_gen_reloc): Remove redundant code.
3685 (tc_i386_force_relocation): Delete. Movy body of function to..
3686 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3687
3688 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3689
3690 * configure.in: Add hppa-*-openbsd* target, change
3691 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3692 with sparc64 cpu.
3693 * configure: Regenerate.
3694
3695 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3696
3697 * config/tc-mips.c (macro): Shift the 32-bit address range
3698 accessible with a lone "lui" down by 32768.
3699
3700 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3701
3702 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3703 instead of "dadd" in address calculations.
3704 (macro): Likewise.
3705
3706 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3707
3708 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3709 movzx fudges.
3710 (md_assemble): Instead, zap the suffix here.
3711
3712 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3713
3714 * NEWS: Remove next release number until the release is actually
3715 upon us.
3716
3717 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3718
3719 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3720 Run "make dep-am".
3721 * Makefile.in: Regenerate.
3722
3723 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3724
3725 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3726 to symbols in merge sections, even non pc-relative ones.
3727
3728 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3729
3730 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3731
3732 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3733
3734 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3735 .softregs and .eeprom.
3736
3737 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3738
3739 * NEWS: Note the next release is 2.13.
3740
3741 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3742
3743 * po/tr.po: New translation imported.
3744
3745 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3746
3747 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3748 (ecoff_directive_def): Likewise.
3749 (ecoff_directive_tag): Likewise.
3750 * listing.c (file_info): Likewise.
3751 * hash.c (what): Likewise.
3752
3753 2002-06-25 H.J. Lu <hjl@gnu.org>
3754
3755 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3756 * Makefile.in: Regenerated.
3757
3758 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3759
3760 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3761 (assemble_ppi): Generate warning if the same register is used
3762 twice as destination in the same padd / pmuls instruction.
3763
3764 2002-06-18 Dave Brolley <brolley@redhat.com>
3765
3766 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3767 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3768 * configure.in: Support frv-*-*.
3769 * Makefile.am (CPU_TYPES): Add frv.
3770 (TARGET_CPU_CFILES): Add tc-frv.c.
3771 (TARGET_CPU_HFILES): Add tc-frv.h.
3772 (DEPTC_frv_coff): New variable.
3773 (DEPTC_frv_elf): New variable.
3774 (DEPOBJ_frv_coff): New variable.
3775 (DEPOBJ_frv_elf): New variable.
3776 (DEP_frv_coff): New variable.
3777 (DEP_frv_elf): New variable.
3778 * tc-frv.c: New file.
3779 * tc-frv.h: New file.
3780
3781 2002-06-17 Catherine Moore <clm@redhat.com>
3782
3783 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3784
3785 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3786
3787 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3788
3789 2002-06-17 Tom Rix <trix@redhat.com>
3790
3791 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3792
3793 2002-06-14 H.J. Lu <hjl@gnu.org>
3794 Daniel Jacobowitz <drow@mvista.com>
3795
3796 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3797 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3798 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3799 and new_logical_line for the first .file directive.
3800 * read.c (s_app_file_string): New function.
3801 (s_app_file): Call it.
3802 * read.h (s_app_file_string): Add declaration.
3803
3804 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3805
3806 * configure.in: Remove MIPS_STABS_ELF.
3807 * configure: Regenerated.
3808 * config.in: Regenerated.
3809 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3810 for MIPS targets.
3811 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3812 ".extern".
3813 (pdr_seg): Declare unconditionally.
3814 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3815 (s_mips_end): Likewise. Generate stabs function markers.
3816 (s_mips_ent): Generate stabs function markers.
3817 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3818 ELF.
3819 (s_mips_mask): Likewise.
3820 (mips_flag_mdebug): New.
3821 (md_longopts): Add "mdebug" and "no-mdebug".
3822 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3823 (mips_after_parse_args): Set mips_flag_mdebug.
3824 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3825
3826 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3827
3828 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3829 value twice for RELA relocations.
3830
3831 2002-06-12 Ben Elliston <bje@redhat.com>
3832
3833 * symbols.c (resolve_symbol_value): Initialise final_val.
3834
3835 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3836
3837 2002-06-11 Tom Rix <trix@redhat.com>
3838
3839 * config/tc-ppc.c (ppc_subseg_align): Delete.
3840 (ppc_change_csect): Default csect align is 2.
3841 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3842
3843 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3844
3845 * config/tc-avr.c (mcu_types): Update.
3846
3847 2002-06-08 Matt Thomas <matt@3am-software.com>
3848
3849 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3850 (vax-*-netbsd*): New targets.
3851 * configure: Regenerate.
3852 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3853 * config/tc-vax.c: Add support for ELF and PIC.
3854 (flag_want_pic): New flag.
3855 (float_cons): Fix prototype.
3856 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3857 (md_assemble): Introduce a new is_absolute local, and use it
3858 rather than repeating the test. Make fatal errors actually
3859 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3860 Add support for ELF. Add support for PIC.
3861 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3862 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3863 BFD_ASSEMBLER.
3864 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3865 optional for a.out, and not allowed for VMS. Adjust all callers.
3866 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3867 (md_create_long_jump): Likewise.
3868 (md_undefined_symbol): Likewise.
3869 (md_section_align): Likewise.
3870 (md_shortopts): Allow -k and -K for ELF.
3871 (md_parse_option): Set flag_want_pic if -k or -K.
3872 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3873 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3874 * config/tc-vax.h (tc_headers_hook): Remove.
3875 (TARGET_FORMAT): Set according to object format and target
3876 environment.
3877 (BFD_ARCH, TARGET_ARCH): Define.
3878 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3879 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3880 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3881 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3882
3883 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3884
3885 * Makefile.am: Run "make dep-am".
3886 * Makefile.in: Regenerate.
3887
3888 * as.c: Replace CONST with const.
3889 * write.c: Likewise.
3890 * config/obj-coff.c: Likewise.
3891 * config/tc-a29k.c: Likewise.
3892 * config/tc-arm.c: Likewise.
3893 * config/tc-dlx.c: Likewise.
3894 * config/tc-h8300.c: Likewise.
3895 * config/tc-h8500.c: Likewise.
3896 * config/tc-i370.c: Likewise.
3897 * config/tc-i860.c: Likewise.
3898 * config/tc-i960.c: Likewise.
3899 * config/tc-m68hc11.c: Likewise.
3900 * config/tc-m68k.c: Likewise.
3901 * config/tc-m88k.c: Likewise.
3902 * config/tc-mcore.c: Likewise.
3903 * config/tc-mips.c: Likewise.
3904 * config/tc-ns32k.c: Likewise.
3905 * config/tc-pdp11.c: Likewise.
3906 * config/tc-pj.c: Likewise.
3907 * config/tc-s390.c: Likewise.
3908 * config/tc-sh.c: Likewise.
3909 * config/tc-sparc.c: Likewise.
3910 * config/tc-tahoe.c: Likewise.
3911 * config/tc-tic80.c: Likewise.
3912 * config/tc-v850.c: Likewise.
3913 * config/tc-vax.c: Likewise.
3914 * config/tc-w65.c: Likewise.
3915 * config/tc-z8k.c: Likewise.
3916
3917 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3918
3919 Based on patch from Matt Green:
3920 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3921 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3922 (s_mips_loc): New function.
3923 (mips_nonecoff_pseudo_table): Call them.
3924 (append_insn): Call dwarf2_emit_insn.
3925
3926 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3927
3928 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3929 to -1.
3930 (file_ase_mips16): New veriable.
3931 (mips_eabi64): Remove.
3932 (CPU_HAS_MIPS16): New define.
3933 (CPU_HAS_MDMX): Fix data type.
3934 (md_begin): Code cleanup. Use file_ase_mips16.
3935 (mips_elf_final_processing): Handle mips16 header flag.
3936 Handle EABI flag without intermediate variable.
3937
3938 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3939
3940 * doc/as.texinfo: Update MIPS documentation.
3941
3942 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3943
3944 * config/tc-mips.c: Add define for $zero register.
3945 (md_begin): Add $zero as alias name for $0.
3946 (insn_uses_reg): Use ZERO define.
3947 (mips_ip): Add $zero as alias name for $0.
3948 (mips16_ip): Likewise.
3949 (s_cplocal): Demand empty rest of input line.
3950 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3951 names. Use ZERO define. Fix input_line_pointer progress.
3952
3953 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3954
3955 * symbols.c: Replace CONST by const throughout.
3956 (symbol_find_exact): Split out from..
3957 (symbol_find_base): ..here.
3958 * symbols.h: Replace CONST by const throughout.
3959 (symbol_find_exact): Declare.
3960 * config/obj-elf.c: #include "struc-symbol.h".
3961 (elf_frob_file): If group name matches an exported symbol, use that
3962 symbol for the signature and ".group" as the section name.
3963
3964 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3965
3966 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3967 but warn about it.
3968
3969 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3970
3971 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3972 and mips_opts.ase_mdmx if they are uninitialized.
3973
3974 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3975
3976 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3977 (hppa_force_relocation): Check if a stub just before the start symbol
3978 of the last call_info is reachable before forcing relocation. Fix
3979 typo.
3980
3981 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3982
3983 * config/tc-mips.c (mips_after_parse_args): New function.
3984 (md_begin): Move processing of defaults to mips_after_parse_args.
3985 config/tc-mips.h (md_after_parse_args): Define.
3986
3987 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3988
3989 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3990 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3991 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3992 * configure: Regenerate.
3993 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3994 environment.
3995
3996 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3997
3998 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3999
4000 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4001
4002 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4003 linkonce flag. Print all warnings.
4004 (obj_elf_section): Parse ",comdat" for groups.
4005 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4006 consistency of comdat flag.
4007
4008 2002-06-02 Richard Henderson <rth@redhat.com>
4009
4010 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4011 with LITERALs without sequence numbers.
4012
4013 2002-06-01 Richard Henderson <rth@redhat.com>
4014
4015 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4016 Rename them LITUSE_ALPHA_*.
4017
4018 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4019
4020 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4021 accept parentheses enclosed register lists.
4022
4023 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4024
4025 * Makefile.am: Run "make dep-am".
4026 * Makefile.in: Regenerate.
4027 * po/POTFILES.in: Regenerate.
4028
4029 2002-05-31 Graeme Peterson <gp@qnx.com>
4030
4031 * configure.in: Add i386-*-nto-qnx*.
4032 * configure: Regenerate.
4033
4034 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4035
4036 * config/tc-mips.c (mips_ip): Use unsigned long values for
4037 warning output.
4038
4039 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4040
4041 * config/tc-mips.c (s_cpsetup): Fix initialization of
4042 mips_cpreturn_register and mips_cpreturn_offset.
4043
4044 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4045
4046 * config/tc-mips.c (s_cpsetup): Fix comment.
4047
4048 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4049
4050 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4051 (mips_ip): Likewise.
4052 (mips16_ip): Likewise.
4053 (tc_get_register): Likewise.
4054
4055 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4056 Ed Satterthwaite <ehs@broadcom.com>
4057
4058 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4059 (mips_opts): Initialize "ase_mdmx" member.
4060 (file_ase_mdmx): New variable.
4061 (CPU_HAS_MDMX): New macro.
4062 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4063 based on command line options and configuration defaults.
4064 (macro_build): Note in comment that use of MDMX in macros is
4065 not currently allowed.
4066 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4067 "Z" MDMX operand types.
4068 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4069 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4070 types.
4071 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4072 Add support for "-mdmx" and "-no-mdmx" options.
4073 (OPTION_ELF_BASE): Move to accomodate new options.
4074 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4075 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4076 file_ase_mdmx was set.
4077 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4078 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4079 nomdmx" directives.
4080
4081 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4082
4083 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4084 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4085 command line switch conforming to gcc conventions.
4086 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4087
4088 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4089
4090 * config/tc-mips.c (macro_build_jalr): New Function.
4091 (md_begin): NewABI uses big GOTs.
4092 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4093 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4094 (load_address): Add some NewABI PIC support.
4095 (macro): Likewise.
4096 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4097 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4098
4099 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4100
4101 * config/tc-mips.c (load_address): Use mips_gp_register instead
4102 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4103 instead.
4104 (macro): Use mips_gp_register instead of hardcoded value.
4105
4106 2002-05-30 Richard Henderson <rth@redhat.com>
4107
4108 * expr.h (operatorT): Add O_md17..O_md32.
4109 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4110 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4111 O_tprelhi, O_tprello, O_tprel): New.
4112 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4113 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4114 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4115 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4116 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4117 (md_apply_fix3): Handle TLS relocations.
4118 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4119 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4120 associated TLS reloc. Check lituse_tls relocs match up.
4121 (emit_insn): Handle TLS relocations.
4122 (ldX_op): Remove.
4123
4124 * doc/c-alpha.texi: Add docs for tls relocations.
4125
4126 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4127
4128 * config/tc-mips.c (mips_gprel_offset): New variable.
4129 (s_gpvalue): Use it.
4130
4131 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4132
4133 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4134 write-write conflicts.
4135 (md_assemble): Reformat introductory comment.
4136 (parallel_ok): Prevent packing only if the first
4137 instruction cannot be packed.
4138
4139 2002-05-30 Jason Eckhardt <jle@redhat.com>
4140 Tom Rix <trix@redhat.com>
4141
4142 * config/tc-d10v.c (build_insn): Check for immediates.
4143
4144 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4145
4146 * config/tc-mips.c: Replace GP in comments by $gp.
4147 (mips_big_got): Initialize.
4148 (mips_trap): Initialize.
4149 (load_address): Use mips_gp_register instead of hardcoded value.
4150 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4151 (macro): Use mips_gp_register instead of hardcoded value.
4152 (macro2): Change load_address calls.
4153 (md_pcrel_from): Comment formatting.
4154 (s_cpload): Use mips_gp_register instead of hardcoded value.
4155 (s_cprestore): Likewise. Comment formatting.
4156 (s_gpword): Fix data type.
4157 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4158 (nopic_need_relax): Replace GP in comments by $gp.
4159 (mips_elf_final_processing): Better comment.
4160
4161 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4162
4163 * configure.in: Add DLX configuraton
4164 * Makefile.am: Add DLX configuraton
4165 * configure: Regenerate.
4166 * Makefile.in: Regenerate.
4167 * config/tc-dlx.c: New file.
4168 * config/tc-dlx.h: New files.
4169 * NEWS: Mention new support.
4170
4171 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4172
4173 * config/obj-coff.c (write_object_file): Add missing semicolon.
4174
4175 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4176
4177 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4178 by the define. Remove superfluous check of mips_opts.mips16.
4179 (append_insn): Likewise. Canonicalize variable increments.
4180 (macro_build): Canonicalize variable increments.
4181 (macro_build_lui): Likewise.
4182 (load_register): Likewise.
4183 (load_address): Move pointer initialization.
4184 (macro): Move pointer to a more local scope. Canonicalize variable
4185 increments. Better comments. Replace magic constant for RA by the
4186 define.
4187 (macro2): Replace magic constant for RA by the define. Canonicalize
4188 variable increments.
4189 (mips_ip): Canonicalize variable increments.
4190 (mips16_ip): Replace magic constant for RA by the define.
4191 (my_getSmallParser): Canonicalize variable increments/decrements.
4192 (my_getPercentOp): Likewise.
4193 (my_getSmallExpression): Likewise.
4194 (s_align): Likewise.
4195 (s_mipsset): Likewise.
4196 (s_cpsetup): Likewise.
4197 (s_insn): Remove superfluous check of mips_opts.mips16.
4198 (s_mips_stab): Likewise.
4199 (mips_handle_align): Canonicalize variable increments.
4200 (s_mips_ent): Likewise.
4201 (s_mips_end): Add comment.
4202
4203 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4204
4205 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4206 * configure: Regenerate.
4207
4208 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4209
4210 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4211 * Makefile.in: Regenerate.
4212 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4213 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4214 * configure: Regenerate.
4215 * as.h: Use #include "" instead of <> for local header files.
4216 * flonum-konst.c: Likewise.
4217 * flonum-mult.c: Likewise.
4218 * gasp.c: Likewise.
4219 * listing.c: Likewise.
4220 * config/tc-ia64.h: Likewise.
4221 * config/tc-v850.h: Likewise.
4222
4223 2002-05-24 TAMURA Kent <kent@netbsd.org>
4224
4225 * configure.in: Add a target for i386-netbsdpe.
4226 * configure: Regenerate.
4227
4228 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4229
4230 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4231 (obj_elf_common): Call elf_common.
4232 (obj_elf_tls_common): New function.
4233 (elf_pseudo_tab): Support .tls_common.
4234 (special_sections): Add .tdata and .tbss.
4235 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4236 sections.
4237 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4238 (obj_elf_parse_section_letters): Include T in error message.
4239 * config/tc-ppc.c (ppc_section_letter): Likewise.
4240 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4241 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4242 SEC_MERGE.
4243 * config/tc-sparc.c (md_apply_fix3): Likewise.
4244 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4245 Define them if not BFD_ASSEMBLER.
4246 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4247 and @NTPOFF.
4248 (md_apply_fix3): Add TLS relocs.
4249 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4250 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4251 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4252 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4253 (ia64_elf_section_letter): Include T in error message.
4254 (md_begin): Support TLS operators.
4255 (md_operand): Likewise.
4256 (ia64_gen_real_reloc_type): Support TLS relocs.
4257 * write.c (adjust_reloc_syms): Don't change symbols in
4258 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4259
4260 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4261
4262 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4263 round the relocation up rather than down.
4264
4265 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4266
4267 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4268 flag.
4269 * doc/as.texinfo: Document that the COFF version of .section
4270 ignores the 'a' flag.
4271
4272 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4273
4274 * config/tc-alpha.c (assemble_tokens): Protect use of
4275 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4276
4277 * write.c (size_seg): Check adjustment to last frag.
4278 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4279 section alignment.
4280 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4281 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4282 (write_object_file): Invoke md_do_align if available, and use
4283 frag_align_code on text sections.
4284 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4285 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4286 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4287 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4288 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4289 BFD_ASSEMBLER too.
4290
4291 2002-05-22 H.J. Lu <hjl@gnu.org>
4292
4293 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4294 for source file.
4295
4296 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4297
4298 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4299 as ELF builds.
4300
4301 2002-05-22 H.J. Lu <hjl@gnu.org>
4302
4303 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4304 for one .loc for compiler.
4305
4306 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4307
4308 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4309 embedded-PIC.
4310
4311 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4312
4313 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4314 Optimize the rotate by zero case.
4315
4316 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4317
4318 * configure.in: Remove accidental enabling of bfd_gas=yes for
4319 sh-coff targets.
4320 * configure: Regenerate.
4321
4322 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4323
4324 * app.c: Fix formatting.
4325 * as.c: Likewise.
4326 * ehopt.c: Likewise.
4327 * expr.c: Likewise.
4328 * input-file.c: Likewise.
4329 * listing.c: Likewise.
4330 * macro.h: Likewise.
4331 * stabs.c: Likewise.
4332 * symbols.c: Likewise.
4333
4334 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4335
4336 * config/obj-generic.c: Delete file.
4337 * config/obj-generic.h: Likewise.
4338
4339 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4340
4341 * config/tc-avr.c (mcu_types): Update for new devices.
4342
4343 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4344
4345 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4346
4347 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4348
4349 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4350 worked sometimes by accident. Fix copy&paste comment.
4351
4352 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4353
4354 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4355 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4356 (mips_elf_final_processing): Let n32 use .reginfo.
4357
4358 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4359
4360 * config/tc-mips.c (append_insn): Fix too small range of variable.
4361
4362 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4363
4364 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4365 listing_prev_line().
4366
4367 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4368
4369 * config/tc-arm.c (md_assemble): Remove redundant call to
4370 listing_prev().
4371
4372 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4373 loc_directive_seen.
4374
4375 * stabs.c (s_stab_generic): Fix grammatical error in warning
4376 message.
4377
4378 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4379
4380 * write.c (subsegs_finish): Don't specially align last subseg.
4381
4382 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4383
4384 * stabs.c (s_stab_generic): Warn about a description field that is
4385 too big.
4386
4387 * config/obj-coff.c: Fix compile time warnings when compiling
4388 without BFD_ASSEMBLER defined.
4389 Fix formatting.
4390
4391 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4392 target.
4393 (md_pcrel_from_section): Use md_pcrel_from().
4394
4395 2002-05-11 Bruno Haible <bruno@clisp.org>
4396
4397 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4398 by dwarf2_directive_loc, instead of calling dwarf2_where.
4399
4400 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4401
4402 * config/obj-coff.h: Fix formatting.
4403 * config/tc-mcore.c: Likewise.
4404 * config/tc-mn10300.c: Likewise.
4405 * config/tc-openrisc.c: Likewise.
4406 * config/tc-or32.c: Likewise.
4407 * config/tc-pdp11.c: Likewise.
4408 * config/tc-ppc.c: Likewise.
4409 * config/tc-ppc.h: Likewise.
4410 * config/tc-sh64.c: Likewise.
4411 * config/tc-sh.c: Likewise.
4412 * config/tc-tic54x.c: Likewise.
4413 * config/tc-xstormy16.c: Likewise.
4414 * config/tc-xstormy16.h: Likewise.
4415
4416 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4417
4418 * config/obj-coff.c: Fix formatting.
4419 * config/obj-elf.c: Likewise.
4420 * config/tc-alpha.c: Likewise.
4421 * config/tc-arm.c: Likewise.
4422 * config/tc-d10v.c: Likewise.
4423 * config/tc-d30v.c: Likewise.
4424 * config/tc-h8300.c: Likewise.
4425 * config/tc-hppa.c: Likewise.
4426
4427 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4428
4429 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4430 reloc when no_cond_jump_promotion.
4431
4432 2002-05-08 Jim Wilson <wilson@redhat.com>
4433
4434 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4435 current variable part of frag.
4436
4437 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4438
4439 * config/tc-mmix.c: Fix formatting.
4440 * config/tc-mmix.h: Likewise.
4441
4442 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4443
4444 * configure: Regenerate.
4445
4446 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4447
4448 * config/tc-m68k.c: Fix formatting.
4449
4450 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4451
4452 * Makefile.am: Honour DESTDIR.
4453 * Makefile.in: Regenerate.
4454
4455 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4456
4457 * config/tc-ia64.c: Fix formatting.
4458 * config/tc-ia64.h: Likewise.
4459
4460 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4461
4462 * config/tc-mips.c: Fix formatting.
4463 * config/tc-s390.c: Likewise.
4464 * config/tc-s390.h: Likewise.
4465
4466 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4467
4468 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4469 information for instructions.
4470
4471 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4472
4473 * as.h: Fix formatting.
4474 * cgen.c: Likewise.
4475 * cgen.h: Likewise.
4476 * dwarf2dbg.c: Likewise.
4477 * frags.h: Likewise.
4478 * gasp.c: Likewise.
4479 * macro.c: Likewise.
4480 * read.c: Likewise.
4481 * stabs.c: Likewise.
4482 * symbols.c: Likewise.
4483
4484 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4485
4486 * app.c (mri_pseudo): Only declare for TC_M68K.
4487
4488 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4489 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4490 BFD_RELOC_16_BASEREL.
4491 (md_assemble): Likewise.
4492 (md_apply_fix3): Likewise.
4493
4494 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4495
4496 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4497 zero into an add of zero - it is not the same.
4498
4499 2002-05-01 Arati Dikey <aratid@kpit.com>
4500
4501 * tc-sh.c (get_specific): Generate warning if the same
4502 destination register is used in parallel instructions.
4503
4504 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4505
4506 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4507
4508 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4509
4510 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4511 backwards to prevent cascading errors.
4512
4513 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4514
4515 * configure.in: Add support for powerpc-*-windiss.
4516 * configure: Regenerated.
4517
4518 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4519
4520 * config/tc-s390.c (md_parse_option): Formatting.
4521
4522 * config/tc-i386.c: Formatting fixes, add missing space in error
4523 message.
4524
4525 2002-04-24 Christian Groessler <chris@groessler.org>
4526
4527 * config/tc-z8k.c (build_bytes): Add support for new cases:
4528 CLASS_IGNORE and ARG_NIM4.
4529 (md_assemble): Prevent destruction of input_line_pointer if
4530 get_operands returns failure.
4531
4532 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4533
4534 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4535 instructions to be generated by macros.
4536
4537 2002-04-24 Andreas Schwab <schwab@suse.de>
4538
4539 * config/tc-i386.c (output_jump, output_disp)
4540 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4541 more.
4542 (md_apply_fix3): Remember addend value for rela relocations.
4543 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4544
4545 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4546
4547 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4548 from previous change.
4549
4550 2002-04-22 Eric Christopher <echristo@redhat.com>
4551
4552 * config/tc-mips.c (macro_build): Add warning if macro instructions
4553 are expanded into a branch delay slot.
4554
4555 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4556
4557 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4558 numbers, gdb relies on them to detect the start of the prologue.
4559
4560 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4561
4562 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4563 symbols in merge sections.
4564
4565 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4566
4567 * as.c (main): Don't reference _bfd_chunksize.
4568
4569 2002-04-15 Tom Rix <trix@redhat.com>
4570
4571 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4572 symbols in merge sections.
4573
4574 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4575
4576 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4577 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4578 argument for the precision.
4579 (gen_to_words): Update accordingly.
4580
4581 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4582
4583 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4584 BFD_VERSION_STRING unavailable.
4585 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4586
4587 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4588
4589 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4590 symbol_used_in_reloc_p is true.
4591
4592 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4593 endian hosts.
4594
4595 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4596
4597 * dep-in.sed: Cope with absolute paths.
4598 * Makefile.am (dep.sed): Subst TOPDIR.
4599 Run "make dep-am".
4600 * Makefile.in: Regenerate.
4601
4602 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4603
4604 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4605 (mips_ip): Remove unused variable.
4606 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4607 unsigned char with bfd_byte.
4608 (s_file): Remove unused variable.
4609 (s_mips_ent): Likewise.
4610
4611 2002-04-03 Tom Rix <trix@redhat.com>
4612
4613 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4614 (build_insn): Same.
4615 (find_opcode): Fix warning in as_warn.
4616 * config/tc-d10v.h: Update Copyright.
4617
4618 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4619 Tom Rix <trix@redhat.com>
4620
4621 From Jeff Knaggs <jknaggs@redhat.com>
4622 * config/tc-d10v.c (check_resource_conflict): New function to
4623 check for resource conflicts.
4624
4625 From Jason Eckhardt <jle@redhat.com>
4626 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4627 imm3 fields.
4628 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4629 reserved control registers is used.
4630 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4631 imm3 fields.
4632
4633 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4634 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4635 instruction cannot be packed.
4636
4637 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4638 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4639 write-write conflicts.
4640 (md_assemble): Reformat introductory comment.
4641 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4642 arguments.
4643
4644 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4645
4646 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4647 O_logical_not>): Derive final_seg from add_symbol.
4648 <O_multiply..O_logical_or>: More final_seg twiddles.
4649
4650 2002-04-01 Jessica Han <jessica@cup.hp.com>
4651
4652 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4653 in 32-bit mode.
4654
4655 2002-03-27 Andreas Schwab <schwab@suse.de>
4656
4657 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4658 field for pc-relative fixups.
4659 (output_disp): Likewise.
4660 (md_estimate_size_before_relax): Likewise.
4661 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4662 pc-relative fixups in 64bit mode.
4663
4664 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4665
4666 * config/te-aix5.h: Typo fix.
4667
4668 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4669
4670 * Makefile.am: Run "make dep-am".
4671 * Makefile.in: Regenerate.
4672 * doc/Makefile.in: Regenerate.
4673
4674 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4675
4676 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4677 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4678
4679 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4680
4681 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4682 the EXTENDED bit here; report the estimate according to the
4683 current size.
4684
4685 2002-03-18 Tom Rix <trix@redhat.com>
4686
4687 * configure.in: Add AIX 5 support.
4688 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4689 * config/te-aix5.h: New file. AIX 5 support.
4690 * configure: Regenerate.
4691
4692 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4693
4694 * po/fr.po: Updated version.
4695
4696 2002-03-16 Andreas Jaeger <aj@suse.de>
4697
4698 * doc/c-mips.texi (Machine Dependencies): Add new node.
4699
4700 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4701
4702 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4703 (mips_opts): Initialize "ase_mips3d" member.
4704 (file_ase_mips3d): New variable.
4705 (CPU_HAS_MIPS3D): New macro.
4706 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4707 based on command line options and configuration defaults.
4708 (macro_build, mips_ip): Accept MIPS-3D instructions if
4709 mips_opts.ase_mips3d is set.
4710 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4711 Add support for "-mips3d" and "-no-mips3d" options.
4712 (OPTION_ELF_BASE): Move to accomodate new options.
4713 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4714 (mips_elf_final_processing): Add a comment indicating that a
4715 MIPS-3D ASE ELF header flag should be set, when one exists.
4716 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4717 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4718 nomips3d" directives.
4719
4720 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4721
4722 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4723 a weak symbol in same section to be within reach.
4724
4725 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4726
4727 * po/fr.po: Updated version.
4728
4729 2002-03-12 Andreas Schwab <schwab@suse.de>
4730
4731 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4732 body record so that an error is given for misplaced .save
4733 pseudo-ops.
4734
4735 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4736
4737 * config/tc-i386.h (REX_OPCODE): Define.
4738 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4739 (rex_byte): typedef to int.
4740 * config/tc-i386.c: Group prototypes and vars together.
4741 Formatting fixes. Remove occurrences of "register" keyword.
4742 (true): Delete.
4743 (false): Delete.
4744 (mode_from_disp_size): Add INLINE keyword to prototype.
4745 (fits_in_signed_byte): Likewise.
4746 (fits_in_unsigned_byte): Likewise.
4747 (fits_in_unsigned_word): Likewise.
4748 (fits_in_signed_word): Likewise.
4749 (fits_in_unsigned_long): Likewise.
4750 (fits_in_signed_long): Likewise.
4751 (type_names): Constify.
4752 (intel_float_operand): Constify param.
4753 (add_prefix): Use REX_OPCODE.
4754 (md_assemble): Likewise. Modify for changed rex_byte.
4755 (parse_insn): Split out of md_assemble.
4756 (parse_operands): Likewise.
4757 (swap_operands): Likewise.
4758 (optimize_imm): Likewise.
4759 (optimize_disp): Likewise.
4760 (match_template): Likewise.
4761 (check_string): Likewise.
4762 (process_suffix): Likewise.
4763 (check_byte_reg): Likewise.
4764 (check_long_reg): Likewise.
4765 (check_qword_reg): Likewise.
4766 (check_word_reg): Likewise.
4767 (finalize_imm): Likewise.
4768 (process_operands): Likewise.
4769 (build_modrm_byte): Likewise.
4770 (output_insn): Likewise.
4771 (output_branch): Likewise.
4772 (output_jump): Likewise.
4773 (output_interseg_jump): Likewise.
4774 (output_disp): Likewise.
4775 (output_imm): Likewise.
4776
4777 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4778
4779 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4780
4781 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4782
4783 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4784 relocs except when BFD64.
4785
4786 * write.c (number_to_chars_bigendian): Don't abort when N is
4787 larger than sizeof (VAL).
4788 (number_to_chars_littleendian): Likewise.
4789
4790 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4791
4792 * config/tc-hppa.c (md_apply_fix3): Add cast.
4793 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4794 e_rrsel.
4795
4796 2002-03-05 Paul Koning <pkoning@equallogic.com>
4797
4798 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4799 (parse_ac5): New function for parsing float regs in float operand.
4800 (parse_expression): Remove attempt to make literals be octal.
4801 (parse_op_no_deferred): Support float literals.
4802 (parse_op): Reject attempts to refer to float regs.
4803 (parse_fop): New function, like parse_op but for float operand.
4804 (md_assemble): Add cases to parse float operands. Also fix
4805 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4806
4807 2002-03-04 H.J. Lu <hjl@gnu.org>
4808
4809 * config/obj-elf.c (special_section): Add .init_array,
4810 .fini_array and .preinit_array.
4811
4812 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4813 .init_array and .fini_array.
4814
4815 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4816
4817 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4818 visibility.
4819 (obj_frob_symbol): Copy visibility.
4820
4821 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4822
4823 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4824 s_text.
4825 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4826
4827 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4828
4829 * po/es.po: Updated.
4830
4831 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4832
4833 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4834 only, undo the changes made on 2001-06-08, with the
4835 effect being that common or extern symbols are
4836 adjusted for embedded-PIC, but weak symbols are not.
4837 (md_estimate_size_before_relax: Likewise, with the effect
4838 that extern symbols are treated the same as weak symbols
4839 only if not embedded-PIC.
4840 (mips_fix_adjustable) Likewise, with the effect that
4841 weak or extern symbols are not adjusted for embedded-PIC.
4842 (md_apply_fix3): Tweak so that the case where value is zero
4843 is handled more correctly for embedded-PIC code.
4844
4845 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4846
4847 * doc/as.texinfo (Overview): Add missing @ifset IA64
4848
4849 * configure.in (LINGUAS): Add es.po.
4850 * configure: Regenerate.
4851 * po/es.po: New file.
4852
4853 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4854
4855 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4856 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4857 and NO_PIC cases. Code cleanup.
4858 (macro2): Fix handling of 64bit register loads.
4859
4860 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4861
4862 * doc/as.texinfo: Add entry for IA64.
4863 * doc/c-ia64.texi: New file.
4864
4865 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4866
4867 * config/tc-hppa.c: Update copyright date.
4868
4869 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4870 Remove references to chip manufacturers.
4871 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4872 Correct comments.
4873 (md_show_usage): Remove references to chip manufacturers. Mention
4874 -mpower4.
4875 (md_begin): Test power4 opcode flag bits.
4876
4877 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4878
4879 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4880 count exceeds prologue count.
4881 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4882 (unwind.label_prologue_count): New member.
4883
4884 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4885
4886 (get_saved_prologue_count): New function.
4887 (save_prologue_count): New function.
4888 (free_saved_prologue_count): New function.
4889 (dot_label_state): Record state label by calling save_prologue_count().
4890 (dot_copy_state): Restore prologue count by calling
4891 get_saved_prologue_count().
4892 (generate_unwind_image): Free up list of saved prologue
4893 counts by calling free_saved_prologue_counts().
4894
4895 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4896
4897 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4898 function declarations.
4899
4900 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4901
4902 * NEWS: Note that GASP is now deprecated.
4903 * Makefile.am: Do not build gasp-new by default.
4904 * Makefile.in: Regenerate.
4905 * doc/Makefile.am: Do not install gasp.info.
4906 * doc/Makefile.in: Regenerate.
4907 * gas/gasp.texi: Note that gasp is now deprecated.
4908
4909 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4910
4911 * NEWS: Mark 2.12 branch.
4912
4913 2002-02-19 Tom Tromey <tromey@redhat.com>
4914
4915 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4916
4917 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4918
4919 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4920 option input.
4921
4922 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4923
4924 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4925 Make bit size independent of architecture switch.
4926 (md_begin): Add warning for -m64 with -Aesa.
4927 (s390_md_end): Use renamed architecture defines.
4928
4929 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4930
4931 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4932
4933 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4934
4935 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4936 instead of CRIS.
4937
4938 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4939
4940 * config/tc-mips.c (md_estimate_size_before_relax): Really
4941 make sure we treat weak like extern only for ELF. (Fixes
4942 patch from 2001-07-25.)
4943
4944 2002-02-15 Ben Elliston <bje@redhat.com>
4945
4946 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4947 works as expected.
4948
4949 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4950
4951 * NEWS: Mention support for MMIX.
4952
4953 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4954
4955 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4956 a sequence of indpendent 'if' statements for easier debugging
4957 and future modification.
4958
4959 2002-02-13 Matt Fredette <fredette@netbsd.org>
4960
4961 * config/tc-m68k.c (md_show_usage): No longer display a
4962 hard-coded "68020" for the default CPU, instead display the
4963 canonical name of the true, configured default CPU.
4964 (m68k_elf_final_processing): Mark objects for sub-68020
4965 CPUs with the new EF_M68000 flag.
4966
4967 2002-02-13 Andreas Schwab <schwab@suse.de>
4968
4969 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4970 pc-relative relocations to merge sections in 64-bit mode.
4971
4972 2002-02-13 Ben Elliston <bje@redhat.com>
4973
4974 * NEWS: Document floating point number handling in gasp.
4975 * gasp.c: Include <assert.h> and "xregex.h".
4976 (is_flonum): New function.
4977 (chew_flownum): Likewise.
4978 (change_base): Consume flonums from the input, where possible.
4979 * doc/gasp.texi (Constants): Document floating point numbers.
4980
4981 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4982
4983 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4984 that implicitly use LR and RR selectors.
4985
4986 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4987
4988 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4989 and `epsw' as available on AM33 and above only.
4990 (other_register_name): Add logic to handle machine type encoded in
4991 reg_number.
4992
4993 2002-02-11 Tom Rix <trix@redhat.com>
4994
4995 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4996 xcoff64.
4997
4998 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4999
5000 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5001 Use all over.
5002
5003 2002-02-11 Jan Hubicka <jh@suse.cz>
5004
5005 * i386.c (md_assemble): Support 32bit address prefix.
5006 (i386_displacement): Likewise.
5007 (i386_index_check): Accept 32bit addressing in 64bit mode.
5008
5009 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5010
5011 * config/tc-sh.c (dot): Removed unused function.
5012
5013 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5014
5015 * Makefile.am: "make dep-am".
5016 * Makefile.in: Regenerate.
5017 * aclocal.m4: Regenerate.
5018 * config.in: Regenerate.
5019 * configure: Regenerate.
5020 * doc/Makefile.in: Regenerate.
5021
5022 2002-02-10 Richard Henderson <rth@redhat.com>
5023
5024 * doc/c-alpha.texi: New file.
5025 * doc/Makefile.am (CPU_DOCS): Add it.
5026 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5027
5028 2002-02-09 Richard Henderson <rth@redhat.com>
5029
5030 * config/tc-alpha.c (O_samegp): New.
5031 (USER_RELOC_P): Include it.
5032 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5033 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5034 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5035 (alpha_validate_fix): New.
5036 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5037
5038 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5039
5040 * doc/c-cris.texi: New.
5041 * doc/all.texi: @set CRIS.
5042 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5043 Include c-cris.texi.
5044 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5045 * doc/Makefile.in: Regenerate.
5046
5047 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5048
5049 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5050 determine if a number is a sign-extended 32-bit number.
5051 (load_register): Use IS_SEXT_32BIT_NUM.
5052 (macro): Check if load/store macro handling is using a
5053 constant 32-bit address on 64-bit address systems, and if
5054 so optimize the generation of that address.
5055
5056 2002-02-08 Richard Henderson <rth@redhat.com>
5057
5058 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5059 we've eliminated all foreign relocation types yet.
5060 (alpha_fix_adjustable): Likewise.
5061
5062 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5063
5064 Contribute sh64-elf.
5065 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5066 Stephen Clarke <Stephen.Clarke@st.com>
5067 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5068 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5069 * config/tc-sh.c (md_relax_table): Added default sizes for
5070 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5071 MOVI_16, MOVI_32 and MOVI_48.
5072 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5073 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5074 and MOVI_16.
5075 (shmedia_md_estimate_size_before_relax): Remove redundant
5076 blocks. Set fragP->fr_var even if relaxation type unchanged.
5077 Retain UNDEF_MOVI until expression decays to number.
5078 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5079 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5080 relocation types. Take fixP->fx_addnumber into account too.
5081 (shmedia_md_apply_fix): Likewise.
5082 (shmedia_md_convert_frag): Likewise.
5083 (shmedia_build_Mytes): Likewise.
5084 (sh64_consume_datalabel): Complain about nested datalabel.
5085 Support PIC relocs. Call sh_parse_name.
5086 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5087 in tc-sh.h to SHmedia reloc types.
5088 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5089 MOVI_GOTPC): New relaxation constants.
5090 (md_relax_table): Introduce relaxation directives for PIC-related
5091 constants.
5092 (sh_PIC_related_p): Handle datalabel.
5093 (sh_check_fixup): Choose SH5 PIC relocations.
5094 (sh_cons_fix_new): Added BDF_RELOC_64.
5095 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5096 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5097 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5098 current ISA is SHmedia, get 7 bytes.
5099 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5100 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5101 void function.
5102 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5103 shmedia_apply_fix3 and make void.
5104 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5105 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5106 as_bad.
5107 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5108 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5109 2001-03-14 DJ Delorie <dj@redhat.com>
5110 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5111 * doc/Makefile.in(CPU_DOCS): Ditto.
5112 * doc/c-sh64.texi: New file.
5113 * doc/as.texinfo: Add SH64 support.
5114 2001-03-13 DJ Delorie <dj@redhat.com>
5115 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5116 A_REUSE_PREV so that its purpose is more obvious.
5117 (shmedia_build_Mytes): Ditto.
5118 2001-03-07 DJ Delorie <dj@redhat.com>
5119 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5120 before processing.
5121 (sh64_vtable_inherit): Ditto.
5122 (strip_datalabels): New, strip "datalabel" from given line.
5123 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5124 pseudos.
5125 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5126 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5127 call ...
5128 (shmedia_build_Mytes): ... to here.
5129 2001-03-06 DJ Delorie <dj@redhat.com>
5130 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5131 is a generic one.
5132 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5133 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5134 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5135 address by one in call to dwarf2_emit_insn.
5136 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5137 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5138 alignment handling broken by imported changes.
5139 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5140 (sh64_handle_align): Declare.
5141 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5142 (sh64_max_mem_for_rs_align_code): Declare.
5143 (enum sh64_isa_values): Moved here from tc-sh64.c.
5144 (md_do_align): Define.
5145 (sh64_do_align): Declare.
5146 (struct sh64_tc_frag_data): New.
5147 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5148 changed.
5149 (TC_FRAG_INIT): Change to set new datatype.
5150 (struct sh64_segment_info_type): Rename member
5151 last_flushed_location to last_contents_mark. All users changed.
5152 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5153 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5154 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5155 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5156 of unsetting seen_insn.
5157 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5158 call sh64_update_contents_mark.
5159 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5160 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5161 enum sh64_isa_values.
5162 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5163 (emitting_crange): Boolean guard moved to file scope from function
5164 scope in sh64_set_contents_type.
5165 (s_sh64_abi): New.
5166 (sh64_update_contents_mark): New; most split out from
5167 sh64_flush_pending_output.
5168 (shmedia_md_end): Call sh64_update_contents_mark. Set
5169 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5170 (sh64_do_align): New function.
5171 (sh64_max_mem_for_rs_align_code): New function.
5172 (sh64_handle_align): Rename from shmedia_do_align. Make
5173 non-static. Add head comment. Emit zero bytes for n bytes modulo
5174 four. Change return-type to void.
5175 (shmedia_elf_new_section): Remove.
5176 (shmedia_md_assemble): Call sh64_update_contents_mark.
5177 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5178 new frag. Call sh64_update_contents_mark after making the new
5179 frag.
5180 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5181 and sh_flush_pending_output.
5182 (sh64_flag_output): Also call md_flush_pending_output, but add
5183 condition on not emitting_crange.
5184 (sh64_tc_cons_fix_new): Remove.
5185 2001-01-12 Nick Clifton <nickc@redhat.com>
5186 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5187 alignment handling scheme imported from sourceware.
5188 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5189 * config/tc-sh64.h (TARGET_FORMAT): Define.
5190 (sh64_target_format): Prototype.
5191 * config/tc-sh64.c (sh64_target_mach): New function.
5192 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5193 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5194 zero_address_frag instead of copying the frag of the symbol.
5195 (shmedia_frob_file_before_adjust): Ditto.
5196 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5197 to valueT to remove signedness.
5198 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5199 headers to output_bfd. Do not evaluate symbols if final is false;
5200 do emit fixups.
5201 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5202 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5203 to the current frag, call shmedia_md_convert_frag to emit fixups
5204 and make frag_wane neutralize the frag. Update comments.
5205 * config/tc-sh.c (md_convert_frag): Change caller of
5206 shmedia_md_convert_frag.
5207 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5208 * config/tc-sh64.h: Tweak comments and correct formatting.
5209 * config/tc-sh64.c: Ditto.
5210 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5211 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5212 for the no-relocation case.
5213 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5214 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5215 wrappers.
5216 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5217 comment.
5218 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5219 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5220 expansion.
5221 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5222 Correct comment.
5223 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5224 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5225 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5226 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5227 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5228 if reloc is emitted.
5229 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5230 New options plus bugfixes.
5231 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5232 "-expand-pt32".
5233 (md_parse_option): Handle new options.
5234 (md_show_usage): Add blurb for new options.
5235 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5236 (sh64_expand, sh64_pt32): New variables.
5237 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5238 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5239 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5240 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5241 <resolved previously-pc-relative relocs>: Handle
5242 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5243 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5244 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5245 points to SHcompact code.
5246 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5247 SH64PCREL16)>: Check that ISA of what operand points at and
5248 PTA/PTB matches, or emit error.
5249 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5250 SHMEDIA_BFD_RELOC_PT.
5251 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5252 operand.
5253 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5254 condition for MOVI expansion.
5255 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5256 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5257 sh64_expand.
5258 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5259 fixup.
5260 (sh64_target_format): Error-check setting of sh64_pt32 and
5261 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5262 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5263 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5264 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5265 * config/tc-sh64.c: Improve comments.
5266 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5267 not say the linker will check correctness of PTA/PTB expansion.
5268 (shmedia_md_end): Make non-static.
5269 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5270 prototype.
5271 * config/tc-sh.c (sh_finalize): Remove.
5272 * config/tc-sh.h (md_end): Do not define.
5273 Remove prototype for sh_finalize.
5274 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5275 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5276 sh64_section_data container when storing section type in tdata
5277 field in elf_section_data.
5278 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5279 EF_SH5.
5280 * Makefile.am: Update dependencies.
5281 * Makefile.in: Regenerate.
5282 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5283 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5284 dwarf2_emit_insn call with test on debug_type.
5285 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5286 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5287 CRT_SH5_ISA32 sticky for 64-bit.
5288 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5289 Generate .crange sections when switching ISA mode or emitting
5290 constants in same section as code.
5291 * config/tc-sh64.c: Reformat structure definitions.
5292 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5293 variables.
5294 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5295 to emit a .cranges descriptor when contents type changes. Only
5296 emit error if changing contents type and -no-mix is in effect.
5297 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5298 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5299 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5300 sh64_flush_last_crange over sections.
5301 When checking main symbol of datalabel symbol, check for
5302 STO_SH5_ISA32, not ISA type of section in definition.
5303 (shmedia_frob_file_before_adjust): Check main symbol for
5304 STO_SH5_ISA32; don't check ISA type of section in definition.
5305 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5306 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5307 .cranges entries have been output.
5308 (shmedia_elf_new_section): Just call md_flush_pending_output.
5309 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5310 fix. Do not set tc_segment_info_data.in_code for section. Call
5311 sh64_set_contents_type for SHmedia code.
5312 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5313 false. Call md_flush_pending_output.
5314 (sh64_target_format): Check that -no-mix and
5315 -shcompact-const-crange are used in sane combination with other
5316 options.
5317 (shmedia_md_pcrel_from_section): Check type of fix for how to
5318 adjust pc-relative.
5319 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5320 not ISA type of section in definition.
5321 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5322 hold contents-type state.
5323 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5324 (sh64_flush_pending_output): Declare.
5325 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5326 (sh64_tc_cons_fix_new): Declare.
5327 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5328 call sh64_flag_output.
5329 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5330 call sh64_set_contents_type to mark SHcompact code and set
5331 seen_insn.
5332 (md_longopts): New options "-no-mix" and
5333 "-shcompact-const-crange".
5334 (md_parse_option): Handle new options.
5335 (md_show_usage): Add blurb for new options.
5336 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5337 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5338 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5339 (sh64_last_insn_frag): New.
5340 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5341 to get frag for insn opcode for generating fixups; do not assume it
5342 is the same frag.
5343 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5344 for new insn.
5345 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5346 section.
5347 (TC_FRAG_TYPE): Define as fragS *.
5348 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5349 (sh64_last_insn_frag): Declare.
5350 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5351 not == NULL before dereferencing.
5352 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5353 Get rid of BFD section flag and EF_SH64_ABI64.
5354 * config/tc-sh64.c (shmedia_frob_section_type): Use
5355 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5356 communicate the section as containing SHmedia code. Describe why.
5357 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5358 EF_SH64 regardless of ABI.
5359 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5360 in error message. Handle resolved expressions for
5361 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5362 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5363 (shmedia_check_limits): Handle BFD_RELOC_64.
5364 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5365 a STO_SH5_ISA32 symbol, only the BFD value.
5366 2000-12-11 Ben Elliston <bje@redhat.com>
5367 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5368 dwarf2_generate_asm_lineno.
5369 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5370 Handle PC-relative MOVI expansions with assembler relaxation.
5371 Generate PC-relative relocs from 16-bit PC-relative expressions.
5372 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5373 (shmedia_md_pcrel_from_section): ...here.
5374 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5375 turned completely resolved. Adjust relocation type for 16-bit
5376 immediate operands that has turned PC-relative. Adjust back for
5377 MD_PCREL_FROM_SECTION being applied twice.
5378 (shmedia_md_convert_frag): Always emit reloc for expression with
5379 global or weak symbol. Handle relaxation result for PC-relative
5380 expressions.
5381 (shmedia_md_estimate_size_before_relax): An expression with a weak
5382 or global symbol can not be relaxed. Break out tests for
5383 relaxable symbol into variable sym_relaxable.
5384 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5385 UNDEF_MOVI)>: Break out any PC-relative expression and change
5386 relaxation type.
5387 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5388 opjp.
5389 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5390 MOVI expansion. If X_op_symbol of the immediate expression is
5391 set, make an expression symbol for the argument to frag_var.
5392 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5393 relaxations.
5394 (END): Adjust for new relaxations.
5395 (md_relax_table): Add entries for new relaxations.
5396 2000-12-07 Ben Elliston <bje@redhat.com>
5397 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5398 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5399 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5400 SHORI operand offsets in PT/PTA/PTB expansions.
5401 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5402 Implement DataLabel semantics.
5403 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5404 shmedia_frob_file_before_adjust.
5405 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5406 (DATALABEL_SUFFIX): Define.
5407 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5408 symbol list to update "datalabel" symbols to their main symbol
5409 counterparts.
5410 (shmedia_frob_file_before_adjust): New.
5411 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5412 undefined and set STT_DATALABEL.
5413 (sh64_frob_label): Initialize TC symbol field.
5414 (sh64_consume_datalabel): Actually implement semantics. New
5415 parameter operandf, call it instead of expression.
5416 (sh64_exclude_symbol): New.
5417 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5418 to sh64_consume_datalabel.
5419 (tc_symbol_new_hook): Define to tc_frob_symbol.
5420 (TC_SYMFIELD_TYPE): Define to symbolS *.
5421 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5422 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5423 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5424 case.
5425 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5426 generating dwarf2 debug information.
5427 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5428 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5429 elf64-sh64 for the 64-bit ABI.
5430 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5431 option.
5432 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5433 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5434 case-insensitivity.
5435 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5436 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5437 (enum sh64_abi_values): New type.
5438 (enum sh64_isa_values): New type.
5439 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5440 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5441 (sh64_abi): Replace shmedia_64.
5442 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5443 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5444 (s_sh64_mode): Check validity for this target.
5445 (sh64_target_format): Initialize defaults for ISA and ABI.
5446 Fallback to old object format if no SH64 ISA or ABI has been
5447 specified.
5448 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5449 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5450 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5451 * config/tc-sh64.h: Fix typo in comment.
5452 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5453 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5454 <PT fixups for absolute values>: Size will be longest, not
5455 shortest.
5456 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5457 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5458 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5459 and l1 to hold lowercase of two first characters. Change all
5460 remaining TO_LOWER to tolower.
5461 * config/tc-sh64.c (TO_LOWER): Delete.
5462 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5463 (md_parse_name): Define.
5464 (sh64_consume_datalabel): Declare.
5465 (DOLLAR_DOT): Define.
5466 * config/tc-sh64.c (shmedia_parse_exp): New.
5467 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5468 (shmedia_parse_reg): Remove const from src
5469 parameter.
5470 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5471 (shmedia_md_assemble): Ditto for op_end variable.
5472 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5473 Use shmedia_parse_exp, not parse_exp.
5474 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5475 parameter. All callers changed.
5476 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5477 callers changed.
5478 (shmedia_parse_reg): Put first two character in local variables.
5479 Use tolower, not TO_LOWER. If no register is found and argtype
5480 indicates a control register, scan shmedia_creg_table
5481 case-insensitive.
5482 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5483 * Makefile.am (CPU_TYPES): Add sh64.
5484 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5485 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5486 Regenerate dependencies.
5487 * Makefile.in: Regenerate.
5488 * configure.in: Add support for sh64-*-elf*.
5489 * configure: Regenerate.
5490 * config/tc-sh64.h: New.
5491 * config/tc-sh64.c: New.
5492 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5493 .mode, .isa and .uaquad.
5494 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5495 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5496 [HAVE_SH64] (END): Define as 10.
5497 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5498 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5499 MOVI_64): Define.
5500 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5501 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5502 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5503 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5504 Define.
5505 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5506 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5507 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5508 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5509 SHmedia instructions. Handle state-change after switching to
5510 SHcompact.
5511 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5512 (md_parse_option) [HAVE_SH64]: Parse new options.
5513 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5514 (md_convert_frag) [HAVE_SH64] <default>: Call
5515 shmedia_md_convert_frag instead of abort.
5516 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5517 BFD_RELOC_SH_SHMEDIA_CODE.
5518 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5519 SHcompact or SHmedia code.
5520 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5521 shmedia_md_apply_fix instead of abort.
5522 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5523 result from calling shmedia_md_estimate_size_before_relax instead
5524 of calling abort.
5525 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5526 do the work.
5527 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5528 shmedia_init_reloc and do nothing more if it returns non-zero.
5529 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5530 * po/POTFILES.in: Regenerate.
5531 * po/gas.pot: Regenerate.
5532
5533 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5534
5535 * config/tc-sh.c (parse_at): Install the correct version of
5536 2002-02-04's patch.
5537
5538 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5539 assume fixP->fx_subsy is non-NULL.
5540
5541 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5542
5543 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5544 A_DISP_PC_ABS, and adjust it by -4.
5545 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5546 expected.
5547 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5548 the operand type is not A_DISP_PC_ABS.
5549
5550 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5551
5552 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5553 common and weak symbols. Handle common and weak symbols as
5554 undefined symbols with regards to GREG handling and merging.
5555 (mmix_frob_file): Ditto.
5556
5557 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5558
5559 * configure.in (hppa-*-netbsd*): New target.
5560 * configure: Regenerate.
5561 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5562
5563 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5564
5565 * config/tc-v850.c: Add missing prototypes amd use old-style
5566 function definitions.
5567 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5568 (sdata_section tdata_section, zdata_section, sbss_section,
5569 tbss_section, zbss_section, rosdata_section, rozdata_section,
5570 scommon_section, tcommon_section, zcommon_section,
5571 call_table_data_section, call_table_text_section): Delete.
5572 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5573 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5574 v850_call_table_data, v850_call_table_text): Delete.
5575 (struct v850_seg_entry): New.
5576 (v850_seg_table): New.
5577 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5578 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5579 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5580 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5581 (do_v850_seg): New.
5582 (v850_seg): New.
5583 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5584 recording of alignment.
5585 (md_pseudo_table): Use v850_seg.
5586 (md_begin): Don't init .call_table_data and .call_table_text here.
5587 Set v850_seg_table bss entry.
5588
5589 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5590
5591 Support on-demand global register allocation by passing on
5592 base-plus-offset relocs to the linker.
5593 * config/tc-mmix.c: Tweak and fix typos in comments.
5594 (allocate_undefined_gregs_in_linker): New variable.
5595 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5596 (md_longopts): Add --linker-allocated-gregs.
5597 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5598 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5599 (md_show_usage): Update text for -x. Add text for
5600 --linker-allocated-gregs.
5601 (tc_gen_reloc): Derive default value for addend from val and
5602 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5603 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5604 GREG if allocate_undefined_gregs_in_linker.
5605 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5606 --linker-allocated-gregs.
5607 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5608 --linker-allocated-gregs. Mention that it's implied by -x.
5609 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5610 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5611
5612 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5613
5614 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5615
5616 * Makefile.am: Run "make dep-am"
5617 * Makefile.in: Regenerate.
5618
5619 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5620
5621 * config/tc-or32.c: New file.
5622 * config/tc-or32.h: New file.
5623 * configure.in: Add support for or32 targets.
5624 * configure: Regenerate.
5625 * config/obj-coff.c: Add support for or32 targets.
5626 * config/obj-coff.h: Add support for or32 targets.
5627 * Makefile.am: Add support for or32 targets.
5628 * Makefile.in: Regenerate.
5629 * NEWS: Mention support for OpenRISC.
5630 * doc/Makefile.in: Regenerate.
5631 * po/POTFILES.in: Regenerate.
5632 * po/gas.pot: Regenerate.
5633
5634 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5635
5636 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5637 and mod.
5638
5639 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5640
5641 * config/tc-mips.c (tc_gen_reloc): Arrange for
5642 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5643 their LO16 parts, even for ELF.
5644
5645 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5646
5647 * config/tc-i386.c: Protect definitions of true and false
5648 from redefinition.
5649
5650 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5651
5652 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5653 made because of .weak, if they are neither defined nor used in any
5654 way.
5655
5656 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5657
5658 * configure: Regenerated.
5659
5660 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5661
5662 * doc/Makefile.am (install): Depend on install-info.
5663 * doc/Makefile.in: Regenerate.
5664
5665 2002-01-26 Nick Clifton <nick@redhat.com>
5666
5667 * po/fr.po: Updated version
5668
5669 2002-01-24 Kazu Hirata <kazu@hxi.com>
5670
5671 * config/tc-h8300.c (check_operand): Don't print a warning
5672 when a valid 24-bit address is given to a 16-bit address
5673 operand.
5674
5675 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5676
5677 * config/tc-sh.c (sh_elf_suffix): Removed.
5678 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5679 sh_end_of_match, sh_parse_name): New functions.
5680 (sh_elf_cons): Simplify.
5681 (parse_exp): Reject misplaced PIC operands.
5682 (md_undefined_symbol): Simplify.
5683 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5684 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5685 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5686 Complain if subsy remains at the end.
5687 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5688 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5689
5690 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5691
5692 * config/tc-mn10300.c (xr_registers): Move `pc'...
5693 (other_registers): ... here.
5694
5695 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5696
5697 * Makefile.am: Run "make dep-am".
5698 * Makefile.in: Regenerate.
5699 * gas/po/POTFILES.in: Regenerate.
5700
5701 2002-01-21 DJ Delorie <dj@redhat.com>
5702
5703 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5704 stabstr_name allocation permanent, as it will be referenced from
5705 the section hash.
5706
5707 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5708
5709 * configure.in (ia64-*-netbsd*): New target.
5710 * configure: Regenerate.
5711
5712 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5713
5714 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5715 to @dots call.
5716 <Detailed description, ARM options>: Ditto.
5717 * doc/c-arm.texi (ARM Options): Ditto.
5718
5719 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5720
5721 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5722 do_mia, do_mar and do_mra respectively.
5723 (do_mav_*): Renamed from do_c_*.
5724 (mav_reg_required_here, mav_parse_offset): Renamed from
5725 cirrus_reg_required_here and cirrus_parse_offset respectively.
5726 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5727
5728 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5729 Keith Walker <keith.walker@arm.com>
5730
5731 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5732 (insns): Add pattern for bxj instruction.
5733 (do_bxj): New function.
5734 (arm_cpus): Add arm926ej.
5735 (arm_archs): Add armv5tej.
5736
5737 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5738
5739 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5740
5741 2002-01-19 Keith Walker <keith.walker@arm.com>
5742
5743 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5744
5745 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5746
5747 * NEWS: Mention new ARM command-line options and VFP support.
5748
5749 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5750 uses changed.
5751 (ARM_CEXT_MAVERICK): Similarly.
5752 (ARM_ANY): Now means any core instruction.
5753 (CPU_DEFAULT): Default to ARM_ANY.
5754 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5755 (pic_code): Declare for all object types. Make type int.
5756 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5757 (march_fpu_opt, mfpu_opt): Declare.
5758 (md_longopts): Tidy up conditional definitions.
5759 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5760 (arm_long_opts): New tables.
5761 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5762 (arm_parse_extension): New function.
5763 (md_parse_option): Rewrite using new table-driven system.
5764 (md_show_usage): Use new table-driven system.
5765 (md_begin): Calculate cpu_variant from command line option data.
5766 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5767 command-line options.
5768 * doc/c-arm.texi: Likewise.
5769
5770 2002-01-18 Andreas Jaeger <aj@suse.de>
5771
5772 * as.c (parse_args): Update year.
5773
5774 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5775
5776 * config/tc-tic54x.c (encode_address): Add a more informative
5777 warning about incorrect syntax.
5778
5779 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5780
5781 * po/gas.pot: Regenerate.
5782
5783 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5784
5785 * macro.c (get_any_string): Add no-c-format comment to prevent
5786 confusion when translating string.
5787 * gasp.c (get_any_string): Add no-c-format comment to prevent
5788 confusion when translating string.
5789
5790 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5791 Johannes Stezenbach <js@convergence.de>
5792 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5793 matched before the shorter ones.
5794 (my_getSmallParser): Fix handling of nested parentheses in
5795 percent_op's. Code cleanup.
5796 (my_getPercentOp): New function, code from my_getSmallParser.
5797 (my_getSmallExpression): Fix handling of closing parentheses.
5798 Code cleanup. Better comments.
5799
5800 2002-01-16 Nick Clifton <nickc@redhat.com>
5801
5802 po/tr.po: New file: Turkish translation.
5803 configure.in (LINGUAS): Add "tr".
5804 configure: Regenerate.
5805
5806 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5807
5808 Support for VFP instructions
5809 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5810 (cp_address_required_here): New argument wb_ok. When false, do not
5811 accept write-back forms of addressing. Change all callers.
5812 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5813 (FPU_VFP_EXT_V2): Define.
5814 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5815 Define in terms of above.
5816 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5817 (vfp_reg): New struct.
5818 (vfp_regs): New array of registers.
5819 (insns): Add VFP instructions.
5820 (sn_table): New array of VFP single-precision register names.
5821 (dn_table): New array of VFP double-precision register names.
5822 (all_reg_maps): Add the new register tables.
5823 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5824 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5825 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5826 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5827 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5828 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5829 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5830 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5831 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5832 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5833 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5834 (do_vfp_sp_dp_cvt): New functions.
5835 (md_begin): Set soft-float flag for appropriate VFP work.
5836 (md_atof): Handle VFP-format doubles.
5837 (md_parse_option): Handle VFP command-line options.
5838 (md_show_usage): Display VFP command-line options.
5839
5840 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5841
5842 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5843 various command line options.
5844
5845 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5846
5847 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5848 vtinherit relocs.
5849 (xstormy16_md_apply_fix3): Do not return a value.
5850
5851 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5852
5853 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5854 the -EL/-EB option that matches the target's endianness.
5855 (md_parse_option): Likewise.
5856
5857 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5858
5859 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5860 is not dependent on ARM_BI_ENDIAN.
5861
5862 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5863
5864 * tc-arm.c (all error messages): Normalize capitalization of messages.
5865
5866 * tc-arm.h (md_operand): Delete define.
5867 * tc-arm.c (in_my_get_expression): New static variable.
5868 (my_get_expression): Set and clear it.
5869 (md_operand): New function. If called from my_get_expression
5870 put the error in inst.error.
5871 (output_inst): Now takes argument of instruction being assembled.
5872 Print it out with any error message.
5873 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5874 with '=' syntax.
5875 (end_of_line): Don't update inst.error if it is already set.
5876
5877 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5878
5879 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5880 op that can be translated into a mvn instruction.
5881
5882 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5883
5884 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5885 setting default md.flags.
5886 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5887 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5888 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5889 for 32 bit unwind info blocks.
5890 (generate_unwind_image): Add support for different types
5891 of unwind images (32 bits and/or big-endian).
5892 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5893 (ia64_target_format): Add support for hpux target formats.
5894 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5895 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5896 SHT_FINI_ARRAY elf section types.
5897
5898 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5899
5900 * tc-arm.c (struct reg_entry): Move before prototypes.
5901 (int_register, cp_register, fp_register): Delete.
5902 (reg_table): Delete. Replaced with ...
5903 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5904 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5905 (mav_dspsc_table): ... one table per register set.
5906 (arm_reg_hsh): Delete.
5907 (struct reg_map): New structure.
5908 (all_reg_maps): New array.
5909 (enum arm_reg_type): New enums.
5910 (build_reg_hsh): New function.
5911 (insert_reg_alias): Use hash table passed by caller. Adjust all
5912 callers.
5913 (create_register_alias): New function, split out from ...
5914 (md_assemble): ... here.
5915 (md_begin): Build new register hash tables.
5916 (arm_reg_parse): New argument for the hash table to search. Adjust all
5917 callers.
5918 (arm_reg_parse_any): New function.
5919 (co_proc_number): Look up the processor number in the processor hash
5920 table.
5921 (cirrus_regtype): Delete.
5922 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5923 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5924 (ARM_EXT_MAVERICKsc_register): Delete.
5925 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5926 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5927 functions.
5928 (do_c_triple_4, do_c_triple_5): Delete.
5929 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5930 (do_c_quad_6): Delete.
5931 (do_c_quad_6[ab]): New functions.
5932 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5933 arguments to use new register parsing methods.
5934 (cirrus_reg_required_here): Likewise.
5935 (insns): Reclassify cirrus maverick worker functions.
5936 (cirrus_valid_reg): Delete.
5937
5938 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5939
5940 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5941 (sh*-*-netbsdelf*): New target.
5942 * configure: Regenerate.
5943 * tc-sh.h: Update copyright years.
5944 (TARGET_FORMAT): Add version for TE_NetBSD.
5945
5946 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5947
5948 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5949 negative.
5950
5951 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5952
5953 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5954 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5955
5956 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5957
5958 * tc-mips.c (mips_cprestore_valid): New flag.
5959 (mips_frame_reg_valid): New flag.
5960 (macro) [M_JAL_2]: Check both flags.
5961 [M_JAL_A]: Likewise.
5962 (s_cprestore): Set mips_cprestore_valid.
5963 (tc_get_register): If setting mips_frame_reg, set
5964 mips_frame_reg_valid and clear mips_cprestore_valid.
5965 (s_mips_ent): Clear both flags.
5966 (s_mips_end): Clear both flags.
5967
5968 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5969
5970 * write.c (write_object_file): Make use of bfd_section_list_remove.
5971 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5972 * config/tc-mmix.c (mmix_frob_file): Likewise.
5973
5974 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5975
5976 * configure.in (i386-*-netbsdelf*): Collapse target into...
5977 (i386-*-netbsd*): ...this. Add support for x86-64.
5978 * configure: Regenerated.
5979
5980 2002-01-03 matthew green <mrg@redhat.com>
5981
5982 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5983
5984 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5985
5986 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5987 NULL frag link.
5988
5989 For older changes see ChangeLog-0001
5990 \f
5991 Local Variables:
5992 mode: change-log
5993 left-margin: 8
5994 fill-column: 74
5995 version-control: never
5996 End: