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