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