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