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