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