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