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