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