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