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