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