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