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