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