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