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