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