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