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