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