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