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