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