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