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