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