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