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