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