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