Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
[external/binutils.git] / gas / ChangeLog
1 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2
3         * configure.in: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
4         * configure: Regenerate.
5
6 2004-03-12  Bob Wilson  <bob.wilson@acm.org>
7
8         * read.c (s_leb128): Call md_flush_pending_output.
9
10 2004-03-12  Michal Ludvig  <mludvig@suse.cz>
11
12         * config/tc-i386.c (output_insn): Handle PadLock instructions.
13         * config/tc-i386.h (CpuPadLock): New define.
14         (CpuUnknownFlags): Added CpuPadLock.
15
16 2004-03-07  Andreas Schwab  <schwab@suse.de>
17
18         * doc/c-hppa.texi (HPPA Directives): Fix typo.
19
20 2004-03-07  Richard Henderson  <rth@redhat.com>
21
22         * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
23         (cfi_finish): Likewise for fde.
24
25 2004-03-05  H.J. Lu  <hongjiu.lu@intel.com>
26
27         * config/tc-ia64.c (md_assemble): Properly handle NULL
28         align_frag.
29         (ia64_handle_align): Don't abort if failed to add a stop bit.
30
31 2004-03-04  H.J. Lu  <hongjiu.lu@intel.com>
32
33         * Makefile.in: Regenerated.
34         * aclocal.m4: Likewise.
35         * configure: Likewise.
36         * doc/Makefile.in: Likewise.
37
38 2004-03-03  H.J. Lu  <hongjiu.lu@intel.com>
39
40         * config/tc-ia64.c (dot_align): New.
41         (ia64_do_align): Make it static.
42         (md_pseudo_table): Use "dot_align" for "align".
43         (ia64_md_do_align): Don't set align_frag here.
44         (ia64_handle_align): Add a stop bit to the previous bundle if
45         needed.
46
47         * config/tc-ia64.h (ia64_do_align): Removed.
48
49 2003-03-03  Andrew Stubbs  <andrew.stubbs@superh.com>
50
51         * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
52         -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
53         (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
54         the most general type or the user specifically requested it.
55         (md_assemble): Add a new error message for when an instruction
56         is understood, but is not allowed due to an -isa option.
57
58 2004-03-02  H.J. Lu  <hongjiu.lu@intel.com>
59
60         * config/tc-ia64.c (align_frag): New.
61         (md_assemble): Set the tc_frag_data field in align_frag for
62         IA64_OPCODE_FIRST instructions.
63         (ia64_md_do_align): Set align_frag.
64         (ia64_handle_align): Add a stop bit if needed.
65
66         * config/tc-ia64.h (TC_FRAG_TYPE): New.
67         (TC_FRAG_INIT): New.
68
69 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
70
71         * config/tc-frv.c (fr400_audio): New variable.
72         (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
73         (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
74         (target_implements_insn_p): New function.
75         (md_assemble): Report an error if the processor doesn't implement
76         the instruction.
77
78 2004-02-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
79
80         * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
81         (md_parse_option): Ditto.
82         (OPTION_NO_SPECIAL_M32R): Added.
83         (md_show_usage): Document it.
84         (enable_speial_m32r): Changed a default value from 0 to 1.
85         * doc/c-m32r.texi: Document the -no-bitinst option.
86
87 2004-02-27  Nick Clifton  <nickc@redhat.com>
88
89         * config/tc-sh.c (get_operand): Revert previous delta.
90         (tc_gen_reloc): Check for an unknown reloc type before processing
91         the addend.
92
93 2004-02-27  Hannes Reinecke  <hare@suse.de>
94
95         * config/tc-s390.c (s390_insn): Correct range check for opcode in
96         .insn pseudo operation.
97
98 2004-02-27  Anil Paranjpe  <anilp1@kpitcummins.com>
99
100         * config/tc-sh.c (get_operand):  In case of #Imm, check has been
101         added for wrong syntax.
102
103 2004-02-26  Eric Christopher  <echristo@redhat.com>
104
105         * config/tc-mips.c (mips_dwarf2_addr_size): New.
106         * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
107
108 2004-02-26  Andrew Stubbs <andrew.stubbs@superh.com>
109
110         * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
111         nibble types to assembler.
112
113 2004-02-25  Fred Fish  <fnf@redhat.com>
114
115         * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
116
117 2004-02-20  James E Wilson  <wilson@specifixinc.com>
118
119         * config/tc-ia64.c (slot_index): New arg before_relax.  Use instead of
120         finalize_syms.
121         (fixup_unw_records): New arg before_relax.  Pass to slot_index.
122         (ia64_estimate_size_before_relax): New.
123         (ia64_convert_frag): Pass 0 to fixup_unw_records.  Add comment.
124         (generate_unwind_image): Pass 1 to fixup_unw_records.
125         * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
126         (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
127
128 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
129
130         * stabs.c (generate_asm_file): Avoid warning about use of
131         uninitialized variable.
132
133 2004-02-18  David Mosberger  <davidm@hpl.hp.com>
134
135         * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
136         body, and endp, allow unwind records which do not have a "t"
137         (time/instruction) field.
138
139 2004-02-17  Petko Manolov  <petkan@nucleusys.com>
140
141         * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
142         (do_mav_dspsc_2): Likewise.
143         Fix accumulator registers move opcodes.
144
145 2004-02-13  Hannes Reinecke  <hare@suse.de>
146             Jakub Jelinek  <jakub@redhat.com>
147
148         * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
149
150 2004-02-10  Steve Ellcey  <sje@cup.hp.com>
151
152         * config/tc-ia64.h (ia64_frob_symbol): New declaration.
153         (tc_frob_symbol): New macro definition.
154         * config/tc-ia64.c (ia64_frob_symbol): New routine.
155
156 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
157
158         * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
159         read-only.
160
161 2004-02-09  Nathan Sidwell  <nathan@codesourcery.com>
162
163         * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
164         (TC_CASE_SENSITIVE): ... this.
165         * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
166         * doc/internals.texi (TC_CASE_SENSITIVE): Document.
167
168 2004-02-06  James E Wilson  <wilson@specifixinc.com>
169
170         * config/tc-ia64.c (dot_endp): Delete call to output_endp.
171         (generate_unwind_image): Re-add it here.
172
173 2004-02-06  Nathan Sidwell  <nathan@codesourcery.com>
174
175         * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
176         * read.h (SKIP_WHITESPACE): Turn into an expression.
177         * read.c (read_a_source_file): A pseudo is removed by having a
178         NULL handler.
179
180 2004-02-05  James E Wilson  <wilson@specifixinc.com>
181
182         * config/tc-ia64.c (output_endp): New.
183         (count_bits): Delete.
184         (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
185         endp unwind records.
186         (fixup_unw_records): Handle endp unwind records.  Delete code for
187         shortening prologue regions not followed by a body record.
188         (dot_endp): Call add_unwind_entry to emit endp unwind record.
189         * config/tc-ia64.h (unw_record_type): Add endp.
190
191 2004-02-03  James E Wilson  <wilson@specifixinc.com>
192
193         * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
194         fill padding bytes with zeroes.
195         (emit_one_bundle): New locals last_ptr, end_ptr.  Rewrite code that
196         sets unwind_record slot_number and slot_frag fields.
197
198 2004-02-02  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
199
200         * config/tc-mips.c (add_got_offset_hilo): New function.
201         (macro): Use load_register() and add_got_offset_hilo() to load
202         constants instead of hardcoding code sequences throughout.
203
204 2004-01-28  H.J. Lu  <hongjiu.lu@intel.com>
205
206         * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
207
208 2004-01-26  Bernardo Innocenti  <bernie@develer.com>
209
210         * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
211         like m68k-elf.
212         * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
213         of hard-coded test for TARGET_OS=elf.
214
215 2004-01-24  Chris Demetriou  <cgd@broadcom.com>
216
217         * config/tc-mips.c (hilo_interlocks): Change definition
218         so that MIPS32, MIPS64 and later ISAs are included, along with
219         the already-included machines.  Update comments.
220
221 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
222
223         * config/tc-arm.c (tc_gen_reloc): Improve error message for
224         undefined local labels.
225
226 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
227
228         * config/tc-mips.c (load_address, macro): Update comments about
229         NewABI GP relaxation.
230
231 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
232
233         * config/tc-mips.c (macro_build): Remove place and counter arguments.
234         (mips_build_lui, macro_build_ldst_constoffset): Likewise.
235         (mips16_macro_build, macro_build_jalr): Remove counter argument.
236         (set_at, load_register, load_address, move_register): Likewise.
237         (load_got_offset, add_got_offset): Likewise.
238         Update all calls and tidy accordingly.
239
240 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
241
242         * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
243         (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
244         (RELAX_USE_SECOND): Bump to 0x10000.
245         (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
246         (mips_macro_warning): New variable.
247         (md_assemble): Wrap macro expansion in macro_start() and macro_end().
248         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
249         (relax_close_frag): Set mips_macro_warning.first_frag.  Adjust use
250         of RELAX_ENCODE.
251         (append_insn): Update mips_macro_warning.sizes.
252         (macro_start, macro_warning, macro_end): New functions.
253         (macro_build): Don't emit warnings here.
254         (macro_build_lui, md_estimate_size_before_relax): ...or here.
255         (md_convert_frag): Check for cases where one macro alternative
256         needs a warning and the other doesn't.  Emit a warning if the
257         longer sequence was chosen.
258
259 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
260
261         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
262         * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
263         the first sequence, the size of the second sequence, and a flag
264         that says whether we should warn.
265         (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
266         (RELAX_FIRST, RELAX_SECOND): New.
267         (mips_relax): New variable.
268         (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
269         (append_insn): Remove "place" argument.  Use mips_relax.sequence
270         rather than "place" to check whether we're expanding the second
271         alternative of a relaxable macro.  Remove redundant check for
272         branch relaxation.  If generating a normal insn, and there
273         is not enough room in the current frag, call relax_close_frag()
274         to close it.  Update mips_relax.sizes[].  Emit fixups for the
275         second version of a relaxable macro.  Record the first relaxable
276         fixup in mips_relax.  Remove tc_gen_reloc workaround.
277         (macro_build): Remove all uses of "place".  Use mips_relax.sequence
278         in the same way as in append_insn.
279         (mips16_macro_build): Remove "place" argument.
280         (macro_build_lui): As for macro_build.  Don't drop the add_symbol
281         when generating the second version of a relaxable macro.
282         (load_got_offset, add_got_offset): New functions.
283         (load_address, macro): Use new relaxation machinery.  Remove
284         tc_gen_reloc workarounds.
285         (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
286         version of a relaxable macro is needed.  Return -RELAX_SECOND if the
287         first version is needed.
288         (tc_gen_reloc): Remove relaxation handling.
289         (md_convert_frag): Go through the fixups for a relaxable macro and
290         mark those that belong to the unneeded alternative as done.  If the
291         second alternative is needed, adjust the fixup addresses to account
292         for the deleted first alternative.
293
294 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
295
296         * frags.h (frag_room): Declare.
297         * frags.c (frag_room): New function.
298         * doc/internals.texi: Document it.
299
300 2004-01-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
301
302         * config/tc-mips.c (append_insn): Don't do r3900 interlock
303         optimization for -mtune=r3900, as this will break on other CPUs.
304
305 2004-01-11  Tom Rix   <tcrix@worldnet.att.net>
306
307         * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
308         be relaxed, use fixup.
309         (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
310
311 2004-01-19  Jakub Jelinek  <jakub@redhat.com>
312
313         * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
314         precision operands.
315
316 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
317
318         * config/tc-mips.c (append_insn): Properly detect variant frags
319         that preclude swapping of relaxed branches.  Correctly swap
320         instructions between frags when dealing with relaxed branches.
321
322 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
323
324         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
325         throughout.
326         * aclocal.m4: Regenerate.
327         * configure: Regenerate.
328
329 2004-01-12  Anil Paranjpe  <anilp1@KPITCummins.com>
330
331         * config/tc-h8300.c (build_bytes): Apply relaxation to bit
332         manipulation insns.
333
334 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
335
336         * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
337         reloc, reserve space for the delay slot as well as the jalr itself.
338
339 2004-01-09  Paul Brook  <paul@codesourcery.com>
340
341         * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
342         (do_vfp_sp2_from_reg2): New function.
343         (insns): Use them.
344         (do_vfp_dp_from_reg2): Check return values properly.
345
346 2004-01-08  Ian Lance Taylor  <ian@wasabisystems.com>
347
348         * config/tc-mips.c (warn_nops): Remove static variable.
349         (macro): Remove test of warn_nops.
350         (md_shortops): Remove 'n'.
351         (md_parse_option): Remove 'n' case.
352         (md_show_usage): Remove -n.
353         * doc/as.texinfo (Overview): Remove MIPS -n option.
354         * doc/c-mips.texi (MIPS Opts): Remove mention -n.
355         * NEWS: Mention removal of MIPS -n option.
356
357         * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
358         (cop_interlocks): Check ISA level.
359         (cop_mem_interlocks): Define.
360         (reg_needs_delay): Check cop_interlocks rather than
361         ISA_HAS_COPROC_DELAYS.
362         (append_insn): Likewise.  Use cop_mem_interlocks rather than
363         directly checking mips_opts.isa.
364         (mips_emit_delays): Likewise.
365
366 2004-01-07  H.J. Lu  <hongjiu.lu@intel.com>
367
368         * config/tc-ia64.c (unwind): Move next_slot_number and
369         next_slot_frag to ...
370         (unw_rec_list): Here.
371         (free_list_records): Removed.
372         (output_unw_records): Likewise.
373         (generate_unwind_image): Make it void.
374         (alloc_record): Initialize next_slot_number and next_slot_frag.
375         (slot_index): Take .org, .space and .align into account.
376         (fixup_unw_records): Don't set slot_number to 0. Use
377         list->next_slot_number and list->next_slot_frag instead of
378         unwind.next_slot_number and unwind.next_slot_frag.
379         (ia64_convert_frag): New.
380         (generate_unwind_image): Generate a rs_machine_dependent frag
381         for unwind record.
382         (emit_one_bundle): Use list->next_slot_number and
383         list->next_slot_frag instead of unwind.next_slot_number and
384         unwind.next_slot_frag.
385
386         * config/tc-ia64.h (md_convert_frag): Defined as
387         ia64_convert_frag.
388         (md_estimate_size_before_relax): Defined as (f)->fr_var.
389
390 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
391
392         2003-12-19  Alexandre Oliva  <aoliva@redhat.com>
393         * config/tc-frv.h (md_apply_fix3): Don't define.
394         * config/tc-frv.c (md_apply_fix3): New.  Shift/truncate %hi/%lo
395         operands.
396         * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
397         2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
398         * config/tc-frv.c (line_separator_chars): Add `!'.
399         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
400         * config/tc-frv.c (md_assemble): Clear insn upfront.
401         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
402         * config/tc-frv.c (OPTION_FDPIC): New macro.
403         (md_longopts): Add mfdpic.
404         (md_parse_option): Handle it.
405         2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
406         * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
407         FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
408         (frv_pic_ptr): Parse funcdesc.
409
410 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
411
412         * doc/as.texinfo: Let texi2pod parse asconfig.texi and
413         gasver.texi.  Remove duplicate symbol definitions for texi2pod.
414
415 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
416
417         * Makefile.am (Makefile): Move the dependency on
418         $(BFDDIR)/configure.in to...
419         (CONFIG_STATUS_DEPENDENCIES): ... here.
420         (AUTOMAKE_OPTIONS): Require automake 1.8.
421         * Makefile.in: Regenerate.
422         * doc/Makefile.am (BASEDIR, BFDDIR): Define.
423         (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
424         $(BFDDIR)/configure.in here as well.
425         * doc/Makefile.in: Regenerate.
426
427 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
428
429         * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
430         * Makefile.in: Regenerate.
431         * aclocal.m4: Regenerate.
432         * doc/Makefile.am (install, install-info): Remove.
433         (install-data-local): A new hook for install-info.
434         (AUTOMAKE_OPTIONS): Require automake 1.8.
435         * doc/Makefile.in: Regenerate.
436
437 2004-01-02  Nutan Singh <nutan@kpitcummins.com>
438
439         * doc/c-sh.texi: Update description about floating point behavior
440         of SH family.
441
442 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
443
444         * configure.in: Add m68k-uClinux target.
445         * configure: Regenerate.
446
447 For older changes see ChangeLog-0203
448 \f
449 Local Variables:
450 mode: change-log
451 left-margin: 8
452 fill-column: 74
453 version-control: never
454 End: