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