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