* config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
[binutils-gdb.git] / gas / ChangeLog
1 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2
3 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
4 (ppc_fix_adjustable <coff version>): Cleanup.
5
6 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
7 (md_parse_option): No -a64 without BFD64.
8 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
9 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
10
11 2002-09-04 Nick Clifton <nickc@redhat.com>
12
13 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
14 instructions into the hash table if the target cpu is the BookE32.
15
16 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
17
18 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
19 ATTRIBUTE_UNUSED.
20
21 2000-08-28 Catherine Moore <clm@redhat.com>
22
23 * tc-v850.c (v850_relax): Declare.
24 (v850_longcode): New routine.
25 (v850_handle_align): New routine.
26 (md_pseudo_table): Add longcall and longjump.
27 (md_parse_option): Check for relax option.
28 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
29 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
30 (md_apply_fix3): Likewise.
31 (v850_force_relocation): Likewise.
32 (v850_comm): Change the current section.
33 (md_assemble): Ensure that the correct value is put in the
34 fixup.
35 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
36 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
37 Remove redundant v850ea support.
38 * tc-v850.h (HANDLE_ALIGN): Define.
39 (v850_handle_align): Declare.
40 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
41
42 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
43
44 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
45 * configure: Regenerate.
46 * NEWS: Mention new port.
47
48 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
49
50 * config/obj-coff.c: Add sdef definition.
51 * config/obj-coff.h: Add tic4x include file and set
52 target format.
53 * config/tc-tic4x.c: New file.
54 * config/tc-tic4x.h: New file.
55
56 2002-08-28 Alan Modra <amodra@bigpond.net.au>
57
58 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
59 (TC_ADJUST_RELOC_COUNT): Tweak param name.
60 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
61 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
62 (RELOC_ENUM): Define.
63 (fix_new_internal): Use RELOC_ENUM.
64 (fix_new, fix_new_exp): Likewise.
65 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
66 Replace gotos with continue.
67 (write_relocs): Formatting. Avoid symbol loops in
68 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
69 errors, and error number in other cases.
70 (fixup_segment): Remove param names from prototype. Rename
71 "this_segment_type" to "this_segment". Update linkrelax comment.
72 Remove "size, "place" and "where" local vars. Formatting. Update
73 "no symbol" comment. Remove #if 0 and #if 1.
74
75 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
76
77 2002-08-27 Alan Modra <amodra@bigpond.net.au>
78
79 * dwarf2dbg.c: Always include dwarf2dbg.h.
80 (dwarf2_directive_file): Adjust dummy version args.
81 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
82 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
83 when symbol values differ.
84 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
85 (pseudo_set <O_subtract>): Remove unnecessary segment test.
86 * config/obj-bout.c (obj_pseudo_table): Warning fix.
87
88 2002-08-26 Alan Modra <amodra@bigpond.net.au>
89
90 * config/tc-w65.c (md_section_align): Fix typo.
91 (md_parse_option): Return 0, not 1.
92
93 2002-08-22 Nick Clifton <nickc@redhat.com>
94
95 * doc/as.texinfo (Section): Note that if '@' is a comment
96 character then another symbol is used to prefix the section's
97 type.
98
99 2002-08-22 Christian Groessler <chris@groessler.org>
100
101 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
102 "case 0" case.
103
104 2002-08-12 Graeme Peterson <gp@qnx.com>
105
106 * configure.in: Add support for sh-**-nto* target.
107 * configure: Regenerate.
108
109 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
110
111 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
112
113 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
114
115 * config/tc-ppc.c (ppc_cleanup): Do something only if format
116 is ELF.
117 (ppc_apuinfo_section_add): Define only if format is ELF.
118 (md_assemble): Emit APUinfo section only if format is ELF.
119 Fix formatting.
120
121 2002-08-21 Alan Modra <amodra@bigpond.net.au>
122
123 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
124 * config/tc-frv.c: Likewise.
125 * config/tc-hppa.c: Likewise.
126 * config/tc-ia64.c: Likewise.
127 * config/tc-ip2k.c: Likewise.
128 * config/tc-m68hc11.c: Likewise.
129 * config/tc-m68k.c: Likewise.
130 * config/tc-mmix.c: Likewise.
131 * config/tc-mn10300.c: Likewise.
132 * config/tc-sh.c: Likewise.
133 * config/tc-sparc.c: Likewise.
134 * config/tc-v850.c: Likewise.
135
136 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
137
138 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
139 by zero.
140
141 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
142
143 From matthew green <mrg@redhat.com>
144
145 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
146 PPC_OPCODE_PPC is, except for BookE architectures.
147 (md_parse_option): Add support for -mspe.
148 (md_show_usage): Add -mspe.
149 (md_parse_option): Add support for -me500 and
150 -me500x2 to generate code for Motorola e500 core complex.
151 (md_show_usage): Add -me500 and -me500x2.
152
153 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
154 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
155 PPC_APUINFO_BRLOCK): New macros.
156
157 (ppc_cleanup): New function.
158 (ppc_apuinfo_section_add): New function.
159 (APUID): New macro.
160 (md_assemble): Collect info and write the APUinfo section.
161
162 * config/tc-ppc.h (md_cleanup): Define.
163 (ppc_cleanup): Export.
164 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
165
166 2002-08-17 Stan Cox <scox@redhat.com>
167
168 * config/obj-elf.c (obj_elf_change_section): Make non-static.
169 config/tc-mips.c (s_change_section): New function to support
170 IRIX .section pseudo-op.
171
172 2002-08-16 Nick Clifton <nickc@redhat.com>
173
174 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
175
176 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
177
178 * config/tc-mips.c (macro_build_jalr): Make sure we generate
179 the fix-up against on the right frag.
180 (s_cpsetup): Likewise. Parse third argument as expression, to
181 handle global symbols and forward/backward labels correctly.
182
183 2002-08-14 Nick Clifton <nickc@redhat.com>
184
185 * read.c (stringer): Catch attempts to create strings in the abs
186 section.
187
188 * config/tc-alpha.c: Fix compiling for COFF targets.
189 Some minor formatting tidyups.
190
191 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
192
193 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
194 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
195 according to the reloc.
196 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
197 (TC_FORCE_RELOCATION): Define.
198 (tc_m68hc11_force_relocation): Declare.
199
200 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
201 (s_m68hc11_relax): New function for relax group.
202 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
203 beginning of jump instruction.
204 (md_pcrel_from): Rename from md_pcrel_from_section and fix
205 address computation.
206 (tc-gen_reloc): Update.
207 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
208 PC-relative fixup.
209 (tc_m68hc11_force_relocation): New function, handle new relocs.
210 (tc_m68hc11_fix_adjustable): New to make sure there are enough
211 reloc for the linker relax pass.
212 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
213 and VTABLE relocs.
214
215 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
216
217 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
218 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
219 (s_m68hc11_mode): New function for .mode pseudo op.
220 (s_m68hc11_mark_symbol): New function for .far and .interrupt
221 pseudo op.
222 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
223 (m68hc11_elf_final_processing): Declare.
224
225 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
226
227 * config/tc-m68hc11.c (md_begin): Take into account additional
228 page operand for call instruction.
229 (print_opcode_format): Likewise.
230 (check_range): Likewise for page range checking.
231 (get_operand): Don't skip a possible comma in operands.
232 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
233 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
234 (fixup24): New to handle call reloc.
235 (build_insn): Handle missing page operand for call instruction.
236 (find): Likewise.
237 (md_apply_fix3): Take into account new relocs.
238 (get_operand): Fix the mode for indexed indirect addressing.
239 (build_indexed_byte): Fix post index byte for indexed indirect mode.
240
241 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
242
243 * config/tc-mips.c (mips_ip): Don't work out the value of
244 constant %hi()s here.
245
246 2002-08-10 Alan Modra <amodra@bigpond.net.au>
247
248 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
249 for ELF, and don't bother checking ELF relocs when non-ELF.
250 (i386_immediate): Allow absolute_section expressions for aout.
251 (i386_displacement): Likewise. Also test bfd_is_com_section.
252 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
253 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
254 not when fx_addsy. Remove dead code.
255
256 2002-08-09 Graeme Peterson <gp@qnx.com>
257
258 * configure.in: Add support for ppc-*-nto* target.
259 * configure: Regenerate.
260
261 2002-08-09 Alan Modra <amodra@bigpond.net.au>
262
263 * config/tc-i386.h: Reorganize.
264
265 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
266
267 * config/tc-mips.c (macro): Handle a register plus a 16-bit
268 immediate offset in "dla" and "la" expansions.
269
270 2002-08-09 Alan Modra <amodra@bigpond.net.au>
271
272 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
273 Remove "bfd_gas=yes" from target table when covered later.
274 Consolidate some entries.
275 * configure: Regenerate
276
277 2002-08-09 Jakub Jelinek <jakub@redhat.com>
278
279 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
280 at start of insn, pass it to output_disp and output_imm.
281 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
282 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
283 properly addend.
284 (output_imm): Added arguments. Compute properly addend for
285 R_386_GOTPC.
286 (md_apply_fix3): Remove R_386_GOTPC handling.
287 * testsuite/gas/i386/gotpc.s: New.
288 * testsuite/gas/i386/gotpc.d: New.
289 * testsuite/gas/i386/i386.exp: Add gotpc test.
290
291 2002-08-06 George France <france@handhelds.org>
292
293 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
294 and m21264b processor names and cpu types.
295 * doc/c-alpha.texi: Documented new types.
296
297 2002-08-06 Alan Modra <amodra@bigpond.net.au>
298
299 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
300
301 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
302
303 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
304 handling to BFD_RELOC_MIPS16_GPREL.
305
306 2002-08-01 Nick Clifton <nickc@redhat.com>
307
308 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
309 pool is computed using signed arithmetic so that proper sign
310 extension is performed if X_add_number is a 64-bit integer.
311
312 2002-08-01 H.J. Lu <hjl@gnu.org>
313 Daniel Jacobowitz <drow@mvista.com>
314
315 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
316 .debug_line section unless it has line information.
317
318 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
319
320 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
321 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
322 Allow default displacement size to be an option "--disp-size-default".
323 (md_number_to_disp): Make error messages include value. Use %d to
324 print integers, not %s.
325 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
326 get duplicate messages sometimes.
327 (convert_iif): Grow frag to max possible instruction size. Avoid
328 creating unnecessary fixes.
329 (md_number_to_field) Add prototype.
330 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
331 prototypes and make static.
332 (struct addr_mode): Make mode and scaled_mode explicitly signed.
333 (evaluate_expr): Use resultP argument instead of exprP global.
334 (get_addr_mode): Quiten compiler warnings.
335 (encode_operand): eliminate unused variables. Quiten compiler
336 warnings. Eliminate nul character in format strings.
337 (parse): argc is unsigned.
338 (reloc): Type cast index to quieten compiler.
339 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
340 (md_convert_frag): Note unused parameters. Remove unused
341 variables.
342 (md_create_long_jump, md_create_short_jump,
343 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
344 unused parameters.
345
346 2002-07-31 Nick Clifton <nickc@redhat.com>
347
348 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
349 of the PDP-11 and 2.11BSD a.out support.
350
351 2002-07-31 Momchil Velikov <velco@fadata.bg>
352
353 * config/tc-v850.c (md_assemble): Fix range check for immediate
354 operand.
355
356 2002-07-30 Chris Demetriou <cgd@broadcom.com>
357
358 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
359 to Broadcom SB-1 core support.
360
361 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
362
363 * config/tc-mips.c (mips_target_format): Fix formatting.
364 Add recognition of n32 ABI formats.
365
366 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
367
368 * tc-mips.c (load_address): Don't clobber $at when loading a
369 64-bit address in non-PIC code if noat is in effect.
370 (macro): Likewise.
371
372 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
373
374 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
375 used in division/multiply macro expansions similarly to how they
376 are used in the variants with break instructions.
377 (macro2): Likewise.
378
379 2002-07-30 Graeme Peterson <gp@qnx.com>
380
381 * configure.in: Add support for arm-*-nto target.
382 * configure: Regenerate.
383
384 2002-07-30 Nick Clifton <nickc@redhat.com>
385
386 * config/tc-arm.c (struct literal_pool): Add fields to allow
387 multiple literal pools to be maintained.
388 (find_literal_pool): New function.
389 (find_or_make_literal_pool): New function.
390 (add_to_literal_pool): Use find_or_make_literal_pool.
391 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
392 needed.
393 (s_ltorg): Use find_literal_pool.
394 (arm_cleanup): Dump all literal pools.
395 * doc/c-arm.texi: Document new behaviour of only dumping literal
396 pools upon request.
397
398 2002-07-26 Alan Modra <amodra@bigpond.net.au>
399
400 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
401 rather than PPC_OPCODE_32 for powerpc64*.
402
403 2002-07-25 Nick Clifton <nickc@redhat.com>
404
405 * po/es.po: Updated Spanish translation.
406 * po/fr.po: Updated French translation.
407
408 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
409
410 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
411 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
412 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
413 * configure, config.in: Regenerate.
414 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
415 (mips_set_options): Remove "abi" field.
416 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
417 with mips_abi.
418 (mips_cpu): Remove.
419 (mips_arch_string, mips_arch_info): New vars.
420 (mips_tune_string, mips_tune_info): New vars.
421 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
422 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
423 (mips_isa_to_str, mips_cpu_to_str): Remove.
424 (mips_ip): If the selected architecture is a generic ISA rather
425 than a processor, only mention the ISA level in error messages.
426 (OPTION_MCPU): Remove.
427 (OPTION_FP64): New.
428 (md_longopts): Add -mfp64, remove -mcpu.
429 (mips_set_option_string): New fn.
430 (md_parse_option): Make -mipsN update file_mips_isa rather than
431 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
432 Don't let -mgp32 and -mfp32 change the ABI.
433 (show): Move to end of file. Constify string argument.
434 (md_show_usage): Move to the end of the file. Read available
435 architectures from mips_cpu_info_table.
436 (mips_set_architecture): New fn.
437 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
438 is an alias for -march=mipsN. Don't change the ABI based on other
439 flags. Infer the register size from the ABI as well as the
440 architecture. Complain about more conflicting arguments.
441 Unify logic with GCC.
442 (s_mipsset): Don't change the ABI.
443 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
444 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
445 "mipsN"-type entries. Remove entries that vary only in the
446 manufacturer's prefix, or that have "000" replaced by "k".
447 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
448 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
449 (mips_parse_cpu): New fn.
450 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
451 (mips_cpu_info_from_isa): Minor formatting tweak.
452
453 2002-07-24 Nick Clifton <nickc@redhat.com>
454
455 * po/sv.po: Updated Swedish translation.
456 * po/es.po: Updated Spanish translation.
457
458 2002-07-23 Alan Modra <amodra@bigpond.net.au>
459
460 * Makefile.am: Run "make dep-am".
461 * Makefile.in: Regenerate.
462 * doc/Makefile.in: Regenerate.
463 * config.in: Regenerate.
464 * po/POTFILES.in: Regenerate.
465
466 2002-07-23 Nick Clifton <nickc@redhat.com>
467
468 * po/fr.po: Updated French translation.
469
470 2002-07-23 Nick Clifton <nickc@redhat.com>
471
472 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
473 GAS.
474
475 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
476
477 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
478 instead of S_IS_EXTERN.
479 (md_estimate_size_before_relax): Likewise.
480 (mips_fix_adjustable): Likewise.
481
482 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
483
484 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
485
486 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
487 Nick Clifton <nickc@redhat.com>
488
489 * cond.c (s_ifdef): Treat a referenced but not yet defined
490 symbol as if it were undefined, in exactly the same way as
491 .equiv.
492
493 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
494 consider referenced bug not yet defined symbols to be
495 undefined.
496
497 2002-07-18 Denis Chertykov <denisc@overta.ru>
498 Frank Ch. Eigler <fche@redhat.com>
499 Alan Lehotsky <alehotsky@cygnus.com>
500 John Healy <jhealy@redhat.com>
501 Jeff Johnston <jjohnstn@redhat.com>
502
503 * configure.in: Add ip2k configuraton.
504 * configure: Regenerate.
505 * Makefile.am: Add ip2k configuraton.
506 * Makefile.in: Regenerate.
507 * configure: Regenerate.
508 * Makefile.in: Regenerate.
509 * config/tc-ip2k.c: New file.
510 * config/tc-ip2k.h: New files.
511 * NEWS: Mention new support.
512 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
513 * doc/Makefile.in: Regenerate.
514 * doc/all.texi: Set IP2K
515 * doc/as.texinfo: Add IP2K description.
516 * doc/c-ip2k.texi: New file.
517
518 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
519
520 * NEWS: Reformat to match style of other NEWS files.
521
522 2002-07-17 Jan Hubicka <jh@suse.cz>
523
524 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
525
526 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
527
528 * config/tc-z8k.c (build_bytes): Correct order of memset args.
529
530 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
531
532 * NEWS: Add 'Changes in 2.13'.
533
534 2002-07-15 Matt Fredette <fredette@netbsd.org>
535
536 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
537
538 2002-07-12 Alan Modra <amodra@bigpond.net.au>
539
540 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
541 case with non CODE_64BIT case. Don't warn on "qword ptr" if
542 not CODE_64BIT.
543
544 2002-07-11 Alan Modra <amodra@bigpond.net.au>
545
546 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
547 (ppc_frob_file_before_adjust): New function.
548 * config/tc-ppc.h (tc_frob_symbol): Don't define.
549 (ppc_elf_frob_symbol): Don't declare.
550 (tc_frob_file_before_adjust): Define.
551 (ppc_frob_file_before_adjust): Declare.
552
553 * config/tc-ppc.c (md_pseudo_table): Warning fix.
554 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
555 flags.
556 (ppc_size): Delete.
557 (ppc_xcoff64): Rename to ppc_obj64.
558 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
559 (ppc_set_cpu): Set PPC_OPCODE_32 too.
560 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
561 or bfd_mach_ppc.
562 (ppc_target_format): Use ppc_obj64 to select format.
563 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
564 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
565 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
566 (tc_frob_symbol): Likewise.
567 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
568 BFD_DEFAULT_TARGET_SIZE.
569 (ppc_tc): Likewise.
570 (ppc_is_toc_sym): Likewise.
571 (md_apply_fix3): Likewise.
572 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
573 BFD_DEFAULT_TARGET_SIZE.
574 (ELF_TC_SPECIAL_SECTIONS): Likewise.
575 (tc_frob_symbol): Likewise.
576
577 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
578
579 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
580 (mips_ip): Likewise.
581
582 2002-07-09 Alan Modra <amodra@bigpond.net.au>
583
584 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
585 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
586 (md_apply_fix3): Formatting. Remove redundant test.
587 (tc_gen_reloc): Remove redundant code.
588 (tc_i386_force_relocation): Delete. Movy body of function to..
589 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
590
591 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
592
593 * configure.in: Add hppa-*-openbsd* target, change
594 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
595 with sparc64 cpu.
596 * configure: Regenerate.
597
598 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
599
600 * config/tc-mips.c (macro): Shift the 32-bit address range
601 accessible with a lone "lui" down by 32768.
602
603 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
604
605 * config/tc-mips.c (load_address): Use non-trapping "daddu"
606 instead of "dadd" in address calculations.
607 (macro): Likewise.
608
609 2002-07-08 Alan Modra <amodra@bigpond.net.au>
610
611 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
612 movzx fudges.
613 (md_assemble): Instead, zap the suffix here.
614
615 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
616
617 * NEWS: Remove next release number until the release is actually
618 upon us.
619
620 2002-07-03 Alan Modra <amodra@bigpond.net.au>
621
622 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
623 Run "make dep-am".
624 * Makefile.in: Regenerate.
625
626 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
627
628 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
629 to symbols in merge sections, even non pc-relative ones.
630
631 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
632
633 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
634
635 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
636
637 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
638 .softregs and .eeprom.
639
640 2002-06-28 David O'Brien <obrien@FreeBSD.org>
641
642 * NEWS: Note the next release is 2.13.
643
644 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
645
646 * po/tr.po: New translation imported.
647
648 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
649
650 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
651 (ecoff_directive_def): Likewise.
652 (ecoff_directive_tag): Likewise.
653 * listing.c (file_info): Likewise.
654 * hash.c (what): Likewise.
655
656 2002-06-25 H.J. Lu <hjl@gnu.org>
657
658 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
659 * Makefile.in: Regenerated.
660
661 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
662
663 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
664 (assemble_ppi): Generate warning if the same register is used
665 twice as destination in the same padd / pmuls instruction.
666
667 2002-06-18 Dave Brolley <brolley@redhat.com>
668
669 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
670 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
671 * configure.in: Support frv-*-*.
672 * Makefile.am (CPU_TYPES): Add frv.
673 (TARGET_CPU_CFILES): Add tc-frv.c.
674 (TARGET_CPU_HFILES): Add tc-frv.h.
675 (DEPTC_frv_coff): New variable.
676 (DEPTC_frv_elf): New variable.
677 (DEPOBJ_frv_coff): New variable.
678 (DEPOBJ_frv_elf): New variable.
679 (DEP_frv_coff): New variable.
680 (DEP_frv_elf): New variable.
681 * tc-frv.c: New file.
682 * tc-frv.h: New file.
683
684 2002-06-17 Catherine Moore <clm@redhat.com>
685
686 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
687
688 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
689
690 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
691
692 2002-06-17 Tom Rix <trix@redhat.com>
693
694 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
695
696 2002-06-14 H.J. Lu <hjl@gnu.org>
697 Daniel Jacobowitz <drow@mvista.com>
698
699 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
700 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
701 * config/tc-mips.c (s_mips_file): Call s_app_file_string
702 and new_logical_line for the first .file directive.
703 * read.c (s_app_file_string): New function.
704 (s_app_file): Call it.
705 * read.h (s_app_file_string): Add declaration.
706
707 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
708
709 * configure.in: Remove MIPS_STABS_ELF.
710 * configure: Regenerated.
711 * config.in: Regenerated.
712 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
713 for MIPS targets.
714 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
715 ".extern".
716 (pdr_seg): Declare unconditionally.
717 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
718 (s_mips_end): Likewise. Generate stabs function markers.
719 (s_mips_ent): Generate stabs function markers.
720 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
721 ELF.
722 (s_mips_mask): Likewise.
723 (mips_flag_mdebug): New.
724 (md_longopts): Add "mdebug" and "no-mdebug".
725 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
726 (mips_after_parse_args): Set mips_flag_mdebug.
727 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
728
729 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
730
731 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
732 value twice for RELA relocations.
733
734 2002-06-12 Ben Elliston <bje@redhat.com>
735
736 * symbols.c (resolve_symbol_value): Initialise final_val.
737
738 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
739
740 2002-06-11 Tom Rix <trix@redhat.com>
741
742 * config/tc-ppc.c (ppc_subseg_align): Delete.
743 (ppc_change_csect): Default csect align is 2.
744 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
745
746 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
747
748 * config/tc-avr.c (mcu_types): Update.
749
750 2002-06-08 Matt Thomas <matt@3am-software.com>
751
752 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
753 (vax-*-netbsd*): New targets.
754 * configure: Regenerate.
755 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
756 * config/tc-vax.c: Add support for ELF and PIC.
757 (flag_want_pic): New flag.
758 (float_cons): Fix prototype.
759 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
760 (md_assemble): Introduce a new is_absolute local, and use it
761 rather than repeating the test. Make fatal errors actually
762 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
763 Add support for ELF. Add support for PIC.
764 (md_convert_frag): Adjust for BFD_ASSEMBLER.
765 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
766 BFD_ASSEMBLER.
767 (vax_reg_parse): Make the % register prefix mandatory for ELF,
768 optional for a.out, and not allowed for VMS. Adjust all callers.
769 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
770 (md_create_long_jump): Likewise.
771 (md_undefined_symbol): Likewise.
772 (md_section_align): Likewise.
773 (md_shortopts): Allow -k and -K for ELF.
774 (md_parse_option): Set flag_want_pic if -k or -K.
775 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
776 (tc_gen_reloc): New function if BFD_ASSEMBLER.
777 * config/tc-vax.h (tc_headers_hook): Remove.
778 (TARGET_FORMAT): Set according to object format and target
779 environment.
780 (BFD_ARCH, TARGET_ARCH): Define.
781 (NO_RELOC): Adjust for BFD_ASSEMBLER.
782 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
783 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
784 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
785
786 2002-06-08 Alan Modra <amodra@bigpond.net.au>
787
788 * Makefile.am: Run "make dep-am".
789 * Makefile.in: Regenerate.
790
791 * as.c: Replace CONST with const.
792 * write.c: Likewise.
793 * config/obj-coff.c: Likewise.
794 * config/tc-a29k.c: Likewise.
795 * config/tc-arm.c: Likewise.
796 * config/tc-dlx.c: Likewise.
797 * config/tc-h8300.c: Likewise.
798 * config/tc-h8500.c: Likewise.
799 * config/tc-i370.c: Likewise.
800 * config/tc-i860.c: Likewise.
801 * config/tc-i960.c: Likewise.
802 * config/tc-m68hc11.c: Likewise.
803 * config/tc-m68k.c: Likewise.
804 * config/tc-m88k.c: Likewise.
805 * config/tc-mcore.c: Likewise.
806 * config/tc-mips.c: Likewise.
807 * config/tc-ns32k.c: Likewise.
808 * config/tc-pdp11.c: Likewise.
809 * config/tc-pj.c: Likewise.
810 * config/tc-s390.c: Likewise.
811 * config/tc-sh.c: Likewise.
812 * config/tc-sparc.c: Likewise.
813 * config/tc-tahoe.c: Likewise.
814 * config/tc-tic80.c: Likewise.
815 * config/tc-v850.c: Likewise.
816 * config/tc-vax.c: Likewise.
817 * config/tc-w65.c: Likewise.
818 * config/tc-z8k.c: Likewise.
819
820 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
821
822 Based on patch from Matt Green:
823 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
824 * config/tc-mips.c (s_mips_file): Renamed from s_file.
825 (s_mips_loc): New function.
826 (mips_nonecoff_pseudo_table): Call them.
827 (append_insn): Call dwarf2_emit_insn.
828
829 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
830
831 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
832 to -1.
833 (file_ase_mips16): New veriable.
834 (mips_eabi64): Remove.
835 (CPU_HAS_MIPS16): New define.
836 (CPU_HAS_MDMX): Fix data type.
837 (md_begin): Code cleanup. Use file_ase_mips16.
838 (mips_elf_final_processing): Handle mips16 header flag.
839 Handle EABI flag without intermediate variable.
840
841 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
842
843 * doc/as.texinfo: Update MIPS documentation.
844
845 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
846
847 * config/tc-mips.c: Add define for $zero register.
848 (md_begin): Add $zero as alias name for $0.
849 (insn_uses_reg): Use ZERO define.
850 (mips_ip): Add $zero as alias name for $0.
851 (mips16_ip): Likewise.
852 (s_cplocal): Demand empty rest of input line.
853 (tc_get_register): Likewise. Add support for $kt0, kt1 register
854 names. Use ZERO define. Fix input_line_pointer progress.
855
856 2002-06-07 Alan Modra <amodra@bigpond.net.au>
857
858 * symbols.c: Replace CONST by const throughout.
859 (symbol_find_exact): Split out from..
860 (symbol_find_base): ..here.
861 * symbols.h: Replace CONST by const throughout.
862 (symbol_find_exact): Declare.
863 * config/obj-elf.c: #include "struc-symbol.h".
864 (elf_frob_file): If group name matches an exported symbol, use that
865 symbol for the signature and ".group" as the section name.
866
867 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
868
869 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
870 but warn about it.
871 * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
872 * testsuite/gas/sh/pcrel.d: Update.
873 * testsuite/gas/sh/pcrel.l: New file.
874
875 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
876
877 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
878 and mips_opts.ase_mdmx if they are uninitialized.
879
880 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
881
882 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
883 (hppa_force_relocation): Check if a stub just before the start symbol
884 of the last call_info is reachable before forcing relocation. Fix
885 typo.
886
887 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
888
889 * config/tc-mips.c (mips_after_parse_args): New function.
890 (md_begin): Move processing of defaults to mips_after_parse_args.
891 config/tc-mips.h (md_after_parse_args): Define.
892
893 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
894
895 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
896 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
897 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
898 * configure: Regenerate.
899 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
900 environment.
901
902 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
903
904 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
905
906 2002-06-04 Alan Modra <amodra@bigpond.net.au>
907
908 * config/obj-elf.c (obj_elf_change_section): Set and check elf
909 linkonce flag. Print all warnings.
910 (obj_elf_section): Parse ",comdat" for groups.
911 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
912 consistency of comdat flag.
913
914 2002-06-02 Richard Henderson <rth@redhat.com>
915
916 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
917 with LITERALs without sequence numbers.
918
919 2002-06-01 Richard Henderson <rth@redhat.com>
920
921 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
922 Rename them LITUSE_ALPHA_*.
923
924 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
925
926 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
927 accept parentheses enclosed register lists.
928
929 2002-05-31 Alan Modra <amodra@bigpond.net.au>
930
931 * Makefile.am: Run "make dep-am".
932 * Makefile.in: Regenerate.
933 * po/POTFILES.in: Regenerate.
934
935 2002-05-31 Graeme Peterson <gp@qnx.com>
936
937 * configure.in: Add i386-*-nto-qnx*.
938 * configure: Regenerate.
939
940 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
941
942 * config/tc-mips.c (mips_ip): Use unsigned long values for
943 warning output.
944
945 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
946
947 * config/tc-mips.c (s_cpsetup): Fix initialization of
948 mips_cpreturn_register and mips_cpreturn_offset.
949
950 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
951
952 * config/tc-mips.c (s_cpsetup): Fix comment.
953
954 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
955
956 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
957 (mips_ip): Likewise.
958 (mips16_ip): Likewise.
959 (tc_get_register): Likewise.
960
961 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
962 Ed Satterthwaite <ehs@broadcom.com>
963
964 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
965 (mips_opts): Initialize "ase_mdmx" member.
966 (file_ase_mdmx): New variable.
967 (CPU_HAS_MDMX): New macro.
968 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
969 based on command line options and configuration defaults.
970 (macro_build): Note in comment that use of MDMX in macros is
971 not currently allowed.
972 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
973 "Z" MDMX operand types.
974 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
975 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
976 types.
977 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
978 Add support for "-mdmx" and "-no-mdmx" options.
979 (OPTION_ELF_BASE): Move to accomodate new options.
980 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
981 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
982 file_ase_mdmx was set.
983 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
984 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
985 nomdmx" directives.
986
987 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
988
989 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
990 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
991 command line switch conforming to gcc conventions.
992 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
993
994 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
995
996 * config/tc-mips.c (macro_build_jalr): New Function.
997 (md_begin): NewABI uses big GOTs.
998 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
999 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
1000 (load_address): Add some NewABI PIC support.
1001 (macro): Likewise.
1002 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
1003 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
1004
1005 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1006
1007 * config/tc-mips.c (load_address): Use mips_gp_register instead
1008 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
1009 instead.
1010 (macro): Use mips_gp_register instead of hardcoded value.
1011
1012 2002-05-30 Richard Henderson <rth@redhat.com>
1013
1014 * expr.h (operatorT): Add O_md17..O_md32.
1015 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
1016 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
1017 O_tprelhi, O_tprello, O_tprel): New.
1018 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
1019 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
1020 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
1021 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
1022 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
1023 (md_apply_fix3): Handle TLS relocations.
1024 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1025 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
1026 associated TLS reloc. Check lituse_tls relocs match up.
1027 (emit_insn): Handle TLS relocations.
1028 (ldX_op): Remove.
1029
1030 * doc/c-alpha.texi: Add docs for tls relocations.
1031
1032 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1033
1034 * config/tc-mips.c (mips_gprel_offset): New variable.
1035 (s_gpvalue): Use it.
1036
1037 2002-05-30 Diego Novillo <dnovillo@redhat.com>
1038
1039 * gas/config/tc-d10v.c (check_resource_conflict): Only check
1040 write-write conflicts.
1041 (md_assemble): Reformat introductory comment.
1042 (parallel_ok): Prevent packing only if the first
1043 instruction cannot be packed.
1044
1045 2002-05-30 Jason Eckhardt <jle@redhat.com>
1046 Tom Rix <trix@redhat.com>
1047
1048 * config/tc-d10v.c (build_insn): Check for immediates.
1049
1050 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1051
1052 * config/tc-mips.c: Replace GP in comments by $gp.
1053 (mips_big_got): Initialize.
1054 (mips_trap): Initialize.
1055 (load_address): Use mips_gp_register instead of hardcoded value.
1056 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
1057 (macro): Use mips_gp_register instead of hardcoded value.
1058 (macro2): Change load_address calls.
1059 (md_pcrel_from): Comment formatting.
1060 (s_cpload): Use mips_gp_register instead of hardcoded value.
1061 (s_cprestore): Likewise. Comment formatting.
1062 (s_gpword): Fix data type.
1063 (s_cpadd): Use mips_gp_register instead of hardcoded value.
1064 (nopic_need_relax): Replace GP in comments by $gp.
1065 (mips_elf_final_processing): Better comment.
1066
1067 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1068
1069 * configure.in: Add DLX configuraton
1070 * Makefile.am: Add DLX configuraton
1071 * configure: Regenerate.
1072 * Makefile.in: Regenerate.
1073 * config/tc-dlx.c: New file.
1074 * config/tc-dlx.h: New files.
1075 * NEWS: Mention new support.
1076
1077 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
1078
1079 * config/obj-coff.c (write_object_file): Add missing semicolon.
1080
1081 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1082
1083 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
1084 by the define. Remove superfluous check of mips_opts.mips16.
1085 (append_insn): Likewise. Canonicalize variable increments.
1086 (macro_build): Canonicalize variable increments.
1087 (macro_build_lui): Likewise.
1088 (load_register): Likewise.
1089 (load_address): Move pointer initialization.
1090 (macro): Move pointer to a more local scope. Canonicalize variable
1091 increments. Better comments. Replace magic constant for RA by the
1092 define.
1093 (macro2): Replace magic constant for RA by the define. Canonicalize
1094 variable increments.
1095 (mips_ip): Canonicalize variable increments.
1096 (mips16_ip): Replace magic constant for RA by the define.
1097 (my_getSmallParser): Canonicalize variable increments/decrements.
1098 (my_getPercentOp): Likewise.
1099 (my_getSmallExpression): Likewise.
1100 (s_align): Likewise.
1101 (s_mipsset): Likewise.
1102 (s_cpsetup): Likewise.
1103 (s_insn): Remove superfluous check of mips_opts.mips16.
1104 (s_mips_stab): Likewise.
1105 (mips_handle_align): Canonicalize variable increments.
1106 (s_mips_ent): Likewise.
1107 (s_mips_end): Add comment.
1108
1109 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1110
1111 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1112 * configure: Regenerate.
1113
1114 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1115
1116 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
1117 * Makefile.in: Regenerate.
1118 * dep-in.sed: Reorder to match OBJS in Makefile.am.
1119 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
1120 * configure: Regenerate.
1121 * as.h: Use #include "" instead of <> for local header files.
1122 * flonum-konst.c: Likewise.
1123 * flonum-mult.c: Likewise.
1124 * gasp.c: Likewise.
1125 * listing.c: Likewise.
1126 * config/tc-ia64.h: Likewise.
1127 * config/tc-v850.h: Likewise.
1128
1129 2002-05-24 TAMURA Kent <kent@netbsd.org>
1130
1131 * configure.in: Add a target for i386-netbsdpe.
1132 * configure: Regenerate.
1133
1134 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1135
1136 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
1137 (obj_elf_common): Call elf_common.
1138 (obj_elf_tls_common): New function.
1139 (elf_pseudo_tab): Support .tls_common.
1140 (special_sections): Add .tdata and .tbss.
1141 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
1142 sections.
1143 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
1144 (obj_elf_parse_section_letters): Include T in error message.
1145 * config/tc-ppc.c (ppc_section_letter): Likewise.
1146 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
1147 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
1148 SEC_MERGE.
1149 * config/tc-sparc.c (md_apply_fix3): Likewise.
1150 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
1151 Define them if not BFD_ASSEMBLER.
1152 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
1153 and @NTPOFF.
1154 (md_apply_fix3): Add TLS relocs.
1155 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
1156 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
1157 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
1158 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
1159 (ia64_elf_section_letter): Include T in error message.
1160 (md_begin): Support TLS operators.
1161 (md_operand): Likewise.
1162 (ia64_gen_real_reloc_type): Support TLS relocs.
1163 * testsuite/gas/i386/tlspic.s: New file.
1164 * testsuite/gas/i386/tlsd.s: New file.
1165 * testsuite/gas/i386/tlsnopic.s: New file.
1166 * testsuite/gas/i386/tlsd.d: New file.
1167 * testsuite/gas/i386/tlsnopic.d: New file.
1168 * testsuite/gas/i386/tlspic.d: New file.
1169 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
1170 * testsuite/gas/ia64/tls.s: New file.
1171 * testsuite/gas/ia64/tls.d: New file.
1172 * testsuite/gas/ia64/ia64.exp: Add tls test.
1173 * write.c (adjust_reloc_syms): Don't change symbols in
1174 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
1175
1176 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1177
1178 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
1179 round the relocation up rather than down.
1180
1181 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1182
1183 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
1184 flag.
1185 * doc/as.texinfo: Document that the COFF version of .section
1186 ignores the 'a' flag.
1187
1188 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1189
1190 * config/tc-alpha.c (assemble_tokens): Protect use of
1191 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
1192
1193 * write.c (size_seg): Check adjustment to last frag.
1194 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
1195 section alignment.
1196 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
1197 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
1198 (write_object_file): Invoke md_do_align if available, and use
1199 frag_align_code on text sections.
1200 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
1201 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
1202 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
1203 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1204 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
1205 BFD_ASSEMBLER too.
1206
1207 2002-05-22 H.J. Lu <hjl@gnu.org>
1208
1209 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
1210 for source file.
1211
1212 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
1213
1214 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
1215 as ELF builds.
1216
1217 2002-05-22 H.J. Lu <hjl@gnu.org>
1218
1219 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
1220 for one .loc for compiler.
1221
1222 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1223
1224 * config/tc-mips.c (macro): Relax warning, it's toot strict for
1225 embedded-PIC.
1226
1227 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1228
1229 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
1230 Optimize the rotate by zero case.
1231
1232 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
1233
1234 * configure.in: Remove accidental enabling of bfd_gas=yes for
1235 sh-coff targets.
1236 * configure: Regenerate.
1237
1238 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
1239
1240 * app.c: Fix formatting.
1241 * as.c: Likewise.
1242 * ehopt.c: Likewise.
1243 * expr.c: Likewise.
1244 * input-file.c: Likewise.
1245 * listing.c: Likewise.
1246 * macro.h: Likewise.
1247 * stabs.c: Likewise.
1248 * symbols.c: Likewise.
1249
1250 2002-05-17 Alan Modra <amodra@bigpond.net.au>
1251
1252 * config/obj-generic.c: Delete file.
1253 * config/obj-generic.h: Likewise.
1254
1255 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1256
1257 * config/tc-avr.c (mcu_types): Update for new devices.
1258
1259 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1260
1261 * config/tc-mips.c (macro): Warn about wrong la/dla use.
1262
1263 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1264
1265 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
1266 worked sometimes by accident. Fix copy&paste comment.
1267
1268 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1269
1270 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
1271 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
1272 (mips_elf_final_processing): Let n32 use .reginfo.
1273
1274 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1275
1276 * config/tc-mips.c (append_insn): Fix too small range of variable.
1277
1278 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
1279
1280 * config/tc-arm.c (arm_cleanup): Remove redundant call to
1281 listing_prev_line().
1282
1283 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
1284
1285 * config/tc-arm.c (md_assemble): Remove redundant call to
1286 listing_prev().
1287
1288 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
1289 loc_directive_seen.
1290
1291 * stabs.c (s_stab_generic): Fix grammatical error in warning
1292 message.
1293
1294 2002-05-13 Alan Modra <amodra@bigpond.net.au>
1295
1296 * write.c (subsegs_finish): Don't specially align last subseg.
1297
1298 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1299
1300 * stabs.c (s_stab_generic): Warn about a description field that is
1301 too big.
1302
1303 * config/obj-coff.c: Fix compile time warnings when compiling
1304 without BFD_ASSEMBLER defined.
1305 Fix formatting.
1306
1307 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
1308 target.
1309 (md_pcrel_from_section): Use md_pcrel_from().
1310
1311 2002-05-11 Bruno Haible <bruno@clisp.org>
1312
1313 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
1314 by dwarf2_directive_loc, instead of calling dwarf2_where.
1315
1316 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
1317
1318 * config/obj-coff.h: Fix formatting.
1319 * config/tc-mcore.c: Likewise.
1320 * config/tc-mn10300.c: Likewise.
1321 * config/tc-openrisc.c: Likewise.
1322 * config/tc-or32.c: Likewise.
1323 * config/tc-pdp11.c: Likewise.
1324 * config/tc-ppc.c: Likewise.
1325 * config/tc-ppc.h: Likewise.
1326 * config/tc-sh64.c: Likewise.
1327 * config/tc-sh.c: Likewise.
1328 * config/tc-tic54x.c: Likewise.
1329 * config/tc-xstormy16.c: Likewise.
1330 * config/tc-xstormy16.h: Likewise.
1331
1332 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1333
1334 * config/obj-coff.c: Fix formatting.
1335 * config/obj-elf.c: Likewise.
1336 * config/tc-alpha.c: Likewise.
1337 * config/tc-arm.c: Likewise.
1338 * config/tc-d10v.c: Likewise.
1339 * config/tc-d30v.c: Likewise.
1340 * config/tc-h8300.c: Likewise.
1341 * config/tc-hppa.c: Likewise.
1342
1343 2002-05-09 Alan Modra <amodra@bigpond.net.au>
1344
1345 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
1346 reloc when no_cond_jump_promotion.
1347
1348 2002-05-08 Jim Wilson <wilson@redhat.com>
1349
1350 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
1351 current variable part of frag.
1352
1353 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1354
1355 * config/tc-mmix.c: Fix formatting.
1356 * config/tc-mmix.h: Likewise.
1357
1358 2002-05-08 Alan Modra <amodra@bigpond.net.au>
1359
1360 * configure: Regenerate.
1361
1362 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1363
1364 * config/tc-m68k.c: Fix formatting.
1365
1366 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1367
1368 * Makefile.am: Honour DESTDIR.
1369 * Makefile.in: Regenerate.
1370
1371 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
1372
1373 * config/tc-ia64.c: Fix formatting.
1374 * config/tc-ia64.h: Likewise.
1375
1376 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1377
1378 * config/tc-mips.c: Fix formatting.
1379 * config/tc-s390.c: Likewise.
1380 * config/tc-s390.h: Likewise.
1381
1382 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
1383
1384 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
1385 information for instructions.
1386
1387 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1388
1389 * as.h: Fix formatting.
1390 * cgen.c: Likewise.
1391 * cgen.h: Likewise.
1392 * dwarf2dbg.c: Likewise.
1393 * frags.h: Likewise.
1394 * gasp.c: Likewise.
1395 * macro.c: Likewise.
1396 * read.c: Likewise.
1397 * stabs.c: Likewise.
1398 * symbols.c: Likewise.
1399
1400 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1401
1402 * app.c (mri_pseudo): Only declare for TC_M68K.
1403
1404 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
1405 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
1406 BFD_RELOC_16_BASEREL.
1407 (md_assemble): Likewise.
1408 (md_apply_fix3): Likewise.
1409
1410 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1411
1412 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
1413 zero into an add of zero - it is not the same.
1414
1415 2002-05-01 Arati Dikey <aratid@kpit.com>
1416
1417 * tc-sh.c (get_specific): Generate warning if the same
1418 destination register is used in parallel instructions.
1419
1420 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
1421
1422 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
1423
1424 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1425
1426 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
1427 backwards to prevent cascading errors.
1428
1429 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1430
1431 * configure.in: Add support for powerpc-*-windiss.
1432 * configure: Regenerated.
1433
1434 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1435
1436 * config/tc-s390.c (md_parse_option): Formatting.
1437
1438 * config/tc-i386.c: Formatting fixes, add missing space in error
1439 message.
1440
1441 2002-04-24 Christian Groessler <chris@groessler.org>
1442
1443 * config/tc-z8k.c (build_bytes): Add support for new cases:
1444 CLASS_IGNORE and ARG_NIM4.
1445 (md_assemble): Prevent destruction of input_line_pointer if
1446 get_operands returns failure.
1447
1448 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1449
1450 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
1451 instructions to be generated by macros.
1452
1453 2002-04-24 Andreas Schwab <schwab@suse.de>
1454
1455 * config/tc-i386.c (output_jump, output_disp)
1456 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
1457 more.
1458 (md_apply_fix3): Remember addend value for rela relocations.
1459 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
1460
1461 2002-04-22 Chris Demetriou <cgd@broadcom.com>
1462
1463 * config/tc-mips.c (macro_build): Add close-parenthesis missing
1464 from previous change.
1465
1466 2002-04-22 Eric Christopher <echristo@redhat.com>
1467
1468 * config/tc-mips.c (macro_build): Add warning if macro instructions
1469 are expanded into a branch delay slot.
1470
1471 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
1472
1473 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
1474 numbers, gdb relies on them to detect the start of the prologue.
1475
1476 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
1477
1478 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
1479 symbols in merge sections.
1480
1481 2002-04-16 Alan Modra <amodra@bigpond.net.au>
1482
1483 * as.c (main): Don't reference _bfd_chunksize.
1484
1485 2002-04-15 Tom Rix <trix@redhat.com>
1486
1487 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
1488 symbols in merge sections.
1489
1490 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1491
1492 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
1493 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
1494 argument for the precision.
1495 (gen_to_words): Update accordingly.
1496
1497 2002-04-10 Alan Modra <amodra@bigpond.net.au>
1498
1499 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
1500 BFD_VERSION_STRING unavailable.
1501 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
1502
1503 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
1504
1505 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
1506 symbol_used_in_reloc_p is true.
1507
1508 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
1509 endian hosts.
1510
1511 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1512
1513 * dep-in.sed: Cope with absolute paths.
1514 * Makefile.am (dep.sed): Subst TOPDIR.
1515 Run "make dep-am".
1516 * Makefile.in: Regenerate.
1517
1518 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1519
1520 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
1521 (mips_ip): Remove unused variable.
1522 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
1523 unsigned char with bfd_byte.
1524 (s_file): Remove unused variable.
1525 (s_mips_ent): Likewise.
1526
1527 2002-04-03 Tom Rix <trix@redhat.com>
1528
1529 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
1530 (build_insn): Same.
1531 (find_opcode): Fix warning in as_warn.
1532 * config/tc-d10v.h: Update Copyright.
1533
1534 2002-04-03 Alan Matsuoka <alanm@redhat.com>
1535 Tom Rix <trix@redhat.com>
1536
1537 From Jeff Knaggs <jknaggs@redhat.com>
1538 * config/tc-d10v.c (check_resource_conflict): New function to
1539 check for resource conflicts.
1540
1541 From Jason Eckhardt <jle@redhat.com>
1542 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1543 imm3 fields.
1544 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
1545 reserved control registers is used.
1546 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
1547 imm3 fields.
1548
1549 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
1550 * tc-d10v.c (parallel_ok): Prevent packing only if the first
1551 instruction cannot be packed.
1552
1553 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
1554 * gas/config/tc-d10v.c (check_resource_conflict): Only check
1555 write-write conflicts.
1556 (md_assemble): Reformat introductory comment.
1557 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
1558 arguments.
1559
1560 2002-04-03 Alan Modra <amodra@bigpond.net.au>
1561
1562 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
1563 O_logical_not>): Derive final_seg from add_symbol.
1564 <O_multiply..O_logical_or>: More final_seg twiddles.
1565
1566 2002-04-01 Jessica Han <jessica@cup.hp.com>
1567
1568 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
1569 in 32-bit mode.
1570
1571 2002-03-27 Andreas Schwab <schwab@suse.de>
1572
1573 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
1574 field for pc-relative fixups.
1575 (output_disp): Likewise.
1576 (md_estimate_size_before_relax): Likewise.
1577 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
1578 pc-relative fixups in 64bit mode.
1579
1580 2002-03-22 Alan Modra <amodra@bigpond.net.au>
1581
1582 * config/te-aix5.h: Typo fix.
1583
1584 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1585
1586 * Makefile.am: Run "make dep-am".
1587 * Makefile.in: Regenerate.
1588 * doc/Makefile.in: Regenerate.
1589
1590 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
1591
1592 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
1593 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
1594
1595 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
1596
1597 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
1598 the EXTENDED bit here; report the estimate according to the
1599 current size.
1600
1601 2002-03-18 Tom Rix <trix@redhat.com>
1602
1603 * configure.in: Add AIX 5 support.
1604 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
1605 * config/te-aix5.h: New file. AIX 5 support.
1606 * configure: Regenerate.
1607
1608 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1609
1610 * po/fr.po: Updated version.
1611
1612 2002-03-16 Andreas Jaeger <aj@suse.de>
1613
1614 * doc/c-mips.texi (Machine Dependencies): Add new node.
1615
1616 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
1617
1618 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
1619 (mips_opts): Initialize "ase_mips3d" member.
1620 (file_ase_mips3d): New variable.
1621 (CPU_HAS_MIPS3D): New macro.
1622 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
1623 based on command line options and configuration defaults.
1624 (macro_build, mips_ip): Accept MIPS-3D instructions if
1625 mips_opts.ase_mips3d is set.
1626 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
1627 Add support for "-mips3d" and "-no-mips3d" options.
1628 (OPTION_ELF_BASE): Move to accomodate new options.
1629 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
1630 (mips_elf_final_processing): Add a comment indicating that a
1631 MIPS-3D ASE ELF header flag should be set, when one exists.
1632 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
1633 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
1634 nomips3d" directives.
1635
1636 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
1637
1638 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
1639 a weak symbol in same section to be within reach.
1640
1641 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1642
1643 * po/fr.po: Updated version.
1644
1645 2002-03-12 Andreas Schwab <schwab@suse.de>
1646
1647 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
1648 body record so that an error is given for misplaced .save
1649 pseudo-ops.
1650
1651 2002-03-09 Alan Modra <amodra@bigpond.net.au>
1652
1653 * config/tc-i386.h (REX_OPCODE): Define.
1654 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
1655 (rex_byte): typedef to int.
1656 * config/tc-i386.c: Group prototypes and vars together.
1657 Formatting fixes. Remove occurrences of "register" keyword.
1658 (true): Delete.
1659 (false): Delete.
1660 (mode_from_disp_size): Add INLINE keyword to prototype.
1661 (fits_in_signed_byte): Likewise.
1662 (fits_in_unsigned_byte): Likewise.
1663 (fits_in_unsigned_word): Likewise.
1664 (fits_in_signed_word): Likewise.
1665 (fits_in_unsigned_long): Likewise.
1666 (fits_in_signed_long): Likewise.
1667 (type_names): Constify.
1668 (intel_float_operand): Constify param.
1669 (add_prefix): Use REX_OPCODE.
1670 (md_assemble): Likewise. Modify for changed rex_byte.
1671 (parse_insn): Split out of md_assemble.
1672 (parse_operands): Likewise.
1673 (swap_operands): Likewise.
1674 (optimize_imm): Likewise.
1675 (optimize_disp): Likewise.
1676 (match_template): Likewise.
1677 (check_string): Likewise.
1678 (process_suffix): Likewise.
1679 (check_byte_reg): Likewise.
1680 (check_long_reg): Likewise.
1681 (check_qword_reg): Likewise.
1682 (check_word_reg): Likewise.
1683 (finalize_imm): Likewise.
1684 (process_operands): Likewise.
1685 (build_modrm_byte): Likewise.
1686 (output_insn): Likewise.
1687 (output_branch): Likewise.
1688 (output_jump): Likewise.
1689 (output_interseg_jump): Likewise.
1690 (output_disp): Likewise.
1691 (output_imm): Likewise.
1692
1693 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1694
1695 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1696
1697 2002-03-06 Alan Modra <amodra@bigpond.net.au>
1698
1699 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
1700 relocs except when BFD64.
1701
1702 * write.c (number_to_chars_bigendian): Don't abort when N is
1703 larger than sizeof (VAL).
1704 (number_to_chars_littleendian): Likewise.
1705
1706 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1707
1708 * config/tc-hppa.c (md_apply_fix3): Add cast.
1709 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
1710 e_rrsel.
1711
1712 2002-03-05 Paul Koning <pkoning@equallogic.com>
1713
1714 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
1715 (parse_ac5): New function for parsing float regs in float operand.
1716 (parse_expression): Remove attempt to make literals be octal.
1717 (parse_op_no_deferred): Support float literals.
1718 (parse_op): Reject attempts to refer to float regs.
1719 (parse_fop): New function, like parse_op but for float operand.
1720 (md_assemble): Add cases to parse float operands. Also fix
1721 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
1722
1723 2002-03-04 H.J. Lu <hjl@gnu.org>
1724
1725 * config/obj-elf.c (special_section): Add .init_array,
1726 .fini_array and .preinit_array.
1727
1728 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
1729 .init_array and .fini_array.
1730
1731 2002-03-01 Jakub Jelinek <jakub@redhat.com>
1732
1733 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
1734 visibility.
1735 (obj_frob_symbol): Copy visibility.
1736
1737 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1738
1739 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
1740 s_text.
1741 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
1742
1743 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
1744
1745 * po/es.po: Updated.
1746
1747 2002-02-26 Chris Demetriou <cgd@broadcom.com>
1748
1749 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
1750 only, undo the changes made on 2001-06-08, with the
1751 effect being that common or extern symbols are
1752 adjusted for embedded-PIC, but weak symbols are not.
1753 (md_estimate_size_before_relax: Likewise, with the effect
1754 that extern symbols are treated the same as weak symbols
1755 only if not embedded-PIC.
1756 (mips_fix_adjustable) Likewise, with the effect that
1757 weak or extern symbols are not adjusted for embedded-PIC.
1758 (md_apply_fix3): Tweak so that the case where value is zero
1759 is handled more correctly for embedded-PIC code.
1760
1761 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
1762
1763 * doc/as.texinfo (Overview): Add missing @ifset IA64
1764
1765 * configure.in (LINGUAS): Add es.po.
1766 * configure: Regenerate.
1767 * po/es.po: New file.
1768
1769 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1770
1771 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
1772 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
1773 and NO_PIC cases. Code cleanup.
1774 (macro2): Fix handling of 64bit register loads.
1775
1776 2002-02-25 David Mosberger <davidm@hpl.hp.com>
1777
1778 * doc/as.texinfo: Add entry for IA64.
1779 * doc/c-ia64.texi: New file.
1780
1781 2002-02-25 Alan Modra <amodra@bigpond.net.au>
1782
1783 * config/tc-hppa.c: Update copyright date.
1784
1785 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
1786 Remove references to chip manufacturers.
1787 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1788 Correct comments.
1789 (md_show_usage): Remove references to chip manufacturers. Mention
1790 -mpower4.
1791 (md_begin): Test power4 opcode flag bits.
1792
1793 2002-02-22 David Mosberger <davidm@hpl.hp.com>
1794
1795 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
1796 count exceeds prologue count.
1797 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
1798 (unwind.label_prologue_count): New member.
1799
1800 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1801
1802 (get_saved_prologue_count): New function.
1803 (save_prologue_count): New function.
1804 (free_saved_prologue_count): New function.
1805 (dot_label_state): Record state label by calling save_prologue_count().
1806 (dot_copy_state): Restore prologue count by calling
1807 get_saved_prologue_count().
1808 (generate_unwind_image): Free up list of saved prologue
1809 counts by calling free_saved_prologue_counts().
1810
1811 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
1812
1813 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1814 function declarations.
1815
1816 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
1817
1818 * NEWS: Note that GASP is now deprecated.
1819 * Makefile.am: Do not build gasp-new by default.
1820 * Makefile.in: Regenerate.
1821 * doc/Makefile.am: Do not install gasp.info.
1822 * doc/Makefile.in: Regenerate.
1823 * gas/gasp.texi: Note that gasp is now deprecated.
1824
1825 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1826
1827 * NEWS: Mark 2.12 branch.
1828
1829 2002-02-19 Tom Tromey <tromey@redhat.com>
1830
1831 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1832
1833 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1834
1835 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1836 option input.
1837
1838 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1839
1840 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1841 Make bit size independent of architecture switch.
1842 (md_begin): Add warning for -m64 with -Aesa.
1843 (s390_md_end): Use renamed architecture defines.
1844
1845 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
1846
1847 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1848
1849 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
1850
1851 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1852 instead of CRIS.
1853
1854 2002-02-15 Chris Demetriou <cgd@broadcom.com>
1855
1856 * config/tc-mips.c (md_estimate_size_before_relax): Really
1857 make sure we treat weak like extern only for ELF. (Fixes
1858 patch from 2001-07-25.)
1859
1860 2002-02-15 Ben Elliston <bje@redhat.com>
1861
1862 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
1863 works as expected.
1864
1865 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1866
1867 * NEWS: Mention support for MMIX.
1868
1869 2002-02-13 Chris Demetriou <cgd@broadcom.com>
1870
1871 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1872 a sequence of indpendent 'if' statements for easier debugging
1873 and future modification.
1874
1875 2002-02-13 Matt Fredette <fredette@netbsd.org>
1876
1877 * config/tc-m68k.c (md_show_usage): No longer display a
1878 hard-coded "68020" for the default CPU, instead display the
1879 canonical name of the true, configured default CPU.
1880 (m68k_elf_final_processing): Mark objects for sub-68020
1881 CPUs with the new EF_M68000 flag.
1882
1883 2002-02-13 Andreas Schwab <schwab@suse.de>
1884
1885 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1886 pc-relative relocations to merge sections in 64-bit mode.
1887
1888 2002-02-13 Ben Elliston <bje@redhat.com>
1889
1890 * NEWS: Document floating point number handling in gasp.
1891 * gasp.c: Include <assert.h> and "xregex.h".
1892 (is_flonum): New function.
1893 (chew_flownum): Likewise.
1894 (change_base): Consume flonums from the input, where possible.
1895 * doc/gasp.texi (Constants): Document floating point numbers.
1896
1897 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1898
1899 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1900 that implicitly use LR and RR selectors.
1901
1902 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
1903
1904 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
1905 and `epsw' as available on AM33 and above only.
1906 (other_register_name): Add logic to handle machine type encoded in
1907 reg_number.
1908
1909 2002-02-11 Tom Rix <trix@redhat.com>
1910
1911 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
1912 xcoff64.
1913
1914 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
1915
1916 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1917 Use all over.
1918
1919 2002-02-11 Jan Hubicka <jh@suse.cz>
1920
1921 * i386.c (md_assemble): Support 32bit address prefix.
1922 (i386_displacement): Likewise.
1923 (i386_index_check): Accept 32bit addressing in 64bit mode.
1924
1925 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1926
1927 * config/tc-sh.c (dot): Removed unused function.
1928
1929 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1930
1931 * Makefile.am: "make dep-am".
1932 * Makefile.in: Regenerate.
1933 * aclocal.m4: Regenerate.
1934 * config.in: Regenerate.
1935 * configure: Regenerate.
1936 * doc/Makefile.in: Regenerate.
1937
1938 2002-02-10 Richard Henderson <rth@redhat.com>
1939
1940 * doc/c-alpha.texi: New file.
1941 * doc/Makefile.am (CPU_DOCS): Add it.
1942 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1943
1944 2002-02-09 Richard Henderson <rth@redhat.com>
1945
1946 * config/tc-alpha.c (O_samegp): New.
1947 (USER_RELOC_P): Include it.
1948 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1949 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1950 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1951 (alpha_validate_fix): New.
1952 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
1953
1954 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
1955
1956 * doc/c-cris.texi: New.
1957 * doc/all.texi: @set CRIS.
1958 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
1959 Include c-cris.texi.
1960 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1961 * doc/Makefile.in: Regenerate.
1962
1963 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1964
1965 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1966 determine if a number is a sign-extended 32-bit number.
1967 (load_register): Use IS_SEXT_32BIT_NUM.
1968 (macro): Check if load/store macro handling is using a
1969 constant 32-bit address on 64-bit address systems, and if
1970 so optimize the generation of that address.
1971
1972 2002-02-08 Richard Henderson <rth@redhat.com>
1973
1974 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
1975 we've eliminated all foreign relocation types yet.
1976 (alpha_fix_adjustable): Likewise.
1977
1978 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1979
1980 Contribute sh64-elf.
1981 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1982 Stephen Clarke <Stephen.Clarke@st.com>
1983 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1984 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
1985 * config/tc-sh.c (md_relax_table): Added default sizes for
1986 non-PC-relative UNDEF_MOVI, and relaxation sequences for
1987 MOVI_16, MOVI_32 and MOVI_48.
1988 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1989 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1990 and MOVI_16.
1991 (shmedia_md_estimate_size_before_relax): Remove redundant
1992 blocks. Set fragP->fr_var even if relaxation type unchanged.
1993 Retain UNDEF_MOVI until expression decays to number.
1994 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1995 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1996 relocation types. Take fixP->fx_addnumber into account too.
1997 (shmedia_md_apply_fix): Likewise.
1998 (shmedia_md_convert_frag): Likewise.
1999 (shmedia_build_Mytes): Likewise.
2000 (sh64_consume_datalabel): Complain about nested datalabel.
2001 Support PIC relocs. Call sh_parse_name.
2002 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
2003 in tc-sh.h to SHmedia reloc types.
2004 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
2005 MOVI_GOTPC): New relaxation constants.
2006 (md_relax_table): Introduce relaxation directives for PIC-related
2007 constants.
2008 (sh_PIC_related_p): Handle datalabel.
2009 (sh_check_fixup): Choose SH5 PIC relocations.
2010 (sh_cons_fix_new): Added BDF_RELOC_64.
2011 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
2012 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2013 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
2014 current ISA is SHmedia, get 7 bytes.
2015 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
2016 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
2017 void function.
2018 * config/tc-sh64.c (shmedia_apply_fix): Rename to
2019 shmedia_apply_fix3 and make void.
2020 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
2021 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
2022 as_bad.
2023 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
2024 * config/tc-sh64.h (md_parse_name): Take &c as argument.
2025 2001-03-14 DJ Delorie <dj@redhat.com>
2026 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
2027 * doc/Makefile.in(CPU_DOCS): Ditto.
2028 * doc/c-sh64.texi: New file.
2029 * doc/as.texinfo: Add SH64 support.
2030 2001-03-13 DJ Delorie <dj@redhat.com>
2031 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
2032 A_REUSE_PREV so that its purpose is more obvious.
2033 (shmedia_build_Mytes): Ditto.
2034 2001-03-07 DJ Delorie <dj@redhat.com>
2035 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
2036 before processing.
2037 (sh64_vtable_inherit): Ditto.
2038 (strip_datalabels): New, strip "datalabel" from given line.
2039 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
2040 pseudos.
2041 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
2042 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
2043 call ...
2044 (shmedia_build_Mytes): ... to here.
2045 2001-03-06 DJ Delorie <dj@redhat.com>
2046 * config/tc-sh.c: Remove sh64-specific uaquad now that there
2047 is a generic one.
2048 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
2049 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
2050 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
2051 address by one in call to dwarf2_emit_insn.
2052 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
2053 Implement ".abi" pseudo and correct .cranges descriptors. Correct
2054 alignment handling broken by imported changes.
2055 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
2056 (sh64_handle_align): Declare.
2057 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
2058 (sh64_max_mem_for_rs_align_code): Declare.
2059 (enum sh64_isa_values): Moved here from tc-sh64.c.
2060 (md_do_align): Define.
2061 (sh64_do_align): Declare.
2062 (struct sh64_tc_frag_data): New.
2063 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
2064 changed.
2065 (TC_FRAG_INIT): Change to set new datatype.
2066 (struct sh64_segment_info_type): Rename member
2067 last_flushed_location to last_contents_mark. All users changed.
2068 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
2069 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
2070 * config/tc-sh.c (md_pseudo_table): Add ".abi".
2071 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
2072 of unsetting seen_insn.
2073 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
2074 call sh64_update_contents_mark.
2075 (sh_handle_align): Remove HAVE_SH64-conditioned code.
2076 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
2077 enum sh64_isa_values.
2078 (sh64_set_contents_type): Drop segT parameter. All callers changed.
2079 (emitting_crange): Boolean guard moved to file scope from function
2080 scope in sh64_set_contents_type.
2081 (s_sh64_abi): New.
2082 (sh64_update_contents_mark): New; most split out from
2083 sh64_flush_pending_output.
2084 (shmedia_md_end): Call sh64_update_contents_mark. Set
2085 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
2086 (sh64_do_align): New function.
2087 (sh64_max_mem_for_rs_align_code): New function.
2088 (sh64_handle_align): Rename from shmedia_do_align. Make
2089 non-static. Add head comment. Emit zero bytes for n bytes modulo
2090 four. Change return-type to void.
2091 (shmedia_elf_new_section): Remove.
2092 (shmedia_md_assemble): Call sh64_update_contents_mark.
2093 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
2094 new frag. Call sh64_update_contents_mark after making the new
2095 frag.
2096 (sh64_flush_pending_output): Just call sh64_update_contents_mark
2097 and sh_flush_pending_output.
2098 (sh64_flag_output): Also call md_flush_pending_output, but add
2099 condition on not emitting_crange.
2100 (sh64_tc_cons_fix_new): Remove.
2101 2001-01-12 Nick Clifton <nickc@redhat.com>
2102 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
2103 alignment handling scheme imported from sourceware.
2104 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
2105 * config/tc-sh64.h (TARGET_FORMAT): Define.
2106 (sh64_target_format): Prototype.
2107 * config/tc-sh64.c (sh64_target_mach): New function.
2108 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
2109 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
2110 zero_address_frag instead of copying the frag of the symbol.
2111 (shmedia_frob_file_before_adjust): Ditto.
2112 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
2113 to valueT to remove signedness.
2114 (shmedia_md_convert_frag): Add parameter final. Rename parameter
2115 headers to output_bfd. Do not evaluate symbols if final is false;
2116 do emit fixups.
2117 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
2118 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
2119 to the current frag, call shmedia_md_convert_frag to emit fixups
2120 and make frag_wane neutralize the frag. Update comments.
2121 * config/tc-sh.c (md_convert_frag): Change caller of
2122 shmedia_md_convert_frag.
2123 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2124 * config/tc-sh64.h: Tweak comments and correct formatting.
2125 * config/tc-sh64.c: Ditto.
2126 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
2127 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
2128 for the no-relocation case.
2129 (shmedia_check_limits): Fix range check being off-by-one for PTA.
2130 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
2131 wrappers.
2132 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
2133 comment.
2134 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
2135 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
2136 expansion.
2137 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
2138 Correct comment.
2139 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2140 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
2141 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
2142 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
2143 al>: Set lowest bit of field to relocate to 1 and rest to empty,
2144 if reloc is emitted.
2145 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
2146 New options plus bugfixes.
2147 * config/tc-sh.c (md_longopts): New options "-no-expand" and
2148 "-expand-pt32".
2149 (md_parse_option): Handle new options.
2150 (md_show_usage): Add blurb for new options.
2151 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
2152 (sh64_expand, sh64_pt32): New variables.
2153 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
2154 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
2155 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
2156 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
2157 <resolved previously-pc-relative relocs>: Handle
2158 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
2159 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
2160 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
2161 points to SHcompact code.
2162 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
2163 SH64PCREL16)>: Check that ISA of what operand points at and
2164 PTA/PTB matches, or emit error.
2165 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
2166 SHMEDIA_BFD_RELOC_PT.
2167 (shmedia_immediate_op): If pcrel, emit fixup also for constant
2168 operand.
2169 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
2170 condition for MOVI expansion.
2171 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
2172 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
2173 sh64_expand.
2174 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
2175 fixup.
2176 (sh64_target_format): Error-check setting of sh64_pt32 and
2177 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
2178 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
2179 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
2180 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
2181 * config/tc-sh64.c: Improve comments.
2182 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
2183 not say the linker will check correctness of PTA/PTB expansion.
2184 (shmedia_md_end): Make non-static.
2185 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
2186 prototype.
2187 * config/tc-sh.c (sh_finalize): Remove.
2188 * config/tc-sh.h (md_end): Do not define.
2189 Remove prototype for sh_finalize.
2190 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2191 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
2192 sh64_section_data container when storing section type in tdata
2193 field in elf_section_data.
2194 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
2195 EF_SH5.
2196 * Makefile.am: Update dependencies.
2197 * Makefile.in: Regenerate.
2198 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
2199 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
2200 dwarf2_emit_insn call with test on debug_type.
2201 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2202 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
2203 CRT_SH5_ISA32 sticky for 64-bit.
2204 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2205 Generate .crange sections when switching ISA mode or emitting
2206 constants in same section as code.
2207 * config/tc-sh64.c: Reformat structure definitions.
2208 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
2209 variables.
2210 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
2211 to emit a .cranges descriptor when contents type changes. Only
2212 emit error if changing contents type and -no-mix is in effect.
2213 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
2214 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
2215 (shmedia_md_end): Set sh64_end_of_assembly. Pass
2216 sh64_flush_last_crange over sections.
2217 When checking main symbol of datalabel symbol, check for
2218 STO_SH5_ISA32, not ISA type of section in definition.
2219 (shmedia_frob_file_before_adjust): Check main symbol for
2220 STO_SH5_ISA32; don't check ISA type of section in definition.
2221 (shmedia_frob_section_type): Adjust for .cranges; set section flag
2222 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
2223 .cranges entries have been output.
2224 (shmedia_elf_new_section): Just call md_flush_pending_output.
2225 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
2226 fix. Do not set tc_segment_info_data.in_code for section. Call
2227 sh64_set_contents_type for SHmedia code.
2228 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
2229 false. Call md_flush_pending_output.
2230 (sh64_target_format): Check that -no-mix and
2231 -shcompact-const-crange are used in sane combination with other
2232 options.
2233 (shmedia_md_pcrel_from_section): Check type of fix for how to
2234 adjust pc-relative.
2235 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
2236 not ISA type of section in definition.
2237 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
2238 hold contents-type state.
2239 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
2240 (sh64_flush_pending_output): Declare.
2241 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
2242 (sh64_tc_cons_fix_new): Declare.
2243 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
2244 call sh64_flag_output.
2245 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
2246 call sh64_set_contents_type to mark SHcompact code and set
2247 seen_insn.
2248 (md_longopts): New options "-no-mix" and
2249 "-shcompact-const-crange".
2250 (md_parse_option): Handle new options.
2251 (md_show_usage): Add blurb for new options.
2252 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
2253 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2254 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
2255 (sh64_last_insn_frag): New.
2256 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
2257 to get frag for insn opcode for generating fixups; do not assume it
2258 is the same frag.
2259 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
2260 for new insn.
2261 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
2262 section.
2263 (TC_FRAG_TYPE): Define as fragS *.
2264 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
2265 (sh64_last_insn_frag): Declare.
2266 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
2267 not == NULL before dereferencing.
2268 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2269 Get rid of BFD section flag and EF_SH64_ABI64.
2270 * config/tc-sh64.c (shmedia_frob_section_type): Use
2271 elf_section_data (sec)->tdata, not a specific BFD section flag, to
2272 communicate the section as containing SHmedia code. Describe why.
2273 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
2274 EF_SH64 regardless of ABI.
2275 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
2276 in error message. Handle resolved expressions for
2277 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2278 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
2279 (shmedia_check_limits): Handle BFD_RELOC_64.
2280 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
2281 a STO_SH5_ISA32 symbol, only the BFD value.
2282 2000-12-11 Ben Elliston <bje@redhat.com>
2283 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
2284 dwarf2_generate_asm_lineno.
2285 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
2286 Handle PC-relative MOVI expansions with assembler relaxation.
2287 Generate PC-relative relocs from 16-bit PC-relative expressions.
2288 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
2289 (shmedia_md_pcrel_from_section): ...here.
2290 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
2291 turned completely resolved. Adjust relocation type for 16-bit
2292 immediate operands that has turned PC-relative. Adjust back for
2293 MD_PCREL_FROM_SECTION being applied twice.
2294 (shmedia_md_convert_frag): Always emit reloc for expression with
2295 global or weak symbol. Handle relaxation result for PC-relative
2296 expressions.
2297 (shmedia_md_estimate_size_before_relax): An expression with a weak
2298 or global symbol can not be relaxed. Break out tests for
2299 relaxable symbol into variable sym_relaxable.
2300 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
2301 UNDEF_MOVI)>: Break out any PC-relative expression and change
2302 relaxation type.
2303 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
2304 opjp.
2305 <case A_IMMS16>: Fix typo for initial minor relaxation type of
2306 MOVI expansion. If X_op_symbol of the immediate expression is
2307 set, make an expression symbol for the argument to frag_var.
2308 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
2309 relaxations.
2310 (END): Adjust for new relaxations.
2311 (md_relax_table): Add entries for new relaxations.
2312 2000-12-07 Ben Elliston <bje@redhat.com>
2313 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
2314 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2315 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
2316 SHORI operand offsets in PT/PTA/PTB expansions.
2317 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2318 Implement DataLabel semantics.
2319 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
2320 shmedia_frob_file_before_adjust.
2321 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
2322 (DATALABEL_SUFFIX): Define.
2323 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
2324 symbol list to update "datalabel" symbols to their main symbol
2325 counterparts.
2326 (shmedia_frob_file_before_adjust): New.
2327 (sh64_adjust_symtab): For remaining datalabel symbols, set to
2328 undefined and set STT_DATALABEL.
2329 (sh64_frob_label): Initialize TC symbol field.
2330 (sh64_consume_datalabel): Actually implement semantics. New
2331 parameter operandf, call it instead of expression.
2332 (sh64_exclude_symbol): New.
2333 * config/tc-sh64.h (md_parse_name): Pass on the function operand
2334 to sh64_consume_datalabel.
2335 (tc_symbol_new_hook): Define to tc_frob_symbol.
2336 (TC_SYMFIELD_TYPE): Define to symbolS *.
2337 (tc_frob_symbol): Define to call sh64_exclude_symbol.
2338 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
2339 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
2340 case.
2341 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
2342 generating dwarf2 debug information.
2343 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2344 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
2345 elf64-sh64 for the 64-bit ABI.
2346 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
2347 option.
2348 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2349 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
2350 case-insensitivity.
2351 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2352 * config/tc-sh64.c: Tweak comments, formatting and error messages.
2353 (enum sh64_abi_values): New type.
2354 (enum sh64_isa_values): New type.
2355 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
2356 (seen_shcompact_mode, seen_shmedia_mode): Delete.
2357 (sh64_abi): Replace shmedia_64.
2358 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
2359 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
2360 (s_sh64_mode): Check validity for this target.
2361 (sh64_target_format): Initialize defaults for ISA and ABI.
2362 Fallback to old object format if no SH64 ISA or ABI has been
2363 specified.
2364 * config/tc-sh.c (md_parse_option): Check combinations for errors.
2365 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
2366 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
2367 * config/tc-sh64.h: Fix typo in comment.
2368 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
2369 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
2370 <PT fixups for absolute values>: Size will be longest, not
2371 shortest.
2372 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
2373 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
2374 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
2375 and l1 to hold lowercase of two first characters. Change all
2376 remaining TO_LOWER to tolower.
2377 * config/tc-sh64.c (TO_LOWER): Delete.
2378 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
2379 (md_parse_name): Define.
2380 (sh64_consume_datalabel): Declare.
2381 (DOLLAR_DOT): Define.
2382 * config/tc-sh64.c (shmedia_parse_exp): New.
2383 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
2384 (shmedia_parse_reg): Remove const from src
2385 parameter.
2386 (shmedia_get_operands): Ditto for args parameter and ptr variable.
2387 (shmedia_md_assemble): Ditto for op_end variable.
2388 (shmedia_get_operand): Ditto for ptr parameter and src variable.
2389 Use shmedia_parse_exp, not parse_exp.
2390 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
2391 parameter. All callers changed.
2392 (shmedia_get_operand): Add shmedia_arg_type parameter. All
2393 callers changed.
2394 (shmedia_parse_reg): Put first two character in local variables.
2395 Use tolower, not TO_LOWER. If no register is found and argtype
2396 indicates a control register, scan shmedia_creg_table
2397 case-insensitive.
2398 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2399 * Makefile.am (CPU_TYPES): Add sh64.
2400 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
2401 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
2402 Regenerate dependencies.
2403 * Makefile.in: Regenerate.
2404 * configure.in: Add support for sh64-*-elf*.
2405 * configure: Regenerate.
2406 * config/tc-sh64.h: New.
2407 * config/tc-sh64.c: New.
2408 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
2409 .mode, .isa and .uaquad.
2410 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
2411 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
2412 [HAVE_SH64] (END): Define as 10.
2413 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
2414 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
2415 MOVI_64): Define.
2416 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
2417 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
2418 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
2419 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
2420 Define.
2421 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
2422 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
2423 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
2424 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
2425 SHmedia instructions. Handle state-change after switching to
2426 SHcompact.
2427 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
2428 (md_parse_option) [HAVE_SH64]: Parse new options.
2429 (md_show_usage) [HAVE_SH64]: Show usage of new options.
2430 (md_convert_frag) [HAVE_SH64] <default>: Call
2431 shmedia_md_convert_frag instead of abort.
2432 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
2433 BFD_RELOC_SH_SHMEDIA_CODE.
2434 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
2435 SHcompact or SHmedia code.
2436 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
2437 shmedia_md_apply_fix instead of abort.
2438 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
2439 result from calling shmedia_md_estimate_size_before_relax instead
2440 of calling abort.
2441 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
2442 do the work.
2443 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
2444 shmedia_init_reloc and do nothing more if it returns non-zero.
2445 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
2446 * po/POTFILES.in: Regenerate.
2447 * po/gas.pot: Regenerate.
2448
2449 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2450
2451 * config/tc-sh.c (parse_at): Install the correct version of
2452 2002-02-04's patch.
2453
2454 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
2455 assume fixP->fx_subsy is non-NULL.
2456
2457 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
2458
2459 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
2460 A_DISP_PC_ABS, and adjust it by -4.
2461 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
2462 expected.
2463 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
2464 the operand type is not A_DISP_PC_ABS.
2465
2466 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2467
2468 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
2469 common and weak symbols. Handle common and weak symbols as
2470 undefined symbols with regards to GREG handling and merging.
2471 (mmix_frob_file): Ditto.
2472
2473 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2474
2475 * configure.in (hppa-*-netbsd*): New target.
2476 * configure: Regenerate.
2477 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
2478
2479 2002-02-02 Alan Modra <amodra@bigpond.net.au>
2480
2481 * config/tc-v850.c: Add missing prototypes amd use old-style
2482 function definitions.
2483 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
2484 (sdata_section tdata_section, zdata_section, sbss_section,
2485 tbss_section, zbss_section, rosdata_section, rozdata_section,
2486 scommon_section, tcommon_section, zcommon_section,
2487 call_table_data_section, call_table_text_section): Delete.
2488 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2489 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
2490 v850_call_table_data, v850_call_table_text): Delete.
2491 (struct v850_seg_entry): New.
2492 (v850_seg_table): New.
2493 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
2494 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
2495 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
2496 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
2497 (do_v850_seg): New.
2498 (v850_seg): New.
2499 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
2500 recording of alignment.
2501 (md_pseudo_table): Use v850_seg.
2502 (md_begin): Don't init .call_table_data and .call_table_text here.
2503 Set v850_seg_table bss entry.
2504
2505 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2506
2507 Support on-demand global register allocation by passing on
2508 base-plus-offset relocs to the linker.
2509 * config/tc-mmix.c: Tweak and fix typos in comments.
2510 (allocate_undefined_gregs_in_linker): New variable.
2511 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
2512 (md_longopts): Add --linker-allocated-gregs.
2513 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
2514 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
2515 (md_show_usage): Update text for -x. Add text for
2516 --linker-allocated-gregs.
2517 (tc_gen_reloc): Derive default value for addend from val and
2518 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
2519 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
2520 GREG if allocate_undefined_gregs_in_linker.
2521 * doc/as.texinfo (Overview) <Target MMIX options>: Add
2522 --linker-allocated-gregs.
2523 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
2524 --linker-allocated-gregs. Mention that it's implied by -x.
2525 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
2526 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
2527
2528 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
2529
2530 2002-02-01 Alan Modra <amodra@bigpond.net.au>
2531
2532 * Makefile.am: Run "make dep-am"
2533 * Makefile.in: Regenerate.
2534
2535 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2536
2537 * config/tc-or32.c: New file.
2538 * config/tc-or32.h: New file.
2539 * configure.in: Add support for or32 targets.
2540 * configure: Regenerate.
2541 * config/obj-coff.c: Add support for or32 targets.
2542 * config/obj-coff.h: Add support for or32 targets.
2543 * Makefile.am: Add support for or32 targets.
2544 * Makefile.in: Regenerate.
2545 * NEWS: Mention support for OpenRISC.
2546 * doc/Makefile.in: Regenerate.
2547 * po/POTFILES.in: Regenerate.
2548 * po/gas.pot: Regenerate.
2549
2550 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
2551
2552 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
2553 and mod.
2554
2555 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2556
2557 * config/tc-mips.c (tc_gen_reloc): Arrange for
2558 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
2559 their LO16 parts, even for ELF.
2560
2561 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
2562
2563 * config/tc-i386.c: Protect definitions of true and false
2564 from redefinition.
2565
2566 2002-01-28 Jakub Jelinek <jakub@redhat.com>
2567
2568 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
2569 made because of .weak, if they are neither defined nor used in any
2570 way.
2571
2572 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2573
2574 * configure: Regenerated.
2575
2576 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2577
2578 * doc/Makefile.am (install): Depend on install-info.
2579 * doc/Makefile.in: Regenerate.
2580
2581 2002-01-26 Nick Clifton <nick@redhat.com>
2582
2583 * po/fr.po: Updated version
2584
2585 2002-01-24 Kazu Hirata <kazu@hxi.com>
2586
2587 * config/tc-h8300.c (check_operand): Don't print a warning
2588 when a valid 24-bit address is given to a 16-bit address
2589 operand.
2590
2591 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2592
2593 * config/tc-sh.c (sh_elf_suffix): Removed.
2594 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
2595 sh_end_of_match, sh_parse_name): New functions.
2596 (sh_elf_cons): Simplify.
2597 (parse_exp): Reject misplaced PIC operands.
2598 (md_undefined_symbol): Simplify.
2599 (sh_fix_adjustable): Let @GOTOFF be adjusted.
2600 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
2601 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
2602 Complain if subsy remains at the end.
2603 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
2604 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
2605
2606 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
2607
2608 * config/tc-mn10300.c (xr_registers): Move `pc'...
2609 (other_registers): ... here.
2610
2611 2002-01-22 Alan Modra <amodra@bigpond.net.au>
2612
2613 * Makefile.am: Run "make dep-am".
2614 * Makefile.in: Regenerate.
2615 * gas/po/POTFILES.in: Regenerate.
2616
2617 2002-01-21 DJ Delorie <dj@redhat.com>
2618
2619 * config/obj-coff.c (obj_coff_init_stab_section): Make the
2620 stabstr_name allocation permanent, as it will be referenced from
2621 the section hash.
2622
2623 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2624
2625 * configure.in (ia64-*-netbsd*): New target.
2626 * configure: Regenerate.
2627
2628 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
2629
2630 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
2631 to @dots call.
2632 <Detailed description, ARM options>: Ditto.
2633 * doc/c-arm.texi (ARM Options): Ditto.
2634
2635 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2636
2637 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
2638 do_mia, do_mar and do_mra respectively.
2639 (do_mav_*): Renamed from do_c_*.
2640 (mav_reg_required_here, mav_parse_offset): Renamed from
2641 cirrus_reg_required_here and cirrus_parse_offset respectively.
2642 (MAV_MODE?): Renamed from CIRRUS_MODE?.
2643
2644 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2645 Keith Walker <keith.walker@arm.com>
2646
2647 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
2648 (insns): Add pattern for bxj instruction.
2649 (do_bxj): New function.
2650 (arm_cpus): Add arm926ej.
2651 (arm_archs): Add armv5tej.
2652
2653 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2654
2655 * doc/c-arm.texi: Add new fpe options to list of supported flags.
2656
2657 2002-01-19 Keith Walker <keith.walker@arm.com>
2658
2659 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
2660
2661 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2662
2663 * NEWS: Mention new ARM command-line options and VFP support.
2664
2665 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
2666 uses changed.
2667 (ARM_CEXT_MAVERICK): Similarly.
2668 (ARM_ANY): Now means any core instruction.
2669 (CPU_DEFAULT): Default to ARM_ANY.
2670 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
2671 (pic_code): Declare for all object types. Make type int.
2672 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
2673 (march_fpu_opt, mfpu_opt): Declare.
2674 (md_longopts): Tidy up conditional definitions.
2675 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
2676 (arm_long_opts): New tables.
2677 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
2678 (arm_parse_extension): New function.
2679 (md_parse_option): Rewrite using new table-driven system.
2680 (md_show_usage): Use new table-driven system.
2681 (md_begin): Calculate cpu_variant from command line option data.
2682 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
2683 command-line options.
2684 * doc/c-arm.texi: Likewise.
2685
2686 2002-01-18 Andreas Jaeger <aj@suse.de>
2687
2688 * as.c (parse_args): Update year.
2689
2690 2002-01-17 Timothy Wall <twall@alum.mit.edu>
2691
2692 * config/tc-tic54x.c (encode_address): Add a more informative
2693 warning about incorrect syntax.
2694
2695 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2696
2697 * po/gas.pot: Regenerate.
2698
2699 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2700
2701 * macro.c (get_any_string): Add no-c-format comment to prevent
2702 confusion when translating string.
2703 * gasp.c (get_any_string): Add no-c-format comment to prevent
2704 confusion when translating string.
2705
2706 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2707 Johannes Stezenbach <js@convergence.de>
2708 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
2709 matched before the shorter ones.
2710 (my_getSmallParser): Fix handling of nested parentheses in
2711 percent_op's. Code cleanup.
2712 (my_getPercentOp): New function, code from my_getSmallParser.
2713 (my_getSmallExpression): Fix handling of closing parentheses.
2714 Code cleanup. Better comments.
2715
2716 2002-01-16 Nick Clifton <nickc@redhat.com>
2717
2718 po/tr.po: New file: Turkish translation.
2719 configure.in (LINGUAS): Add "tr".
2720 configure: Regenerate.
2721
2722 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
2723
2724 Support for VFP instructions
2725 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
2726 (cp_address_required_here): New argument wb_ok. When false, do not
2727 accept write-back forms of addressing. Change all callers.
2728 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
2729 (FPU_VFP_EXT_V2): Define.
2730 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
2731 Define in terms of above.
2732 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
2733 (vfp_reg): New struct.
2734 (vfp_regs): New array of registers.
2735 (insns): Add VFP instructions.
2736 (sn_table): New array of VFP single-precision register names.
2737 (dn_table): New array of VFP double-precision register names.
2738 (all_reg_maps): Add the new register tables.
2739 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
2740 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
2741 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
2742 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
2743 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
2744 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
2745 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
2746 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
2747 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
2748 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
2749 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
2750 (do_vfp_sp_dp_cvt): New functions.
2751 (md_begin): Set soft-float flag for appropriate VFP work.
2752 (md_atof): Handle VFP-format doubles.
2753 (md_parse_option): Handle VFP command-line options.
2754 (md_show_usage): Display VFP command-line options.
2755
2756 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
2757
2758 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
2759 various command line options.
2760
2761 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2762
2763 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
2764 vtinherit relocs.
2765 (xstormy16_md_apply_fix3): Do not return a value.
2766
2767 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2768
2769 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
2770 the -EL/-EB option that matches the target's endianness.
2771 (md_parse_option): Likewise.
2772
2773 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2774
2775 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
2776 is not dependent on ARM_BI_ENDIAN.
2777
2778 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2779
2780 * tc-arm.c (all error messages): Normalize capitalization of messages.
2781
2782 * tc-arm.h (md_operand): Delete define.
2783 * tc-arm.c (in_my_get_expression): New static variable.
2784 (my_get_expression): Set and clear it.
2785 (md_operand): New function. If called from my_get_expression
2786 put the error in inst.error.
2787 (output_inst): Now takes argument of instruction being assembled.
2788 Print it out with any error message.
2789 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2790 with '=' syntax.
2791 (end_of_line): Don't update inst.error if it is already set.
2792
2793 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2794
2795 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
2796 op that can be translated into a mvn instruction.
2797
2798 2002-01-11 Steve Ellcey <sje@cup.hp.com>
2799
2800 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2801 setting default md.flags.
2802 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
2803 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
2804 * gas/config/tc-ia64.c (setup_unwind_header): Add support
2805 for 32 bit unwind info blocks.
2806 (generate_unwind_image): Add support for different types
2807 of unwind images (32 bits and/or big-endian).
2808 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2809 (ia64_target_format): Add support for hpux target formats.
2810 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2811 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2812 SHT_FINI_ARRAY elf section types.
2813
2814 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
2815
2816 * tc-arm.c (struct reg_entry): Move before prototypes.
2817 (int_register, cp_register, fp_register): Delete.
2818 (reg_table): Delete. Replaced with ...
2819 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2820 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2821 (mav_dspsc_table): ... one table per register set.
2822 (arm_reg_hsh): Delete.
2823 (struct reg_map): New structure.
2824 (all_reg_maps): New array.
2825 (enum arm_reg_type): New enums.
2826 (build_reg_hsh): New function.
2827 (insert_reg_alias): Use hash table passed by caller. Adjust all
2828 callers.
2829 (create_register_alias): New function, split out from ...
2830 (md_assemble): ... here.
2831 (md_begin): Build new register hash tables.
2832 (arm_reg_parse): New argument for the hash table to search. Adjust all
2833 callers.
2834 (arm_reg_parse_any): New function.
2835 (co_proc_number): Look up the processor number in the processor hash
2836 table.
2837 (cirrus_regtype): Delete.
2838 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2839 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2840 (ARM_EXT_MAVERICKsc_register): Delete.
2841 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2842 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2843 functions.
2844 (do_c_triple_4, do_c_triple_5): Delete.
2845 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2846 (do_c_quad_6): Delete.
2847 (do_c_quad_6[ab]): New functions.
2848 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2849 arguments to use new register parsing methods.
2850 (cirrus_reg_required_here): Likewise.
2851 (insns): Reclassify cirrus maverick worker functions.
2852 (cirrus_valid_reg): Delete.
2853
2854 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2855
2856 * configure.in (sh*le): Set cpu_type=sh and endian=little.
2857 (sh*-*-netbsdelf*): New target.
2858 * configure: Regenerate.
2859 * tc-sh.h: Update copyright years.
2860 (TARGET_FORMAT): Add version for TE_NetBSD.
2861
2862 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2863
2864 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2865 negative.
2866
2867 2002-01-06 Alan Modra <amodra@bigpond.net.au>
2868
2869 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2870 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2871
2872 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
2873
2874 * tc-mips.c (mips_cprestore_valid): New flag.
2875 (mips_frame_reg_valid): New flag.
2876 (macro) [M_JAL_2]: Check both flags.
2877 [M_JAL_A]: Likewise.
2878 (s_cprestore): Set mips_cprestore_valid.
2879 (tc_get_register): If setting mips_frame_reg, set
2880 mips_frame_reg_valid and clear mips_cprestore_valid.
2881 (s_mips_ent): Clear both flags.
2882 (s_mips_end): Clear both flags.
2883
2884 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2885
2886 * write.c (write_object_file): Make use of bfd_section_list_remove.
2887 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
2888 * config/tc-mmix.c (mmix_frob_file): Likewise.
2889
2890 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2891
2892 * configure.in (i386-*-netbsdelf*): Collapse target into...
2893 (i386-*-netbsd*): ...this. Add support for x86-64.
2894 * configure: Regenerated.
2895
2896 2002-01-03 matthew green <mrg@redhat.com>
2897
2898 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2899
2900 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2901
2902 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2903 NULL frag link.
2904
2905 For older changes see ChangeLog-0001
2906 \f
2907 Local Variables:
2908 mode: change-log
2909 left-margin: 8
2910 fill-column: 74
2911 version-control: never
2912 End: