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