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