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