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