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