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