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