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