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