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