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