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