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