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