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