Alan Modra <amodra@bigpond.net.au>
[platform/upstream/binutils.git] / gas / ChangeLog
1 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>,
2
3         Alan Modra  <amodra@bigpond.net.au>
4
5         * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
6         (TC_LINKRELAX_FIXUP): Add comments.
7
8 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
9
10         * config/tc-mn10300.c (set_arch_mach): Change argument type to
11         avoid warnings.
12         (r_register_name, xr_register_name): Add prototype declarations.
13
14 2002-12-08  H.J. Lu <hjl@gnu.org>
15
16         * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
17         copied from tc-i386.c.
18
19 2002-12-08  Stephane Carrez  <stcarrez@nerim.fr>
20
21         Fix Bug savannah/1825:
22         * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
23         (md_relax_table): Define specific relax for PC-rel offsets.
24         (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
25         (m68hc11_relax_frag): Handle the new relax code.
26         (md_convert_frag): Likewise.
27         (md_estimate_size_before_relax): Likewise.
28
29 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
30
31         * subsegs.c (section_symbol): Use the symbol, not the section, name.
32
33 2002-12-05  Richard Henderson  <rth@redhat.com>
34
35         * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
36         (ia64_gen_real_reloc_type): Handle it.
37         (pseudo_func): Add @ltoffx.
38         (md_begin): Build .<ltoffx>.
39         (ia64_force_relocation): True for LTOFF22X and LDXMOV.
40
41 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
42
43         * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
44         Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
45         ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
46         * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
47         COFF to call arm_force_relocation.
48
49 2002-12-04  David Mosberger  <davidm@hpl.hp.com>
50
51         * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
52         instruction.
53         (emit_one_bundle): Handle "hint" instruction.
54         (operand_match): Match IA64_OPND_AR_CSD.
55
56 2002-12-04  Alan Modra  <amodra@bigpond.net.au>
57
58         * dwarf2dbg.c (scale_addr_delta): Correct parameter.  Move prototype
59         inside #if.
60
61 2002-12-03  Nick Clifton  <nickc@redhat.com>
62
63         * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
64         .PPC.EMB.apuinfo sections.
65
66 2002-12-03  Richard Henderson  <rth@redhat.com>
67
68         * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
69
70 2002-12-03  Alan Modra  <amodra@bigpond.net.au>
71
72         * config/tc-w65.c (s_longa): Prototype.  Make static, specify int arg.
73         (cons, s_align_bytes): Delete declaration.
74         (relax): Delete.
75         (md_begin): Constify "struct opinfo *" var.  Don't try to make "name"
76         strings common.
77         (dot): Delete unused function.
78         (w65_expression): Remove unused arg.
79         (parse_exp): Prototype.  Remove unused arg.  Adjust w65_expression
80         call.
81         (get_operands): Prototype.  Constify "struct opinfo *" arg.  Fix
82         parse_exp call.
83         (get_specific): Prototype.  Constify "struct opinfo *" arg and return
84         value.
85         (check): Remove unused function.
86         (build_Mytes): Prototype.  Constify "struct opinfo *" arg.  Abort
87         on unhandled switch case.
88         (md_assemble): Remove unused op_start, op_end, nlen, p vars.  Constify
89         "opcode".
90         (tc_crawl_symbol_chain): Delete unused function.
91         (tc_headers_hook): Likewise.
92         (tc_Nout_fix_to_chars): Likewise.
93         (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
94         (md_parse_option): Likewise.
95         (md_convert_frag): Likewise.
96         (tc_coff_symbol_emit_hook): Likewise.
97         (md_show_usage): Likewise.
98         * config/tc-w65.h (tc_coff_sizemachdep): Declare.
99         (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
100         (w65_expression): Declare.
101
102         * po/POTFILES.in: Regenerate.
103
104         * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
105         and ARM_ADRL_IMMEDIATE.
106
107 2002-12-02  Nick Clifton  <nickc@redhat.com>
108
109         * gasp.c: Delete.  It has been deprecated.
110         * NEWS: Mention that gasp has been removed.
111         * Makefile.am: Remove references to gasp.
112         * makefile.vms: Likewise.
113         * mpw-make.sed: Likewise.
114         * Makeile.in: Regenerate.
115         * doc/gasp.texi: Delete.
116         * doc/Makefile.am: Remove references to gasp.texi.
117         * doc/Makefile.in: Regenerate.
118         * macro.c: Delete references to gasp.
119         Remove use of comment_char function parameter as it is no longer
120         needed.
121         * macro.h: Update prototypes to remove comment_char parameter.
122         Fix formatting.
123         * read.c (read_a_source_file, s_irp): Remove comment_char
124         parameter from invocation of functions in macro.c       
125         
126 2002-12-02  Hans-Peter Nilsson  <hp@axis.com>
127
128         * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
129
130 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
131
132         * config/tc-m68hc11.c (md_begin): Fix qsort warning.
133         (tc_gen_reloc): Mark section param as not used.
134
135 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
136
137         Fix Bug savannah/1825:
138         * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
139         that are not pc-relative.
140         (m68hc11_relax_frag): Declare.
141
142         * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
143         the offsetable indexed addressing modes (n,r).
144         (build_insn): Cleanup some locals.
145         (m68hc11_relax_frag): New function imported from tc-cris.c to handle
146         relaxation of difference between two symbols of same section.
147         (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
148         only when this is a PC-relative operand and the offset is not absolute.
149         (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
150         to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
151         be handled by m68hc11_relax_frag.
152
153 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
154
155         * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
156         (32-bit int, 64-bit double).
157         (md_longopts): New options -mshort, -mlong, -mshort-double and
158         -mlong-double to control the ABI.
159         (md_show_usage): Update.
160         (md_parse_option): Handle new options.
161         * doc/as.texinfo (Overview): Document new options for HC11/HC12.
162
163 2002-12-01  Nathan Sidwell  <nathan@codesourcery.com>
164
165         * symbols.c (report_op_error): New function, broken out of ...
166         (resolve_symbol_value): ... here. Use for both monadic and dyadic
167         operators.
168
169 2002-11-30  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
170
171         * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
172         for BFD_RELOC_32_PLT_PCREL.
173
174 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
175
176         * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
177         config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
178         config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
179         config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
180         config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
181         config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
182         config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
183         config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
184         config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
185         config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
186         config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
187         config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
188         config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
189         config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
190         TRUE, false with FALSE.  Simplify comparisons of bfd_boolean vars with
191         TRUE/FALSE.  Formatting.
192
193 2002-11-29  Nick Clifton  <nickc@redhat.com>
194
195         * config/tc-arm.c (do_t_bkpt): If no operand is specified,
196         assume a value of zero.
197         (do_bkpt): Likewise.
198
199 2002-11-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
200
201         * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
202         for TLS relocations.
203
204 2002-11-29  Jakub Jelinek  <jakub@redhat.com>
205
206         * config/tc-ia64.c (md_apply_fix3): Add default case.
207
208 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
209
210         * symbols.c (S_SET_THREAD_LOCAL): New function.
211         * symbols.h (S_SET_THREAD_LOCAL): New prototype.
212         * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
213         for TLS relocations.
214         * config/tc-ia64.c (md_apply_fix3): Likewise.
215         * config/tc-alpha.c (md_apply_fix3): Likewise.
216
217 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
218
219         * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
220         to entsize.
221
222 2002-11-26  DJ Delorie  <dj@redhat.com.
223
224         * dwarf2dbg.c (scale_addr_delta): New.
225         (size_inc_line_addr): Use it.
226         (emit_inc_line_addr): Use it.
227
228 2002-11-26  Hans-Peter Nilsson  <hp@axis.com>
229
230         * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
231         (md_assemble): Don't pass on branches to constants as relaxable.
232         Tweak comment.
233
234 2002-11-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
235
236         * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
237
238 2002-11-21  Randolph Chung  <randolph@tausq.org>
239
240         * config/tc-hppa.h (tc_frob_symbol):  Frob undefined unused symbols
241         only if they have default visibility.
242
243 2002-11-21  Richard Henderson  <rth@redhat.com>
244
245         * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
246         S_IS_DEFINED test.
247
248 2002-11-21  Alan Modra  <amodra@bigpond.net.au>
249
250         * config/tc-mcore.c (mcore_pool_count): New function.
251         (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
252
253 2002-11-20  Klee Dienes  <kdienes@apple.com>
254
255         * config/tc-mcore.c (md_begin): Use a const iterator.  Don't
256         coalesce the name fields to use the same pointer.
257
258         * config/tc-sh.c (md_begin): Use a const iterator.  Don't coalesce
259         the name fields to use the same pointer.
260         (get_specific): Check for opcodes with the same name using strcmp
261         as well as comparing the pointer.
262
263 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
264
265         * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
266         fx_subsy non-NULL.
267
268 2002-11-19  Richard Henderson  <rth@redhat.com>
269
270         * config/obj-elf.c (obj_elf_visibility): Overwrite only the
271         visibility portion of st_other.
272
273 2002-11-19  Klee Dienes  <kdienes@apple.com>
274
275         * config/tc-h8300.c (struct h8_instruction): New type, used to
276         wrap h8_opcodes with length, noperands, idx, and size fields
277         (computed at run-time).
278         (h8_instructions): New variable.
279         (md_begin): Allocate the storage for h8_instructions.  Fill
280         h8_instructions with pointers to the appropriate opcode and the
281         correct value for the additional fields.
282         (clever_message): Update to use h8_instructions instead of
283         h8_opcodes.
284         (build_bytes): Ditto.
285         (get_specific): Ditto.
286         (md_assemble): Ditto.
287
288 2002-11-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
289
290         * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
291         adjustments to symbols in merge sections.
292
293 2002-11-19  Luke Deller <luked@cse.unsw.edu.au>
294
295         * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
296
297 2002-11-18  Kevin Buettner  <kevinb@redhat.com>
298
299         * dwarf2dbg.h (dwarf2_format): New enum.
300         * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
301         (out_debug_line, out_debug_info): Add code for handling 64-bit
302         DWARF 2 formats.
303         * config/tc-mips.h (mips_dwarf2_format): Declare.
304         * config/tc-mips.c (mips_dwarf2_format): New function.
305         * doc/internals.texi (DWARF2_FORMAT): Document.
306
307 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>
308
309         * config/tc-mips.c (s_change_section): Make sure input buffer
310         is not accessed past the end.  Don't hand
311         obj_elf_change_section a pointer into the input buffer.
312
313 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>, Chris Demetriou  <cgd@broadcom.com>
314
315         * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
316         GOT_LO16 on NEWABI.
317
318 2002-11-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
319
320         * config/tc-tic4x.c: Fixed proper commandline
321         parameters. Added support for new opcode-list format. General
322         error message fixups.
323         (c4x_inst_add): Reject insn not for our CPU
324         (md_begin): Added matrix for setting the proper opcode-level &
325         device-flags according to cpu type and revision. Rewrite the
326         opcode hasher.
327         (c4x_operand_parse): Fix opcode bug
328         (c4x_operands_match): New function argument. Added dry-run
329         mechanism, that is optional error generation. Added constraint 'i'
330         and 'j'.
331         (c4x_insn_check): Added new function for post-verification of the
332         generated insn.
333         (md_assemble): Check all opcodes before croaking because of an
334         argument mismatch. Need this to be able to fully support
335         ortogonally arguments.
336         (md_parse_options): Revised commandprompt swicthes and added new
337         ones.
338         (md_show_usage): Complete rewrite of printout.
339
340 2002-11-16  Svein E. Seldal  <Svein.Seldal@solidas.com>
341
342         * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
343           (c4x_operands_match): Added check for 8-bits LDF insn. Give
344           warning when using constant direct bigger than 2^16. Add the new
345           arguments.
346
347 2002-11-11  Christopher Faylor  <cgf@redhat.com>
348
349         * configure.in: Use .gdbinit under Cygwin.
350         * configure: Regenerate.
351
352 2002-11-11  Christopher Faylor  <cgf@redhat.com>
353
354         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
355         STRICT_PE_FORMAT.
356
357 2002-11-11  Svein E. Seldal  <Svein.Seldal@solidas.com>
358
359         * config/tc-tic4x.c: Declare as many functions as possible as
360         static. Maintenance on the general indenting. Removed unnecessary
361         pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
362         function. Add support for new DSP, TMS320VC33. Fix bug for
363         converting flonum constants.
364         (c4x_do_align): Add proper align handling. Setup align to insert
365         NOP's.
366         (c4x_gen_to_words): Support for extended TI type floats.
367         (md_atof): Proper dumping of multiple-word littlenums.
368         (c4x_atof): Added support for extended TI type floats.
369         (c4x_stringer): Added new function to handle compact strings.
370         (c4x_emit_char): Added new function argument to handle custom
371         length inserts, like single-byte strings.
372         * config/tc-tic4x.h: Add proper align handling with NOP's.
373         * Makefile.am: Added tic4x dependecy
374         * Makefile.in: Regenerate
375
376 2002-11-11  Hans-Peter Nilsson  <hp@bitrange.com>
377
378         * macro.c (get_any_string): Correct logic for not going beyond end
379         of in->ptr[].
380
381 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
382
383         * config/tc-mmix.c (get_putget_operands): Mark both possible
384         operands as invalid at beginning.
385
386         * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
387         Initialize target of fixup to zero.
388
389 2002-11-07  Alexandre Oliva  <aoliva@redhat.com>
390
391         * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
392         NEWABI, but we should still emit HI16_S for non-PIC n32.
393
394 2002-11-06  Richard Henderson  <rth@redhat.com>
395
396         * config/tc-alpha.c (alpha_validate_fix): Move code ...
397         (alpha_fix_adjustable): ... here.
398         * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
399
400 2002-11-07  Eric Kohl  <ekohl@rz-online.de>
401
402         * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
403         of a label.
404
405 2002-11-05  H.J. Lu <hjl@gnu.org>
406
407         * config/tc-mips.c (support_64bit_objects): Check *l before it
408         is freed.
409
410 2002-11-04  Danny Smith  <dannysmith@users.sourceforge.net>
411
412         * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
413         SEC_LOAD flags for sections marked as 's'.
414
415 2002-11-01  Alan Modra  <amodra@bigpond.net.au>
416
417         * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
418         (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
419         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
420         default.
421
422         * dep-in.sed: Fix typo.
423
424 2002-10-30  Daniel Jacobowitz  <drow@mvista.com>
425
426         * configure.in: Update ARM CPU patterns.
427         * configure: Regenerated.
428
429 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
430
431         * itbl-lex.l: Use #include <> for generated headers.
432         * itbl-ops.c: Likewise.
433
434 2002-10-28  Daniel Jacobowitz  <drow@mvista.com>
435
436         * doc/gasp.texi: Fix typo in deprecation note.
437
438 2002-10-23  Nick Clifton  <nickc@redhat.com>
439
440         * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
441         _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
442
443 2002-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
444
445         * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
446         (tc_frob_file_before_adjust): Don't define.
447         * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
448         function.
449         (mmix_frob_file_before_adjust): Remove ineffective function.
450
451 2002-10-23  Hans-Peter Nilsson  <hp@axis.com>
452
453         * config/tc-cris.c (SIMPLE_EXPR): New macro.
454         (cris_relax_frag): New function.
455         (md_estimate_size_before_relax) <case ENCODE_RELAX
456         (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
457         expressions that will become absolute expressions to relaxation.
458         (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
459         STATE_WORD)>: Expect only absolute expressions.  Use the symbol
460         value, not distance to symbol.
461         <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
462         Ditto.  Correct placement of fixup.
463         (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
464         (gen_bdap): Ditto.
465         * config/tc-cris.h (cris_relax_frag): Declare.
466         (md_relax_frag): Define.
467
468 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
469
470         * config/obj-elf.c (special_sections): Use correct types for init
471         array sections.
472         (obj_elf_change_section): Don't mess with init array section type.
473
474 2002-10-21  Richard Sandiford  <rsandifo@redhat.com>
475
476         * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
477         for relocs against symbols in a merged section.
478
479 2002-10-18  Alexandre Oliva  <aoliva@redhat.com>
480
481         * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
482         table as register names.
483
484 2002-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
485
486         * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
487         for option -m31.
488
489 2002-10-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
490
491         * expr.c (operand): Add support for n.nn flonums.
492
493 2002-10-17  Johannes Stezenbach  <js@convergence.de>
494
495         * itbl-parse.y (entry): Provide empty action.
496
497 2002-10-16  Alan Modra  <amodra@bigpond.net.au>
498
499         * configure.in (BFDVER_H): Set and subst.
500         * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
501         * Makefile.am: Run "make dep-am".
502         (BFDVER_H): Define.
503         * configure: Regenerate.
504         * Makefile.in: Regenerate.
505         * doc/Makefile.in: Regenerate.
506
507 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
508
509         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
510         (MD_APPLY_SYM_VALUE): Define for PE too.
511
512 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
513
514         * Makefile.am: Run "make dep-am".
515         (CPU_OBJ_VALID): sh64 coff is invalid.
516         * as.c: #include "bfdver.h".
517         * Makefile.in: Regenerate.
518         * config.in: Regenerate.
519
520 2002-10-14  Momchil Velikov  <velco@fadata.bg>
521
522         * config/tc-v850.c (CHECK_): Remove token pasting operator.
523
524 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
525
526         * configure.in (mips64vr-elf, mips64vrel-elf): New config.
527         * configure: Regenerate.
528
529 2002-10-13  Eric Christopher  <echristo@redhat.com>
530             Alexandre Oliva  <aoliva@redhat.com>
531
532         * config/tc-mips.c (s_gpdword): New function.
533         (mips_pseudo_table): Add .gpdword.
534         (mips_need_elf_addend_fixup): never for NEWABI.
535         (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
536         GPREL32 as done.
537         (s_cpadd): Generate .cpadd on NEWABI.
538
539 2002-10-12  Elias Athanasopoulos  <eathan@otenet.gr>
540
541         * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
542
543 2002-10-12  Alexandre Oliva  <aoliva@redhat.com>
544
545         * config/tc-mips.h (mips_relax_frag): Take segment as argument.
546         (md_relax_frag): Adjust macro.
547         * config/tc-mips.c (mips_relax_branch): New variable.
548         (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
549         RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
550         (RELAX_MIPS16_P): Adjust.
551         (append_insn): Emit branch to non-constant in a frag_var if
552         branch-relaxation is desirable and possible.
553         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
554         (OPTION_ELF_BASE): Adjust.
555         (md_parse_option): Handle new options.
556         (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
557         branch relaxation.
558         (relaxed_branch_length): New function.
559         (md_estimate_size_before_relax): Handle branch frags.
560         (mips_relax_frag): Likewise.
561         (md_convert_frag): Handle branch frags.  Warn if branch is
562         relaxed.
563
564 2002-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
565
566         * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
567         emitted.
568         (md_apply_fix3): Add TLS relocs.
569         (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
570         @DTPOFF.
571
572 2002-10-11  Michel Six  <msix@ccr.jussieu.fr>
573             Alan Modra  <amodra@bigpond.net.au>
574
575         * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
576         (md_estimate_size_before_relax): Likewise for 8 bit branches.
577
578 Thu Oct 10 14:31:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
579
580         * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
581         inside loop.
582
583 2002-10-09  Richard Shann <richard.shann@superh.com>
584             Stephen Clarke <stephen.clarke@superh.com>
585
586         * config/tc-sh64.c (sh64_target_format): Add support for sh64
587         Linux environment.
588
589 2002-10-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
590
591         * contig/tc-sh.c (sh_local_pcrel): New.
592         (sh_force_relocation): Use sh_local_pcrel.
593         (md_pcrel_from_section): Check the relocation type whether it
594         should be resolved locally. Use S_FORCE_RELOC.
595
596 2002-10-01  Alan Modra  <amodra@bigpond.net.au>
597
598         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
599         (TC_FORCE_RELOCATION): Tidy arg.
600
601 2002-09-30  Gavin Romig-Koch  <gavin@redhat.com>
602             Ken Raeburn  <raeburn@cygnus.com>
603             Aldy Hernandez  <aldyh@redhat.com>
604             DJ Delorie  <dj@redhat.com>
605             Michael Meissner  <meissner@redhat.com>
606             Eric Christopher  <echristo@redhat.com>
607             Richard Sandiford  <rsandifo@redhat.com>
608
609         * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
610         vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
611         * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
612         (hilo_interlocks): True for CPU_VR5500.
613         (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
614         (mips_fix_vr4122_bugs): New.
615         (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
616         (mips_emit_delays): Likewise.
617         (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
618         [M_ROLI]: Likewise ror if CPU_HAS_ROR.
619         (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
620         (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
621         (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
622         (OPTION_ELF_BASE): Bump.
623         (md_parse_option): Handle the new options.
624         (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
625         vr5400 and vr5500.
626
627 2002-09-29  H.J. Lu <hjl@gnu.org>
628
629         * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
630         twice if howto->pcrel_offset is true.
631
632 2002-09-28  Matt Thomas  <matt@3am-software.com>
633             Jason Thorpe  <thorpej@wasabisystems.com>
634
635         * config/tc-vax.c (md_estimate_size_before_relax): Only try to
636         convert undefined references to GOT32/PLT32 if PIC code is
637         requested.  Fix comment.
638
639 2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
640
641         * config/tc-sh.c (sh_force_relocation): Return 0 for
642         some PC relative relocations when not relaxing.
643
644 2002-09-26  Jakub Jelinek  <jakub@redhat.com>
645
646         * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
647         Define them if not BFD_ASSEMBLER.
648         (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
649         @tlsld.
650         (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
651         BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
652         (tc_gen_reloc): Handle x86-64 TLS relocs.
653
654 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
655
656         * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
657         fixups to current or absolute section.
658
659 2002-09-26  Jim Wilson  <wilson@redhat.com>
660
661         * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
662         and frag_more.
663
664 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
665
666         * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
667         capable configuration.
668         (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
669         generation.
670         (mips_ip): Likewise.
671
672 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
673
674         * config/tc-mips.c (append_insn): Fix jump overflow check.
675
676 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
677
678         * config/tc-i386.c (process_operands): Warn about "lea" segment
679         overrides.
680
681 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
682
683         * write.c: Delete set_segment_vma and prototype. Update all callers.
684
685 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
686
687         * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
688         S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
689         Rename "fseg" to "sym_seg".
690         * Makefile.am: Run "make dep-am".
691         * Makefile.in: Regenerate.
692         * doc/Makefile.in: Regenerate.
693
694 2002-09-20  Nick Clifton  <nickc@redhat.com>
695
696         * symbols.c (colon): Do not allow symbols to be created in the
697         absolute section if WORKING_DOT_WORD is not defined and
698         new_broken_words would require a new frag to be created.
699
700 2002-09-20  Alan Modra  <amodra@bigpond.net.au>
701
702         * expr.c (expr): Simplify foo-foo here.
703         (clean_up_expression): Remove O_subtract code.
704
705         * write.h (struct fix): Add fx_dot_value.
706         (dot_value): Declare.
707         * write.c (dot_value): New var.
708         (fix_new_internal): Save dot_value as fx_dot_value.
709         (fixup_segment): Adjust fx_offset using fx_dot_value.
710         * expr.c (expr): Update dot_value.
711
712 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
713
714         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
715         BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
716         (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
717         if not defined.
718         (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
719         (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
720         BFD_RELOC_386_TLS_GOTIE.
721
722 2002-09-19  Richard Henderson  <rth@redhat.com>
723
724         * config/tc-alpha.c (md_pcrel_from): Only adjust special for
725         branch type relocs.
726         (alpha_force_relocation): Don't special-case branch type relocs.
727
728 2002-09-19  Nick Clifton  <nickc@redhat.com>
729
730         * config/tc-m68k.c (select_control_regs): Handle situation where
731         architecture has not yet been selected.
732
733 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
734
735         * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
736         (IS_SEXT_16BIT_NUM): New macro.
737         (macro_build_ldst_constoffset): New function, to build a set of
738         instructions to do a load or store from a constant offset relative
739         to a given register.
740         (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
741         .cprestore pseudo-op.
742
743 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
744
745         * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
746
747 2002-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
748
749         * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
750
751 2002-09-17  Stan Cox  <scox@redhat.com>
752
753         * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
754         (macro): Likewise for la.  Likewise for ld.
755         (mips_after_parse_args): Make -xgot optional, not the default.
756         (md_apply_fix3): Allow composite relocation to set up gp.
757         (tc_gen_reloc): Allow relaxing for newabi.
758         Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
759         Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
760
761 2002-09-17  Nick Clifton  <nickc@redhat.com>
762
763         * config/tc-arm.c (md_apply_fix3): Note that an implemented
764         BFD_RELOC_ARM_IMMEDIATE has been done.
765         (tc_gen_reloc): Do not issue reloc number of unimplemented
766         BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
767         their name is already in the error message - plus remove them
768         from the default case.
769
770         * config/tc-arm.c (do_ldmstm): Warn about unpredictable
771         behavior of instructions.
772
773 2002-09-17  Svein E. Seldal  <Svein.Seldal@solidas.com>
774
775         * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
776         Convert functions to K&R format.
777
778 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
779
780         * config/tc-mips.c (pdr_seg): Define only for ELF.
781         (s_change_section): Remove unused variable. Don't use for nonELF.
782
783 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
784
785         * config/obj-elf.c (obj_elf_change_section): Move prototype to
786         obj-elf.h
787         * config/obj-elf.h (obj_elf_change_section): Likewise.
788
789 2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
790
791         * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
792         (out_debug_info): Likewise.
793
794 2002-09-16  Bruno Haible  <bruno@clisp.org>
795
796         * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
797         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
798         * config/tc-i386.c (i386_target_format): Likewise.
799         * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
800         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
801
802 2002-09-13  Nick Clifton  <nickc@redhat.com>
803
804         * config/tc-ppc.c (md_assemble): Do not count FAKE operands
805         when deciding if any operands have been skipped.
806
807 2002-09-11  Nick Clifton  <nickc@redhat.com>
808
809         * NEWS: New TI port supports both C4x and C3x series of DSPs.
810
811         * po/tr.po: Updated Turkish translation.
812
813 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
814
815         * config/tc-i386.c (md_apply_fix3): Allow addend for
816         BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
817         BFD_RELOC_386_TLS_LE_32.
818
819 2002-09-05  Jeff Law  <law@redhat.com>
820
821         * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
822         marker relocations such as ENTRY/EXIT.
823         * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
824         to both OBJ_ELF and OBJ_SOM.
825
826 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
827
828         * doc/internals.texi (md_apply_fix3): Expand.
829         (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
830         TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
831         TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
832         TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
833         EXTERN_FORCE_RELOC): Document.
834         (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
835         * as.h: Don't include struc-symbol.h for arc.
836         (IS_ELF): Define.
837         * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
838         subtract absolute symbol.
839         * obj.h (struct format_ops): Add frob_file_before_fix.
840         * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
841         * symbols.c (S_FORCE_RELOC): New function.
842         * symbols.h (S_FORCE_RELOC): Declare.
843         * write.c (TC_FORCE_RELOCATION): Change default.
844         (TC_FORCE_RELOCATION_ABS): Define.
845         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
846         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
847         (TC_FORCE_RELOCATION_SECTION): Don't define.
848         (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
849         (TC_FORCE_RELOCATION_SUB_ABS): Define.
850         (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
851         (TC_VALIDATE_FIX_SUB): Define.
852         (TC_FIX_ADJUSTABLE): Don't define.
853         (MD_APPLY_SYM_VALUE): Define this instead.
854         (abs_section_sym): New variable.
855         (adjust_reloc_syms): Use S_FORCE_RELOC.  Remove obj_fix_adjustable
856         call.  Don't symbol_mark_used_in_reloc here.  Simplify link_once tests.
857         Don't put the absolute section sym on fixups here.
858         (fix_segment): New function.
859         (write_relocs): Don't call fixup_segment from here.
860         (write_object_file): Instead call tc_frob_file_before_fix,
861         obj_frob_file_before_fix, and fix_segment prior to symbol table code.
862         Don't output the absolute section symbol.
863         (fixup_segment): Rewrite.
864         * write.h (abs_section_sym): Declare.
865         * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
866         obj_aout_frob_file.
867         (aout_format_ops): Adjust to suit.
868         * config/obj-aout.h (obj_frob_file): Don't define.
869         (obj_frob_file_before_fix): Define.
870         (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
871         (S_FORCE_RELOC): Define.
872         * config/obj-bout.h (S_FORCE_RELOC): Define.
873         * config/obj-coff.c (coff_format_ops): Init new field.
874         * config/obj-coff.h: Formatting fixes.
875         (obj_sec_sym_ok_for_reloc): Define.
876         (S_FORCE_RELOC): Define.
877         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
878         (ecoff_frob_file): .. from here.
879         (ecoff_format_ops): Add new function.
880         * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
881         (obj_frob_file_before_fix): Define.
882         * config/obj-elf.c (elf_format_ops): Init new field.
883         * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
884         * config/obj-ieee.h: Formatting fixes.
885         (S_FORCE_RELOC): Define.
886         * config/obj-multi.h (obj_frob_file_before_fix): Define.
887         * config/obj-vms.h (S_FORCE_RELOC): Define.
888         * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
889         (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
890         for BFD_RELOC_32 and BFD_RELOC_64.
891         (alpha_fix_adjustable): Remove extern and weak tests.
892         (alpha_before_fix): Rename from alpha_adjust_symtab.
893         (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
894         * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
895         (TC_VALIDATE_FIX): Tweak param name.
896         (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
897         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
898         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
899         (MD_APPLY_SYM_VALUE): Define.
900         (tc_adjust_symtab): Don't define.
901         (alpha_adjust_symtab): Don't declare.
902         (tc_frob_file_before_fix): Define.
903         (alpha_before_fix): Declare.
904         (TC_INIT_FIX_DATA): Tweak param names.
905         * config/tc-arc.c: Include "struc-symbol.h".
906         (md_pcrel_from): Remove undefined sym fudge.
907         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
908         Don't set fx_addnumber.
909         (tc_gen_reloc): Remove spurious fx_addnumber comment.
910         * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
911         (EXTERN_FORCE_RELOC): Define.
912         * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
913         (tc_gen_reloc): Fudge ARM_GOTPC addend.
914         (arm_validate_fix): Return void.
915         (arm_fix_adjustable <elf version>): Remove extern and weak tests.
916         Add plt and got reloc tests.
917         (arm_force_relocation): Call S_FORCE_RELOC.
918         * config/tc-arm.h (struct fix): Forward declare.
919         (TC_VALIDATE_FIX): No longer set add_symbolP.
920         (arm_validate_fix): Adjust declaration.
921         (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
922         (TC_FORCE_RELOCATION): Tweak param name.
923         (TC_INIT_FIX_DATA): Likewise.
924         (obj_fix_adjustable): Don't define.
925         (tc_fix_adjustable): Call arm_fix_adjustable.
926         (TC_FIX_ADJUSTABLE): Don't define.
927         (MD_APPLY_SYM_VALUE): Define.
928         (EXTERN_FORCE_RELOC): Define.
929         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
930         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
931         * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
932         Remove *valP fudges and code to subtract abs sym.  Don't set
933         fx_addnumber.
934         * config/tc-avr.h: Formatting.
935         (EXTERN_FORCE_RELOC): Define.
936         (MD_APPLY_SYM_VALUE): Define.
937         * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
938         (md_apply_fix3): Remove code to subtract abs sym.
939         (md_cris_force_relocation): Update comment.  Call S_FORCE_RELOC.
940         * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
941         (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
942         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
943         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
944         (tc_fix_adjustable): Remove extern, weak tests.
945         * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
946         BFD_RELOC_VTABLE_INHERIT relocs.  Don't use fx_addnumber.
947         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
948         and code to subtract abs sym.
949         (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
950         (d10v_force_relocation): Call S_FORCE_RELOC.
951         * config/tc-d10v.h: Don't include write.h.
952         (struct fix): Instead, forward declare.
953         (MD_PCREL_FROM_SECTION): Tweak param names.
954         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
955         (d10v_fix_adjustable): Likewise.
956         (obj_fix_adjustable): Don't define.
957         (tc_fix_adjustable): Define.
958         (TC_FORCE_RELOCATION): Tweak param name.
959         (MD_APPLY_SYM_VALUE): Define.
960         (EXTERN_FORCE_RELOC): Define.
961         * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
962         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
963         and code to subtract abs sym.
964         * config/tc-d30v.h: Don't include write.h.
965         (struct fix): Instead, forward declare.
966         (MD_PCREL_FROM_SECTION): Tweak param names.
967         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
968         (MD_APPLY_SYM_VALUE): Define.
969         (EXTERN_FORCE_RELOC): Define.
970         * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
971         (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
972         (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
973         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
974         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
975         Don't use fx_addnumber.
976         * config/tc-dlx.h: Don't include write.h.
977         (md_convert_frag): We're not alpha twice over.
978         (EXTERN_FORCE_RELOC): Define.
979         (obj_fix_adjustable): Don't define.
980         (tc_fix_adjustable): Define.
981         (TC_FIX_ADJUSTABLE): Don't define.
982         (MD_APPLY_SYM_VALUE): Define.
983         (LOCAL_LABELS_DOLLAR): Undef always.
984         * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
985         (fr30_fix_adjustable): Remove extern, weak tests.
986         * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
987         (obj_fix_adjustable): Don't define.
988         (tc_fix_adjustable): Define.
989         (struct fix): Forward declare.
990         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.
991         * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
992         (frv_fix_adjustable): Don't do extern, weak tests.
993         * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
994         (TC_FIX_ADJUSTABLE): Don't define.
995         (obj_fix_adjustable): Don't define.
996         (tc_fix_adjustable): Define.
997         (struct fix): Forward declare.
998         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.\
999         * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1000         * config/tc-h8300.h (struct fix): Forward declare.
1001         (EXTERN_FORCE_RELOC): Define.
1002         * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1003         (hppa_fix_adjustable): Don't test extern or weak.  Don't
1004         symbol_mark_used_in_reloc.
1005         (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1006         and S_IS_WEAK.
1007         * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1008         (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1009         (TC_FORCE_RELOCATION_SECTION): Don't define.
1010         (MD_APPLY_SYM_VALUE): Define.
1011         * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1012         to subtract abs sym.
1013         * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1014         (MD_APPLY_SYM_VALUE): Define.
1015         (MD_PCREL_FROM_SECTION): Tweak param name.
1016         * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1017         (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1018         (i386_force_relocation): New function.
1019         * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1020         (TC_VALIDATE_FIX): Likewise.
1021         (TC_FIX_ADJUSTABLE): Don't define.
1022         (MD_APPLY_SYM_VALUE): Define.
1023         (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1024         (i386_force_relocation): Declare.
1025         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1026         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1027         (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1028         * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1029         * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1030         (EXTERN_FORCE_RELOC): Define.
1031         * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
1032         (md_apply_fix3): Don't cast valP pointer type.  Move code here from
1033         old fixup_segment.  No need to test fx_pcrel before setting fx_done.
1034         (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1035         Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1036         Remove #if 0 code.  Invert return boolean.
1037         * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1038         (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1039         (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1040         (tc_coff_sizemachdep): Prototype.
1041         (i960_handle_align): Likewise.
1042         (i960_validate_fix): Adjust declaration.
1043         (reloc_callj): Likewise.
1044         (EXTERN_FORCE_RELOC): Define.
1045         (TC_FORCE_RELOCATION_SUB_SAME): Define.
1046         (TC_FORCE_RELOCATION_ABS): Define.
1047         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1048         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1049         (TC_FIX_ADJUSTABLE): Don't define.
1050         (MD_APPLY_SYM_VALUE): Define.
1051         * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1052         * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1053         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1054         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1055         * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1056         * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1057         (MD_APPLY_SYM_VALUE): Define.
1058         (EXTERN_FORCE_RELOC): Define.
1059         (TC_FORCE_RELOCATION): Tweak param name.
1060         * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1061         (m32r_fix_adjustable): Don't test extern, weak.
1062         * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1063         (MD_APPLY_SYM_VALUE): Define.
1064         (obj_fix_adjustable): Don't define.
1065         (tc_fix_adjustable): Define.
1066         (tc_frob_file): Don't define.
1067         (tc_frob_file_before_fix): Define.
1068         (EXTERN_FORCE_RELOC): Define.
1069         * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero.  Adjust
1070         BFD_RELOC_VTABLE_ENTRY address.
1071         (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1072         (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1073         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1074         Remove duplicated fx_done code.
1075         * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1076         (EXTERN_FORCE_RELOC): Define.
1077         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1078         relaxable_symbol.
1079         * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1080         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1081         (TC_FIX_ADJUSTABLE): Don't define.
1082         (EXTERN_FORCE_RELOC): Define.
1083         (MD_APPLY_SYM_VALUE): Define.
1084         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1085         * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1086         Remove fx_addsy tests.
1087         (mcore_force_relocation): Call S_FORCE_RELOC.
1088         (mcore_fix_adjustable): Don't test fx_addsy.
1089         * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1090         (EXTERN_FORCE_RELOC): Define.
1091         (obj_fix_adjustable): Don't define.
1092         (tc_fix_adjustable): Define.
1093         (MD_APPLY_SYM_VALUE): Define.
1094         * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1095         (mips_pic): No longer static.
1096         (mips_force_relocation): Call S_FORCE_RELOC.
1097         (mips_fix_adjustable): Remove extern, weak tests.
1098         * config/tc-mips.h (enum mips_pic_level): Declare.
1099         (mips_pic): Declare.
1100         (tc_frob_file): Don't define.
1101         (tc_frob_file_before_fix): Define this instead.
1102         (EXTERN_FORCE_RELOC): Define.
1103         * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1104         with reg_section tests.  Set fx_done instead of calling
1105         symbol_clear_used_in_reloc on bad relocs.
1106         (tc_gen_reloc): Zero fx_addsy on bad relocs.
1107         (mmix_force_relocation): Remove weak sym test.  Call S_FORCE_RELOC.
1108         (mmix_adjust_symtab): Simplify list handling.  Abort on any
1109         nonsense.
1110         * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests.  Check
1111         BFD_RELOC_MMIX_LOCAL.
1112         (tc_frob_symbol): Keep user defined syms in reg_section.  Don't punt.
1113         (EXTERN_FORCE_RELOC): Define.
1114         (MD_PCREL_FROM_SECTION): Tweak param name.
1115         (tc_frob_file): Don't define.
1116         (tc_frob_file_before_fix): Define this instead.
1117         * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1118         Remove SEC_CODE checks.
1119         (mn10300_fix_adjustable): Remove extern and weak tests.
1120         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1121         (TC_FORCE_RELOCATION): Tweak param name.
1122         (obj_fix_adjustable): Don't define.
1123         (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1124         * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1125         * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1126         (openrisc_fix_adjustable): Don't test fx_addsy.
1127         * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1128         (obj_fix_adjustable): Don't define.
1129         (tc_fix_adjustable): Define this instead.
1130         (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1131         * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1132         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1133         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1134         * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1135         (MD_APPLY_SYM_VALUE): Define.
1136         * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1137         Don't subtract symbol value.
1138         * config/tc-pj.h (md_pcrel_from): Tweak param name.
1139         (EXTERN_FORCE_RELOC): Define.
1140         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1141         (MD_APPLY_SYM_VALUE): Define.
1142         (obj_fix_adjustable): Don't define.
1143         (tc_fix_adjustable): Define this instead.
1144         * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1145         section sym.
1146         (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1147         (ppc_force_relocation <elf version>): New.
1148         (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1149         (md_apply_fix3): Don't subtract symbol values for ELF.  Update
1150         comments.  Don't subtract fx_subsy as that is already done.
1151         * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1152         (MD_PCREL_FROM_SECTION): Likewise.
1153         (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1154         ppc_force_relocation.
1155         (TC_FORCE_RELOCATION_SECTION): Delete.
1156         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1157         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1158         (MD_APPLY_SYM_VALUE): Define.
1159         * config/tc-s390.c: #include "dwarf2dbg.h".
1160         (s390_insn): Remove excess parens.
1161         (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1162         (tc_s390_force_relocation): Call S_FORCE_RELOC.
1163         (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg".  Abort when fx_subsy
1164         non-NULL.  Don't subtract off fx_addsy value.
1165         * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1166         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1167         (TC_FIX_ADJUSTABLE): Don't define.
1168         (MD_APPLY_SYM_VALUE): Define.
1169         * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1170         (SWITCH_TABLE): Likewise.
1171         (sh_force_relocation): Call S_FORCE_RELOC.
1172         (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1173         Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1174         (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1175         fx_addnumber is zero on entry.  Save val in fx_addnumber.
1176         (tc_gen_reloc): Don't subtract fx_subsy.
1177         * config/tc-sh.h (struct fix): Move.
1178         (obj_fix_adjustable): Don't define.
1179         (tc_fix_adjustable): Define this instead.
1180         (TC_FIX_ADJUSTABLE): Don't define.
1181         (MD_APPLY_SYM_VALUE): Define.
1182         (SWITCH_TABLE_CONS): Define.
1183         (SWITCH_TABLE): Define.
1184         (TC_FORCE_RELOCATION_SUB_SAME): Define.
1185         (TC_VALIDATE_FIX_SUB): Define.
1186         (MD_PCREL_FROM_SECTION): Tweak param name.
1187         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1188         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1189         (TC_FORCE_RELOCATION_SUB_ABS): Define.
1190         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1191         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1192         (TC_FORCE_RELOCATION_SUB_SAME): Define.
1193         (TC_VALIDATE_FIX_SUB): Define.
1194         (MD_PCREL_FROM_SECTION): Tweak param name.
1195         * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1196         (tc_gen_reloc): Use S_FORCE_RELOC.
1197         (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1198         * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1199         (TC_FORCE_RELOCATION_ABS): Define this instead.
1200         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1201         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1202         (tc_fix_adjustable): Remove extern and weak tests.  Use S_FORCE_RELOC.
1203         (MD_APPLY_SYM_VALUE): Define.
1204         (TC_FIX_DATA_PRINT): Tweak param name.
1205         * config/tc-tic30.c (USE_STDOUT): Don't define.
1206         (md_parse_option): Remove stupid debug code.
1207         (tc_gen_reloc): Don't use fx_addnumber.
1208         * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1209         (v850_force_relocation): Remove weak test.  Call S_FORCE_RELOC.
1210         * config/tc-v850.h (obj_fix_adjustable): Don't define.
1211         (tc_fix_adjustable): Define this instead.
1212         (TC_FIX_ADJUSTABLE): Don't define.
1213         (MD_APPLY_SYM_VALUE): Define this instead.
1214         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1215         * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1216         (TC_FIX_ADJUSTABLE): Don't define.
1217         (MD_APPLY_SYM_VALUE): Define this instead.
1218         (tc_fix_adjustable): Remove extern and weak tests.
1219         * config/tc-w65.h (struct fix): Forward declare.
1220         * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1221         S_FORCE_RELOC.
1222         (xstormy16_fix_adjustable): Remove extern and weak tests.  Don't
1223         call xstormy16_force_relocation;  Instead test for FPTR16 reloc.
1224         (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1225         absolute symbol.
1226         * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1227         (MD_APPLY_SYM_VALUE): Define.
1228         (obj_fix_adjustable): Don't define.
1229         (tc_fix_adjustable): Define this instead.
1230         (MD_PCREL_FROM_SECTION): Remove duplicate.  Tweak param name.
1231
1232 2002-09-04  Alan Modra  <amodra@bigpond.net.au>
1233
1234         * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1235         (ppc_fix_adjustable <coff version>): Cleanup.
1236
1237         * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1238         (md_parse_option): No -a64 without BFD64.
1239         (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1240         (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1241
1242 2002-09-04  Nick Clifton  <nickc@redhat.com>
1243
1244         * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1245         instructions into the hash table if the target cpu is the BookE32.
1246
1247 2002-08-31  Hans-Peter Nilsson  <hp@bitrange.com>
1248
1249         * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1250         ATTRIBUTE_UNUSED.
1251
1252 2000-08-28  Catherine Moore  <clm@redhat.com>
1253
1254         * tc-v850.c (v850_relax): Declare.
1255         (v850_longcode): New routine.
1256         (v850_handle_align): New routine.
1257         (md_pseudo_table):  Add longcall and longjump.
1258         (md_parse_option): Check for relax option.
1259         (tc_gen_reloc):  Handle BFD_RELOC_V850_LONGCALL,
1260         BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1261         (md_apply_fix3): Likewise.
1262         (v850_force_relocation): Likewise.
1263         (v850_comm): Change the current section.
1264         (md_assemble):  Ensure that the correct value is put in the
1265         fixup.
1266         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1267         v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1268         Remove redundant v850ea support.
1269         * tc-v850.h (HANDLE_ALIGN): Define.
1270         (v850_handle_align): Declare.
1271         * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1272
1273 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
1274
1275         * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1276         * configure: Regenerate.
1277         * NEWS: Mention new port.
1278
1279 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1280
1281         * config/obj-coff.c: Add sdef definition.
1282         * config/obj-coff.h: Add tic4x include file and set
1283         target format.
1284         * config/tc-tic4x.c: New file.
1285         * config/tc-tic4x.h: New file.
1286
1287 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1288
1289         * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1290         (TC_ADJUST_RELOC_COUNT): Tweak param name.
1291         (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1292         (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1293         (RELOC_ENUM): Define.
1294         (fix_new_internal): Use RELOC_ENUM.
1295         (fix_new, fix_new_exp): Likewise.
1296         (adjust_reloc_syms): Comment.  Remove unnecessary tests on sym != NULL.
1297         Replace gotos with continue.
1298         (write_relocs): Formatting.  Avoid symbol loops in
1299         RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
1300         errors, and error number in other cases.
1301         (fixup_segment): Remove param names from prototype.  Rename
1302         "this_segment_type" to "this_segment".  Update linkrelax comment.
1303         Remove "size, "place" and "where" local vars.  Formatting.  Update
1304         "no symbol" comment.  Remove #if 0 and #if 1.
1305
1306         * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES.  Tidy.
1307
1308 2002-08-27  Alan Modra  <amodra@bigpond.net.au>
1309
1310         * dwarf2dbg.c: Always include dwarf2dbg.h.
1311         (dwarf2_directive_file): Adjust dummy version args.
1312         * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1313         * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1314         when symbol values differ.
1315         * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1316         (pseudo_set <O_subtract>): Remove unnecessary segment test.
1317         * config/obj-bout.c (obj_pseudo_table): Warning fix.
1318
1319 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
1320
1321         * config/tc-w65.c (md_section_align): Fix typo.
1322         (md_parse_option): Return 0, not 1.
1323
1324 2002-08-22  Nick Clifton  <nickc@redhat.com>
1325
1326         * doc/as.texinfo (Section): Note that if '@' is a comment
1327         character then another symbol is used to prefix the section's
1328         type.
1329
1330 2002-08-22  Christian Groessler <chris@groessler.org>
1331
1332         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1333         "case 0" case.
1334
1335 2002-08-12  Graeme Peterson  <gp@qnx.com>
1336
1337         * configure.in: Add support for sh-**-nto* target.
1338         * configure: Regenerate.
1339
1340 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
1341
1342         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1343
1344 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
1345
1346         * config/tc-ppc.c (ppc_cleanup): Do something only if format
1347         is ELF.
1348         (ppc_apuinfo_section_add): Define only if format is ELF.
1349         (md_assemble): Emit APUinfo section only if format is ELF.
1350         Fix formatting.
1351
1352 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
1353
1354         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1355         * config/tc-frv.c: Likewise.
1356         * config/tc-hppa.c: Likewise.
1357         * config/tc-ia64.c: Likewise.
1358         * config/tc-ip2k.c: Likewise.
1359         * config/tc-m68hc11.c: Likewise.
1360         * config/tc-m68k.c: Likewise.
1361         * config/tc-mmix.c: Likewise.
1362         * config/tc-mn10300.c: Likewise.
1363         * config/tc-sh.c: Likewise.
1364         * config/tc-sparc.c: Likewise.
1365         * config/tc-v850.c: Likewise.
1366
1367 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
1368
1369         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1370         by zero.
1371
1372 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
1373
1374         From matthew green  <mrg@redhat.com>
1375
1376         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1377         PPC_OPCODE_PPC is, except for BookE architectures.
1378         (md_parse_option): Add support for -mspe.
1379         (md_show_usage): Add -mspe.
1380         (md_parse_option): Add support for -me500 and
1381         -me500x2 to generate code for Motorola e500 core complex.
1382         (md_show_usage): Add -me500 and -me500x2.
1383
1384         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1385         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1386         PPC_APUINFO_BRLOCK): New macros.
1387
1388         (ppc_cleanup): New function.
1389         (ppc_apuinfo_section_add): New function.
1390         (APUID): New macro.
1391         (md_assemble): Collect info and write the APUinfo section.
1392
1393         * config/tc-ppc.h (md_cleanup): Define.
1394         (ppc_cleanup): Export.
1395         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1396
1397 2002-08-17  Stan Cox  <scox@redhat.com>
1398
1399         * config/obj-elf.c (obj_elf_change_section): Make non-static.
1400         config/tc-mips.c (s_change_section): New function to support
1401         IRIX .section pseudo-op.
1402
1403 2002-08-16  Nick Clifton  <nickc@redhat.com>
1404
1405         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1406
1407 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
1408
1409         * config/tc-mips.c (macro_build_jalr): Make sure we generate
1410         the fix-up against on the right frag.
1411         (s_cpsetup): Likewise.  Parse third argument as expression, to
1412         handle global symbols and forward/backward labels correctly.
1413
1414 2002-08-14  Nick Clifton  <nickc@redhat.com>
1415
1416         * read.c (stringer): Catch attempts to create strings in the abs
1417         section.
1418
1419         * config/tc-alpha.c: Fix compiling for COFF targets.
1420         Some minor formatting tidyups.
1421
1422 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1423
1424         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1425         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1426         according to the reloc.
1427         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1428         (TC_FORCE_RELOCATION): Define.
1429         (tc_m68hc11_force_relocation): Declare.
1430
1431         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1432         (s_m68hc11_relax): New function for relax group.
1433         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1434         beginning of jump instruction.
1435         (md_pcrel_from): Rename from md_pcrel_from_section and fix
1436         address computation.
1437         (tc-gen_reloc): Update.
1438         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1439         PC-relative fixup.
1440         (tc_m68hc11_force_relocation): New function, handle new relocs.
1441         (tc_m68hc11_fix_adjustable): New to make sure there are enough
1442         reloc for the linker relax pass.
1443         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1444         and VTABLE relocs.
1445
1446 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1447
1448         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1449         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1450         (s_m68hc11_mode): New function for .mode pseudo op.
1451         (s_m68hc11_mark_symbol): New function for .far and .interrupt
1452         pseudo op.
1453         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1454         (m68hc11_elf_final_processing): Declare.
1455
1456 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1457
1458         * config/tc-m68hc11.c (md_begin): Take into account additional
1459         page operand for call instruction.
1460         (print_opcode_format): Likewise.
1461         (check_range): Likewise for page range checking.
1462         (get_operand): Don't skip a possible comma in operands.
1463         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1464         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1465         (fixup24): New to handle call reloc.
1466         (build_insn): Handle missing page operand for call instruction.
1467         (find): Likewise.
1468         (md_apply_fix3): Take into account new relocs.
1469         (get_operand): Fix the mode for indexed indirect addressing.
1470         (build_indexed_byte): Fix post index byte for indexed indirect mode.
1471
1472 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
1473
1474         * config/tc-mips.c (mips_ip): Don't work out the value of
1475         constant %hi()s here.
1476
1477 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
1478
1479         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1480         for ELF, and don't bother checking ELF relocs when non-ELF.
1481         (i386_immediate): Allow absolute_section expressions for aout.
1482         (i386_displacement): Likewise.  Also test bfd_is_com_section.
1483         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1484         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1485         not when fx_addsy.  Remove dead code.
1486
1487 2002-08-09  Graeme Peterson  <gp@qnx.com>
1488
1489         * configure.in: Add support for ppc-*-nto* target.
1490         * configure: Regenerate.
1491
1492 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
1493
1494         * config/tc-i386.h: Reorganize.
1495
1496 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1497
1498         * config/tc-mips.c (macro): Handle a register plus a 16-bit
1499         immediate offset in "dla" and "la" expansions.
1500
1501 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
1502
1503         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
1504         Remove "bfd_gas=yes" from target table when covered later.
1505         Consolidate some entries.
1506         * configure: Regenerate
1507
1508 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
1509
1510         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1511         at start of insn, pass it to output_disp and output_imm.
1512         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
1513         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1514         properly addend.
1515         (output_imm): Added arguments.  Compute properly addend for
1516         R_386_GOTPC.
1517         (md_apply_fix3): Remove R_386_GOTPC handling.
1518
1519 2002-08-06  George France <france@handhelds.org>
1520
1521         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
1522         and m21264b processor names and cpu types.
1523         * doc/c-alpha.texi: Documented new types.
1524
1525 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
1526
1527         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1528
1529 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
1530
1531         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1532         handling to BFD_RELOC_MIPS16_GPREL.
1533
1534 2002-08-01  Nick Clifton  <nickc@redhat.com>
1535
1536         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1537         pool is computed using signed arithmetic so that proper sign
1538         extension is performed if X_add_number is a 64-bit integer.
1539
1540 2002-08-01  H.J. Lu  <hjl@gnu.org>
1541             Daniel Jacobowitz  <drow@mvista.com>
1542
1543         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1544         .debug_line section unless it has line information.
1545
1546 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
1547
1548         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1549         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1550         Allow default displacement size to be an option "--disp-size-default".
1551         (md_number_to_disp): Make error messages include value. Use %d to
1552         print integers, not %s.
1553         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1554         get duplicate messages sometimes.
1555         (convert_iif): Grow frag to max possible instruction size. Avoid
1556         creating unnecessary fixes.
1557         (md_number_to_field) Add prototype.
1558         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1559         prototypes and make static.
1560         (struct addr_mode): Make mode and scaled_mode explicitly signed.
1561         (evaluate_expr): Use resultP argument instead of exprP global.
1562         (get_addr_mode): Quiten compiler warnings.
1563         (encode_operand): eliminate unused variables. Quiten compiler
1564         warnings. Eliminate nul character in format strings.
1565         (parse): argc is unsigned.
1566         (reloc): Type cast index to quieten compiler.
1567         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1568         (md_convert_frag): Note unused parameters. Remove unused
1569         variables.
1570         (md_create_long_jump, md_create_short_jump,
1571         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1572         unused parameters.
1573
1574 2002-07-31  Nick Clifton  <nickc@redhat.com>
1575
1576         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1577         of the PDP-11 and 2.11BSD a.out support.
1578
1579 2002-07-31  Momchil Velikov  <velco@fadata.bg>
1580
1581         * config/tc-v850.c (md_assemble): Fix range check for immediate
1582         operand.
1583
1584 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
1585
1586         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1587         to Broadcom SB-1 core support.
1588
1589 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1590
1591         * config/tc-mips.c (mips_target_format): Fix formatting.
1592         Add recognition of n32 ABI formats.
1593
1594 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1595
1596         * tc-mips.c (load_address): Don't clobber $at when loading a
1597         64-bit address in non-PIC code if noat is in effect.
1598         (macro): Likewise.
1599
1600 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1601
1602         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1603         used in division/multiply macro expansions similarly to how they
1604         are used in the variants with break instructions.
1605         (macro2): Likewise.
1606
1607 2002-07-30  Graeme Peterson  <gp@qnx.com>
1608
1609         * configure.in: Add support for arm-*-nto target.
1610         * configure: Regenerate.
1611
1612 2002-07-30  Nick Clifton  <nickc@redhat.com>
1613
1614         * config/tc-arm.c (struct literal_pool): Add fields to allow
1615         multiple literal pools to be maintained.
1616         (find_literal_pool): New function.
1617         (find_or_make_literal_pool): New function.
1618         (add_to_literal_pool): Use find_or_make_literal_pool.
1619         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1620         needed.
1621         (s_ltorg): Use find_literal_pool.
1622         (arm_cleanup): Dump all literal pools.
1623         * doc/c-arm.texi: Document new behaviour of only dumping literal
1624         pools upon request.
1625
1626 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
1627
1628         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1629         rather than PPC_OPCODE_32 for powerpc64*.
1630
1631 2002-07-25  Nick Clifton  <nickc@redhat.com>
1632
1633         * po/es.po: Updated Spanish translation.
1634         * po/fr.po: Updated French translation.
1635
1636 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
1637
1638         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
1639         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1640         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1641         * configure, config.in: Regenerate.
1642         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1643         (mips_set_options): Remove "abi" field.
1644         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
1645         with mips_abi.
1646         (mips_cpu): Remove.
1647         (mips_arch_string, mips_arch_info): New vars.
1648         (mips_tune_string, mips_tune_info): New vars.
1649         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1650         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1651         (mips_isa_to_str, mips_cpu_to_str): Remove.
1652         (mips_ip): If the selected architecture is a generic ISA rather
1653         than a processor, only mention the ISA level in error messages.
1654         (OPTION_MCPU): Remove.
1655         (OPTION_FP64): New.
1656         (md_longopts): Add -mfp64, remove -mcpu.
1657         (mips_set_option_string): New fn.
1658         (md_parse_option): Make -mipsN update file_mips_isa rather than
1659         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
1660         Don't let -mgp32 and -mfp32 change the ABI.
1661         (show): Move to end of file.  Constify string argument.
1662         (md_show_usage): Move to the end of the file.  Read available
1663         architectures from mips_cpu_info_table.
1664         (mips_set_architecture): New fn.
1665         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
1666         is an alias for -march=mipsN.  Don't change the ABI based on other
1667         flags.  Infer the register size from the ABI as well as the
1668         architecture.  Complain about more conflicting arguments.
1669         Unify logic with GCC.
1670         (s_mipsset): Don't change the ABI.
1671         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1672         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1673         "mipsN"-type entries.  Remove entries that vary only in the
1674         manufacturer's prefix, or that have "000" replaced by "k".
1675         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
1676         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1677         (mips_parse_cpu): New fn.
1678         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1679         (mips_cpu_info_from_isa): Minor formatting tweak.
1680
1681 2002-07-24  Nick Clifton  <nickc@redhat.com>
1682
1683         * po/sv.po: Updated Swedish translation.
1684         * po/es.po: Updated Spanish translation.
1685
1686 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
1687
1688         * Makefile.am: Run "make dep-am".
1689         * Makefile.in: Regenerate.
1690         * doc/Makefile.in: Regenerate.
1691         * config.in: Regenerate.
1692         * po/POTFILES.in: Regenerate.
1693
1694 2002-07-23  Nick Clifton  <nickc@redhat.com>
1695
1696         * po/fr.po: Updated French translation.
1697
1698 2002-07-23  Nick Clifton  <nickc@redhat.com>
1699
1700         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1701         GAS.
1702
1703 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1704
1705         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1706         instead of S_IS_EXTERN.
1707         (md_estimate_size_before_relax): Likewise.
1708         (mips_fix_adjustable): Likewise.
1709
1710 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1711
1712         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1713
1714 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
1715             Nick Clifton  <nickc@redhat.com>
1716
1717         * cond.c (s_ifdef): Treat a referenced but not yet defined
1718         symbol as if it were undefined, in exactly the same way as
1719         .equiv.
1720
1721         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1722         consider referenced bug not yet defined symbols to be
1723         undefined.
1724
1725 2002-07-18  Denis Chertykov  <denisc@overta.ru>
1726             Frank Ch. Eigler  <fche@redhat.com>
1727             Alan Lehotsky  <alehotsky@cygnus.com>
1728             John Healy  <jhealy@redhat.com>
1729             Jeff Johnston  <jjohnstn@redhat.com>
1730
1731         * configure.in: Add ip2k configuraton.
1732         * configure: Regenerate.
1733         * Makefile.am: Add ip2k configuraton.
1734         * Makefile.in: Regenerate.
1735         * configure: Regenerate.
1736         * Makefile.in: Regenerate.
1737         * config/tc-ip2k.c: New file.
1738         * config/tc-ip2k.h: New files.
1739         * NEWS: Mention new support.
1740         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1741         * doc/Makefile.in: Regenerate.
1742         * doc/all.texi: Set IP2K
1743         * doc/as.texinfo: Add IP2K description.
1744         * doc/c-ip2k.texi: New file.
1745
1746 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
1747
1748         * NEWS: Reformat to match style of other NEWS files.
1749
1750 2002-07-17  Jan Hubicka  <jh@suse.cz>
1751
1752         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1753
1754 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
1755
1756         * config/tc-z8k.c (build_bytes): Correct order of memset args.
1757
1758 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
1759
1760         * NEWS: Add 'Changes in 2.13'.
1761
1762 2002-07-15  Matt Fredette  <fredette@netbsd.org>
1763
1764         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1765
1766 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
1767
1768         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1769         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
1770         not CODE_64BIT.
1771
1772 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
1773
1774         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1775         (ppc_frob_file_before_adjust): New function.
1776         * config/tc-ppc.h (tc_frob_symbol): Don't define.
1777         (ppc_elf_frob_symbol): Don't declare.
1778         (tc_frob_file_before_adjust): Define.
1779         (ppc_frob_file_before_adjust): Declare.
1780
1781         * config/tc-ppc.c (md_pseudo_table): Warning fix.
1782         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1783         flags.
1784         (ppc_size): Delete.
1785         (ppc_xcoff64): Rename to ppc_obj64.
1786         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1787         (ppc_set_cpu): Set PPC_OPCODE_32 too.
1788         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1789         or bfd_mach_ppc.
1790         (ppc_target_format): Use ppc_obj64 to select format.
1791         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1792         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1793         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
1794         (tc_frob_symbol): Likewise.
1795         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
1796         BFD_DEFAULT_TARGET_SIZE.
1797         (ppc_tc): Likewise.
1798         (ppc_is_toc_sym): Likewise.
1799         (md_apply_fix3): Likewise.
1800         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1801         BFD_DEFAULT_TARGET_SIZE.
1802         (ELF_TC_SPECIAL_SECTIONS): Likewise.
1803         (tc_frob_symbol): Likewise.
1804
1805 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1806
1807         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1808         (mips_ip): Likewise.
1809
1810 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
1811
1812         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1813         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1814         (md_apply_fix3): Formatting.  Remove redundant test.
1815         (tc_gen_reloc): Remove redundant code.
1816         (tc_i386_force_relocation): Delete.  Movy body of function to..
1817         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1818
1819 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
1820
1821         * configure.in: Add hppa-*-openbsd* target, change
1822         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1823         with sparc64 cpu.
1824         * configure: Regenerate.
1825
1826 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1827
1828         * config/tc-mips.c (macro): Shift the 32-bit address range
1829         accessible with a lone "lui" down by 32768.
1830
1831 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1832
1833         * config/tc-mips.c (load_address): Use non-trapping "daddu"
1834         instead of "dadd" in address calculations.
1835         (macro): Likewise.
1836
1837 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
1838
1839         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1840         movzx fudges.
1841         (md_assemble): Instead, zap the suffix here.
1842
1843 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
1844
1845         * NEWS: Remove next release number until the release is actually
1846         upon us.
1847
1848 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
1849
1850         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1851         Run "make dep-am".
1852         * Makefile.in: Regenerate.
1853
1854 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1855
1856         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1857         to symbols in merge sections, even non pc-relative ones.
1858
1859 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
1860
1861         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1862
1863 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
1864
1865         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1866         .softregs and .eeprom.
1867
1868 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
1869
1870         * NEWS: Note the next release is 2.13.
1871
1872 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
1873
1874         * po/tr.po: New translation imported.
1875
1876 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
1877
1878         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1879         (ecoff_directive_def): Likewise.
1880         (ecoff_directive_tag): Likewise.
1881         * listing.c (file_info): Likewise.
1882         * hash.c (what): Likewise.
1883
1884 2002-06-25  H.J. Lu <hjl@gnu.org>
1885
1886         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1887         * Makefile.in: Regenerated.
1888
1889 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1890
1891         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1892         (assemble_ppi): Generate warning if the same register is used
1893         twice as destination in the same padd / pmuls instruction.
1894
1895 2002-06-18  Dave Brolley  <brolley@redhat.com>
1896
1897         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
1898         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1899         * configure.in: Support frv-*-*.
1900         * Makefile.am (CPU_TYPES): Add frv.
1901         (TARGET_CPU_CFILES): Add tc-frv.c.
1902         (TARGET_CPU_HFILES): Add tc-frv.h.
1903         (DEPTC_frv_coff): New variable.
1904         (DEPTC_frv_elf): New variable.
1905         (DEPOBJ_frv_coff): New variable.
1906         (DEPOBJ_frv_elf): New variable.
1907         (DEP_frv_coff): New variable.
1908         (DEP_frv_elf): New variable.
1909         * tc-frv.c: New file.
1910         * tc-frv.h: New file.
1911
1912 2002-06-17  Catherine Moore <clm@redhat.com>
1913
1914         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
1915
1916 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
1917
1918         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1919
1920 2002-06-17  Tom Rix <trix@redhat.com>
1921
1922         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1923
1924 2002-06-14  H.J. Lu  <hjl@gnu.org>
1925             Daniel Jacobowitz  <drow@mvista.com>
1926
1927         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1928         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1929         * config/tc-mips.c (s_mips_file): Call s_app_file_string
1930         and new_logical_line for the first .file directive.
1931         * read.c (s_app_file_string): New function.
1932         (s_app_file): Call it.
1933         * read.h (s_app_file_string): Add declaration.
1934
1935 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
1936
1937         * configure.in: Remove MIPS_STABS_ELF.
1938         * configure: Regenerated.
1939         * config.in: Regenerated.
1940         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1941         for MIPS targets.
1942         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1943         ".extern".
1944         (pdr_seg): Declare unconditionally.
1945         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1946         (s_mips_end): Likewise.  Generate stabs function markers.
1947         (s_mips_ent): Generate stabs function markers.
1948         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1949         ELF.
1950         (s_mips_mask): Likewise.
1951         (mips_flag_mdebug): New.
1952         (md_longopts): Add "mdebug" and "no-mdebug".
1953         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1954         (mips_after_parse_args): Set mips_flag_mdebug.
1955         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1956
1957 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1958
1959         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1960         value twice for RELA relocations.
1961
1962 2002-06-12  Ben Elliston  <bje@redhat.com>
1963
1964         * symbols.c (resolve_symbol_value): Initialise final_val.
1965
1966         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1967
1968 2002-06-11  Tom Rix  <trix@redhat.com>
1969
1970         * config/tc-ppc.c (ppc_subseg_align): Delete.
1971         (ppc_change_csect): Default csect align is 2.
1972         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
1973
1974 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1975
1976         * config/tc-avr.c (mcu_types): Update.
1977
1978 2002-06-08  Matt Thomas  <matt@3am-software.com>
1979
1980         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1981         (vax-*-netbsd*): New targets.
1982         * configure: Regenerate.
1983         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
1984         * config/tc-vax.c: Add support for ELF and PIC.
1985         (flag_want_pic): New flag.
1986         (float_cons): Fix prototype.
1987         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
1988         (md_assemble): Introduce a new is_absolute local, and use it
1989         rather than repeating the test.  Make fatal errors actually
1990         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
1991         Add support for ELF.  Add support for PIC.
1992         (md_convert_frag): Adjust for BFD_ASSEMBLER.
1993         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1994         BFD_ASSEMBLER.
1995         (vax_reg_parse): Make the % register prefix mandatory for ELF,
1996         optional for a.out, and not allowed for VMS.  Adjust all callers.
1997         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
1998         (md_create_long_jump): Likewise.
1999         (md_undefined_symbol): Likewise.
2000         (md_section_align): Likewise.
2001         (md_shortopts): Allow -k and -K for ELF.
2002         (md_parse_option): Set flag_want_pic if -k or -K.
2003         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2004         (tc_gen_reloc): New function if BFD_ASSEMBLER.
2005         * config/tc-vax.h (tc_headers_hook): Remove.
2006         (TARGET_FORMAT): Set according to object format and target
2007         environment.
2008         (BFD_ARCH, TARGET_ARCH): Define.
2009         (NO_RELOC): Adjust for BFD_ASSEMBLER.
2010         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2011         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2012         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2013
2014 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
2015
2016         * Makefile.am: Run "make dep-am".
2017         * Makefile.in: Regenerate.
2018
2019         * as.c: Replace CONST with const.
2020         * write.c: Likewise.
2021         * config/obj-coff.c: Likewise.
2022         * config/tc-a29k.c: Likewise.
2023         * config/tc-arm.c: Likewise.
2024         * config/tc-dlx.c: Likewise.
2025         * config/tc-h8300.c: Likewise.
2026         * config/tc-h8500.c: Likewise.
2027         * config/tc-i370.c: Likewise.
2028         * config/tc-i860.c: Likewise.
2029         * config/tc-i960.c: Likewise.
2030         * config/tc-m68hc11.c: Likewise.
2031         * config/tc-m68k.c: Likewise.
2032         * config/tc-m88k.c: Likewise.
2033         * config/tc-mcore.c: Likewise.
2034         * config/tc-mips.c: Likewise.
2035         * config/tc-ns32k.c: Likewise.
2036         * config/tc-pdp11.c: Likewise.
2037         * config/tc-pj.c: Likewise.
2038         * config/tc-s390.c: Likewise.
2039         * config/tc-sh.c: Likewise.
2040         * config/tc-sparc.c: Likewise.
2041         * config/tc-tahoe.c: Likewise.
2042         * config/tc-tic80.c: Likewise.
2043         * config/tc-v850.c: Likewise.
2044         * config/tc-vax.c: Likewise.
2045         * config/tc-w65.c: Likewise.
2046         * config/tc-z8k.c: Likewise.
2047
2048 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
2049
2050         Based on patch from Matt Green:
2051         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2052         * config/tc-mips.c (s_mips_file): Renamed from s_file.
2053         (s_mips_loc): New function.
2054         (mips_nonecoff_pseudo_table): Call them.
2055         (append_insn): Call dwarf2_emit_insn.
2056
2057 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2058
2059         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2060         to -1.
2061         (file_ase_mips16): New veriable.
2062         (mips_eabi64): Remove.
2063         (CPU_HAS_MIPS16): New define.
2064         (CPU_HAS_MDMX): Fix data type.
2065         (md_begin): Code cleanup. Use file_ase_mips16.
2066         (mips_elf_final_processing): Handle mips16 header flag.
2067         Handle EABI flag without intermediate variable.
2068
2069 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2070
2071         * doc/as.texinfo: Update MIPS documentation.
2072
2073 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2074
2075         * config/tc-mips.c: Add define for $zero register.
2076         (md_begin): Add $zero as alias name for $0.
2077         (insn_uses_reg): Use ZERO define.
2078         (mips_ip): Add $zero as alias name for $0.
2079         (mips16_ip): Likewise.
2080         (s_cplocal): Demand empty rest of input line.
2081         (tc_get_register): Likewise. Add support for $kt0, kt1 register
2082         names. Use ZERO define. Fix input_line_pointer progress.
2083
2084 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2085
2086         * symbols.c: Replace CONST by const throughout.
2087         (symbol_find_exact): Split out from..
2088         (symbol_find_base): ..here.
2089         * symbols.h: Replace CONST by const throughout.
2090         (symbol_find_exact): Declare.
2091         * config/obj-elf.c: #include "struc-symbol.h".
2092         (elf_frob_file): If group name matches an exported symbol, use that
2093         symbol for the signature and ".group" as the section name.
2094
2095 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
2096
2097         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2098         but warn about it.
2099
2100 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
2101
2102         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2103         and mips_opts.ase_mdmx if they are uninitialized.
2104
2105 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2106
2107         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2108         (hppa_force_relocation): Check if a stub just before the start symbol
2109         of the last call_info is reachable before forcing relocation.  Fix
2110         typo.
2111
2112 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2113
2114         * config/tc-mips.c (mips_after_parse_args): New function.
2115         (md_begin): Move processing of defaults to mips_after_parse_args.
2116         config/tc-mips.h (md_after_parse_args): Define.
2117
2118 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2119
2120         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2121         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2122         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2123         * configure: Regenerate.
2124         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2125         environment.
2126
2127 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2128
2129         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2130
2131 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
2132
2133         * config/obj-elf.c (obj_elf_change_section): Set and check elf
2134         linkonce flag.  Print all warnings.
2135         (obj_elf_section): Parse ",comdat" for groups.
2136         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
2137         consistency of comdat flag.
2138
2139 2002-06-02  Richard Henderson  <rth@redhat.com>
2140
2141         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2142         with LITERALs without sequence numbers.
2143
2144 2002-06-01  Richard Henderson  <rth@redhat.com>
2145
2146         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2147         Rename them LITUSE_ALPHA_*.
2148
2149 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
2150
2151         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2152         accept parentheses enclosed register lists.
2153
2154 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
2155
2156         * Makefile.am: Run "make dep-am".
2157         * Makefile.in: Regenerate.
2158         * po/POTFILES.in: Regenerate.
2159
2160 2002-05-31  Graeme Peterson  <gp@qnx.com>
2161
2162         * configure.in: Add i386-*-nto-qnx*.
2163         * configure: Regenerate.
2164
2165 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2166
2167         * config/tc-mips.c (mips_ip): Use unsigned long values for
2168         warning output.
2169
2170 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2171
2172         * config/tc-mips.c (s_cpsetup): Fix initialization of
2173         mips_cpreturn_register and mips_cpreturn_offset.
2174
2175 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2176
2177         * config/tc-mips.c (s_cpsetup): Fix comment.
2178
2179 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2180
2181         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2182         (mips_ip): Likewise.
2183         (mips16_ip): Likewise.
2184         (tc_get_register): Likewise.
2185
2186 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
2187             Ed Satterthwaite  <ehs@broadcom.com>
2188
2189         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2190         (mips_opts): Initialize "ase_mdmx" member.
2191         (file_ase_mdmx): New variable.
2192         (CPU_HAS_MDMX): New macro.
2193         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2194         based on command line options and configuration defaults.
2195         (macro_build): Note in comment that use of MDMX in macros is
2196         not currently allowed.
2197         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2198         "Z" MDMX operand types.
2199         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2200         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2201         types.
2202         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2203         Add support for "-mdmx" and "-no-mdmx" options.
2204         (OPTION_ELF_BASE): Move to accomodate new options.
2205         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2206         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2207         file_ase_mdmx was set.
2208         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2209         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2210         nomdmx" directives.
2211
2212 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2213
2214         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2215         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2216         command line switch conforming to gcc conventions.
2217         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2218
2219 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2220
2221         * config/tc-mips.c (macro_build_jalr): New Function.
2222         (md_begin): NewABI uses big GOTs.
2223         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2224         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2225         (load_address): Add some NewABI PIC support.
2226         (macro): Likewise.
2227         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2228         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2229
2230 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2231
2232         * config/tc-mips.c (load_address): Use mips_gp_register instead
2233         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2234         instead.
2235         (macro): Use mips_gp_register instead of hardcoded value.
2236
2237 2002-05-30  Richard Henderson  <rth@redhat.com>
2238
2239         * expr.h (operatorT): Add O_md17..O_md32.
2240         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2241         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2242         O_tprelhi, O_tprello, O_tprel): New.
2243         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2244         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2245         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2246         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2247         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
2248         (md_apply_fix3): Handle TLS relocations.
2249         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2250         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2251         associated TLS reloc.  Check lituse_tls relocs match up.
2252         (emit_insn): Handle TLS relocations.
2253         (ldX_op): Remove.
2254
2255         * doc/c-alpha.texi: Add docs for tls relocations.
2256
2257 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2258
2259         * config/tc-mips.c (mips_gprel_offset): New variable.
2260         (s_gpvalue): Use it.
2261
2262 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
2263
2264         * gas/config/tc-d10v.c (check_resource_conflict): Only check
2265         write-write conflicts.
2266         (md_assemble): Reformat introductory comment.
2267         (parallel_ok): Prevent packing only if the first
2268         instruction cannot be packed.
2269
2270 2002-05-30  Jason Eckhardt <jle@redhat.com>
2271             Tom Rix <trix@redhat.com>
2272
2273         * config/tc-d10v.c (build_insn): Check for immediates.
2274
2275 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2276
2277         * config/tc-mips.c: Replace GP in comments by $gp.
2278         (mips_big_got): Initialize.
2279         (mips_trap): Initialize.
2280         (load_address): Use mips_gp_register instead of hardcoded value.
2281         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2282         (macro): Use mips_gp_register instead of hardcoded value.
2283         (macro2): Change load_address calls.
2284         (md_pcrel_from): Comment formatting.
2285         (s_cpload): Use mips_gp_register instead of hardcoded value.
2286         (s_cprestore): Likewise. Comment formatting.
2287         (s_gpword): Fix data type.
2288         (s_cpadd): Use mips_gp_register instead of hardcoded value.
2289         (nopic_need_relax): Replace GP in comments by $gp.
2290         (mips_elf_final_processing): Better comment.
2291
2292 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
2293
2294         * configure.in: Add DLX configuraton
2295         * Makefile.am: Add DLX configuraton
2296         * configure: Regenerate.
2297         * Makefile.in: Regenerate.
2298         * config/tc-dlx.c: New file.
2299         * config/tc-dlx.h: New files.
2300         * NEWS: Mention new support.
2301
2302 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
2303
2304         * config/obj-coff.c (write_object_file): Add missing semicolon.
2305
2306 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2307
2308         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2309         by the define. Remove superfluous check of mips_opts.mips16.
2310         (append_insn): Likewise. Canonicalize variable increments.
2311         (macro_build): Canonicalize variable increments.
2312         (macro_build_lui): Likewise.
2313         (load_register): Likewise.
2314         (load_address): Move pointer initialization.
2315         (macro): Move pointer to a more local scope. Canonicalize variable
2316         increments. Better comments. Replace magic constant for RA by the
2317         define.
2318         (macro2): Replace magic constant for RA by the define. Canonicalize
2319         variable increments.
2320         (mips_ip): Canonicalize variable increments.
2321         (mips16_ip): Replace magic constant for RA by the define.
2322         (my_getSmallParser): Canonicalize variable increments/decrements.
2323         (my_getPercentOp): Likewise.
2324         (my_getSmallExpression): Likewise.
2325         (s_align): Likewise.
2326         (s_mipsset): Likewise.
2327         (s_cpsetup): Likewise.
2328         (s_insn): Remove superfluous check of mips_opts.mips16.
2329         (s_mips_stab): Likewise.
2330         (mips_handle_align): Canonicalize variable increments.
2331         (s_mips_ent): Likewise.
2332         (s_mips_end): Add comment.
2333
2334 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
2335
2336         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2337         * configure: Regenerate.
2338
2339 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
2340
2341         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2342         * Makefile.in: Regenerate.
2343         * dep-in.sed: Reorder to match OBJS in Makefile.am.
2344         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2345         * configure: Regenerate.
2346         * as.h: Use #include "" instead of <> for local header files.
2347         * flonum-konst.c: Likewise.
2348         * flonum-mult.c: Likewise.
2349         * gasp.c: Likewise.
2350         * listing.c: Likewise.
2351         * config/tc-ia64.h: Likewise.
2352         * config/tc-v850.h: Likewise.
2353
2354 2002-05-24  TAMURA Kent <kent@netbsd.org>
2355
2356         * configure.in: Add a target for i386-netbsdpe.
2357         * configure: Regenerate.
2358
2359 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
2360
2361         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2362         (obj_elf_common): Call elf_common.
2363         (obj_elf_tls_common): New function.
2364         (elf_pseudo_tab): Support .tls_common.
2365         (special_sections): Add .tdata and .tbss.
2366         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2367         sections.
2368         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2369         (obj_elf_parse_section_letters): Include T in error message.
2370         * config/tc-ppc.c (ppc_section_letter): Likewise.
2371         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2372         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2373         SEC_MERGE.
2374         * config/tc-sparc.c (md_apply_fix3): Likewise.
2375         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2376         Define them if not BFD_ASSEMBLER.
2377         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2378         and @NTPOFF.
2379         (md_apply_fix3): Add TLS relocs.
2380         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2381         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2382         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2383         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2384         (ia64_elf_section_letter): Include T in error message.
2385         (md_begin): Support TLS operators.
2386         (md_operand): Likewise.
2387         (ia64_gen_real_reloc_type): Support TLS relocs.
2388         * write.c (adjust_reloc_syms): Don't change symbols in
2389         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2390
2391 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
2392
2393         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2394         round the relocation up rather than down.
2395
2396 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
2397
2398         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2399         flag.
2400         * doc/as.texinfo: Document that the COFF version of .section
2401         ignores the 'a' flag.
2402
2403 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
2404
2405         * config/tc-alpha.c (assemble_tokens): Protect use of
2406         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2407
2408         * write.c (size_seg): Check adjustment to last frag.
2409         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2410         section alignment.
2411         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2412         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2413         (write_object_file): Invoke md_do_align if available, and use
2414         frag_align_code on text sections.
2415         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2416         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2417         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2418         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2419         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
2420         BFD_ASSEMBLER too.
2421
2422 2002-05-22  H.J. Lu <hjl@gnu.org>
2423
2424         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2425         for source file.
2426
2427 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
2428
2429         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2430         as ELF builds.
2431
2432 2002-05-22  H.J. Lu <hjl@gnu.org>
2433
2434         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2435         for one .loc for compiler.
2436
2437 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2438
2439         * config/tc-mips.c (macro): Relax warning, it's toot strict for
2440         embedded-PIC.
2441
2442 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2443
2444         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2445         Optimize the rotate by zero case.
2446
2447 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
2448
2449         * configure.in: Remove accidental enabling of bfd_gas=yes for
2450         sh-coff targets.
2451         * configure: Regenerate.
2452
2453 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2454
2455         * app.c: Fix formatting.
2456         * as.c: Likewise.
2457         * ehopt.c: Likewise.
2458         * expr.c: Likewise.
2459         * input-file.c: Likewise.
2460         * listing.c: Likewise.
2461         * macro.h: Likewise.
2462         * stabs.c: Likewise.
2463         * symbols.c: Likewise.
2464
2465 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
2466
2467         * config/obj-generic.c: Delete file.
2468         * config/obj-generic.h: Likewise.
2469
2470 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2471
2472         * config/tc-avr.c (mcu_types): Update for new devices.
2473
2474 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2475
2476         * config/tc-mips.c (macro): Warn about wrong la/dla use.
2477
2478 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2479
2480         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2481         worked sometimes by accident. Fix copy&paste comment.
2482
2483 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2484
2485         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2486         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2487         (mips_elf_final_processing): Let n32 use .reginfo.
2488
2489 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2490
2491         * config/tc-mips.c (append_insn): Fix too small range of variable.
2492
2493 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
2494
2495         * config/tc-arm.c (arm_cleanup): Remove redundant call to
2496         listing_prev_line().
2497
2498 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
2499
2500         * config/tc-arm.c (md_assemble): Remove redundant call to
2501         listing_prev().
2502
2503         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2504         loc_directive_seen.
2505
2506         * stabs.c (s_stab_generic): Fix grammatical error in warning
2507         message.
2508
2509 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
2510
2511         * write.c (subsegs_finish): Don't specially align last subseg.
2512
2513 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
2514
2515         * stabs.c (s_stab_generic): Warn about a description field that is
2516         too big.
2517
2518         * config/obj-coff.c: Fix compile time warnings when compiling
2519         without BFD_ASSEMBLER defined.
2520         Fix formatting.
2521
2522         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2523         target.
2524         (md_pcrel_from_section): Use md_pcrel_from().
2525
2526 2002-05-11  Bruno Haible  <bruno@clisp.org>
2527
2528         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2529         by dwarf2_directive_loc, instead of calling dwarf2_where.
2530
2531 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
2532
2533         * config/obj-coff.h: Fix formatting.
2534         * config/tc-mcore.c: Likewise.
2535         * config/tc-mn10300.c: Likewise.
2536         * config/tc-openrisc.c: Likewise.
2537         * config/tc-or32.c: Likewise.
2538         * config/tc-pdp11.c: Likewise.
2539         * config/tc-ppc.c: Likewise.
2540         * config/tc-ppc.h: Likewise.
2541         * config/tc-sh64.c: Likewise.
2542         * config/tc-sh.c: Likewise.
2543         * config/tc-tic54x.c: Likewise.
2544         * config/tc-xstormy16.c: Likewise.
2545         * config/tc-xstormy16.h: Likewise.
2546
2547 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
2548
2549         * config/obj-coff.c: Fix formatting.
2550         * config/obj-elf.c: Likewise.
2551         * config/tc-alpha.c: Likewise.
2552         * config/tc-arm.c: Likewise.
2553         * config/tc-d10v.c: Likewise.
2554         * config/tc-d30v.c: Likewise.
2555         * config/tc-h8300.c: Likewise.
2556         * config/tc-hppa.c: Likewise.
2557
2558 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
2559
2560         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2561         reloc when no_cond_jump_promotion.
2562
2563 2002-05-08  Jim Wilson  <wilson@redhat.com>
2564
2565         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2566         current variable part of frag.
2567
2568 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
2569
2570         * config/tc-mmix.c: Fix formatting.
2571         * config/tc-mmix.h: Likewise.
2572
2573 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
2574
2575         * configure: Regenerate.
2576
2577 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
2578
2579         * config/tc-m68k.c: Fix formatting.
2580
2581 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
2582
2583         * Makefile.am: Honour DESTDIR.
2584         * Makefile.in: Regenerate.
2585
2586 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
2587
2588         * config/tc-ia64.c: Fix formatting.
2589         * config/tc-ia64.h: Likewise.
2590
2591 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
2592
2593         * config/tc-mips.c: Fix formatting.
2594         * config/tc-s390.c: Likewise.
2595         * config/tc-s390.h: Likewise.
2596
2597 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
2598
2599         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2600         information for instructions.
2601
2602 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2603
2604         * as.h: Fix formatting.
2605         * cgen.c: Likewise.
2606         * cgen.h: Likewise.
2607         * dwarf2dbg.c: Likewise.
2608         * frags.h: Likewise.
2609         * gasp.c: Likewise.
2610         * macro.c: Likewise.
2611         * read.c: Likewise.
2612         * stabs.c: Likewise.
2613         * symbols.c: Likewise.
2614
2615 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
2616
2617         * app.c (mri_pseudo): Only declare for TC_M68K.
2618
2619         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2620         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2621         BFD_RELOC_16_BASEREL.
2622         (md_assemble): Likewise.
2623         (md_apply_fix3): Likewise.
2624
2625 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
2626
2627         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2628         zero into an add of zero - it is not the same.
2629
2630 2002-05-01  Arati Dikey <aratid@kpit.com>
2631
2632         * tc-sh.c (get_specific): Generate warning if the same
2633         destination register is used in parallel instructions.
2634
2635 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
2636
2637         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2638
2639 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
2640
2641         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2642         backwards to prevent cascading errors.
2643
2644 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
2645
2646         * configure.in: Add support for powerpc-*-windiss.
2647         * configure: Regenerated.
2648
2649 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
2650
2651         * config/tc-s390.c (md_parse_option): Formatting.
2652
2653         * config/tc-i386.c: Formatting fixes, add missing space in error
2654         message.
2655
2656 2002-04-24  Christian Groessler <chris@groessler.org>
2657
2658         * config/tc-z8k.c (build_bytes): Add support for new cases:
2659         CLASS_IGNORE and ARG_NIM4.
2660         (md_assemble): Prevent destruction of input_line_pointer if
2661         get_operands returns failure.
2662
2663 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
2664
2665         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2666         instructions to be generated by macros.
2667
2668 2002-04-24  Andreas Schwab  <schwab@suse.de>
2669
2670         * config/tc-i386.c (output_jump, output_disp)
2671         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2672         more.
2673         (md_apply_fix3): Remember addend value for rela relocations.
2674         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2675
2676 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
2677
2678         * config/tc-mips.c (macro_build): Add close-parenthesis missing
2679         from previous change.
2680
2681 2002-04-22  Eric Christopher  <echristo@redhat.com>
2682
2683         * config/tc-mips.c (macro_build): Add warning if macro instructions
2684         are expanded into a branch delay slot.
2685
2686 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
2687
2688         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2689         numbers, gdb relies on them to detect the start of the prologue.
2690
2691 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2692
2693         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2694         symbols in merge sections.
2695
2696 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
2697
2698         * as.c (main): Don't reference _bfd_chunksize.
2699
2700 2002-04-15  Tom Rix  <trix@redhat.com>
2701
2702         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
2703         symbols in merge sections.
2704
2705 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2706
2707         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2708         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2709         argument for the precision.
2710         (gen_to_words): Update accordingly.
2711
2712 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2713
2714         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2715         BFD_VERSION_STRING unavailable.
2716         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2717
2718 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
2719
2720         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2721         symbol_used_in_reloc_p is true.
2722
2723         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2724         endian hosts.
2725
2726 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2727
2728         * dep-in.sed: Cope with absolute paths.
2729         * Makefile.am (dep.sed): Subst TOPDIR.
2730         Run "make dep-am".
2731         * Makefile.in: Regenerate.
2732
2733 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2734
2735         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2736         (mips_ip): Remove unused variable.
2737         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2738         unsigned char with bfd_byte.
2739         (s_file): Remove unused variable.
2740         (s_mips_ent): Likewise.
2741
2742 2002-04-03  Tom Rix  <trix@redhat.com>
2743
2744         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2745         (build_insn): Same.
2746         (find_opcode): Fix warning in as_warn.
2747         * config/tc-d10v.h: Update Copyright.
2748
2749 2002-04-03  Alan Matsuoka <alanm@redhat.com>
2750             Tom Rix  <trix@redhat.com>
2751
2752         From Jeff Knaggs <jknaggs@redhat.com>
2753         * config/tc-d10v.c (check_resource_conflict): New function to
2754         check for resource conflicts.
2755
2756         From Jason Eckhardt  <jle@redhat.com>
2757         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2758         imm3 fields.
2759         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2760         reserved control registers is used.
2761         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2762         imm3 fields.
2763
2764         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
2765         * tc-d10v.c (parallel_ok): Prevent packing only if the first
2766         instruction cannot be packed.
2767
2768         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
2769         * gas/config/tc-d10v.c (check_resource_conflict): Only check
2770         write-write conflicts.
2771         (md_assemble): Reformat introductory comment.
2772         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2773         arguments.
2774
2775 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
2776
2777         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2778         O_logical_not>): Derive final_seg from add_symbol.
2779         <O_multiply..O_logical_or>: More final_seg twiddles.
2780
2781 2002-04-01  Jessica Han  <jessica@cup.hp.com>
2782
2783         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
2784         in 32-bit mode.
2785
2786 2002-03-27  Andreas Schwab  <schwab@suse.de>
2787
2788         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2789         field for pc-relative fixups.
2790         (output_disp): Likewise.
2791         (md_estimate_size_before_relax): Likewise.
2792         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2793         pc-relative fixups in 64bit mode.
2794
2795 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2796
2797         * config/te-aix5.h: Typo fix.
2798
2799 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
2800
2801         * Makefile.am: Run "make dep-am".
2802         * Makefile.in: Regenerate.
2803         * doc/Makefile.in: Regenerate.
2804
2805 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
2806
2807         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2808         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2809
2810 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
2811
2812         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2813         the EXTENDED bit here; report the estimate according to the
2814         current size.
2815
2816 2002-03-18  Tom Rix  <trix@redhat.com>
2817
2818         * configure.in: Add AIX 5 support.
2819         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2820         * config/te-aix5.h: New file. AIX 5 support.
2821         * configure: Regenerate.
2822
2823 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
2824
2825         * po/fr.po: Updated version.
2826
2827 2002-03-16  Andreas Jaeger  <aj@suse.de>
2828
2829         * doc/c-mips.texi (Machine Dependencies): Add new node.
2830
2831 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
2832
2833         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2834         (mips_opts): Initialize "ase_mips3d" member.
2835         (file_ase_mips3d): New variable.
2836         (CPU_HAS_MIPS3D): New macro.
2837         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2838         based on command line options and configuration defaults.
2839         (macro_build, mips_ip): Accept MIPS-3D instructions if
2840         mips_opts.ase_mips3d is set.
2841         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2842         Add support for "-mips3d" and "-no-mips3d" options.
2843         (OPTION_ELF_BASE): Move to accomodate new options.
2844         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2845         (mips_elf_final_processing): Add a comment indicating that a
2846         MIPS-3D ASE ELF header flag should be set, when one exists.
2847         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2848         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2849         nomips3d" directives.
2850
2851 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
2852
2853         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2854         a weak symbol in same section to be within reach.
2855
2856 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
2857
2858         * po/fr.po: Updated version.
2859
2860 2002-03-12  Andreas Schwab  <schwab@suse.de>
2861
2862         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2863         body record so that an error is given for misplaced .save
2864         pseudo-ops.
2865
2866 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
2867
2868         * config/tc-i386.h (REX_OPCODE): Define.
2869         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2870         (rex_byte): typedef to int.
2871         * config/tc-i386.c: Group prototypes and vars together.
2872         Formatting fixes.  Remove occurrences of "register" keyword.
2873         (true): Delete.
2874         (false): Delete.
2875         (mode_from_disp_size): Add INLINE keyword to prototype.
2876         (fits_in_signed_byte): Likewise.
2877         (fits_in_unsigned_byte): Likewise.
2878         (fits_in_unsigned_word): Likewise.
2879         (fits_in_signed_word): Likewise.
2880         (fits_in_unsigned_long): Likewise.
2881         (fits_in_signed_long): Likewise.
2882         (type_names): Constify.
2883         (intel_float_operand): Constify param.
2884         (add_prefix): Use REX_OPCODE.
2885         (md_assemble): Likewise.  Modify for changed rex_byte.
2886         (parse_insn): Split out of md_assemble.
2887         (parse_operands): Likewise.
2888         (swap_operands): Likewise.
2889         (optimize_imm): Likewise.
2890         (optimize_disp): Likewise.
2891         (match_template): Likewise.
2892         (check_string): Likewise.
2893         (process_suffix): Likewise.
2894         (check_byte_reg): Likewise.
2895         (check_long_reg): Likewise.
2896         (check_qword_reg): Likewise.
2897         (check_word_reg): Likewise.
2898         (finalize_imm): Likewise.
2899         (process_operands): Likewise.
2900         (build_modrm_byte): Likewise.
2901         (output_insn): Likewise.
2902         (output_branch): Likewise.
2903         (output_jump): Likewise.
2904         (output_interseg_jump): Likewise.
2905         (output_disp): Likewise.
2906         (output_imm): Likewise.
2907
2908 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
2909
2910         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2911
2912 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
2913
2914         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2915         relocs except when BFD64.
2916
2917         * write.c (number_to_chars_bigendian): Don't abort when N is
2918         larger than sizeof (VAL).
2919         (number_to_chars_littleendian): Likewise.
2920
2921 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2922
2923         * config/tc-hppa.c (md_apply_fix3): Add cast.
2924         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2925         e_rrsel.
2926
2927 2002-03-05  Paul Koning  <pkoning@equallogic.com>
2928
2929         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2930         (parse_ac5): New function for parsing float regs in float operand.
2931         (parse_expression): Remove attempt to make literals be octal.
2932         (parse_op_no_deferred): Support float literals.
2933         (parse_op): Reject attempts to refer to float regs.
2934         (parse_fop): New function, like parse_op but for float operand.
2935         (md_assemble): Add cases to parse float operands.  Also fix
2936         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2937
2938 2002-03-04  H.J. Lu <hjl@gnu.org>
2939
2940         * config/obj-elf.c (special_section): Add .init_array,
2941         .fini_array and .preinit_array.
2942
2943         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2944         .init_array and .fini_array.
2945
2946 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
2947
2948         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2949         visibility.
2950         (obj_frob_symbol): Copy visibility.
2951
2952 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
2953
2954         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2955         s_text.
2956         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2957
2958 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
2959
2960         * po/es.po: Updated.
2961
2962 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
2963
2964         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2965         only, undo the changes made on 2001-06-08, with the
2966         effect being that common or extern symbols are
2967         adjusted for embedded-PIC, but weak symbols are not.
2968         (md_estimate_size_before_relax: Likewise, with the effect
2969         that extern symbols are treated the same as weak symbols
2970         only if not embedded-PIC.
2971         (mips_fix_adjustable) Likewise, with the effect that
2972         weak or extern symbols are not adjusted for embedded-PIC.
2973         (md_apply_fix3): Tweak so that the case where value is zero
2974         is handled more correctly for embedded-PIC code.
2975
2976 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
2977
2978         * doc/as.texinfo (Overview): Add missing @ifset IA64
2979
2980         * configure.in (LINGUAS): Add es.po.
2981         * configure: Regenerate.
2982         * po/es.po: New file.
2983
2984 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2985
2986         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
2987         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
2988         and NO_PIC cases. Code cleanup.
2989         (macro2): Fix handling of 64bit register loads.
2990
2991 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
2992
2993         * doc/as.texinfo: Add entry for IA64.
2994         * doc/c-ia64.texi: New file.
2995
2996 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
2997
2998         * config/tc-hppa.c: Update copyright date.
2999
3000         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3001         Remove references to chip manufacturers.
3002         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3003         Correct comments.
3004         (md_show_usage): Remove references to chip manufacturers.  Mention
3005         -mpower4.
3006         (md_begin): Test power4 opcode flag bits.
3007
3008 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
3009
3010         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3011         count exceeds prologue count.
3012         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3013         (unwind.label_prologue_count): New member.
3014
3015         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3016
3017         (get_saved_prologue_count): New function.
3018         (save_prologue_count): New function.
3019         (free_saved_prologue_count): New function.
3020         (dot_label_state): Record state label by calling save_prologue_count().
3021         (dot_copy_state): Restore prologue count by calling
3022         get_saved_prologue_count().
3023         (generate_unwind_image): Free up list of saved prologue
3024         counts by calling free_saved_prologue_counts().
3025
3026 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
3027
3028         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3029         function declarations.
3030
3031 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
3032
3033         * NEWS: Note that GASP is now deprecated.
3034         * Makefile.am: Do not build gasp-new by default.
3035         * Makefile.in: Regenerate.
3036         * doc/Makefile.am: Do not install gasp.info.
3037         * doc/Makefile.in: Regenerate.
3038         * gas/gasp.texi: Note that gasp is now deprecated.
3039
3040 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
3041
3042         * NEWS: Mark 2.12 branch.
3043
3044 2002-02-19  Tom Tromey  <tromey@redhat.com>
3045
3046         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3047
3048 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3049
3050         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3051         option input.
3052
3053 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3054
3055         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3056         Make bit size independent of architecture switch.
3057         (md_begin): Add warning for -m64 with -Aesa.
3058         (s390_md_end): Use renamed architecture defines.
3059
3060 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
3061
3062         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3063
3064 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
3065
3066         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3067         instead of CRIS.
3068
3069 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
3070
3071         * config/tc-mips.c (md_estimate_size_before_relax): Really
3072         make sure we treat weak like extern only for ELF.  (Fixes
3073         patch from 2001-07-25.)
3074
3075 2002-02-15  Ben Elliston  <bje@redhat.com>
3076
3077         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3078         works as expected.
3079
3080 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
3081
3082         * NEWS: Mention support for MMIX.
3083
3084 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
3085
3086         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3087         a sequence of indpendent 'if' statements for easier debugging
3088         and future modification.
3089
3090 2002-02-13  Matt Fredette  <fredette@netbsd.org>
3091
3092         * config/tc-m68k.c (md_show_usage): No longer display a
3093         hard-coded "68020" for the default CPU, instead display the
3094         canonical name of the true, configured default CPU.
3095         (m68k_elf_final_processing): Mark objects for sub-68020
3096         CPUs with the new EF_M68000 flag.
3097
3098 2002-02-13  Andreas Schwab  <schwab@suse.de>
3099
3100         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3101         pc-relative relocations to merge sections in 64-bit mode.
3102
3103 2002-02-13  Ben Elliston  <bje@redhat.com>
3104
3105         * NEWS: Document floating point number handling in gasp.
3106         * gasp.c: Include <assert.h> and "xregex.h".
3107         (is_flonum): New function.
3108         (chew_flownum): Likewise.
3109         (change_base): Consume flonums from the input, where possible.
3110         * doc/gasp.texi (Constants): Document floating point numbers.
3111
3112 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3113
3114         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3115         that implicitly use LR and RR selectors.
3116
3117 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
3118
3119         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
3120         and `epsw' as available on AM33 and above only.
3121         (other_register_name): Add logic to handle machine type encoded in
3122         reg_number.
3123
3124 2002-02-11  Tom Rix  <trix@redhat.com>
3125
3126         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3127         xcoff64.
3128
3129 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
3130
3131         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3132         Use all over.
3133
3134 2002-02-11  Jan Hubicka  <jh@suse.cz>
3135
3136         * i386.c (md_assemble): Support 32bit address prefix.
3137         (i386_displacement): Likewise.
3138         (i386_index_check): Accept 32bit addressing in 64bit mode.
3139
3140 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
3141
3142         * config/tc-sh.c (dot): Removed unused function.
3143
3144 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
3145
3146         * Makefile.am: "make dep-am".
3147         * Makefile.in: Regenerate.
3148         * aclocal.m4: Regenerate.
3149         * config.in: Regenerate.
3150         * configure: Regenerate.
3151         * doc/Makefile.in: Regenerate.
3152
3153 2002-02-10  Richard Henderson  <rth@redhat.com>
3154
3155         * doc/c-alpha.texi: New file.
3156         * doc/Makefile.am (CPU_DOCS): Add it.
3157         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3158
3159 2002-02-09  Richard Henderson  <rth@redhat.com>
3160
3161         * config/tc-alpha.c (O_samegp): New.
3162         (USER_RELOC_P): Include it.
3163         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3164         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3165         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3166         (alpha_validate_fix): New.
3167         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3168
3169 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
3170
3171         * doc/c-cris.texi: New.
3172         * doc/all.texi: @set CRIS.
3173         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
3174         Include c-cris.texi.
3175         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3176         * doc/Makefile.in: Regenerate.
3177
3178 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
3179
3180         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3181         determine if a number is a sign-extended 32-bit number.
3182         (load_register): Use IS_SEXT_32BIT_NUM.
3183         (macro): Check if load/store macro handling is using a
3184         constant 32-bit address on 64-bit address systems, and if
3185         so optimize the generation of that address.
3186
3187 2002-02-08  Richard Henderson  <rth@redhat.com>
3188
3189         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3190         we've eliminated all foreign relocation types yet.
3191         (alpha_fix_adjustable): Likewise.
3192
3193 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
3194
3195         Contribute sh64-elf.
3196         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
3197                     Stephen Clarke <Stephen.Clarke@st.com>
3198         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3199         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
3200         * config/tc-sh.c (md_relax_table): Added default sizes for
3201         non-PC-relative UNDEF_MOVI, and relaxation sequences for
3202         MOVI_16, MOVI_32 and MOVI_48.
3203         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3204         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3205         and MOVI_16.
3206         (shmedia_md_estimate_size_before_relax): Remove redundant
3207         blocks.  Set fragP->fr_var even if relaxation type unchanged.
3208         Retain UNDEF_MOVI until expression decays to number.
3209         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3210         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3211         relocation types.  Take fixP->fx_addnumber into account too.
3212         (shmedia_md_apply_fix): Likewise.
3213         (shmedia_md_convert_frag): Likewise.
3214         (shmedia_build_Mytes): Likewise.
3215         (sh64_consume_datalabel): Complain about nested datalabel.
3216         Support PIC relocs.  Call sh_parse_name.
3217         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3218         in tc-sh.h to SHmedia reloc types.
3219         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3220         MOVI_GOTPC): New relaxation constants.
3221         (md_relax_table): Introduce relaxation directives for PIC-related
3222         constants.
3223         (sh_PIC_related_p): Handle datalabel.
3224         (sh_check_fixup): Choose SH5 PIC relocations.
3225         (sh_cons_fix_new): Added BDF_RELOC_64.
3226         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3227         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
3228         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3229         current ISA is SHmedia, get 7 bytes.
3230         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
3231         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3232         void function.
3233         * config/tc-sh64.c (shmedia_apply_fix): Rename to
3234         shmedia_apply_fix3 and make void.
3235         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
3236         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3237         as_bad.
3238         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
3239         * config/tc-sh64.h (md_parse_name): Take &c as argument.
3240         2001-03-14  DJ Delorie  <dj@redhat.com>
3241         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3242         * doc/Makefile.in(CPU_DOCS): Ditto.
3243         * doc/c-sh64.texi: New file.
3244         * doc/as.texinfo: Add SH64 support.
3245         2001-03-13  DJ Delorie  <dj@redhat.com>
3246         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3247         A_REUSE_PREV so that its purpose is more obvious.
3248         (shmedia_build_Mytes): Ditto.
3249         2001-03-07  DJ Delorie  <dj@redhat.com>
3250         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3251         before processing.
3252         (sh64_vtable_inherit): Ditto.
3253         (strip_datalabels): New, strip "datalabel" from given line.
3254         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3255         pseudos.
3256         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
3257         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3258         call ...
3259         (shmedia_build_Mytes): ... to here.
3260         2001-03-06  DJ Delorie  <dj@redhat.com>
3261         * config/tc-sh.c: Remove sh64-specific uaquad now that there
3262         is a generic one.
3263         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
3264         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3265         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3266         address by one in call to dwarf2_emit_insn.
3267         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
3268         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
3269         alignment handling broken by imported changes.
3270         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3271         (sh64_handle_align): Declare.
3272         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3273         (sh64_max_mem_for_rs_align_code): Declare.
3274         (enum sh64_isa_values): Moved here from tc-sh64.c.
3275         (md_do_align): Define.
3276         (sh64_do_align): Declare.
3277         (struct sh64_tc_frag_data): New.
3278         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
3279         changed.
3280         (TC_FRAG_INIT): Change to set new datatype.
3281         (struct sh64_segment_info_type): Rename member
3282         last_flushed_location to last_contents_mark.  All users changed.
3283         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3284         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3285         * config/tc-sh.c (md_pseudo_table): Add ".abi".
3286         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3287         of unsetting seen_insn.
3288         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3289         call sh64_update_contents_mark.
3290         (sh_handle_align): Remove HAVE_SH64-conditioned code.
3291         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3292         enum sh64_isa_values.
3293         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
3294         (emitting_crange): Boolean guard moved to file scope from function
3295         scope in sh64_set_contents_type.
3296         (s_sh64_abi): New.
3297         (sh64_update_contents_mark): New; most split out from
3298         sh64_flush_pending_output.
3299         (shmedia_md_end): Call sh64_update_contents_mark.  Set
3300         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3301         (sh64_do_align): New function.
3302         (sh64_max_mem_for_rs_align_code): New function.
3303         (sh64_handle_align): Rename from shmedia_do_align.  Make
3304         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
3305         four.  Change return-type to void.
3306         (shmedia_elf_new_section): Remove.
3307         (shmedia_md_assemble): Call sh64_update_contents_mark.
3308         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
3309         new frag.  Call sh64_update_contents_mark after making the new
3310         frag.
3311         (sh64_flush_pending_output): Just call sh64_update_contents_mark
3312         and sh_flush_pending_output.
3313         (sh64_flag_output): Also call md_flush_pending_output, but add
3314         condition on not emitting_crange.
3315         (sh64_tc_cons_fix_new): Remove.
3316         2001-01-12  Nick Clifton  <nickc@redhat.com>
3317         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3318         alignment handling scheme imported from sourceware.
3319         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
3320         * config/tc-sh64.h (TARGET_FORMAT): Define.
3321         (sh64_target_format): Prototype.
3322         * config/tc-sh64.c (sh64_target_mach): New function.
3323         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
3324         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3325         zero_address_frag instead of copying the frag of the symbol.
3326         (shmedia_frob_file_before_adjust): Ditto.
3327         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3328         to valueT to remove signedness.
3329         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
3330         headers to output_bfd.  Do not evaluate symbols if final is false;
3331         do emit fixups.
3332         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3333         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3334         to the current frag, call shmedia_md_convert_frag to emit fixups
3335         and make frag_wane neutralize the frag.  Update comments.
3336         * config/tc-sh.c (md_convert_frag): Change caller of
3337         shmedia_md_convert_frag.
3338         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
3339         * config/tc-sh64.h: Tweak comments and correct formatting.
3340         * config/tc-sh64.c: Ditto.
3341         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3342         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3343         for the no-relocation case.
3344         (shmedia_check_limits): Fix range check being off-by-one for PTA.
3345         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
3346         wrappers.
3347         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
3348         comment.
3349         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3350         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3351         expansion.
3352         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3353         Correct comment.
3354         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
3355         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3356         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3357         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3358         al>: Set lowest bit of field to relocate to 1 and rest to empty,
3359         if reloc is emitted.
3360         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
3361         New options plus bugfixes.
3362         * config/tc-sh.c (md_longopts): New options "-no-expand" and
3363         "-expand-pt32".
3364         (md_parse_option): Handle new options.
3365         (md_show_usage): Add blurb for new options.
3366         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3367         (sh64_expand, sh64_pt32): New variables.
3368         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3369         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3370         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
3371         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
3372         <resolved previously-pc-relative relocs>: Handle
3373         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3374         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3375         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3376         points to SHcompact code.
3377         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3378         SH64PCREL16)>: Check that ISA of what operand points at and
3379         PTA/PTB matches, or emit error.
3380         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3381         SHMEDIA_BFD_RELOC_PT.
3382         (shmedia_immediate_op): If pcrel, emit fixup also for constant
3383         operand.
3384         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3385         condition for MOVI expansion.
3386         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3387         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
3388         sh64_expand.
3389         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3390         fixup.
3391         (sh64_target_format): Error-check setting of sh64_pt32 and
3392         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
3393         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3394         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3395         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
3396         * config/tc-sh64.c: Improve comments.
3397         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
3398         not say the linker will check correctness of PTA/PTB expansion.
3399         (shmedia_md_end): Make non-static.
3400         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
3401         prototype.
3402         * config/tc-sh.c (sh_finalize): Remove.
3403         * config/tc-sh.h (md_end): Do not define.
3404         Remove prototype for sh_finalize.
3405         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3406         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3407         sh64_section_data container when storing section type in tdata
3408         field in elf_section_data.
3409         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3410         EF_SH5.
3411         * Makefile.am: Update dependencies.
3412         * Makefile.in: Regenerate.
3413         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
3414         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3415         dwarf2_emit_insn call with test on debug_type.
3416         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
3417         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3418         CRT_SH5_ISA32 sticky for 64-bit.
3419         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
3420         Generate .crange sections when switching ISA mode or emitting
3421         constants in same section as code.
3422         * config/tc-sh64.c: Reformat structure definitions.
3423         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3424         variables.
3425         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
3426         to emit a .cranges descriptor when contents type changes.  Only
3427         emit error if changing contents type and -no-mix is in effect.
3428         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3429         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3430         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
3431         sh64_flush_last_crange over sections.
3432         When checking main symbol of datalabel symbol, check for
3433         STO_SH5_ISA32, not ISA type of section in definition.
3434         (shmedia_frob_file_before_adjust): Check main symbol for
3435         STO_SH5_ISA32; don't check ISA type of section in definition.
3436         (shmedia_frob_section_type): Adjust for .cranges; set section flag
3437         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3438         .cranges entries have been output.
3439         (shmedia_elf_new_section): Just call md_flush_pending_output.
3440         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3441         fix.  Do not set tc_segment_info_data.in_code for section.  Call
3442         sh64_set_contents_type for SHmedia code.
3443         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3444         false.  Call md_flush_pending_output.
3445         (sh64_target_format): Check that -no-mix and
3446         -shcompact-const-crange are used in sane combination with other
3447         options.
3448         (shmedia_md_pcrel_from_section): Check type of fix for how to
3449         adjust pc-relative.
3450         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3451         not ISA type of section in definition.
3452         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3453         hold contents-type state.
3454         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3455         (sh64_flush_pending_output): Declare.
3456         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3457         (sh64_tc_cons_fix_new): Declare.
3458         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3459         call sh64_flag_output.
3460         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
3461         call sh64_set_contents_type to mark SHcompact code and set
3462         seen_insn.
3463         (md_longopts): New options "-no-mix" and
3464         "-shcompact-const-crange".
3465         (md_parse_option): Handle new options.
3466         (md_show_usage): Add blurb for new options.
3467         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3468         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
3469         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3470         (sh64_last_insn_frag): New.
3471         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3472         to get frag for insn opcode for generating fixups; do not assume it
3473         is the same frag.
3474         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3475         for new insn.
3476         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3477         section.
3478         (TC_FRAG_TYPE): Define as fragS *.
3479         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3480         (sh64_last_insn_frag): Declare.
3481         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3482         not == NULL before dereferencing.
3483         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
3484         Get rid of BFD section flag and EF_SH64_ABI64.
3485         * config/tc-sh64.c (shmedia_frob_section_type): Use
3486         elf_section_data (sec)->tdata, not a specific BFD section flag, to
3487         communicate the section as containing SHmedia code.  Describe why.
3488         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
3489         EF_SH64 regardless of ABI.
3490         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3491         in error message.  Handle resolved expressions for
3492         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3493         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3494         (shmedia_check_limits): Handle BFD_RELOC_64.
3495         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3496         a STO_SH5_ISA32 symbol, only the BFD value.
3497         2000-12-11  Ben Elliston  <bje@redhat.com>
3498         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3499         dwarf2_generate_asm_lineno.
3500         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
3501         Handle PC-relative MOVI expansions with assembler relaxation.
3502         Generate PC-relative relocs from 16-bit PC-relative expressions.
3503         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3504         (shmedia_md_pcrel_from_section): ...here.
3505         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3506         turned completely resolved.  Adjust relocation type for 16-bit
3507         immediate operands that has turned PC-relative.  Adjust back for
3508         MD_PCREL_FROM_SECTION being applied twice.
3509         (shmedia_md_convert_frag): Always emit reloc for expression with
3510         global or weak symbol.  Handle relaxation result for PC-relative
3511         expressions.
3512         (shmedia_md_estimate_size_before_relax): An expression with a weak
3513         or global symbol can not be relaxed.  Break out tests for
3514         relaxable symbol into variable sym_relaxable.
3515         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3516         UNDEF_MOVI)>: Break out any PC-relative expression and change
3517         relaxation type.
3518         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3519         opjp.
3520         <case A_IMMS16>: Fix typo for initial minor relaxation type of
3521         MOVI expansion.  If X_op_symbol of the immediate expression is
3522         set, make an expression symbol for the argument to frag_var.
3523         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3524         relaxations.
3525         (END): Adjust for new relaxations.
3526         (md_relax_table): Add entries for new relaxations.
3527         2000-12-07  Ben Elliston  <bje@redhat.com>
3528         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3529         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
3530         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3531         SHORI operand offsets in PT/PTA/PTB expansions.
3532         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
3533         Implement DataLabel semantics.
3534         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3535         shmedia_frob_file_before_adjust.
3536         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3537         (DATALABEL_SUFFIX): Define.
3538         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3539         symbol list to update "datalabel" symbols to their main symbol
3540         counterparts.
3541         (shmedia_frob_file_before_adjust): New.
3542         (sh64_adjust_symtab): For remaining datalabel symbols, set to
3543         undefined and set STT_DATALABEL.
3544         (sh64_frob_label): Initialize TC symbol field.
3545         (sh64_consume_datalabel): Actually implement semantics.  New
3546         parameter operandf, call it instead of expression.
3547         (sh64_exclude_symbol): New.
3548         * config/tc-sh64.h (md_parse_name): Pass on the function operand
3549         to sh64_consume_datalabel.
3550         (tc_symbol_new_hook): Define to tc_frob_symbol.
3551         (TC_SYMFIELD_TYPE): Define to symbolS *.
3552         (tc_frob_symbol): Define to call sh64_exclude_symbol.
3553         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
3554         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3555         case.
3556         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3557         generating dwarf2 debug information.
3558         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3559         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3560         elf64-sh64 for the 64-bit ABI.
3561         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3562         option.
3563         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
3564         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3565         case-insensitivity.
3566         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
3567         * config/tc-sh64.c: Tweak comments, formatting and error messages.
3568         (enum sh64_abi_values): New type.
3569         (enum sh64_isa_values): New type.
3570         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
3571         (seen_shcompact_mode, seen_shmedia_mode): Delete.
3572         (sh64_abi): Replace shmedia_64.
3573         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3574         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3575         (s_sh64_mode): Check validity for this target.
3576         (sh64_target_format): Initialize defaults for ISA and ABI.
3577         Fallback to old object format if no SH64 ISA or ABI has been
3578         specified.
3579         * config/tc-sh.c (md_parse_option): Check combinations for errors.
3580         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3581         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3582         * config/tc-sh64.h: Fix typo in comment.
3583         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
3584         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3585         <PT fixups for absolute values>: Size will be longest, not
3586         shortest.
3587         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
3588         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3589         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3590         and l1 to hold lowercase of two first characters.  Change all
3591         remaining TO_LOWER to tolower.
3592         * config/tc-sh64.c (TO_LOWER): Delete.
3593         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3594         (md_parse_name): Define.
3595         (sh64_consume_datalabel): Declare.
3596         (DOLLAR_DOT): Define.
3597         * config/tc-sh64.c (shmedia_parse_exp): New.
3598         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3599         (shmedia_parse_reg): Remove const from src
3600         parameter.
3601         (shmedia_get_operands): Ditto for args parameter and ptr variable.
3602         (shmedia_md_assemble): Ditto for op_end variable.
3603         (shmedia_get_operand): Ditto for ptr parameter and src variable.
3604         Use shmedia_parse_exp, not parse_exp.
3605         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3606         parameter.  All callers changed.
3607         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
3608         callers changed.
3609         (shmedia_parse_reg): Put first two character in local variables.
3610         Use tolower, not TO_LOWER.  If no register is found and argtype
3611         indicates a control register, scan shmedia_creg_table
3612         case-insensitive.
3613         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
3614         * Makefile.am (CPU_TYPES): Add sh64.
3615         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3616         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3617         Regenerate dependencies.
3618         * Makefile.in: Regenerate.
3619         * configure.in: Add support for sh64-*-elf*.
3620         * configure: Regenerate.
3621         * config/tc-sh64.h: New.
3622         * config/tc-sh64.c: New.
3623         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3624         .mode, .isa and .uaquad.
3625         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3626         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3627         [HAVE_SH64] (END): Define as 10.
3628         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3629         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3630         MOVI_64): Define.
3631         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3632         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3633         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3634         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3635         Define.
3636         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3637         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3638         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3639         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3640         SHmedia instructions.  Handle state-change after switching to
3641         SHcompact.
3642         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3643         (md_parse_option) [HAVE_SH64]: Parse new options.
3644         (md_show_usage) [HAVE_SH64]: Show usage of new options.
3645         (md_convert_frag) [HAVE_SH64] <default>: Call
3646         shmedia_md_convert_frag instead of abort.
3647         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3648         BFD_RELOC_SH_SHMEDIA_CODE.
3649         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3650         SHcompact or SHmedia code.
3651         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3652         shmedia_md_apply_fix instead of abort.
3653         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3654         result from calling shmedia_md_estimate_size_before_relax instead
3655         of calling abort.
3656         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3657         do the work.
3658         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3659         shmedia_init_reloc and do nothing more if it returns non-zero.
3660         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3661         * po/POTFILES.in: Regenerate.
3662         * po/gas.pot: Regenerate.
3663
3664 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
3665
3666         * config/tc-sh.c (parse_at): Install the correct version of
3667         2002-02-04's patch.
3668
3669         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3670         assume fixP->fx_subsy is non-NULL.
3671
3672 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
3673
3674         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
3675         A_DISP_PC_ABS, and adjust it by -4.
3676         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3677         expected.
3678         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3679         the operand type is not A_DISP_PC_ABS.
3680
3681 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
3682
3683         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3684         common and weak symbols.  Handle common and weak symbols as
3685         undefined symbols with regards to GREG handling and merging.
3686         (mmix_frob_file): Ditto.
3687
3688 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
3689
3690         * configure.in (hppa-*-netbsd*): New target.
3691         * configure: Regenerate.
3692         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3693
3694 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
3695
3696         * config/tc-v850.c: Add missing prototypes amd use old-style
3697         function definitions.
3698         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3699         (sdata_section tdata_section, zdata_section, sbss_section,
3700         tbss_section, zbss_section, rosdata_section, rozdata_section,
3701         scommon_section, tcommon_section, zcommon_section,
3702         call_table_data_section, call_table_text_section): Delete.
3703         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3704         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3705         v850_call_table_data, v850_call_table_text): Delete.
3706         (struct v850_seg_entry): New.
3707         (v850_seg_table): New.
3708         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3709         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3710         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3711         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3712         (do_v850_seg): New.
3713         (v850_seg): New.
3714         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
3715         recording of alignment.
3716         (md_pseudo_table): Use v850_seg.
3717         (md_begin): Don't init .call_table_data and .call_table_text here.
3718         Set v850_seg_table bss entry.
3719
3720 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
3721
3722         Support on-demand global register allocation by passing on
3723         base-plus-offset relocs to the linker.
3724         * config/tc-mmix.c: Tweak and fix typos in comments.
3725         (allocate_undefined_gregs_in_linker): New variable.
3726         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3727         (md_longopts): Add --linker-allocated-gregs.
3728         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3729         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3730         (md_show_usage): Update text for -x.  Add text for
3731         --linker-allocated-gregs.
3732         (tc_gen_reloc): Derive default value for addend from val and
3733         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
3734         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3735         GREG if allocate_undefined_gregs_in_linker.
3736         * doc/as.texinfo (Overview) <Target MMIX options>: Add
3737         --linker-allocated-gregs.
3738         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3739         --linker-allocated-gregs.  Mention that it's implied by -x.
3740         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3741         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3742
3743         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3744
3745 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
3746
3747         * Makefile.am: Run "make dep-am"
3748         * Makefile.in: Regenerate.
3749
3750 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
3751
3752         * config/tc-or32.c: New file.
3753         * config/tc-or32.h: New file.
3754         * configure.in: Add support for or32 targets.
3755         * configure: Regenerate.
3756         * config/obj-coff.c: Add support for or32 targets.
3757         * config/obj-coff.h: Add support for or32 targets.
3758         * Makefile.am: Add support for or32 targets.
3759         * Makefile.in: Regenerate.
3760         * NEWS: Mention support for OpenRISC.
3761         * doc/Makefile.in: Regenerate.
3762         * po/POTFILES.in: Regenerate.
3763         * po/gas.pot: Regenerate.
3764
3765 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
3766
3767         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3768         and mod.
3769
3770 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
3771
3772         * config/tc-mips.c (tc_gen_reloc): Arrange for
3773         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3774         their LO16 parts, even for ELF.
3775
3776 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
3777
3778         * config/tc-i386.c: Protect definitions of true and false
3779         from redefinition.
3780
3781 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
3782
3783         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3784         made because of .weak, if they are neither defined nor used in any
3785         way.
3786
3787 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
3788
3789         * configure: Regenerated.
3790
3791 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
3792
3793         * doc/Makefile.am (install): Depend on install-info.
3794         * doc/Makefile.in: Regenerate.
3795
3796 2002-01-26  Nick Clifton <nick@redhat.com>
3797
3798         * po/fr.po: Updated version
3799
3800 2002-01-24  Kazu Hirata  <kazu@hxi.com>
3801
3802         * config/tc-h8300.c (check_operand): Don't print a warning
3803         when a valid 24-bit address is given to a 16-bit address
3804         operand.
3805
3806 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3807
3808         * config/tc-sh.c (sh_elf_suffix): Removed.
3809         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3810         sh_end_of_match, sh_parse_name): New functions.
3811         (sh_elf_cons): Simplify.
3812         (parse_exp): Reject misplaced PIC operands.
3813         (md_undefined_symbol): Simplify.
3814         (sh_fix_adjustable): Let @GOTOFF be adjusted.
3815         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3816         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3817         Complain if subsy remains at the end.
3818         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3819         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3820
3821 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
3822
3823         * config/tc-mn10300.c (xr_registers): Move `pc'...
3824         (other_registers): ... here.
3825
3826 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
3827
3828         * Makefile.am: Run "make dep-am".
3829         * Makefile.in: Regenerate.
3830         * gas/po/POTFILES.in: Regenerate.
3831
3832 2002-01-21  DJ Delorie  <dj@redhat.com>
3833
3834         * config/obj-coff.c (obj_coff_init_stab_section): Make the
3835         stabstr_name allocation permanent, as it will be referenced from
3836         the section hash.
3837
3838 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
3839
3840         * configure.in (ia64-*-netbsd*): New target.
3841         * configure: Regenerate.
3842
3843 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
3844
3845         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3846         to @dots call.
3847         <Detailed description, ARM options>: Ditto.
3848         * doc/c-arm.texi (ARM Options): Ditto.
3849
3850 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3851
3852         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3853         do_mia, do_mar and do_mra respectively.
3854         (do_mav_*): Renamed from do_c_*.
3855         (mav_reg_required_here, mav_parse_offset): Renamed from
3856         cirrus_reg_required_here and cirrus_parse_offset respectively.
3857         (MAV_MODE?): Renamed from CIRRUS_MODE?.
3858
3859 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3860             Keith Walker  <keith.walker@arm.com>
3861
3862         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3863         (insns): Add pattern for bxj instruction.
3864         (do_bxj): New function.
3865         (arm_cpus): Add arm926ej.
3866         (arm_archs): Add armv5tej.
3867
3868 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3869
3870         * doc/c-arm.texi: Add new fpe options to list of supported flags.
3871
3872 2002-01-19  Keith Walker  <keith.walker@arm.com>
3873
3874         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3875
3876 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3877
3878         * NEWS: Mention new ARM command-line options and VFP support.
3879
3880         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
3881         uses changed.
3882         (ARM_CEXT_MAVERICK): Similarly.
3883         (ARM_ANY): Now means any core instruction.
3884         (CPU_DEFAULT): Default to ARM_ANY.
3885         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3886         (pic_code): Declare for all object types.  Make type int.
3887         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3888         (march_fpu_opt, mfpu_opt): Declare.
3889         (md_longopts): Tidy up conditional definitions.
3890         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3891         (arm_long_opts): New tables.
3892         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3893         (arm_parse_extension): New function.
3894         (md_parse_option): Rewrite using new table-driven system.
3895         (md_show_usage): Use new table-driven system.
3896         (md_begin): Calculate cpu_variant from command line option data.
3897         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3898         command-line options.
3899         * doc/c-arm.texi: Likewise.
3900
3901 2002-01-18  Andreas Jaeger  <aj@suse.de>
3902
3903         * as.c (parse_args): Update year.
3904
3905 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
3906
3907         * config/tc-tic54x.c (encode_address): Add a more informative
3908         warning about incorrect syntax.
3909
3910 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3911
3912         * po/gas.pot: Regenerate.
3913
3914 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3915
3916         * macro.c (get_any_string): Add no-c-format comment to prevent
3917         confusion when translating string.
3918         * gasp.c (get_any_string): Add no-c-format comment to prevent
3919         confusion when translating string.
3920
3921 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3922             Johannes Stezenbach <js@convergence.de>
3923         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3924         matched before the shorter ones.
3925         (my_getSmallParser): Fix handling of nested parentheses in
3926         percent_op's. Code cleanup.
3927         (my_getPercentOp): New function, code from my_getSmallParser.
3928         (my_getSmallExpression): Fix handling of closing parentheses.
3929         Code cleanup. Better comments.
3930
3931 2002-01-16  Nick Clifton <nickc@redhat.com>
3932
3933         po/tr.po: New file: Turkish translation.
3934         configure.in (LINGUAS): Add "tr".
3935         configure: Regenerate.
3936
3937 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
3938
3939         Support for VFP instructions
3940         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3941         (cp_address_required_here): New argument wb_ok.  When false, do not
3942         accept write-back forms of addressing.  Change all callers.
3943         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3944         (FPU_VFP_EXT_V2): Define.
3945         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3946         Define in terms of above.
3947         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3948         (vfp_reg): New struct.
3949         (vfp_regs): New array of registers.
3950         (insns): Add VFP instructions.
3951         (sn_table): New array of VFP single-precision register names.
3952         (dn_table): New array of VFP double-precision register names.
3953         (all_reg_maps): Add the new register tables.
3954         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
3955         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3956         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3957         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3958         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3959         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3960         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3961         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3962         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3963         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3964         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3965         (do_vfp_sp_dp_cvt): New functions.
3966         (md_begin): Set soft-float flag for appropriate VFP work.
3967         (md_atof): Handle VFP-format doubles.
3968         (md_parse_option): Handle VFP command-line options.
3969         (md_show_usage): Display VFP command-line options.
3970
3971 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
3972
3973         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
3974         various command line options.
3975
3976 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
3977
3978         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
3979         vtinherit relocs.
3980         (xstormy16_md_apply_fix3): Do not return a value.
3981
3982 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
3983
3984         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
3985         the -EL/-EB option that matches the target's endianness.
3986         (md_parse_option): Likewise.
3987
3988 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
3989
3990         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
3991         is not dependent on ARM_BI_ENDIAN.
3992
3993 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
3994
3995         * tc-arm.c (all error messages): Normalize capitalization of messages.
3996
3997         * tc-arm.h (md_operand): Delete define.
3998         * tc-arm.c (in_my_get_expression): New static variable.
3999         (my_get_expression): Set and clear it.
4000         (md_operand): New function.  If called from my_get_expression
4001         put the error in inst.error.
4002         (output_inst): Now takes argument of instruction being assembled.
4003         Print it out with any error message.
4004         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4005         with '=' syntax.
4006         (end_of_line): Don't update inst.error if it is already set.
4007
4008 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
4009
4010         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4011         op that can be translated into a mvn instruction.
4012
4013 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
4014
4015         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4016         setting default md.flags.
4017         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4018         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4019         * gas/config/tc-ia64.c (setup_unwind_header): Add support
4020         for 32 bit unwind info blocks.
4021         (generate_unwind_image): Add support for different types
4022         of unwind images (32 bits and/or big-endian).
4023         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4024         (ia64_target_format): Add support for hpux target formats.
4025         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4026         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4027         SHT_FINI_ARRAY elf section types.
4028
4029 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
4030
4031         * tc-arm.c (struct reg_entry): Move before prototypes.
4032         (int_register, cp_register, fp_register): Delete.
4033         (reg_table): Delete.  Replaced with ...
4034         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4035         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4036         (mav_dspsc_table): ... one table per register set.
4037         (arm_reg_hsh): Delete.
4038         (struct reg_map): New structure.
4039         (all_reg_maps): New array.
4040         (enum arm_reg_type): New enums.
4041         (build_reg_hsh): New function.
4042         (insert_reg_alias): Use hash table passed by caller.  Adjust all
4043         callers.
4044         (create_register_alias): New function, split out from ...
4045         (md_assemble): ... here.
4046         (md_begin): Build new register hash tables.
4047         (arm_reg_parse): New argument for the hash table to search.  Adjust all
4048         callers.
4049         (arm_reg_parse_any): New function.
4050         (co_proc_number): Look up the processor number in the processor hash
4051         table.
4052         (cirrus_regtype): Delete.
4053         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4054         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4055         (ARM_EXT_MAVERICKsc_register): Delete.
4056         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4057         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4058         functions.
4059         (do_c_triple_4, do_c_triple_5): Delete.
4060         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4061         (do_c_quad_6): Delete.
4062         (do_c_quad_6[ab]): New functions.
4063         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4064         arguments to use new register parsing methods.
4065         (cirrus_reg_required_here): Likewise.
4066         (insns): Reclassify cirrus maverick worker functions.
4067         (cirrus_valid_reg): Delete.
4068
4069 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
4070
4071         * configure.in (sh*le): Set cpu_type=sh and endian=little.
4072         (sh*-*-netbsdelf*): New target.
4073         * configure: Regenerate.
4074         * tc-sh.h: Update copyright years.
4075         (TARGET_FORMAT): Add version for TE_NetBSD.
4076
4077 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
4078
4079         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4080         negative.
4081
4082 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
4083
4084         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4085         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4086
4087 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
4088
4089         * tc-mips.c (mips_cprestore_valid): New flag.
4090         (mips_frame_reg_valid): New flag.
4091         (macro) [M_JAL_2]: Check both flags.
4092         [M_JAL_A]: Likewise.
4093         (s_cprestore): Set mips_cprestore_valid.
4094         (tc_get_register): If setting mips_frame_reg, set
4095         mips_frame_reg_valid and clear mips_cprestore_valid.
4096         (s_mips_ent): Clear both flags.
4097         (s_mips_end): Clear both flags.
4098
4099 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
4100
4101         * write.c (write_object_file): Make use of bfd_section_list_remove.
4102         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4103         * config/tc-mmix.c (mmix_frob_file): Likewise.
4104
4105 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
4106
4107         * configure.in (i386-*-netbsdelf*): Collapse target into...
4108         (i386-*-netbsd*): ...this.  Add support for x86-64.
4109         * configure: Regenerated.
4110
4111 2002-01-03  matthew green  <mrg@redhat.com>
4112
4113         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4114
4115 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
4116
4117         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4118         NULL frag link.
4119
4120 For older changes see ChangeLog-0001
4121 \f
4122 Local Variables:
4123 mode: change-log
4124 left-margin: 8
4125 fill-column: 74
4126 version-control: never
4127 End: