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