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