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