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