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