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