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