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