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