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