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