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