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