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