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