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