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