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