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