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