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