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