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