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