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