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