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