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