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