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