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