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