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