08d43c04a9d155bfb919349aa5ec8775a9ac9e03
[binutils-gdb.git] / gas / ChangeLog
1 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2
3 * config/tc-mips.c (tc_gen_reloc): Arrange for
4 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5 their LO16 parts, even for ELF.
6
7 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
8
9 * config/tc-i386.c: Protect definitions of true and false
10 from redefinition.
11
12 2002-01-28 Jakub Jelinek <jakub@redhat.com>
13
14 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
15 made because of .weak, if they are neither defined nor used in any
16 way.
17
18 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
19
20 * configure: Regenerated.
21
22 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
23
24 * doc/Makefile.am (install): Depend on install-info.
25 * doc/Makefile.in: Regenerate.
26
27 2002-01-26 Nick Clifton <nick@redhat.com>
28
29 * po/fr.po: Updated version
30
31 2002-01-24 Kazu Hirata <kazu@hxi.com>
32
33 * config/tc-h8300.c (check_operand): Don't print a warning
34 when a valid 24-bit address is given to a 16-bit address
35 operand.
36
37 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
38
39 * config/tc-sh.c (sh_elf_suffix): Removed.
40 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
41 sh_end_of_match, sh_parse_name): New functions.
42 (sh_elf_cons): Simplify.
43 (parse_exp): Reject misplaced PIC operands.
44 (md_undefined_symbol): Simplify.
45 (sh_fix_adjustable): Let @GOTOFF be adjusted.
46 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
47 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
48 Complain if subsy remains at the end.
49 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
50 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
51
52 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
53
54 * config/tc-mn10300.c (xr_registers): Move `pc'...
55 (other_registers): ... here.
56
57 2002-01-22 Alan Modra <amodra@bigpond.net.au>
58
59 * Makefile.am: Run "make dep-am".
60 * Makefile.in: Regenerate.
61 * gas/po/POTFILES.in: Regenerate.
62
63 2002-01-21 DJ Delorie <dj@redhat.com>
64
65 * config/obj-coff.c (obj_coff_init_stab_section): Make the
66 stabstr_name allocation permanent, as it will be referenced from
67 the section hash.
68
69 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
70
71 * configure.in (ia64-*-netbsd*): New target.
72 * configure: Regenerate.
73
74 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
75
76 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
77 to @dots call.
78 <Detailed description, ARM options>: Ditto.
79 * doc/c-arm.texi (ARM Options): Ditto.
80
81 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
82
83 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
84 do_mia, do_mar and do_mra respectively.
85 (do_mav_*): Renamed from do_c_*.
86 (mav_reg_required_here, mav_parse_offset): Renamed from
87 cirrus_reg_required_here and cirrus_parse_offset respectively.
88 (MAV_MODE?): Renamed from CIRRUS_MODE?.
89
90 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
91 Keith Walker <keith.walker@arm.com>
92
93 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
94 (insns): Add pattern for bxj instruction.
95 (do_bxj): New function.
96 (arm_cpus): Add arm926ej.
97 (arm_archs): Add armv5tej.
98
99 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
100
101 * doc/c-arm.texi: Add new fpe options to list of supported flags.
102
103 2002-01-19 Keith Walker <keith.walker@arm.com>
104
105 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
106
107 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
108
109 * NEWS: Mention new ARM command-line options and VFP support.
110
111 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
112 uses changed.
113 (ARM_CEXT_MAVERICK): Similarly.
114 (ARM_ANY): Now means any core instruction.
115 (CPU_DEFAULT): Default to ARM_ANY.
116 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
117 (pic_code): Declare for all object types. Make type int.
118 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
119 (march_fpu_opt, mfpu_opt): Declare.
120 (md_longopts): Tidy up conditional definitions.
121 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
122 (arm_long_opts): New tables.
123 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
124 (arm_parse_extension): New function.
125 (md_parse_option): Rewrite using new table-driven system.
126 (md_show_usage): Use new table-driven system.
127 (md_begin): Calculate cpu_variant from command line option data.
128 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
129 command-line options.
130 * doc/c-arm.texi: Likewise.
131
132 2002-01-18 Andreas Jaeger <aj@suse.de>
133
134 * as.c (parse_args): Update year.
135
136 2002-01-17 Timothy Wall <twall@alum.mit.edu>
137
138 * config/tc-tic54x.c (encode_address): Add a more informative
139 warning about incorrect syntax.
140
141 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
142
143 * po/gas.pot: Regenerate.
144
145 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
146
147 * macro.c (get_any_string): Add no-c-format comment to prevent
148 confusion when translating string.
149 * gasp.c (get_any_string): Add no-c-format comment to prevent
150 confusion when translating string.
151
152 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
153 Johannes Stezenbach <js@convergence.de>
154 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
155 matched before the shorter ones.
156 (my_getSmallParser): Fix handling of nested parentheses in
157 percent_op's. Code cleanup.
158 (my_getPercentOp): New function, code from my_getSmallParser.
159 (my_getSmallExpression): Fix handling of closing parentheses.
160 Code cleanup. Better comments.
161
162 2002-01-16 Nick Clifton <nickc@redhat.com>
163
164 po/tr.po: New file: Turkish translation.
165 configure.in (LINGUAS): Add "tr".
166 configure: Regenerate.
167
168 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
169
170 Support for VFP instructions
171 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
172 (cp_address_required_here): New argument wb_ok. When false, do not
173 accept write-back forms of addressing. Change all callers.
174 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
175 (FPU_VFP_EXT_V2): Define.
176 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
177 Define in terms of above.
178 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
179 (vfp_reg): New struct.
180 (vfp_regs): New array of registers.
181 (insns): Add VFP instructions.
182 (sn_table): New array of VFP single-precision register names.
183 (dn_table): New array of VFP double-precision register names.
184 (all_reg_maps): Add the new register tables.
185 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
186 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
187 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
188 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
189 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
190 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
191 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
192 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
193 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
194 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
195 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
196 (do_vfp_sp_dp_cvt): New functions.
197 (md_begin): Set soft-float flag for appropriate VFP work.
198 (md_atof): Handle VFP-format doubles.
199 (md_parse_option): Handle VFP command-line options.
200 (md_show_usage): Display VFP command-line options.
201
202 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
203
204 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
205 various command line options.
206
207 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
208
209 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
210 vtinherit relocs.
211 (xstormy16_md_apply_fix3): Do not return a value.
212
213 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
214
215 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
216 the -EL/-EB option that matches the target's endianness.
217 (md_parse_option): Likewise.
218
219 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
220
221 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
222 is not dependent on ARM_BI_ENDIAN.
223
224 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
225
226 * tc-arm.c (all error messages): Normalize capitalization of messages.
227
228 * tc-arm.h (md_operand): Delete define.
229 * tc-arm.c (in_my_get_expression): New static variable.
230 (my_get_expression): Set and clear it.
231 (md_operand): New function. If called from my_get_expression
232 put the error in inst.error.
233 (output_inst): Now takes argument of instruction being assembled.
234 Print it out with any error message.
235 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
236 with '=' syntax.
237 (end_of_line): Don't update inst.error if it is already set.
238
239 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
240
241 * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
242 op that can be translated into a mvn instruction.
243
244 2002-01-11 Steve Ellcey <sje@cup.hp.com>
245
246 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
247 setting default md.flags.
248 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
249 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
250 * gas/config/tc-ia64.c (setup_unwind_header): Add support
251 for 32 bit unwind info blocks.
252 (generate_unwind_image): Add support for different types
253 of unwind images (32 bits and/or big-endian).
254 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
255 (ia64_target_format): Add support for hpux target formats.
256 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
257 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
258 SHT_FINI_ARRAY elf section types.
259
260 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
261
262 * tc-arm.c (struct reg_entry): Move before prototypes.
263 (int_register, cp_register, fp_register): Delete.
264 (reg_table): Delete. Replaced with ...
265 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
266 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
267 (mav_dspsc_table): ... one table per register set.
268 (arm_reg_hsh): Delete.
269 (struct reg_map): New structure.
270 (all_reg_maps): New array.
271 (enum arm_reg_type): New enums.
272 (build_reg_hsh): New function.
273 (insert_reg_alias): Use hash table passed by caller. Adjust all
274 callers.
275 (create_register_alias): New function, split out from ...
276 (md_assemble): ... here.
277 (md_begin): Build new register hash tables.
278 (arm_reg_parse): New argument for the hash table to search. Adjust all
279 callers.
280 (arm_reg_parse_any): New function.
281 (co_proc_number): Look up the processor number in the processor hash
282 table.
283 (cirrus_regtype): Delete.
284 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
285 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
286 (ARM_EXT_MAVERICKsc_register): Delete.
287 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
288 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
289 functions.
290 (do_c_triple_4, do_c_triple_5): Delete.
291 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
292 (do_c_quad_6): Delete.
293 (do_c_quad_6[ab]): New functions.
294 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
295 arguments to use new register parsing methods.
296 (cirrus_reg_required_here): Likewise.
297 (insns): Reclassify cirrus maverick worker functions.
298 (cirrus_valid_reg): Delete.
299
300 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
301
302 * configure.in (sh*le): Set cpu_type=sh and endian=little.
303 (sh*-*-netbsdelf*): New target.
304 * configure: Regenerate.
305 * tc-sh.h: Update copyright years.
306 (TARGET_FORMAT): Add version for TE_NetBSD.
307
308 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
309
310 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
311 negative.
312
313 2002-01-06 Alan Modra <amodra@bigpond.net.au>
314
315 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
316 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
317
318 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
319
320 * tc-mips.c (mips_cprestore_valid): New flag.
321 (mips_frame_reg_valid): New flag.
322 (macro) [M_JAL_2]: Check both flags.
323 [M_JAL_A]: Likewise.
324 (s_cprestore): Set mips_cprestore_valid.
325 (tc_get_register): If setting mips_frame_reg, set
326 mips_frame_reg_valid and clear mips_cprestore_valid.
327 (s_mips_ent): Clear both flags.
328 (s_mips_end): Clear both flags.
329
330 2002-01-05 Alan Modra <amodra@bigpond.net.au>
331
332 * write.c (write_object_file): Make use of bfd_section_list_remove.
333 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
334 * config/tc-mmix.c (mmix_frob_file): Likewise.
335
336 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
337
338 * configure.in (i386-*-netbsdelf*): Collapse target into...
339 (i386-*-netbsd*): ...this. Add support for x86-64.
340 * configure: Regenerated.
341
342 2002-01-03 matthew green <mrg@redhat.com>
343
344 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
345
346 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
347
348 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
349 NULL frag link.
350
351 For older changes see ChangeLog-0001
352 \f
353 Local Variables:
354 mode: change-log
355 left-margin: 8
356 fill-column: 74
357 version-control: never
358 End: