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