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