* config/tc-s390.c (md_parse_option): Formatting.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2
3 * config/tc-s390.c (md_parse_option): Formatting.
4
5 * config/tc-i386.c: Formatting fixes, add missing space in error
6 message.
7
8 2002-04-24 Christian Groessler <chris@groessler.org>
9
10 * config/tc-z8k.c (build_bytes): Add support for new cases:
11 CLASS_IGNORE and ARG_NIM4.
12 (md_assemble): Prevent destruction of input_line_pointer if
13 get_operands returns failure.
14
15 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
16
17 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
18 instructions to be generated by macros.
19
20 2002-04-24 Andreas Schwab <schwab@suse.de>
21
22 * config/tc-i386.c (output_jump, output_disp)
23 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
24 more.
25 (md_apply_fix3): Remember addend value for rela relocations.
26 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
27
28 2002-04-22 Chris Demetriou <cgd@broadcom.com>
29
30 * config/tc-mips.c (macro_build): Add close-parenthesis missing
31 from previous change.
32
33 2002-04-22 Eric Christopher <echristo@redhat.com>
34
35 * config/tc-mips.c (macro_build): Add warning if macro instructions
36 are expanded into a branch delay slot.
37
38 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
39
40 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
41 numbers, gdb relies on them to detect the start of the prologue.
42
43 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
44
45 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
46 symbols in merge sections.
47
48 2002-04-16 Alan Modra <amodra@bigpond.net.au>
49
50 * as.c (main): Don't reference _bfd_chunksize.
51
52 2002-04-15 Tom Rix <trix@redhat.com>
53
54 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
55 symbols in merge sections.
56
57 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
58
59 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
60 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
61 argument for the precision.
62 (gen_to_words): Update accordingly.
63
64 2002-04-10 Alan Modra <amodra@bigpond.net.au>
65
66 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
67 BFD_VERSION_STRING unavailable.
68 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
69
70 Tue Apr 9 16:45:48 2002 J"orn Rennecke <joern.rennecke@superh.com>
71
72 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
73 symbol_used_in_reloc_p is true.
74
75 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
76 endian hosts.
77
78 2002-04-04 Alan Modra <amodra@bigpond.net.au>
79
80 * dep-in.sed: Cope with absolute paths.
81 * Makefile.am (dep.sed): Subst TOPDIR.
82 Run "make dep-am".
83 * Makefile.in: Regenerate.
84
85 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
86
87 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
88 (mips_ip): Remove unused variable.
89 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
90 unsigned char with bfd_byte.
91 (s_file): Remove unused variable.
92 (s_mips_ent): Likewise.
93
94 2002-04-03 Tom Rix <trix@redhat.com>
95
96 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
97 (build_insn): Same.
98 (find_opcode): Fix warning in as_warn.
99 * config/tc-d10v.h: Update Copyright.
100
101 2002-04-03 Alan Matsuoka <alanm@redhat.com>
102 Tom Rix <trix@redhat.com>
103
104 From Jeff Knaggs <jknaggs@redhat.com>
105 * config/tc-d10v.c (check_resource_conflict): New function to
106 check for resource conflicts.
107
108 From Jason Eckhardt <jle@redhat.com>
109 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
110 imm3 fields.
111 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
112 reserved control registers is used.
113 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
114 imm3 fields.
115
116 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
117 * tc-d10v.c (parallel_ok): Prevent packing only if the first
118 instruction cannot be packed.
119
120 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
121 * gas/config/tc-d10v.c (check_resource_conflict): Only check
122 write-write conflicts.
123 (md_assemble): Reformat introductory comment.
124 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
125 arguments.
126
127 2002-04-03 Alan Modra <amodra@bigpond.net.au>
128
129 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
130 O_logical_not>): Derive final_seg from add_symbol.
131 <O_multiply..O_logical_or>: More final_seg twiddles.
132
133 2002-04-01 Jessica Han <jessica@cup.hp.com>
134
135 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
136 in 32-bit mode.
137
138 2002-03-27 Andreas Schwab <schwab@suse.de>
139
140 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
141 field for pc-relative fixups.
142 (output_disp): Likewise.
143 (md_estimate_size_before_relax): Likewise.
144 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
145 pc-relative fixups in 64bit mode.
146
147 2002-03-22 Alan Modra <amodra@bigpond.net.au>
148
149 * config/te-aix5.h: Typo fix.
150
151 2002-03-21 Alan Modra <amodra@bigpond.net.au>
152
153 * Makefile.am: Run "make dep-am".
154 * Makefile.in: Regenerate.
155 * doc/Makefile.in: Regenerate.
156
157 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
158
159 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
160 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
161
162 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
163
164 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
165 the EXTENDED bit here; report the estimate according to the
166 current size.
167
168 2002-03-18 Tom Rix <trix@redhat.com>
169
170 * configure.in: Add AIX 5 support.
171 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
172 * config/te-aix5.h: New file. AIX 5 support.
173 * configure: Regenerate.
174
175 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
176
177 * po/fr.po: Updated version.
178
179 2002-03-16 Andreas Jaeger <aj@suse.de>
180
181 * doc/c-mips.texi (Machine Dependencies): Add new node.
182
183 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
184
185 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
186 (mips_opts): Initialize "ase_mips3d" member.
187 (file_ase_mips3d): New variable.
188 (CPU_HAS_MIPS3D): New macro.
189 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
190 based on command line options and configuration defaults.
191 (macro_build, mips_ip): Accept MIPS-3D instructions if
192 mips_opts.ase_mips3d is set.
193 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
194 Add support for "-mips3d" and "-no-mips3d" options.
195 (OPTION_ELF_BASE): Move to accomodate new options.
196 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
197 (mips_elf_final_processing): Add a comment indicating that a
198 MIPS-3D ASE ELF header flag should be set, when one exists.
199 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
200 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
201 nomips3d" directives.
202
203 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
204
205 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
206 a weak symbol in same section to be within reach.
207
208 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
209
210 * po/fr.po: Updated version.
211
212 2002-03-12 Andreas Schwab <schwab@suse.de>
213
214 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
215 body record so that an error is given for misplaced .save
216 pseudo-ops.
217
218 2002-03-09 Alan Modra <amodra@bigpond.net.au>
219
220 * config/tc-i386.h (REX_OPCODE): Define.
221 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
222 (rex_byte): typedef to int.
223 * config/tc-i386.c: Group prototypes and vars together.
224 Formatting fixes. Remove occurrences of "register" keyword.
225 (true): Delete.
226 (false): Delete.
227 (mode_from_disp_size): Add INLINE keyword to prototype.
228 (fits_in_signed_byte): Likewise.
229 (fits_in_unsigned_byte): Likewise.
230 (fits_in_unsigned_word): Likewise.
231 (fits_in_signed_word): Likewise.
232 (fits_in_unsigned_long): Likewise.
233 (fits_in_signed_long): Likewise.
234 (type_names): Constify.
235 (intel_float_operand): Constify param.
236 (add_prefix): Use REX_OPCODE.
237 (md_assemble): Likewise. Modify for changed rex_byte.
238 (parse_insn): Split out of md_assemble.
239 (parse_operands): Likewise.
240 (swap_operands): Likewise.
241 (optimize_imm): Likewise.
242 (optimize_disp): Likewise.
243 (match_template): Likewise.
244 (check_string): Likewise.
245 (process_suffix): Likewise.
246 (check_byte_reg): Likewise.
247 (check_long_reg): Likewise.
248 (check_qword_reg): Likewise.
249 (check_word_reg): Likewise.
250 (finalize_imm): Likewise.
251 (process_operands): Likewise.
252 (build_modrm_byte): Likewise.
253 (output_insn): Likewise.
254 (output_branch): Likewise.
255 (output_jump): Likewise.
256 (output_interseg_jump): Likewise.
257 (output_disp): Likewise.
258 (output_imm): Likewise.
259
260 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
261
262 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
263
264 2002-03-06 Alan Modra <amodra@bigpond.net.au>
265
266 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
267 relocs except when BFD64.
268
269 * write.c (number_to_chars_bigendian): Don't abort when N is
270 larger than sizeof (VAL).
271 (number_to_chars_littleendian): Likewise.
272
273 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
274
275 * config/tc-hppa.c (md_apply_fix3): Add cast.
276 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
277 e_rrsel.
278
279 2002-03-05 Paul Koning <pkoning@equallogic.com>
280
281 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
282 (parse_ac5): New function for parsing float regs in float operand.
283 (parse_expression): Remove attempt to make literals be octal.
284 (parse_op_no_deferred): Support float literals.
285 (parse_op): Reject attempts to refer to float regs.
286 (parse_fop): New function, like parse_op but for float operand.
287 (md_assemble): Add cases to parse float operands. Also fix
288 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
289
290 2002-03-04 H.J. Lu <hjl@gnu.org>
291
292 * config/obj-elf.c (special_section): Add .init_array,
293 .fini_array and .preinit_array.
294
295 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
296 .init_array and .fini_array.
297
298 2002-03-01 Jakub Jelinek <jakub@redhat.com>
299
300 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
301 visibility.
302 (obj_frob_symbol): Copy visibility.
303
304 2002-02-28 Jakub Jelinek <jakub@redhat.com>
305
306 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
307 s_text.
308 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
309
310 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
311
312 * po/es.po: Updated.
313
314 2002-02-26 Chris Demetriou <cgd@broadcom.com>
315
316 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
317 only, undo the changes made on 2001-06-08, with the
318 effect being that common or extern symbols are
319 adjusted for embedded-PIC, but weak symbols are not.
320 (md_estimate_size_before_relax: Likewise, with the effect
321 that extern symbols are treated the same as weak symbols
322 only if not embedded-PIC.
323 (mips_fix_adjustable) Likewise, with the effect that
324 weak or extern symbols are not adjusted for embedded-PIC.
325 (md_apply_fix3): Tweak so that the case where value is zero
326 is handled more correctly for embedded-PIC code.
327
328 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
329
330 * doc/as.texinfo (Overview): Add missing @ifset IA64
331
332 * configure.in (LINGUAS): Add es.po.
333 * configure: Regenerate.
334 * po/es.po: New file.
335
336 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
337
338 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
339 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
340 and NO_PIC cases. Code cleanup.
341 (macro2): Fix handling of 64bit register loads.
342
343 2002-02-25 David Mosberger <davidm@hpl.hp.com>
344
345 * doc/as.texinfo: Add entry for IA64.
346 * doc/c-ia64.texi: New file.
347
348 2002-02-25 Alan Modra <amodra@bigpond.net.au>
349
350 * config/tc-hppa.c: Update copyright date.
351
352 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
353 Remove references to chip manufacturers.
354 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
355 Correct comments.
356 (md_show_usage): Remove references to chip manufacturers. Mention
357 -mpower4.
358 (md_begin): Test power4 opcode flag bits.
359
360 2002-02-22 David Mosberger <davidm@hpl.hp.com>
361
362 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
363 count exceeds prologue count.
364 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
365 (unwind.label_prologue_count): New member.
366
367 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
368
369 (get_saved_prologue_count): New function.
370 (save_prologue_count): New function.
371 (free_saved_prologue_count): New function.
372 (dot_label_state): Record state label by calling save_prologue_count().
373 (dot_copy_state): Restore prologue count by calling
374 get_saved_prologue_count().
375 (generate_unwind_image): Free up list of saved prologue
376 counts by calling free_saved_prologue_counts().
377
378 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
379
380 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
381 function declarations.
382
383 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
384
385 * NEWS: Note that GASP is now deprecated.
386 * Makefile.am: Do not build gasp-new by default.
387 * Makefile.in: Regenerate.
388 * doc/Makefile.am: Do not install gasp.info.
389 * doc/Makefile.in: Regenerate.
390 * gas/gasp.texi: Note that gasp is now deprecated.
391
392 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
393
394 * NEWS: Mark 2.12 branch.
395
396 2002-02-19 Tom Tromey <tromey@redhat.com>
397
398 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
399
400 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
401
402 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
403 option input.
404
405 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
406
407 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
408 Make bit size independent of architecture switch.
409 (md_begin): Add warning for -m64 with -Aesa.
410 (s390_md_end): Use renamed architecture defines.
411
412 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
413
414 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
415
416 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
417
418 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
419 instead of CRIS.
420
421 2002-02-15 Chris Demetriou <cgd@broadcom.com>
422
423 * config/tc-mips.c (md_estimate_size_before_relax): Really
424 make sure we treat weak like extern only for ELF. (Fixes
425 patch from 2001-07-25.)
426
427 2002-02-15 Ben Elliston <bje@redhat.com>
428
429 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
430 works as expected.
431
432 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
433
434 * NEWS: Mention support for MMIX.
435
436 2002-02-13 Chris Demetriou <cgd@broadcom.com>
437
438 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
439 a sequence of indpendent 'if' statements for easier debugging
440 and future modification.
441
442 2002-02-13 Matt Fredette <fredette@netbsd.org>
443
444 * config/tc-m68k.c (md_show_usage): No longer display a
445 hard-coded "68020" for the default CPU, instead display the
446 canonical name of the true, configured default CPU.
447 (m68k_elf_final_processing): Mark objects for sub-68020
448 CPUs with the new EF_M68000 flag.
449
450 2002-02-13 Andreas Schwab <schwab@suse.de>
451
452 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
453 pc-relative relocations to merge sections in 64-bit mode.
454
455 2002-02-13 Ben Elliston <bje@redhat.com>
456
457 * NEWS: Document floating point number handling in gasp.
458 * gasp.c: Include <assert.h> and "xregex.h".
459 (is_flonum): New function.
460 (chew_flownum): Likewise.
461 (change_base): Consume flonums from the input, where possible.
462 * doc/gasp.texi (Constants): Document floating point numbers.
463
464 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
465
466 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
467 that implicitly use LR and RR selectors.
468
469 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
470
471 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
472 and `epsw' as available on AM33 and above only.
473 (other_register_name): Add logic to handle machine type encoded in
474 reg_number.
475
476 2002-02-11 Tom Rix <trix@redhat.com>
477
478 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
479 xcoff64.
480
481 Mon Feb 11 11:23:38 2002 Alexandre Oliva <aoliva@redhat.com>
482
483 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
484 Use all over.
485
486 Mon Feb 11 12:59:29 CET 2002 Jan Hubicka <jh@suse.cz>
487
488 * i386.c (md_assemble): Support 32bit address prefix.
489 (i386_displacement): Likewise.
490 (i386_index_check): Accept 32bit addressing in 64bit mode.
491
492 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
493
494 * config/tc-sh.c (dot): Removed unused function.
495
496 2002-02-11 Alan Modra <amodra@bigpond.net.au>
497
498 * Makefile.am: "make dep-am".
499 * Makefile.in: Regenerate.
500 * aclocal.m4: Regenerate.
501 * config.in: Regenerate.
502 * configure: Regenerate.
503 * doc/Makefile.in: Regenerate.
504
505 2002-02-10 Richard Henderson <rth@redhat.com>
506
507 * doc/c-alpha.texi: New file.
508 * doc/Makefile.am (CPU_DOCS): Add it.
509 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
510
511 2002-02-09 Richard Henderson <rth@redhat.com>
512
513 * config/tc-alpha.c (O_samegp): New.
514 (USER_RELOC_P): Include it.
515 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
516 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
517 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
518 (alpha_validate_fix): New.
519 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
520
521 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
522
523 * doc/c-cris.texi: New.
524 * doc/all.texi: @set CRIS.
525 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
526 Include c-cris.texi.
527 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
528 * doc/Makefile.in: Regenerate.
529
530 2002-02-08 Chris Demetriou <cgd@broadcom.com>
531
532 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
533 determine if a number is a sign-extended 32-bit number.
534 (load_register): Use IS_SEXT_32BIT_NUM.
535 (macro): Check if load/store macro handling is using a
536 constant 32-bit address on 64-bit address systems, and if
537 so optimize the generation of that address.
538
539 2002-02-08 Richard Henderson <rth@redhat.com>
540
541 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
542 we've eliminated all foreign relocation types yet.
543 (alpha_fix_adjustable): Likewise.
544
545 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
546
547 Contribute sh64-elf.
548 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
549 Stephen Clarke <Stephen.Clarke@st.com>
550 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
551 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
552 * config/tc-sh.c (md_relax_table): Added default sizes for
553 non-PC-relative UNDEF_MOVI, and relaxation sequences for
554 MOVI_16, MOVI_32 and MOVI_48.
555 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
556 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
557 and MOVI_16.
558 (shmedia_md_estimate_size_before_relax): Remove redundant
559 blocks. Set fragP->fr_var even if relaxation type unchanged.
560 Retain UNDEF_MOVI until expression decays to number.
561 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
562 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
563 relocation types. Take fixP->fx_addnumber into account too.
564 (shmedia_md_apply_fix): Likewise.
565 (shmedia_md_convert_frag): Likewise.
566 (shmedia_build_Mytes): Likewise.
567 (sh64_consume_datalabel): Complain about nested datalabel.
568 Support PIC relocs. Call sh_parse_name.
569 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
570 in tc-sh.h to SHmedia reloc types.
571 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
572 MOVI_GOTPC): New relaxation constants.
573 (md_relax_table): Introduce relaxation directives for PIC-related
574 constants.
575 (sh_PIC_related_p): Handle datalabel.
576 (sh_check_fixup): Choose SH5 PIC relocations.
577 (sh_cons_fix_new): Added BDF_RELOC_64.
578 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
579 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
580 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
581 current ISA is SHmedia, get 7 bytes.
582 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
583 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
584 void function.
585 * config/tc-sh64.c (shmedia_apply_fix): Rename to
586 shmedia_apply_fix3 and make void.
587 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
588 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
589 as_bad.
590 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
591 * config/tc-sh64.h (md_parse_name): Take &c as argument.
592 2001-03-14 DJ Delorie <dj@redhat.com>
593 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
594 * doc/Makefile.in(CPU_DOCS): Ditto.
595 * doc/c-sh64.texi: New file.
596 * doc/as.texinfo: Add SH64 support.
597 2001-03-13 DJ Delorie <dj@redhat.com>
598 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
599 A_REUSE_PREV so that its purpose is more obvious.
600 (shmedia_build_Mytes): Ditto.
601 2001-03-07 DJ Delorie <dj@redhat.com>
602 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
603 before processing.
604 (sh64_vtable_inherit): Ditto.
605 (strip_datalabels): New, strip "datalabel" from given line.
606 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
607 pseudos.
608 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
609 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
610 call ...
611 (shmedia_build_Mytes): ... to here.
612 2001-03-06 DJ Delorie <dj@redhat.com>
613 * config/tc-sh.c: Remove sh64-specific uaquad now that there
614 is a generic one.
615 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
616 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
617 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
618 address by one in call to dwarf2_emit_insn.
619 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
620 Implement ".abi" pseudo and correct .cranges descriptors. Correct
621 alignment handling broken by imported changes.
622 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
623 (sh64_handle_align): Declare.
624 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
625 (sh64_max_mem_for_rs_align_code): Declare.
626 (enum sh64_isa_values): Moved here from tc-sh64.c.
627 (md_do_align): Define.
628 (sh64_do_align): Declare.
629 (struct sh64_tc_frag_data): New.
630 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
631 changed.
632 (TC_FRAG_INIT): Change to set new datatype.
633 (struct sh64_segment_info_type): Rename member
634 last_flushed_location to last_contents_mark. All users changed.
635 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
636 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
637 * config/tc-sh.c (md_pseudo_table): Add ".abi".
638 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
639 of unsetting seen_insn.
640 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
641 call sh64_update_contents_mark.
642 (sh_handle_align): Remove HAVE_SH64-conditioned code.
643 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
644 enum sh64_isa_values.
645 (sh64_set_contents_type): Drop segT parameter. All callers changed.
646 (emitting_crange): Boolean guard moved to file scope from function
647 scope in sh64_set_contents_type.
648 (s_sh64_abi): New.
649 (sh64_update_contents_mark): New; most split out from
650 sh64_flush_pending_output.
651 (shmedia_md_end): Call sh64_update_contents_mark. Set
652 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
653 (sh64_do_align): New function.
654 (sh64_max_mem_for_rs_align_code): New function.
655 (sh64_handle_align): Rename from shmedia_do_align. Make
656 non-static. Add head comment. Emit zero bytes for n bytes modulo
657 four. Change return-type to void.
658 (shmedia_elf_new_section): Remove.
659 (shmedia_md_assemble): Call sh64_update_contents_mark.
660 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
661 new frag. Call sh64_update_contents_mark after making the new
662 frag.
663 (sh64_flush_pending_output): Just call sh64_update_contents_mark
664 and sh_flush_pending_output.
665 (sh64_flag_output): Also call md_flush_pending_output, but add
666 condition on not emitting_crange.
667 (sh64_tc_cons_fix_new): Remove.
668 2001-01-12 Nick Clifton <nickc@redhat.com>
669 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
670 alignment handling scheme imported from sourceware.
671 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
672 * config/tc-sh64.h (TARGET_FORMAT): Define.
673 (sh64_target_format): Prototype.
674 * config/tc-sh64.c (sh64_target_mach): New function.
675 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
676 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
677 zero_address_frag instead of copying the frag of the symbol.
678 (shmedia_frob_file_before_adjust): Ditto.
679 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
680 to valueT to remove signedness.
681 (shmedia_md_convert_frag): Add parameter final. Rename parameter
682 headers to output_bfd. Do not evaluate symbols if final is false;
683 do emit fixups.
684 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
685 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
686 to the current frag, call shmedia_md_convert_frag to emit fixups
687 and make frag_wane neutralize the frag. Update comments.
688 * config/tc-sh.c (md_convert_frag): Change caller of
689 shmedia_md_convert_frag.
690 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
691 * config/tc-sh64.h: Tweak comments and correct formatting.
692 * config/tc-sh64.c: Ditto.
693 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
694 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
695 for the no-relocation case.
696 (shmedia_check_limits): Fix range check being off-by-one for PTA.
697 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
698 wrappers.
699 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
700 comment.
701 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
702 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
703 expansion.
704 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
705 Correct comment.
706 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
707 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
708 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
709 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
710 al>: Set lowest bit of field to relocate to 1 and rest to empty,
711 if reloc is emitted.
712 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
713 New options plus bugfixes.
714 * config/tc-sh.c (md_longopts): New options "-no-expand" and
715 "-expand-pt32".
716 (md_parse_option): Handle new options.
717 (md_show_usage): Add blurb for new options.
718 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
719 (sh64_expand, sh64_pt32): New variables.
720 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
721 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
722 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
723 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
724 <resolved previously-pc-relative relocs>: Handle
725 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
726 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
727 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
728 points to SHcompact code.
729 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
730 SH64PCREL16)>: Check that ISA of what operand points at and
731 PTA/PTB matches, or emit error.
732 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
733 SHMEDIA_BFD_RELOC_PT.
734 (shmedia_immediate_op): If pcrel, emit fixup also for constant
735 operand.
736 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
737 condition for MOVI expansion.
738 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
739 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
740 sh64_expand.
741 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
742 fixup.
743 (sh64_target_format): Error-check setting of sh64_pt32 and
744 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
745 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
746 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
747 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
748 * config/tc-sh64.c: Improve comments.
749 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
750 not say the linker will check correctness of PTA/PTB expansion.
751 (shmedia_md_end): Make non-static.
752 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
753 prototype.
754 * config/tc-sh.c (sh_finalize): Remove.
755 * config/tc-sh.h (md_end): Do not define.
756 Remove prototype for sh_finalize.
757 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
758 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
759 sh64_section_data container when storing section type in tdata
760 field in elf_section_data.
761 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
762 EF_SH5.
763 * Makefile.am: Update dependencies.
764 * Makefile.in: Regenerate.
765 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
766 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
767 dwarf2_emit_insn call with test on debug_type.
768 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
769 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
770 CRT_SH5_ISA32 sticky for 64-bit.
771 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
772 Generate .crange sections when switching ISA mode or emitting
773 constants in same section as code.
774 * config/tc-sh64.c: Reformat structure definitions.
775 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
776 variables.
777 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
778 to emit a .cranges descriptor when contents type changes. Only
779 emit error if changing contents type and -no-mix is in effect.
780 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
781 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
782 (shmedia_md_end): Set sh64_end_of_assembly. Pass
783 sh64_flush_last_crange over sections.
784 When checking main symbol of datalabel symbol, check for
785 STO_SH5_ISA32, not ISA type of section in definition.
786 (shmedia_frob_file_before_adjust): Check main symbol for
787 STO_SH5_ISA32; don't check ISA type of section in definition.
788 (shmedia_frob_section_type): Adjust for .cranges; set section flag
789 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
790 .cranges entries have been output.
791 (shmedia_elf_new_section): Just call md_flush_pending_output.
792 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
793 fix. Do not set tc_segment_info_data.in_code for section. Call
794 sh64_set_contents_type for SHmedia code.
795 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
796 false. Call md_flush_pending_output.
797 (sh64_target_format): Check that -no-mix and
798 -shcompact-const-crange are used in sane combination with other
799 options.
800 (shmedia_md_pcrel_from_section): Check type of fix for how to
801 adjust pc-relative.
802 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
803 not ISA type of section in definition.
804 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
805 hold contents-type state.
806 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
807 (sh64_flush_pending_output): Declare.
808 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
809 (sh64_tc_cons_fix_new): Declare.
810 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
811 call sh64_flag_output.
812 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
813 call sh64_set_contents_type to mark SHcompact code and set
814 seen_insn.
815 (md_longopts): New options "-no-mix" and
816 "-shcompact-const-crange".
817 (md_parse_option): Handle new options.
818 (md_show_usage): Add blurb for new options.
819 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
820 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
821 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
822 (sh64_last_insn_frag): New.
823 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
824 to get frag for insn opcode for generating fixups; do not assume it
825 is the same frag.
826 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
827 for new insn.
828 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
829 section.
830 (TC_FRAG_TYPE): Define as fragS *.
831 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
832 (sh64_last_insn_frag): Declare.
833 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
834 not == NULL before dereferencing.
835 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
836 Get rid of BFD section flag and EF_SH64_ABI64.
837 * config/tc-sh64.c (shmedia_frob_section_type): Use
838 elf_section_data (sec)->tdata, not a specific BFD section flag, to
839 communicate the section as containing SHmedia code. Describe why.
840 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
841 EF_SH64 regardless of ABI.
842 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
843 in error message. Handle resolved expressions for
844 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
845 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
846 (shmedia_check_limits): Handle BFD_RELOC_64.
847 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
848 a STO_SH5_ISA32 symbol, only the BFD value.
849 2000-12-11 Ben Elliston <bje@redhat.com>
850 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
851 dwarf2_generate_asm_lineno.
852 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
853 Handle PC-relative MOVI expansions with assembler relaxation.
854 Generate PC-relative relocs from 16-bit PC-relative expressions.
855 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
856 (shmedia_md_pcrel_from_section): ...here.
857 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
858 turned completely resolved. Adjust relocation type for 16-bit
859 immediate operands that has turned PC-relative. Adjust back for
860 MD_PCREL_FROM_SECTION being applied twice.
861 (shmedia_md_convert_frag): Always emit reloc for expression with
862 global or weak symbol. Handle relaxation result for PC-relative
863 expressions.
864 (shmedia_md_estimate_size_before_relax): An expression with a weak
865 or global symbol can not be relaxed. Break out tests for
866 relaxable symbol into variable sym_relaxable.
867 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
868 UNDEF_MOVI)>: Break out any PC-relative expression and change
869 relaxation type.
870 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
871 opjp.
872 <case A_IMMS16>: Fix typo for initial minor relaxation type of
873 MOVI expansion. If X_op_symbol of the immediate expression is
874 set, make an expression symbol for the argument to frag_var.
875 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
876 relaxations.
877 (END): Adjust for new relaxations.
878 (md_relax_table): Add entries for new relaxations.
879 2000-12-07 Ben Elliston <bje@redhat.com>
880 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
881 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
882 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
883 SHORI operand offsets in PT/PTA/PTB expansions.
884 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
885 Implement DataLabel semantics.
886 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
887 shmedia_frob_file_before_adjust.
888 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
889 (DATALABEL_SUFFIX): Define.
890 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
891 symbol list to update "datalabel" symbols to their main symbol
892 counterparts.
893 (shmedia_frob_file_before_adjust): New.
894 (sh64_adjust_symtab): For remaining datalabel symbols, set to
895 undefined and set STT_DATALABEL.
896 (sh64_frob_label): Initialize TC symbol field.
897 (sh64_consume_datalabel): Actually implement semantics. New
898 parameter operandf, call it instead of expression.
899 (sh64_exclude_symbol): New.
900 * config/tc-sh64.h (md_parse_name): Pass on the function operand
901 to sh64_consume_datalabel.
902 (tc_symbol_new_hook): Define to tc_frob_symbol.
903 (TC_SYMFIELD_TYPE): Define to symbolS *.
904 (tc_frob_symbol): Define to call sh64_exclude_symbol.
905 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
906 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
907 case.
908 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
909 generating dwarf2 debug information.
910 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
911 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
912 elf64-sh64 for the 64-bit ABI.
913 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
914 option.
915 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
916 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
917 case-insensitivity.
918 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
919 * config/tc-sh64.c: Tweak comments, formatting and error messages.
920 (enum sh64_abi_values): New type.
921 (enum sh64_isa_values): New type.
922 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
923 (seen_shcompact_mode, seen_shmedia_mode): Delete.
924 (sh64_abi): Replace shmedia_64.
925 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
926 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
927 (s_sh64_mode): Check validity for this target.
928 (sh64_target_format): Initialize defaults for ISA and ABI.
929 Fallback to old object format if no SH64 ISA or ABI has been
930 specified.
931 * config/tc-sh.c (md_parse_option): Check combinations for errors.
932 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
933 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
934 * config/tc-sh64.h: Fix typo in comment.
935 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
936 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
937 <PT fixups for absolute values>: Size will be longest, not
938 shortest.
939 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
940 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
941 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
942 and l1 to hold lowercase of two first characters. Change all
943 remaining TO_LOWER to tolower.
944 * config/tc-sh64.c (TO_LOWER): Delete.
945 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
946 (md_parse_name): Define.
947 (sh64_consume_datalabel): Declare.
948 (DOLLAR_DOT): Define.
949 * config/tc-sh64.c (shmedia_parse_exp): New.
950 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
951 (shmedia_parse_reg): Remove const from src
952 parameter.
953 (shmedia_get_operands): Ditto for args parameter and ptr variable.
954 (shmedia_md_assemble): Ditto for op_end variable.
955 (shmedia_get_operand): Ditto for ptr parameter and src variable.
956 Use shmedia_parse_exp, not parse_exp.
957 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
958 parameter. All callers changed.
959 (shmedia_get_operand): Add shmedia_arg_type parameter. All
960 callers changed.
961 (shmedia_parse_reg): Put first two character in local variables.
962 Use tolower, not TO_LOWER. If no register is found and argtype
963 indicates a control register, scan shmedia_creg_table
964 case-insensitive.
965 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
966 * Makefile.am (CPU_TYPES): Add sh64.
967 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
968 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
969 Regenerate dependencies.
970 * Makefile.in: Regenerate.
971 * configure.in: Add support for sh64-*-elf*.
972 * configure: Regenerate.
973 * config/tc-sh64.h: New.
974 * config/tc-sh64.c: New.
975 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
976 .mode, .isa and .uaquad.
977 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
978 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
979 [HAVE_SH64] (END): Define as 10.
980 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
981 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
982 MOVI_64): Define.
983 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
984 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
985 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
986 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
987 Define.
988 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
989 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
990 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
991 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
992 SHmedia instructions. Handle state-change after switching to
993 SHcompact.
994 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
995 (md_parse_option) [HAVE_SH64]: Parse new options.
996 (md_show_usage) [HAVE_SH64]: Show usage of new options.
997 (md_convert_frag) [HAVE_SH64] <default>: Call
998 shmedia_md_convert_frag instead of abort.
999 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
1000 BFD_RELOC_SH_SHMEDIA_CODE.
1001 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
1002 SHcompact or SHmedia code.
1003 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
1004 shmedia_md_apply_fix instead of abort.
1005 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
1006 result from calling shmedia_md_estimate_size_before_relax instead
1007 of calling abort.
1008 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
1009 do the work.
1010 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
1011 shmedia_init_reloc and do nothing more if it returns non-zero.
1012 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
1013 * po/POTFILES.in: Regenerate.
1014 * po/gas.pot: Regenerate.
1015
1016 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
1017
1018 * config/tc-sh.c (parse_at): Install the correct version of
1019 2002-02-04's patch.
1020
1021 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
1022 assume fixP->fx_subsy is non-NULL.
1023
1024 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1025
1026 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
1027 A_DISP_PC_ABS, and adjust it by -4.
1028 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
1029 expected.
1030 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
1031 the operand type is not A_DISP_PC_ABS.
1032
1033 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1034
1035 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
1036 common and weak symbols. Handle common and weak symbols as
1037 undefined symbols with regards to GREG handling and merging.
1038 (mmix_frob_file): Ditto.
1039
1040 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1041
1042 * configure.in (hppa-*-netbsd*): New target.
1043 * configure: Regenerate.
1044 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
1045
1046 2002-02-02 Alan Modra <amodra@bigpond.net.au>
1047
1048 * config/tc-v850.c: Add missing prototypes amd use old-style
1049 function definitions.
1050 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
1051 (sdata_section tdata_section, zdata_section, sbss_section,
1052 tbss_section, zbss_section, rosdata_section, rozdata_section,
1053 scommon_section, tcommon_section, zcommon_section,
1054 call_table_data_section, call_table_text_section): Delete.
1055 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1056 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
1057 v850_call_table_data, v850_call_table_text): Delete.
1058 (struct v850_seg_entry): New.
1059 (v850_seg_table): New.
1060 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
1061 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
1062 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
1063 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
1064 (do_v850_seg): New.
1065 (v850_seg): New.
1066 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
1067 recording of alignment.
1068 (md_pseudo_table): Use v850_seg.
1069 (md_begin): Don't init .call_table_data and .call_table_text here.
1070 Set v850_seg_table bss entry.
1071
1072 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1073
1074 Support on-demand global register allocation by passing on
1075 base-plus-offset relocs to the linker.
1076 * config/tc-mmix.c: Tweak and fix typos in comments.
1077 (allocate_undefined_gregs_in_linker): New variable.
1078 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
1079 (md_longopts): Add --linker-allocated-gregs.
1080 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
1081 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
1082 (md_show_usage): Update text for -x. Add text for
1083 --linker-allocated-gregs.
1084 (tc_gen_reloc): Derive default value for addend from val and
1085 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
1086 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
1087 GREG if allocate_undefined_gregs_in_linker.
1088 * doc/as.texinfo (Overview) <Target MMIX options>: Add
1089 --linker-allocated-gregs.
1090 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
1091 --linker-allocated-gregs. Mention that it's implied by -x.
1092 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
1093 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
1094
1095 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
1096
1097 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1098
1099 * Makefile.am: Run "make dep-am"
1100 * Makefile.in: Regenerate.
1101
1102 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1103
1104 * config/tc-or32.c: New file.
1105 * config/tc-or32.h: New file.
1106 * configure.in: Add support for or32 targets.
1107 * configure: Regenerate.
1108 * config/obj-coff.c: Add support for or32 targets.
1109 * config/obj-coff.h: Add support for or32 targets.
1110 * Makefile.am: Add support for or32 targets.
1111 * Makefile.in: Regenerate.
1112 * NEWS: Mention support for OpenRISC.
1113 * doc/Makefile.in: Regenerate.
1114 * po/POTFILES.in: Regenerate.
1115 * po/gas.pot: Regenerate.
1116
1117 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
1118
1119 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
1120 and mod.
1121
1122 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1123
1124 * config/tc-mips.c (tc_gen_reloc): Arrange for
1125 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
1126 their LO16 parts, even for ELF.
1127
1128 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
1129
1130 * config/tc-i386.c: Protect definitions of true and false
1131 from redefinition.
1132
1133 2002-01-28 Jakub Jelinek <jakub@redhat.com>
1134
1135 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
1136 made because of .weak, if they are neither defined nor used in any
1137 way.
1138
1139 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1140
1141 * configure: Regenerated.
1142
1143 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1144
1145 * doc/Makefile.am (install): Depend on install-info.
1146 * doc/Makefile.in: Regenerate.
1147
1148 2002-01-26 Nick Clifton <nick@redhat.com>
1149
1150 * po/fr.po: Updated version
1151
1152 2002-01-24 Kazu Hirata <kazu@hxi.com>
1153
1154 * config/tc-h8300.c (check_operand): Don't print a warning
1155 when a valid 24-bit address is given to a 16-bit address
1156 operand.
1157
1158 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1159
1160 * config/tc-sh.c (sh_elf_suffix): Removed.
1161 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
1162 sh_end_of_match, sh_parse_name): New functions.
1163 (sh_elf_cons): Simplify.
1164 (parse_exp): Reject misplaced PIC operands.
1165 (md_undefined_symbol): Simplify.
1166 (sh_fix_adjustable): Let @GOTOFF be adjusted.
1167 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
1168 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
1169 Complain if subsy remains at the end.
1170 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
1171 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
1172
1173 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
1174
1175 * config/tc-mn10300.c (xr_registers): Move `pc'...
1176 (other_registers): ... here.
1177
1178 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1179
1180 * Makefile.am: Run "make dep-am".
1181 * Makefile.in: Regenerate.
1182 * gas/po/POTFILES.in: Regenerate.
1183
1184 2002-01-21 DJ Delorie <dj@redhat.com>
1185
1186 * config/obj-coff.c (obj_coff_init_stab_section): Make the
1187 stabstr_name allocation permanent, as it will be referenced from
1188 the section hash.
1189
1190 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1191
1192 * configure.in (ia64-*-netbsd*): New target.
1193 * configure: Regenerate.
1194
1195 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
1196
1197 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
1198 to @dots call.
1199 <Detailed description, ARM options>: Ditto.
1200 * doc/c-arm.texi (ARM Options): Ditto.
1201
1202 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1203
1204 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
1205 do_mia, do_mar and do_mra respectively.
1206 (do_mav_*): Renamed from do_c_*.
1207 (mav_reg_required_here, mav_parse_offset): Renamed from
1208 cirrus_reg_required_here and cirrus_parse_offset respectively.
1209 (MAV_MODE?): Renamed from CIRRUS_MODE?.
1210
1211 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1212 Keith Walker <keith.walker@arm.com>
1213
1214 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
1215 (insns): Add pattern for bxj instruction.
1216 (do_bxj): New function.
1217 (arm_cpus): Add arm926ej.
1218 (arm_archs): Add armv5tej.
1219
1220 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1221
1222 * doc/c-arm.texi: Add new fpe options to list of supported flags.
1223
1224 2002-01-19 Keith Walker <keith.walker@arm.com>
1225
1226 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
1227
1228 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1229
1230 * NEWS: Mention new ARM command-line options and VFP support.
1231
1232 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
1233 uses changed.
1234 (ARM_CEXT_MAVERICK): Similarly.
1235 (ARM_ANY): Now means any core instruction.
1236 (CPU_DEFAULT): Default to ARM_ANY.
1237 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
1238 (pic_code): Declare for all object types. Make type int.
1239 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
1240 (march_fpu_opt, mfpu_opt): Declare.
1241 (md_longopts): Tidy up conditional definitions.
1242 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
1243 (arm_long_opts): New tables.
1244 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
1245 (arm_parse_extension): New function.
1246 (md_parse_option): Rewrite using new table-driven system.
1247 (md_show_usage): Use new table-driven system.
1248 (md_begin): Calculate cpu_variant from command line option data.
1249 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
1250 command-line options.
1251 * doc/c-arm.texi: Likewise.
1252
1253 2002-01-18 Andreas Jaeger <aj@suse.de>
1254
1255 * as.c (parse_args): Update year.
1256
1257 2002-01-17 Timothy Wall <twall@alum.mit.edu>
1258
1259 * config/tc-tic54x.c (encode_address): Add a more informative
1260 warning about incorrect syntax.
1261
1262 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1263
1264 * po/gas.pot: Regenerate.
1265
1266 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1267
1268 * macro.c (get_any_string): Add no-c-format comment to prevent
1269 confusion when translating string.
1270 * gasp.c (get_any_string): Add no-c-format comment to prevent
1271 confusion when translating string.
1272
1273 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1274 Johannes Stezenbach <js@convergence.de>
1275 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
1276 matched before the shorter ones.
1277 (my_getSmallParser): Fix handling of nested parentheses in
1278 percent_op's. Code cleanup.
1279 (my_getPercentOp): New function, code from my_getSmallParser.
1280 (my_getSmallExpression): Fix handling of closing parentheses.
1281 Code cleanup. Better comments.
1282
1283 2002-01-16 Nick Clifton <nickc@redhat.com>
1284
1285 po/tr.po: New file: Turkish translation.
1286 configure.in (LINGUAS): Add "tr".
1287 configure: Regenerate.
1288
1289 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
1290
1291 Support for VFP instructions
1292 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
1293 (cp_address_required_here): New argument wb_ok. When false, do not
1294 accept write-back forms of addressing. Change all callers.
1295 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
1296 (FPU_VFP_EXT_V2): Define.
1297 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
1298 Define in terms of above.
1299 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
1300 (vfp_reg): New struct.
1301 (vfp_regs): New array of registers.
1302 (insns): Add VFP instructions.
1303 (sn_table): New array of VFP single-precision register names.
1304 (dn_table): New array of VFP double-precision register names.
1305 (all_reg_maps): Add the new register tables.
1306 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
1307 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
1308 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
1309 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
1310 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
1311 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
1312 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
1313 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
1314 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
1315 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
1316 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
1317 (do_vfp_sp_dp_cvt): New functions.
1318 (md_begin): Set soft-float flag for appropriate VFP work.
1319 (md_atof): Handle VFP-format doubles.
1320 (md_parse_option): Handle VFP command-line options.
1321 (md_show_usage): Display VFP command-line options.
1322
1323 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
1324
1325 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
1326 various command line options.
1327
1328 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1329
1330 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
1331 vtinherit relocs.
1332 (xstormy16_md_apply_fix3): Do not return a value.
1333
1334 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1335
1336 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
1337 the -EL/-EB option that matches the target's endianness.
1338 (md_parse_option): Likewise.
1339
1340 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1341
1342 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
1343 is not dependent on ARM_BI_ENDIAN.
1344
1345 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
1346
1347 * tc-arm.c (all error messages): Normalize capitalization of messages.
1348
1349 * tc-arm.h (md_operand): Delete define.
1350 * tc-arm.c (in_my_get_expression): New static variable.
1351 (my_get_expression): Set and clear it.
1352 (md_operand): New function. If called from my_get_expression
1353 put the error in inst.error.
1354 (output_inst): Now takes argument of instruction being assembled.
1355 Print it out with any error message.
1356 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
1357 with '=' syntax.
1358 (end_of_line): Don't update inst.error if it is already set.
1359
1360 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
1361
1362 * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
1363 op that can be translated into a mvn instruction.
1364
1365 2002-01-11 Steve Ellcey <sje@cup.hp.com>
1366
1367 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
1368 setting default md.flags.
1369 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
1370 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
1371 * gas/config/tc-ia64.c (setup_unwind_header): Add support
1372 for 32 bit unwind info blocks.
1373 (generate_unwind_image): Add support for different types
1374 of unwind images (32 bits and/or big-endian).
1375 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
1376 (ia64_target_format): Add support for hpux target formats.
1377 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
1378 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
1379 SHT_FINI_ARRAY elf section types.
1380
1381 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
1382
1383 * tc-arm.c (struct reg_entry): Move before prototypes.
1384 (int_register, cp_register, fp_register): Delete.
1385 (reg_table): Delete. Replaced with ...
1386 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
1387 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
1388 (mav_dspsc_table): ... one table per register set.
1389 (arm_reg_hsh): Delete.
1390 (struct reg_map): New structure.
1391 (all_reg_maps): New array.
1392 (enum arm_reg_type): New enums.
1393 (build_reg_hsh): New function.
1394 (insert_reg_alias): Use hash table passed by caller. Adjust all
1395 callers.
1396 (create_register_alias): New function, split out from ...
1397 (md_assemble): ... here.
1398 (md_begin): Build new register hash tables.
1399 (arm_reg_parse): New argument for the hash table to search. Adjust all
1400 callers.
1401 (arm_reg_parse_any): New function.
1402 (co_proc_number): Look up the processor number in the processor hash
1403 table.
1404 (cirrus_regtype): Delete.
1405 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
1406 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
1407 (ARM_EXT_MAVERICKsc_register): Delete.
1408 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
1409 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
1410 functions.
1411 (do_c_triple_4, do_c_triple_5): Delete.
1412 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
1413 (do_c_quad_6): Delete.
1414 (do_c_quad_6[ab]): New functions.
1415 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
1416 arguments to use new register parsing methods.
1417 (cirrus_reg_required_here): Likewise.
1418 (insns): Reclassify cirrus maverick worker functions.
1419 (cirrus_valid_reg): Delete.
1420
1421 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1422
1423 * configure.in (sh*le): Set cpu_type=sh and endian=little.
1424 (sh*-*-netbsdelf*): New target.
1425 * configure: Regenerate.
1426 * tc-sh.h: Update copyright years.
1427 (TARGET_FORMAT): Add version for TE_NetBSD.
1428
1429 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1430
1431 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
1432 negative.
1433
1434 2002-01-06 Alan Modra <amodra@bigpond.net.au>
1435
1436 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
1437 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
1438
1439 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
1440
1441 * tc-mips.c (mips_cprestore_valid): New flag.
1442 (mips_frame_reg_valid): New flag.
1443 (macro) [M_JAL_2]: Check both flags.
1444 [M_JAL_A]: Likewise.
1445 (s_cprestore): Set mips_cprestore_valid.
1446 (tc_get_register): If setting mips_frame_reg, set
1447 mips_frame_reg_valid and clear mips_cprestore_valid.
1448 (s_mips_ent): Clear both flags.
1449 (s_mips_end): Clear both flags.
1450
1451 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1452
1453 * write.c (write_object_file): Make use of bfd_section_list_remove.
1454 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
1455 * config/tc-mmix.c (mmix_frob_file): Likewise.
1456
1457 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1458
1459 * configure.in (i386-*-netbsdelf*): Collapse target into...
1460 (i386-*-netbsd*): ...this. Add support for x86-64.
1461 * configure: Regenerated.
1462
1463 2002-01-03 matthew green <mrg@redhat.com>
1464
1465 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
1466
1467 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1468
1469 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
1470 NULL frag link.
1471
1472 For older changes see ChangeLog-0001
1473 \f
1474 Local Variables:
1475 mode: change-log
1476 left-margin: 8
1477 fill-column: 74
1478 version-control: never
1479 End:
This page took 0.07827 seconds and 5 git commands to generate.