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