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