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