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