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