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