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