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