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