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