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