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