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