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