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