Handle situation where architecture has not yet been selected.
[binutils-gdb.git] / gas / ChangeLog
1 2002-09-19 Nick Clifton <nickc@redhat.com>
2
3 * config/tc-m68k.c (select_control_regs): Handle situation where
4 architecture has not yet been selected.
5
6 2002-09-18 Chris Demetriou <cgd@broadcom.com>
7
8 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
9 (IS_SEXT_16BIT_NUM): New macro.
10 (macro_build_ldst_constoffset): New function, to build a set of
11 instructions to do a load or store from a constant offset relative
12 to a given register.
13 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
14 .cprestore pseudo-op.
15
16 2002-09-18 Chris Demetriou <cgd@broadcom.com>
17
18 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
19
20 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
21
22 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
23
24 2002-09-17 Stan Cox <scox@redhat.com>
25
26 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
27 (macro): Likewise for la. Likewise for ld.
28 (mips_after_parse_args): Make -xgot optional, not the default.
29 (md_apply_fix3): Allow composite relocation to set up gp.
30 (tc_gen_reloc): Allow relaxing for newabi.
31 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
32 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
33
34 2002-09-17 Nick Clifton <nickc@redhat.com>
35
36 * config/tc-arm.c (md_apply_fix3): Note that an implemented
37 BFD_RELOC_ARM_IMMEDIATE has been done.
38 (tc_gen_reloc): Do not issue reloc number of unimplemented
39 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
40 their name is already in the error message - plus remove them
41 from the default case.
42
43 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
44 behavior of instructions.
45
46 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
47
48 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
49 Convert functions to K&R format.
50
51 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
52
53 * config/tc-mips.c (pdr_seg): Define only for ELF.
54 (s_change_section): Remove unused variable. Don't use for nonELF.
55
56 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
57
58 * config/obj-elf.c (obj_elf_change_section): Move prototype to
59 obj-elf.h
60 * config/obj-elf.h (obj_elf_change_section): Likewise.
61
62 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
63
64 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
65 (out_debug_info): Likewise.
66
67 2002-09-16 Bruno Haible <bruno@clisp.org>
68
69 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
70 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
71 * config/tc-i386.c (i386_target_format): Likewise.
72 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
73 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
74
75 2002-09-13 Nick Clifton <nickc@redhat.com>
76
77 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
78 when deciding if any operands have been skipped.
79
80 2002-09-11 Nick Clifton <nickc@redhat.com>
81
82 * NEWS: New TI port supports both C4x and C3x series of DSPs.
83
84 * po/tr.po: Updated Turkish translation.
85
86 2002-09-11 Jakub Jelinek <jakub@redhat.com>
87
88 * config/tc-i386.c (md_apply_fix3): Allow addend for
89 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
90 BFD_RELOC_386_TLS_LE_32.
91
92 2002-09-05 Jeff Law <law@redhat.com>
93
94 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
95 marker relocations such as ENTRY/EXIT.
96 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
97 to both OBJ_ELF and OBJ_SOM.
98
99 2002-09-05 Alan Modra <amodra@bigpond.net.au>
100
101 * doc/internals.texi (md_apply_fix3): Expand.
102 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
103 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
104 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
105 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
106 EXTERN_FORCE_RELOC): Document.
107 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
108 * as.h: Don't include struc-symbol.h for arc.
109 (IS_ELF): Define.
110 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
111 subtract absolute symbol.
112 * obj.h (struct format_ops): Add frob_file_before_fix.
113 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
114 * symbols.c (S_FORCE_RELOC): New function.
115 * symbols.h (S_FORCE_RELOC): Declare.
116 * write.c (TC_FORCE_RELOCATION): Change default.
117 (TC_FORCE_RELOCATION_ABS): Define.
118 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
119 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
120 (TC_FORCE_RELOCATION_SECTION): Don't define.
121 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
122 (TC_FORCE_RELOCATION_SUB_ABS): Define.
123 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
124 (TC_VALIDATE_FIX_SUB): Define.
125 (TC_FIX_ADJUSTABLE): Don't define.
126 (MD_APPLY_SYM_VALUE): Define this instead.
127 (abs_section_sym): New variable.
128 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
129 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
130 Don't put the absolute section sym on fixups here.
131 (fix_segment): New function.
132 (write_relocs): Don't call fixup_segment from here.
133 (write_object_file): Instead call tc_frob_file_before_fix,
134 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
135 Don't output the absolute section symbol.
136 (fixup_segment): Rewrite.
137 * write.h (abs_section_sym): Declare.
138 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
139 obj_aout_frob_file.
140 (aout_format_ops): Adjust to suit.
141 * config/obj-aout.h (obj_frob_file): Don't define.
142 (obj_frob_file_before_fix): Define.
143 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
144 (S_FORCE_RELOC): Define.
145 * config/obj-bout.h (S_FORCE_RELOC): Define.
146 * config/obj-coff.c (coff_format_ops): Init new field.
147 * config/obj-coff.h: Formatting fixes.
148 (obj_sec_sym_ok_for_reloc): Define.
149 (S_FORCE_RELOC): Define.
150 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
151 (ecoff_frob_file): .. from here.
152 (ecoff_format_ops): Add new function.
153 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
154 (obj_frob_file_before_fix): Define.
155 * config/obj-elf.c (elf_format_ops): Init new field.
156 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
157 * config/obj-ieee.h: Formatting fixes.
158 (S_FORCE_RELOC): Define.
159 * config/obj-multi.h (obj_frob_file_before_fix): Define.
160 * config/obj-vms.h (S_FORCE_RELOC): Define.
161 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
162 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
163 for BFD_RELOC_32 and BFD_RELOC_64.
164 (alpha_fix_adjustable): Remove extern and weak tests.
165 (alpha_before_fix): Rename from alpha_adjust_symtab.
166 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
167 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
168 (TC_VALIDATE_FIX): Tweak param name.
169 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
170 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
171 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
172 (MD_APPLY_SYM_VALUE): Define.
173 (tc_adjust_symtab): Don't define.
174 (alpha_adjust_symtab): Don't declare.
175 (tc_frob_file_before_fix): Define.
176 (alpha_before_fix): Declare.
177 (TC_INIT_FIX_DATA): Tweak param names.
178 * config/tc-arc.c: Include "struc-symbol.h".
179 (md_pcrel_from): Remove undefined sym fudge.
180 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
181 Don't set fx_addnumber.
182 (tc_gen_reloc): Remove spurious fx_addnumber comment.
183 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
184 (EXTERN_FORCE_RELOC): Define.
185 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
186 (tc_gen_reloc): Fudge ARM_GOTPC addend.
187 (arm_validate_fix): Return void.
188 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
189 Add plt and got reloc tests.
190 (arm_force_relocation): Call S_FORCE_RELOC.
191 * config/tc-arm.h (struct fix): Forward declare.
192 (TC_VALIDATE_FIX): No longer set add_symbolP.
193 (arm_validate_fix): Adjust declaration.
194 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
195 (TC_FORCE_RELOCATION): Tweak param name.
196 (TC_INIT_FIX_DATA): Likewise.
197 (obj_fix_adjustable): Don't define.
198 (tc_fix_adjustable): Call arm_fix_adjustable.
199 (TC_FIX_ADJUSTABLE): Don't define.
200 (MD_APPLY_SYM_VALUE): Define.
201 (EXTERN_FORCE_RELOC): Define.
202 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
203 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
204 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
205 Remove *valP fudges and code to subtract abs sym. Don't set
206 fx_addnumber.
207 * config/tc-avr.h: Formatting.
208 (EXTERN_FORCE_RELOC): Define.
209 (MD_APPLY_SYM_VALUE): Define.
210 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
211 (md_apply_fix3): Remove code to subtract abs sym.
212 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
213 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
214 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
215 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
216 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
217 (tc_fix_adjustable): Remove extern, weak tests.
218 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
219 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
220 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
221 and code to subtract abs sym.
222 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
223 (d10v_force_relocation): Call S_FORCE_RELOC.
224 * config/tc-d10v.h: Don't include write.h.
225 (struct fix): Instead, forward declare.
226 (MD_PCREL_FROM_SECTION): Tweak param names.
227 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
228 (d10v_fix_adjustable): Likewise.
229 (obj_fix_adjustable): Don't define.
230 (tc_fix_adjustable): Define.
231 (TC_FORCE_RELOCATION): Tweak param name.
232 (MD_APPLY_SYM_VALUE): Define.
233 (EXTERN_FORCE_RELOC): Define.
234 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
235 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
236 and code to subtract abs sym.
237 * config/tc-d30v.h: Don't include write.h.
238 (struct fix): Instead, forward declare.
239 (MD_PCREL_FROM_SECTION): Tweak param names.
240 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
241 (MD_APPLY_SYM_VALUE): Define.
242 (EXTERN_FORCE_RELOC): Define.
243 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
244 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
245 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
246 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
247 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
248 Don't use fx_addnumber.
249 * config/tc-dlx.h: Don't include write.h.
250 (md_convert_frag): We're not alpha twice over.
251 (EXTERN_FORCE_RELOC): Define.
252 (obj_fix_adjustable): Don't define.
253 (tc_fix_adjustable): Define.
254 (TC_FIX_ADJUSTABLE): Don't define.
255 (MD_APPLY_SYM_VALUE): Define.
256 (LOCAL_LABELS_DOLLAR): Undef always.
257 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
258 (fr30_fix_adjustable): Remove extern, weak tests.
259 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
260 (obj_fix_adjustable): Don't define.
261 (tc_fix_adjustable): Define.
262 (struct fix): Forward declare.
263 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
264 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
265 (frv_fix_adjustable): Don't do extern, weak tests.
266 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
267 (TC_FIX_ADJUSTABLE): Don't define.
268 (obj_fix_adjustable): Don't define.
269 (tc_fix_adjustable): Define.
270 (struct fix): Forward declare.
271 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
272 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
273 * config/tc-h8300.h (struct fix): Forward declare.
274 (EXTERN_FORCE_RELOC): Define.
275 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
276 (hppa_fix_adjustable): Don't test extern or weak. Don't
277 symbol_mark_used_in_reloc.
278 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
279 and S_IS_WEAK.
280 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
281 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
282 (TC_FORCE_RELOCATION_SECTION): Don't define.
283 (MD_APPLY_SYM_VALUE): Define.
284 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
285 to subtract abs sym.
286 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
287 (MD_APPLY_SYM_VALUE): Define.
288 (MD_PCREL_FROM_SECTION): Tweak param name.
289 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
290 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
291 (i386_force_relocation): New function.
292 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
293 (TC_VALIDATE_FIX): Likewise.
294 (TC_FIX_ADJUSTABLE): Don't define.
295 (MD_APPLY_SYM_VALUE): Define.
296 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
297 (i386_force_relocation): Declare.
298 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
299 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
300 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
301 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
302 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
303 (EXTERN_FORCE_RELOC): Define.
304 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
305 (md_apply_fix3): Don't cast valP pointer type. Move code here from
306 old fixup_segment. No need to test fx_pcrel before setting fx_done.
307 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
308 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
309 Remove #if 0 code. Invert return boolean.
310 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
311 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
312 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
313 (tc_coff_sizemachdep): Prototype.
314 (i960_handle_align): Likewise.
315 (i960_validate_fix): Adjust declaration.
316 (reloc_callj): Likewise.
317 (EXTERN_FORCE_RELOC): Define.
318 (TC_FORCE_RELOCATION_SUB_SAME): Define.
319 (TC_FORCE_RELOCATION_ABS): Define.
320 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
321 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
322 (TC_FIX_ADJUSTABLE): Don't define.
323 (MD_APPLY_SYM_VALUE): Define.
324 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
325 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
326 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
327 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
328 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
329 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
330 (MD_APPLY_SYM_VALUE): Define.
331 (EXTERN_FORCE_RELOC): Define.
332 (TC_FORCE_RELOCATION): Tweak param name.
333 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
334 (m32r_fix_adjustable): Don't test extern, weak.
335 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
336 (MD_APPLY_SYM_VALUE): Define.
337 (obj_fix_adjustable): Don't define.
338 (tc_fix_adjustable): Define.
339 (tc_frob_file): Don't define.
340 (tc_frob_file_before_fix): Define.
341 (EXTERN_FORCE_RELOC): Define.
342 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
343 BFD_RELOC_VTABLE_ENTRY address.
344 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
345 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
346 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
347 Remove duplicated fx_done code.
348 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
349 (EXTERN_FORCE_RELOC): Define.
350 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
351 relaxable_symbol.
352 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
353 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
354 (TC_FIX_ADJUSTABLE): Don't define.
355 (EXTERN_FORCE_RELOC): Define.
356 (MD_APPLY_SYM_VALUE): Define.
357 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
358 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
359 Remove fx_addsy tests.
360 (mcore_force_relocation): Call S_FORCE_RELOC.
361 (mcore_fix_adjustable): Don't test fx_addsy.
362 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
363 (EXTERN_FORCE_RELOC): Define.
364 (obj_fix_adjustable): Don't define.
365 (tc_fix_adjustable): Define.
366 (MD_APPLY_SYM_VALUE): Define.
367 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
368 (mips_pic): No longer static.
369 (mips_force_relocation): Call S_FORCE_RELOC.
370 (mips_fix_adjustable): Remove extern, weak tests.
371 * config/tc-mips.h (enum mips_pic_level): Declare.
372 (mips_pic): Declare.
373 (tc_frob_file): Don't define.
374 (tc_frob_file_before_fix): Define this instead.
375 (EXTERN_FORCE_RELOC): Define.
376 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
377 with reg_section tests. Set fx_done instead of calling
378 symbol_clear_used_in_reloc on bad relocs.
379 (tc_gen_reloc): Zero fx_addsy on bad relocs.
380 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
381 (mmix_adjust_symtab): Simplify list handling. Abort on any
382 nonsense.
383 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
384 BFD_RELOC_MMIX_LOCAL.
385 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
386 (EXTERN_FORCE_RELOC): Define.
387 (MD_PCREL_FROM_SECTION): Tweak param name.
388 (tc_frob_file): Don't define.
389 (tc_frob_file_before_fix): Define this instead.
390 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
391 Remove SEC_CODE checks.
392 (mn10300_fix_adjustable): Remove extern and weak tests.
393 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
394 (TC_FORCE_RELOCATION): Tweak param name.
395 (obj_fix_adjustable): Don't define.
396 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
397 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
398 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
399 (openrisc_fix_adjustable): Don't test fx_addsy.
400 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
401 (obj_fix_adjustable): Don't define.
402 (tc_fix_adjustable): Define this instead.
403 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
404 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
405 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
406 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
407 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
408 (MD_APPLY_SYM_VALUE): Define.
409 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
410 Don't subtract symbol value.
411 * config/tc-pj.h (md_pcrel_from): Tweak param name.
412 (EXTERN_FORCE_RELOC): Define.
413 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
414 (MD_APPLY_SYM_VALUE): Define.
415 (obj_fix_adjustable): Don't define.
416 (tc_fix_adjustable): Define this instead.
417 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
418 section sym.
419 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
420 (ppc_force_relocation <elf version>): New.
421 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
422 (md_apply_fix3): Don't subtract symbol values for ELF. Update
423 comments. Don't subtract fx_subsy as that is already done.
424 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
425 (MD_PCREL_FROM_SECTION): Likewise.
426 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
427 ppc_force_relocation.
428 (TC_FORCE_RELOCATION_SECTION): Delete.
429 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
430 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
431 (MD_APPLY_SYM_VALUE): Define.
432 * config/tc-s390.c: #include "dwarf2dbg.h".
433 (s390_insn): Remove excess parens.
434 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
435 (tc_s390_force_relocation): Call S_FORCE_RELOC.
436 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
437 non-NULL. Don't subtract off fx_addsy value.
438 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
439 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
440 (TC_FIX_ADJUSTABLE): Don't define.
441 (MD_APPLY_SYM_VALUE): Define.
442 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
443 (SWITCH_TABLE): Likewise.
444 (sh_force_relocation): Call S_FORCE_RELOC.
445 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
446 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
447 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
448 fx_addnumber is zero on entry. Save val in fx_addnumber.
449 (tc_gen_reloc): Don't subtract fx_subsy.
450 * config/tc-sh.h (struct fix): Move.
451 (obj_fix_adjustable): Don't define.
452 (tc_fix_adjustable): Define this instead.
453 (TC_FIX_ADJUSTABLE): Don't define.
454 (MD_APPLY_SYM_VALUE): Define.
455 (SWITCH_TABLE_CONS): Define.
456 (SWITCH_TABLE): Define.
457 (TC_FORCE_RELOCATION_SUB_SAME): Define.
458 (TC_VALIDATE_FIX_SUB): Define.
459 (MD_PCREL_FROM_SECTION): Tweak param name.
460 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
461 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
462 (TC_FORCE_RELOCATION_SUB_ABS): Define.
463 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
464 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
465 (TC_FORCE_RELOCATION_SUB_SAME): Define.
466 (TC_VALIDATE_FIX_SUB): Define.
467 (MD_PCREL_FROM_SECTION): Tweak param name.
468 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
469 (tc_gen_reloc): Use S_FORCE_RELOC.
470 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
471 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
472 (TC_FORCE_RELOCATION_ABS): Define this instead.
473 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
474 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
475 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
476 (MD_APPLY_SYM_VALUE): Define.
477 (TC_FIX_DATA_PRINT): Tweak param name.
478 * config/tc-tic30.c (USE_STDOUT): Don't define.
479 (md_parse_option): Remove stupid debug code.
480 (tc_gen_reloc): Don't use fx_addnumber.
481 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
482 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
483 * config/tc-v850.h (obj_fix_adjustable): Don't define.
484 (tc_fix_adjustable): Define this instead.
485 (TC_FIX_ADJUSTABLE): Don't define.
486 (MD_APPLY_SYM_VALUE): Define this instead.
487 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
488 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
489 (TC_FIX_ADJUSTABLE): Don't define.
490 (MD_APPLY_SYM_VALUE): Define this instead.
491 (tc_fix_adjustable): Remove extern and weak tests.
492 * config/tc-w65.h (struct fix): Forward declare.
493 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
494 S_FORCE_RELOC.
495 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
496 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
497 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
498 absolute symbol.
499 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
500 (MD_APPLY_SYM_VALUE): Define.
501 (obj_fix_adjustable): Don't define.
502 (tc_fix_adjustable): Define this instead.
503 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
504
505 2002-09-04 Alan Modra <amodra@bigpond.net.au>
506
507 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
508 (ppc_fix_adjustable <coff version>): Cleanup.
509
510 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
511 (md_parse_option): No -a64 without BFD64.
512 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
513 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
514
515 2002-09-04 Nick Clifton <nickc@redhat.com>
516
517 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
518 instructions into the hash table if the target cpu is the BookE32.
519
520 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
521
522 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
523 ATTRIBUTE_UNUSED.
524
525 2000-08-28 Catherine Moore <clm@redhat.com>
526
527 * tc-v850.c (v850_relax): Declare.
528 (v850_longcode): New routine.
529 (v850_handle_align): New routine.
530 (md_pseudo_table): Add longcall and longjump.
531 (md_parse_option): Check for relax option.
532 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
533 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
534 (md_apply_fix3): Likewise.
535 (v850_force_relocation): Likewise.
536 (v850_comm): Change the current section.
537 (md_assemble): Ensure that the correct value is put in the
538 fixup.
539 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
540 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
541 Remove redundant v850ea support.
542 * tc-v850.h (HANDLE_ALIGN): Define.
543 (v850_handle_align): Declare.
544 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
545
546 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
547
548 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
549 * configure: Regenerate.
550 * NEWS: Mention new port.
551
552 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
553
554 * config/obj-coff.c: Add sdef definition.
555 * config/obj-coff.h: Add tic4x include file and set
556 target format.
557 * config/tc-tic4x.c: New file.
558 * config/tc-tic4x.h: New file.
559
560 2002-08-28 Alan Modra <amodra@bigpond.net.au>
561
562 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
563 (TC_ADJUST_RELOC_COUNT): Tweak param name.
564 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
565 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
566 (RELOC_ENUM): Define.
567 (fix_new_internal): Use RELOC_ENUM.
568 (fix_new, fix_new_exp): Likewise.
569 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
570 Replace gotos with continue.
571 (write_relocs): Formatting. Avoid symbol loops in
572 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
573 errors, and error number in other cases.
574 (fixup_segment): Remove param names from prototype. Rename
575 "this_segment_type" to "this_segment". Update linkrelax comment.
576 Remove "size, "place" and "where" local vars. Formatting. Update
577 "no symbol" comment. Remove #if 0 and #if 1.
578
579 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
580
581 2002-08-27 Alan Modra <amodra@bigpond.net.au>
582
583 * dwarf2dbg.c: Always include dwarf2dbg.h.
584 (dwarf2_directive_file): Adjust dummy version args.
585 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
586 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
587 when symbol values differ.
588 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
589 (pseudo_set <O_subtract>): Remove unnecessary segment test.
590 * config/obj-bout.c (obj_pseudo_table): Warning fix.
591
592 2002-08-26 Alan Modra <amodra@bigpond.net.au>
593
594 * config/tc-w65.c (md_section_align): Fix typo.
595 (md_parse_option): Return 0, not 1.
596
597 2002-08-22 Nick Clifton <nickc@redhat.com>
598
599 * doc/as.texinfo (Section): Note that if '@' is a comment
600 character then another symbol is used to prefix the section's
601 type.
602
603 2002-08-22 Christian Groessler <chris@groessler.org>
604
605 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
606 "case 0" case.
607
608 2002-08-12 Graeme Peterson <gp@qnx.com>
609
610 * configure.in: Add support for sh-**-nto* target.
611 * configure: Regenerate.
612
613 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
614
615 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
616
617 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
618
619 * config/tc-ppc.c (ppc_cleanup): Do something only if format
620 is ELF.
621 (ppc_apuinfo_section_add): Define only if format is ELF.
622 (md_assemble): Emit APUinfo section only if format is ELF.
623 Fix formatting.
624
625 2002-08-21 Alan Modra <amodra@bigpond.net.au>
626
627 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
628 * config/tc-frv.c: Likewise.
629 * config/tc-hppa.c: Likewise.
630 * config/tc-ia64.c: Likewise.
631 * config/tc-ip2k.c: Likewise.
632 * config/tc-m68hc11.c: Likewise.
633 * config/tc-m68k.c: Likewise.
634 * config/tc-mmix.c: Likewise.
635 * config/tc-mn10300.c: Likewise.
636 * config/tc-sh.c: Likewise.
637 * config/tc-sparc.c: Likewise.
638 * config/tc-v850.c: Likewise.
639
640 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
641
642 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
643 by zero.
644
645 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
646
647 From matthew green <mrg@redhat.com>
648
649 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
650 PPC_OPCODE_PPC is, except for BookE architectures.
651 (md_parse_option): Add support for -mspe.
652 (md_show_usage): Add -mspe.
653 (md_parse_option): Add support for -me500 and
654 -me500x2 to generate code for Motorola e500 core complex.
655 (md_show_usage): Add -me500 and -me500x2.
656
657 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
658 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
659 PPC_APUINFO_BRLOCK): New macros.
660
661 (ppc_cleanup): New function.
662 (ppc_apuinfo_section_add): New function.
663 (APUID): New macro.
664 (md_assemble): Collect info and write the APUinfo section.
665
666 * config/tc-ppc.h (md_cleanup): Define.
667 (ppc_cleanup): Export.
668 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
669
670 2002-08-17 Stan Cox <scox@redhat.com>
671
672 * config/obj-elf.c (obj_elf_change_section): Make non-static.
673 config/tc-mips.c (s_change_section): New function to support
674 IRIX .section pseudo-op.
675
676 2002-08-16 Nick Clifton <nickc@redhat.com>
677
678 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
679
680 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
681
682 * config/tc-mips.c (macro_build_jalr): Make sure we generate
683 the fix-up against on the right frag.
684 (s_cpsetup): Likewise. Parse third argument as expression, to
685 handle global symbols and forward/backward labels correctly.
686
687 2002-08-14 Nick Clifton <nickc@redhat.com>
688
689 * read.c (stringer): Catch attempts to create strings in the abs
690 section.
691
692 * config/tc-alpha.c: Fix compiling for COFF targets.
693 Some minor formatting tidyups.
694
695 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
696
697 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
698 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
699 according to the reloc.
700 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
701 (TC_FORCE_RELOCATION): Define.
702 (tc_m68hc11_force_relocation): Declare.
703
704 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
705 (s_m68hc11_relax): New function for relax group.
706 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
707 beginning of jump instruction.
708 (md_pcrel_from): Rename from md_pcrel_from_section and fix
709 address computation.
710 (tc-gen_reloc): Update.
711 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
712 PC-relative fixup.
713 (tc_m68hc11_force_relocation): New function, handle new relocs.
714 (tc_m68hc11_fix_adjustable): New to make sure there are enough
715 reloc for the linker relax pass.
716 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
717 and VTABLE relocs.
718
719 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
720
721 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
722 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
723 (s_m68hc11_mode): New function for .mode pseudo op.
724 (s_m68hc11_mark_symbol): New function for .far and .interrupt
725 pseudo op.
726 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
727 (m68hc11_elf_final_processing): Declare.
728
729 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
730
731 * config/tc-m68hc11.c (md_begin): Take into account additional
732 page operand for call instruction.
733 (print_opcode_format): Likewise.
734 (check_range): Likewise for page range checking.
735 (get_operand): Don't skip a possible comma in operands.
736 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
737 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
738 (fixup24): New to handle call reloc.
739 (build_insn): Handle missing page operand for call instruction.
740 (find): Likewise.
741 (md_apply_fix3): Take into account new relocs.
742 (get_operand): Fix the mode for indexed indirect addressing.
743 (build_indexed_byte): Fix post index byte for indexed indirect mode.
744
745 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
746
747 * config/tc-mips.c (mips_ip): Don't work out the value of
748 constant %hi()s here.
749
750 2002-08-10 Alan Modra <amodra@bigpond.net.au>
751
752 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
753 for ELF, and don't bother checking ELF relocs when non-ELF.
754 (i386_immediate): Allow absolute_section expressions for aout.
755 (i386_displacement): Likewise. Also test bfd_is_com_section.
756 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
757 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
758 not when fx_addsy. Remove dead code.
759
760 2002-08-09 Graeme Peterson <gp@qnx.com>
761
762 * configure.in: Add support for ppc-*-nto* target.
763 * configure: Regenerate.
764
765 2002-08-09 Alan Modra <amodra@bigpond.net.au>
766
767 * config/tc-i386.h: Reorganize.
768
769 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
770
771 * config/tc-mips.c (macro): Handle a register plus a 16-bit
772 immediate offset in "dla" and "la" expansions.
773
774 2002-08-09 Alan Modra <amodra@bigpond.net.au>
775
776 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
777 Remove "bfd_gas=yes" from target table when covered later.
778 Consolidate some entries.
779 * configure: Regenerate
780
781 2002-08-09 Jakub Jelinek <jakub@redhat.com>
782
783 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
784 at start of insn, pass it to output_disp and output_imm.
785 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
786 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
787 properly addend.
788 (output_imm): Added arguments. Compute properly addend for
789 R_386_GOTPC.
790 (md_apply_fix3): Remove R_386_GOTPC handling.
791 * testsuite/gas/i386/gotpc.s: New.
792 * testsuite/gas/i386/gotpc.d: New.
793 * testsuite/gas/i386/i386.exp: Add gotpc test.
794
795 2002-08-06 George France <france@handhelds.org>
796
797 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
798 and m21264b processor names and cpu types.
799 * doc/c-alpha.texi: Documented new types.
800
801 2002-08-06 Alan Modra <amodra@bigpond.net.au>
802
803 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
804
805 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
806
807 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
808 handling to BFD_RELOC_MIPS16_GPREL.
809
810 2002-08-01 Nick Clifton <nickc@redhat.com>
811
812 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
813 pool is computed using signed arithmetic so that proper sign
814 extension is performed if X_add_number is a 64-bit integer.
815
816 2002-08-01 H.J. Lu <hjl@gnu.org>
817 Daniel Jacobowitz <drow@mvista.com>
818
819 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
820 .debug_line section unless it has line information.
821
822 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
823
824 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
825 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
826 Allow default displacement size to be an option "--disp-size-default".
827 (md_number_to_disp): Make error messages include value. Use %d to
828 print integers, not %s.
829 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
830 get duplicate messages sometimes.
831 (convert_iif): Grow frag to max possible instruction size. Avoid
832 creating unnecessary fixes.
833 (md_number_to_field) Add prototype.
834 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
835 prototypes and make static.
836 (struct addr_mode): Make mode and scaled_mode explicitly signed.
837 (evaluate_expr): Use resultP argument instead of exprP global.
838 (get_addr_mode): Quiten compiler warnings.
839 (encode_operand): eliminate unused variables. Quiten compiler
840 warnings. Eliminate nul character in format strings.
841 (parse): argc is unsigned.
842 (reloc): Type cast index to quieten compiler.
843 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
844 (md_convert_frag): Note unused parameters. Remove unused
845 variables.
846 (md_create_long_jump, md_create_short_jump,
847 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
848 unused parameters.
849
850 2002-07-31 Nick Clifton <nickc@redhat.com>
851
852 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
853 of the PDP-11 and 2.11BSD a.out support.
854
855 2002-07-31 Momchil Velikov <velco@fadata.bg>
856
857 * config/tc-v850.c (md_assemble): Fix range check for immediate
858 operand.
859
860 2002-07-30 Chris Demetriou <cgd@broadcom.com>
861
862 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
863 to Broadcom SB-1 core support.
864
865 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
866
867 * config/tc-mips.c (mips_target_format): Fix formatting.
868 Add recognition of n32 ABI formats.
869
870 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
871
872 * tc-mips.c (load_address): Don't clobber $at when loading a
873 64-bit address in non-PIC code if noat is in effect.
874 (macro): Likewise.
875
876 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
877
878 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
879 used in division/multiply macro expansions similarly to how they
880 are used in the variants with break instructions.
881 (macro2): Likewise.
882
883 2002-07-30 Graeme Peterson <gp@qnx.com>
884
885 * configure.in: Add support for arm-*-nto target.
886 * configure: Regenerate.
887
888 2002-07-30 Nick Clifton <nickc@redhat.com>
889
890 * config/tc-arm.c (struct literal_pool): Add fields to allow
891 multiple literal pools to be maintained.
892 (find_literal_pool): New function.
893 (find_or_make_literal_pool): New function.
894 (add_to_literal_pool): Use find_or_make_literal_pool.
895 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
896 needed.
897 (s_ltorg): Use find_literal_pool.
898 (arm_cleanup): Dump all literal pools.
899 * doc/c-arm.texi: Document new behaviour of only dumping literal
900 pools upon request.
901
902 2002-07-26 Alan Modra <amodra@bigpond.net.au>
903
904 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
905 rather than PPC_OPCODE_32 for powerpc64*.
906
907 2002-07-25 Nick Clifton <nickc@redhat.com>
908
909 * po/es.po: Updated Spanish translation.
910 * po/fr.po: Updated French translation.
911
912 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
913
914 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
915 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
916 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
917 * configure, config.in: Regenerate.
918 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
919 (mips_set_options): Remove "abi" field.
920 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
921 with mips_abi.
922 (mips_cpu): Remove.
923 (mips_arch_string, mips_arch_info): New vars.
924 (mips_tune_string, mips_tune_info): New vars.
925 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
926 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
927 (mips_isa_to_str, mips_cpu_to_str): Remove.
928 (mips_ip): If the selected architecture is a generic ISA rather
929 than a processor, only mention the ISA level in error messages.
930 (OPTION_MCPU): Remove.
931 (OPTION_FP64): New.
932 (md_longopts): Add -mfp64, remove -mcpu.
933 (mips_set_option_string): New fn.
934 (md_parse_option): Make -mipsN update file_mips_isa rather than
935 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
936 Don't let -mgp32 and -mfp32 change the ABI.
937 (show): Move to end of file. Constify string argument.
938 (md_show_usage): Move to the end of the file. Read available
939 architectures from mips_cpu_info_table.
940 (mips_set_architecture): New fn.
941 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
942 is an alias for -march=mipsN. Don't change the ABI based on other
943 flags. Infer the register size from the ABI as well as the
944 architecture. Complain about more conflicting arguments.
945 Unify logic with GCC.
946 (s_mipsset): Don't change the ABI.
947 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
948 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
949 "mipsN"-type entries. Remove entries that vary only in the
950 manufacturer's prefix, or that have "000" replaced by "k".
951 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
952 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
953 (mips_parse_cpu): New fn.
954 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
955 (mips_cpu_info_from_isa): Minor formatting tweak.
956
957 2002-07-24 Nick Clifton <nickc@redhat.com>
958
959 * po/sv.po: Updated Swedish translation.
960 * po/es.po: Updated Spanish translation.
961
962 2002-07-23 Alan Modra <amodra@bigpond.net.au>
963
964 * Makefile.am: Run "make dep-am".
965 * Makefile.in: Regenerate.
966 * doc/Makefile.in: Regenerate.
967 * config.in: Regenerate.
968 * po/POTFILES.in: Regenerate.
969
970 2002-07-23 Nick Clifton <nickc@redhat.com>
971
972 * po/fr.po: Updated French translation.
973
974 2002-07-23 Nick Clifton <nickc@redhat.com>
975
976 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
977 GAS.
978
979 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
980
981 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
982 instead of S_IS_EXTERN.
983 (md_estimate_size_before_relax): Likewise.
984 (mips_fix_adjustable): Likewise.
985
986 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
987
988 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
989
990 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
991 Nick Clifton <nickc@redhat.com>
992
993 * cond.c (s_ifdef): Treat a referenced but not yet defined
994 symbol as if it were undefined, in exactly the same way as
995 .equiv.
996
997 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
998 consider referenced bug not yet defined symbols to be
999 undefined.
1000
1001 2002-07-18 Denis Chertykov <denisc@overta.ru>
1002 Frank Ch. Eigler <fche@redhat.com>
1003 Alan Lehotsky <alehotsky@cygnus.com>
1004 John Healy <jhealy@redhat.com>
1005 Jeff Johnston <jjohnstn@redhat.com>
1006
1007 * configure.in: Add ip2k configuraton.
1008 * configure: Regenerate.
1009 * Makefile.am: Add ip2k configuraton.
1010 * Makefile.in: Regenerate.
1011 * configure: Regenerate.
1012 * Makefile.in: Regenerate.
1013 * config/tc-ip2k.c: New file.
1014 * config/tc-ip2k.h: New files.
1015 * NEWS: Mention new support.
1016 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1017 * doc/Makefile.in: Regenerate.
1018 * doc/all.texi: Set IP2K
1019 * doc/as.texinfo: Add IP2K description.
1020 * doc/c-ip2k.texi: New file.
1021
1022 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1023
1024 * NEWS: Reformat to match style of other NEWS files.
1025
1026 2002-07-17 Jan Hubicka <jh@suse.cz>
1027
1028 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1029
1030 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
1031
1032 * config/tc-z8k.c (build_bytes): Correct order of memset args.
1033
1034 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1035
1036 * NEWS: Add 'Changes in 2.13'.
1037
1038 2002-07-15 Matt Fredette <fredette@netbsd.org>
1039
1040 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1041
1042 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1043
1044 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1045 case with non CODE_64BIT case. Don't warn on "qword ptr" if
1046 not CODE_64BIT.
1047
1048 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1049
1050 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1051 (ppc_frob_file_before_adjust): New function.
1052 * config/tc-ppc.h (tc_frob_symbol): Don't define.
1053 (ppc_elf_frob_symbol): Don't declare.
1054 (tc_frob_file_before_adjust): Define.
1055 (ppc_frob_file_before_adjust): Declare.
1056
1057 * config/tc-ppc.c (md_pseudo_table): Warning fix.
1058 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1059 flags.
1060 (ppc_size): Delete.
1061 (ppc_xcoff64): Rename to ppc_obj64.
1062 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1063 (ppc_set_cpu): Set PPC_OPCODE_32 too.
1064 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1065 or bfd_mach_ppc.
1066 (ppc_target_format): Use ppc_obj64 to select format.
1067 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1068 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1069 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
1070 (tc_frob_symbol): Likewise.
1071 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
1072 BFD_DEFAULT_TARGET_SIZE.
1073 (ppc_tc): Likewise.
1074 (ppc_is_toc_sym): Likewise.
1075 (md_apply_fix3): Likewise.
1076 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1077 BFD_DEFAULT_TARGET_SIZE.
1078 (ELF_TC_SPECIAL_SECTIONS): Likewise.
1079 (tc_frob_symbol): Likewise.
1080
1081 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1082
1083 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1084 (mips_ip): Likewise.
1085
1086 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1087
1088 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1089 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1090 (md_apply_fix3): Formatting. Remove redundant test.
1091 (tc_gen_reloc): Remove redundant code.
1092 (tc_i386_force_relocation): Delete. Movy body of function to..
1093 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1094
1095 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1096
1097 * configure.in: Add hppa-*-openbsd* target, change
1098 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1099 with sparc64 cpu.
1100 * configure: Regenerate.
1101
1102 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1103
1104 * config/tc-mips.c (macro): Shift the 32-bit address range
1105 accessible with a lone "lui" down by 32768.
1106
1107 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1108
1109 * config/tc-mips.c (load_address): Use non-trapping "daddu"
1110 instead of "dadd" in address calculations.
1111 (macro): Likewise.
1112
1113 2002-07-08 Alan Modra <amodra@bigpond.net.au>
1114
1115 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1116 movzx fudges.
1117 (md_assemble): Instead, zap the suffix here.
1118
1119 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1120
1121 * NEWS: Remove next release number until the release is actually
1122 upon us.
1123
1124 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1125
1126 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1127 Run "make dep-am".
1128 * Makefile.in: Regenerate.
1129
1130 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
1131
1132 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1133 to symbols in merge sections, even non pc-relative ones.
1134
1135 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1136
1137 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1138
1139 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1140
1141 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1142 .softregs and .eeprom.
1143
1144 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1145
1146 * NEWS: Note the next release is 2.13.
1147
1148 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
1149
1150 * po/tr.po: New translation imported.
1151
1152 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
1153
1154 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1155 (ecoff_directive_def): Likewise.
1156 (ecoff_directive_tag): Likewise.
1157 * listing.c (file_info): Likewise.
1158 * hash.c (what): Likewise.
1159
1160 2002-06-25 H.J. Lu <hjl@gnu.org>
1161
1162 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1163 * Makefile.in: Regenerated.
1164
1165 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1166
1167 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1168 (assemble_ppi): Generate warning if the same register is used
1169 twice as destination in the same padd / pmuls instruction.
1170
1171 2002-06-18 Dave Brolley <brolley@redhat.com>
1172
1173 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
1174 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1175 * configure.in: Support frv-*-*.
1176 * Makefile.am (CPU_TYPES): Add frv.
1177 (TARGET_CPU_CFILES): Add tc-frv.c.
1178 (TARGET_CPU_HFILES): Add tc-frv.h.
1179 (DEPTC_frv_coff): New variable.
1180 (DEPTC_frv_elf): New variable.
1181 (DEPOBJ_frv_coff): New variable.
1182 (DEPOBJ_frv_elf): New variable.
1183 (DEP_frv_coff): New variable.
1184 (DEP_frv_elf): New variable.
1185 * tc-frv.c: New file.
1186 * tc-frv.h: New file.
1187
1188 2002-06-17 Catherine Moore <clm@redhat.com>
1189
1190 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
1191
1192 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1193
1194 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1195
1196 2002-06-17 Tom Rix <trix@redhat.com>
1197
1198 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1199
1200 2002-06-14 H.J. Lu <hjl@gnu.org>
1201 Daniel Jacobowitz <drow@mvista.com>
1202
1203 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1204 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1205 * config/tc-mips.c (s_mips_file): Call s_app_file_string
1206 and new_logical_line for the first .file directive.
1207 * read.c (s_app_file_string): New function.
1208 (s_app_file): Call it.
1209 * read.h (s_app_file_string): Add declaration.
1210
1211 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1212
1213 * configure.in: Remove MIPS_STABS_ELF.
1214 * configure: Regenerated.
1215 * config.in: Regenerated.
1216 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1217 for MIPS targets.
1218 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1219 ".extern".
1220 (pdr_seg): Declare unconditionally.
1221 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1222 (s_mips_end): Likewise. Generate stabs function markers.
1223 (s_mips_ent): Generate stabs function markers.
1224 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1225 ELF.
1226 (s_mips_mask): Likewise.
1227 (mips_flag_mdebug): New.
1228 (md_longopts): Add "mdebug" and "no-mdebug".
1229 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1230 (mips_after_parse_args): Set mips_flag_mdebug.
1231 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1232
1233 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1234
1235 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1236 value twice for RELA relocations.
1237
1238 2002-06-12 Ben Elliston <bje@redhat.com>
1239
1240 * symbols.c (resolve_symbol_value): Initialise final_val.
1241
1242 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1243
1244 2002-06-11 Tom Rix <trix@redhat.com>
1245
1246 * config/tc-ppc.c (ppc_subseg_align): Delete.
1247 (ppc_change_csect): Default csect align is 2.
1248 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
1249
1250 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1251
1252 * config/tc-avr.c (mcu_types): Update.
1253
1254 2002-06-08 Matt Thomas <matt@3am-software.com>
1255
1256 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1257 (vax-*-netbsd*): New targets.
1258 * configure: Regenerate.
1259 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
1260 * config/tc-vax.c: Add support for ELF and PIC.
1261 (flag_want_pic): New flag.
1262 (float_cons): Fix prototype.
1263 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
1264 (md_assemble): Introduce a new is_absolute local, and use it
1265 rather than repeating the test. Make fatal errors actually
1266 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
1267 Add support for ELF. Add support for PIC.
1268 (md_convert_frag): Adjust for BFD_ASSEMBLER.
1269 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1270 BFD_ASSEMBLER.
1271 (vax_reg_parse): Make the % register prefix mandatory for ELF,
1272 optional for a.out, and not allowed for VMS. Adjust all callers.
1273 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
1274 (md_create_long_jump): Likewise.
1275 (md_undefined_symbol): Likewise.
1276 (md_section_align): Likewise.
1277 (md_shortopts): Allow -k and -K for ELF.
1278 (md_parse_option): Set flag_want_pic if -k or -K.
1279 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
1280 (tc_gen_reloc): New function if BFD_ASSEMBLER.
1281 * config/tc-vax.h (tc_headers_hook): Remove.
1282 (TARGET_FORMAT): Set according to object format and target
1283 environment.
1284 (BFD_ARCH, TARGET_ARCH): Define.
1285 (NO_RELOC): Adjust for BFD_ASSEMBLER.
1286 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
1287 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
1288 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
1289
1290 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1291
1292 * Makefile.am: Run "make dep-am".
1293 * Makefile.in: Regenerate.
1294
1295 * as.c: Replace CONST with const.
1296 * write.c: Likewise.
1297 * config/obj-coff.c: Likewise.
1298 * config/tc-a29k.c: Likewise.
1299 * config/tc-arm.c: Likewise.
1300 * config/tc-dlx.c: Likewise.
1301 * config/tc-h8300.c: Likewise.
1302 * config/tc-h8500.c: Likewise.
1303 * config/tc-i370.c: Likewise.
1304 * config/tc-i860.c: Likewise.
1305 * config/tc-i960.c: Likewise.
1306 * config/tc-m68hc11.c: Likewise.
1307 * config/tc-m68k.c: Likewise.
1308 * config/tc-m88k.c: Likewise.
1309 * config/tc-mcore.c: Likewise.
1310 * config/tc-mips.c: Likewise.
1311 * config/tc-ns32k.c: Likewise.
1312 * config/tc-pdp11.c: Likewise.
1313 * config/tc-pj.c: Likewise.
1314 * config/tc-s390.c: Likewise.
1315 * config/tc-sh.c: Likewise.
1316 * config/tc-sparc.c: Likewise.
1317 * config/tc-tahoe.c: Likewise.
1318 * config/tc-tic80.c: Likewise.
1319 * config/tc-v850.c: Likewise.
1320 * config/tc-vax.c: Likewise.
1321 * config/tc-w65.c: Likewise.
1322 * config/tc-z8k.c: Likewise.
1323
1324 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
1325
1326 Based on patch from Matt Green:
1327 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
1328 * config/tc-mips.c (s_mips_file): Renamed from s_file.
1329 (s_mips_loc): New function.
1330 (mips_nonecoff_pseudo_table): Call them.
1331 (append_insn): Call dwarf2_emit_insn.
1332
1333 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1334
1335 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
1336 to -1.
1337 (file_ase_mips16): New veriable.
1338 (mips_eabi64): Remove.
1339 (CPU_HAS_MIPS16): New define.
1340 (CPU_HAS_MDMX): Fix data type.
1341 (md_begin): Code cleanup. Use file_ase_mips16.
1342 (mips_elf_final_processing): Handle mips16 header flag.
1343 Handle EABI flag without intermediate variable.
1344
1345 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1346
1347 * doc/as.texinfo: Update MIPS documentation.
1348
1349 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1350
1351 * config/tc-mips.c: Add define for $zero register.
1352 (md_begin): Add $zero as alias name for $0.
1353 (insn_uses_reg): Use ZERO define.
1354 (mips_ip): Add $zero as alias name for $0.
1355 (mips16_ip): Likewise.
1356 (s_cplocal): Demand empty rest of input line.
1357 (tc_get_register): Likewise. Add support for $kt0, kt1 register
1358 names. Use ZERO define. Fix input_line_pointer progress.
1359
1360 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1361
1362 * symbols.c: Replace CONST by const throughout.
1363 (symbol_find_exact): Split out from..
1364 (symbol_find_base): ..here.
1365 * symbols.h: Replace CONST by const throughout.
1366 (symbol_find_exact): Declare.
1367 * config/obj-elf.c: #include "struc-symbol.h".
1368 (elf_frob_file): If group name matches an exported symbol, use that
1369 symbol for the signature and ".group" as the section name.
1370
1371 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
1372
1373 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
1374 but warn about it.
1375 * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
1376 * testsuite/gas/sh/pcrel.d: Update.
1377 * testsuite/gas/sh/pcrel.l: New file.
1378
1379 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
1380
1381 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
1382 and mips_opts.ase_mdmx if they are uninitialized.
1383
1384 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1385
1386 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
1387 (hppa_force_relocation): Check if a stub just before the start symbol
1388 of the last call_info is reachable before forcing relocation. Fix
1389 typo.
1390
1391 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1392
1393 * config/tc-mips.c (mips_after_parse_args): New function.
1394 (md_begin): Move processing of defaults to mips_after_parse_args.
1395 config/tc-mips.h (md_after_parse_args): Define.
1396
1397 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1398
1399 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
1400 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
1401 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
1402 * configure: Regenerate.
1403 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
1404 environment.
1405
1406 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1407
1408 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
1409
1410 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1411
1412 * config/obj-elf.c (obj_elf_change_section): Set and check elf
1413 linkonce flag. Print all warnings.
1414 (obj_elf_section): Parse ",comdat" for groups.
1415 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
1416 consistency of comdat flag.
1417
1418 2002-06-02 Richard Henderson <rth@redhat.com>
1419
1420 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
1421 with LITERALs without sequence numbers.
1422
1423 2002-06-01 Richard Henderson <rth@redhat.com>
1424
1425 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
1426 Rename them LITUSE_ALPHA_*.
1427
1428 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
1429
1430 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
1431 accept parentheses enclosed register lists.
1432
1433 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1434
1435 * Makefile.am: Run "make dep-am".
1436 * Makefile.in: Regenerate.
1437 * po/POTFILES.in: Regenerate.
1438
1439 2002-05-31 Graeme Peterson <gp@qnx.com>
1440
1441 * configure.in: Add i386-*-nto-qnx*.
1442 * configure: Regenerate.
1443
1444 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1445
1446 * config/tc-mips.c (mips_ip): Use unsigned long values for
1447 warning output.
1448
1449 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1450
1451 * config/tc-mips.c (s_cpsetup): Fix initialization of
1452 mips_cpreturn_register and mips_cpreturn_offset.
1453
1454 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1455
1456 * config/tc-mips.c (s_cpsetup): Fix comment.
1457
1458 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1459
1460 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
1461 (mips_ip): Likewise.
1462 (mips16_ip): Likewise.
1463 (tc_get_register): Likewise.
1464
1465 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
1466 Ed Satterthwaite <ehs@broadcom.com>
1467
1468 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
1469 (mips_opts): Initialize "ase_mdmx" member.
1470 (file_ase_mdmx): New variable.
1471 (CPU_HAS_MDMX): New macro.
1472 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
1473 based on command line options and configuration defaults.
1474 (macro_build): Note in comment that use of MDMX in macros is
1475 not currently allowed.
1476 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
1477 "Z" MDMX operand types.
1478 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
1479 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
1480 types.
1481 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
1482 Add support for "-mdmx" and "-no-mdmx" options.
1483 (OPTION_ELF_BASE): Move to accomodate new options.
1484 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
1485 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
1486 file_ase_mdmx was set.
1487 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
1488 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
1489 nomdmx" directives.
1490
1491 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1492
1493 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
1494 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
1495 command line switch conforming to gcc conventions.
1496 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
1497
1498 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1499
1500 * config/tc-mips.c (macro_build_jalr): New Function.
1501 (md_begin): NewABI uses big GOTs.
1502 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
1503 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
1504 (load_address): Add some NewABI PIC support.
1505 (macro): Likewise.
1506 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
1507 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
1508
1509 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1510
1511 * config/tc-mips.c (load_address): Use mips_gp_register instead
1512 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
1513 instead.
1514 (macro): Use mips_gp_register instead of hardcoded value.
1515
1516 2002-05-30 Richard Henderson <rth@redhat.com>
1517
1518 * expr.h (operatorT): Add O_md17..O_md32.
1519 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
1520 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
1521 O_tprelhi, O_tprello, O_tprel): New.
1522 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
1523 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
1524 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
1525 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
1526 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
1527 (md_apply_fix3): Handle TLS relocations.
1528 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1529 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
1530 associated TLS reloc. Check lituse_tls relocs match up.
1531 (emit_insn): Handle TLS relocations.
1532 (ldX_op): Remove.
1533
1534 * doc/c-alpha.texi: Add docs for tls relocations.
1535
1536 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1537
1538 * config/tc-mips.c (mips_gprel_offset): New variable.
1539 (s_gpvalue): Use it.
1540
1541 2002-05-30 Diego Novillo <dnovillo@redhat.com>
1542
1543 * gas/config/tc-d10v.c (check_resource_conflict): Only check
1544 write-write conflicts.
1545 (md_assemble): Reformat introductory comment.
1546 (parallel_ok): Prevent packing only if the first
1547 instruction cannot be packed.
1548
1549 2002-05-30 Jason Eckhardt <jle@redhat.com>
1550 Tom Rix <trix@redhat.com>
1551
1552 * config/tc-d10v.c (build_insn): Check for immediates.
1553
1554 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1555
1556 * config/tc-mips.c: Replace GP in comments by $gp.
1557 (mips_big_got): Initialize.
1558 (mips_trap): Initialize.
1559 (load_address): Use mips_gp_register instead of hardcoded value.
1560 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
1561 (macro): Use mips_gp_register instead of hardcoded value.
1562 (macro2): Change load_address calls.
1563 (md_pcrel_from): Comment formatting.
1564 (s_cpload): Use mips_gp_register instead of hardcoded value.
1565 (s_cprestore): Likewise. Comment formatting.
1566 (s_gpword): Fix data type.
1567 (s_cpadd): Use mips_gp_register instead of hardcoded value.
1568 (nopic_need_relax): Replace GP in comments by $gp.
1569 (mips_elf_final_processing): Better comment.
1570
1571 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1572
1573 * configure.in: Add DLX configuraton
1574 * Makefile.am: Add DLX configuraton
1575 * configure: Regenerate.
1576 * Makefile.in: Regenerate.
1577 * config/tc-dlx.c: New file.
1578 * config/tc-dlx.h: New files.
1579 * NEWS: Mention new support.
1580
1581 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
1582
1583 * config/obj-coff.c (write_object_file): Add missing semicolon.
1584
1585 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1586
1587 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
1588 by the define. Remove superfluous check of mips_opts.mips16.
1589 (append_insn): Likewise. Canonicalize variable increments.
1590 (macro_build): Canonicalize variable increments.
1591 (macro_build_lui): Likewise.
1592 (load_register): Likewise.
1593 (load_address): Move pointer initialization.
1594 (macro): Move pointer to a more local scope. Canonicalize variable
1595 increments. Better comments. Replace magic constant for RA by the
1596 define.
1597 (macro2): Replace magic constant for RA by the define. Canonicalize
1598 variable increments.
1599 (mips_ip): Canonicalize variable increments.
1600 (mips16_ip): Replace magic constant for RA by the define.
1601 (my_getSmallParser): Canonicalize variable increments/decrements.
1602 (my_getPercentOp): Likewise.
1603 (my_getSmallExpression): Likewise.
1604 (s_align): Likewise.
1605 (s_mipsset): Likewise.
1606 (s_cpsetup): Likewise.
1607 (s_insn): Remove superfluous check of mips_opts.mips16.
1608 (s_mips_stab): Likewise.
1609 (mips_handle_align): Canonicalize variable increments.
1610 (s_mips_ent): Likewise.
1611 (s_mips_end): Add comment.
1612
1613 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1614
1615 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1616 * configure: Regenerate.
1617
1618 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1619
1620 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
1621 * Makefile.in: Regenerate.
1622 * dep-in.sed: Reorder to match OBJS in Makefile.am.
1623 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
1624 * configure: Regenerate.
1625 * as.h: Use #include "" instead of <> for local header files.
1626 * flonum-konst.c: Likewise.
1627 * flonum-mult.c: Likewise.
1628 * gasp.c: Likewise.
1629 * listing.c: Likewise.
1630 * config/tc-ia64.h: Likewise.
1631 * config/tc-v850.h: Likewise.
1632
1633 2002-05-24 TAMURA Kent <kent@netbsd.org>
1634
1635 * configure.in: Add a target for i386-netbsdpe.
1636 * configure: Regenerate.
1637
1638 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1639
1640 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
1641 (obj_elf_common): Call elf_common.
1642 (obj_elf_tls_common): New function.
1643 (elf_pseudo_tab): Support .tls_common.
1644 (special_sections): Add .tdata and .tbss.
1645 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
1646 sections.
1647 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
1648 (obj_elf_parse_section_letters): Include T in error message.
1649 * config/tc-ppc.c (ppc_section_letter): Likewise.
1650 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
1651 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
1652 SEC_MERGE.
1653 * config/tc-sparc.c (md_apply_fix3): Likewise.
1654 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
1655 Define them if not BFD_ASSEMBLER.
1656 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
1657 and @NTPOFF.
1658 (md_apply_fix3): Add TLS relocs.
1659 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
1660 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
1661 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
1662 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
1663 (ia64_elf_section_letter): Include T in error message.
1664 (md_begin): Support TLS operators.
1665 (md_operand): Likewise.
1666 (ia64_gen_real_reloc_type): Support TLS relocs.
1667 * testsuite/gas/i386/tlspic.s: New file.
1668 * testsuite/gas/i386/tlsd.s: New file.
1669 * testsuite/gas/i386/tlsnopic.s: New file.
1670 * testsuite/gas/i386/tlsd.d: New file.
1671 * testsuite/gas/i386/tlsnopic.d: New file.
1672 * testsuite/gas/i386/tlspic.d: New file.
1673 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
1674 * testsuite/gas/ia64/tls.s: New file.
1675 * testsuite/gas/ia64/tls.d: New file.
1676 * testsuite/gas/ia64/ia64.exp: Add tls test.
1677 * write.c (adjust_reloc_syms): Don't change symbols in
1678 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
1679
1680 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1681
1682 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
1683 round the relocation up rather than down.
1684
1685 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1686
1687 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
1688 flag.
1689 * doc/as.texinfo: Document that the COFF version of .section
1690 ignores the 'a' flag.
1691
1692 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1693
1694 * config/tc-alpha.c (assemble_tokens): Protect use of
1695 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
1696
1697 * write.c (size_seg): Check adjustment to last frag.
1698 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
1699 section alignment.
1700 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
1701 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
1702 (write_object_file): Invoke md_do_align if available, and use
1703 frag_align_code on text sections.
1704 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
1705 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
1706 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
1707 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1708 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
1709 BFD_ASSEMBLER too.
1710
1711 2002-05-22 H.J. Lu <hjl@gnu.org>
1712
1713 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
1714 for source file.
1715
1716 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
1717
1718 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
1719 as ELF builds.
1720
1721 2002-05-22 H.J. Lu <hjl@gnu.org>
1722
1723 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
1724 for one .loc for compiler.
1725
1726 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1727
1728 * config/tc-mips.c (macro): Relax warning, it's toot strict for
1729 embedded-PIC.
1730
1731 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1732
1733 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
1734 Optimize the rotate by zero case.
1735
1736 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
1737
1738 * configure.in: Remove accidental enabling of bfd_gas=yes for
1739 sh-coff targets.
1740 * configure: Regenerate.
1741
1742 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
1743
1744 * app.c: Fix formatting.
1745 * as.c: Likewise.
1746 * ehopt.c: Likewise.
1747 * expr.c: Likewise.
1748 * input-file.c: Likewise.
1749 * listing.c: Likewise.
1750 * macro.h: Likewise.
1751 * stabs.c: Likewise.
1752 * symbols.c: Likewise.
1753
1754 2002-05-17 Alan Modra <amodra@bigpond.net.au>
1755
1756 * config/obj-generic.c: Delete file.
1757 * config/obj-generic.h: Likewise.
1758
1759 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1760
1761 * config/tc-avr.c (mcu_types): Update for new devices.
1762
1763 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1764
1765 * config/tc-mips.c (macro): Warn about wrong la/dla use.
1766
1767 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1768
1769 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
1770 worked sometimes by accident. Fix copy&paste comment.
1771
1772 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1773
1774 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
1775 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
1776 (mips_elf_final_processing): Let n32 use .reginfo.
1777
1778 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1779
1780 * config/tc-mips.c (append_insn): Fix too small range of variable.
1781
1782 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
1783
1784 * config/tc-arm.c (arm_cleanup): Remove redundant call to
1785 listing_prev_line().
1786
1787 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
1788
1789 * config/tc-arm.c (md_assemble): Remove redundant call to
1790 listing_prev().
1791
1792 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
1793 loc_directive_seen.
1794
1795 * stabs.c (s_stab_generic): Fix grammatical error in warning
1796 message.
1797
1798 2002-05-13 Alan Modra <amodra@bigpond.net.au>
1799
1800 * write.c (subsegs_finish): Don't specially align last subseg.
1801
1802 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1803
1804 * stabs.c (s_stab_generic): Warn about a description field that is
1805 too big.
1806
1807 * config/obj-coff.c: Fix compile time warnings when compiling
1808 without BFD_ASSEMBLER defined.
1809 Fix formatting.
1810
1811 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
1812 target.
1813 (md_pcrel_from_section): Use md_pcrel_from().
1814
1815 2002-05-11 Bruno Haible <bruno@clisp.org>
1816
1817 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
1818 by dwarf2_directive_loc, instead of calling dwarf2_where.
1819
1820 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
1821
1822 * config/obj-coff.h: Fix formatting.
1823 * config/tc-mcore.c: Likewise.
1824 * config/tc-mn10300.c: Likewise.
1825 * config/tc-openrisc.c: Likewise.
1826 * config/tc-or32.c: Likewise.
1827 * config/tc-pdp11.c: Likewise.
1828 * config/tc-ppc.c: Likewise.
1829 * config/tc-ppc.h: Likewise.
1830 * config/tc-sh64.c: Likewise.
1831 * config/tc-sh.c: Likewise.
1832 * config/tc-tic54x.c: Likewise.
1833 * config/tc-xstormy16.c: Likewise.
1834 * config/tc-xstormy16.h: Likewise.
1835
1836 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1837
1838 * config/obj-coff.c: Fix formatting.
1839 * config/obj-elf.c: Likewise.
1840 * config/tc-alpha.c: Likewise.
1841 * config/tc-arm.c: Likewise.
1842 * config/tc-d10v.c: Likewise.
1843 * config/tc-d30v.c: Likewise.
1844 * config/tc-h8300.c: Likewise.
1845 * config/tc-hppa.c: Likewise.
1846
1847 2002-05-09 Alan Modra <amodra@bigpond.net.au>
1848
1849 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
1850 reloc when no_cond_jump_promotion.
1851
1852 2002-05-08 Jim Wilson <wilson@redhat.com>
1853
1854 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
1855 current variable part of frag.
1856
1857 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1858
1859 * config/tc-mmix.c: Fix formatting.
1860 * config/tc-mmix.h: Likewise.
1861
1862 2002-05-08 Alan Modra <amodra@bigpond.net.au>
1863
1864 * configure: Regenerate.
1865
1866 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1867
1868 * config/tc-m68k.c: Fix formatting.
1869
1870 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1871
1872 * Makefile.am: Honour DESTDIR.
1873 * Makefile.in: Regenerate.
1874
1875 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
1876
1877 * config/tc-ia64.c: Fix formatting.
1878 * config/tc-ia64.h: Likewise.
1879
1880 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1881
1882 * config/tc-mips.c: Fix formatting.
1883 * config/tc-s390.c: Likewise.
1884 * config/tc-s390.h: Likewise.
1885
1886 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
1887
1888 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
1889 information for instructions.
1890
1891 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1892
1893 * as.h: Fix formatting.
1894 * cgen.c: Likewise.
1895 * cgen.h: Likewise.
1896 * dwarf2dbg.c: Likewise.
1897 * frags.h: Likewise.
1898 * gasp.c: Likewise.
1899 * macro.c: Likewise.
1900 * read.c: Likewise.
1901 * stabs.c: Likewise.
1902 * symbols.c: Likewise.
1903
1904 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1905
1906 * app.c (mri_pseudo): Only declare for TC_M68K.
1907
1908 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
1909 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
1910 BFD_RELOC_16_BASEREL.
1911 (md_assemble): Likewise.
1912 (md_apply_fix3): Likewise.
1913
1914 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1915
1916 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
1917 zero into an add of zero - it is not the same.
1918
1919 2002-05-01 Arati Dikey <aratid@kpit.com>
1920
1921 * tc-sh.c (get_specific): Generate warning if the same
1922 destination register is used in parallel instructions.
1923
1924 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
1925
1926 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
1927
1928 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1929
1930 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
1931 backwards to prevent cascading errors.
1932
1933 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1934
1935 * configure.in: Add support for powerpc-*-windiss.
1936 * configure: Regenerated.
1937
1938 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1939
1940 * config/tc-s390.c (md_parse_option): Formatting.
1941
1942 * config/tc-i386.c: Formatting fixes, add missing space in error
1943 message.
1944
1945 2002-04-24 Christian Groessler <chris@groessler.org>
1946
1947 * config/tc-z8k.c (build_bytes): Add support for new cases:
1948 CLASS_IGNORE and ARG_NIM4.
1949 (md_assemble): Prevent destruction of input_line_pointer if
1950 get_operands returns failure.
1951
1952 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1953
1954 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
1955 instructions to be generated by macros.
1956
1957 2002-04-24 Andreas Schwab <schwab@suse.de>
1958
1959 * config/tc-i386.c (output_jump, output_disp)
1960 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
1961 more.
1962 (md_apply_fix3): Remember addend value for rela relocations.
1963 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
1964
1965 2002-04-22 Chris Demetriou <cgd@broadcom.com>
1966
1967 * config/tc-mips.c (macro_build): Add close-parenthesis missing
1968 from previous change.
1969
1970 2002-04-22 Eric Christopher <echristo@redhat.com>
1971
1972 * config/tc-mips.c (macro_build): Add warning if macro instructions
1973 are expanded into a branch delay slot.
1974
1975 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
1976
1977 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
1978 numbers, gdb relies on them to detect the start of the prologue.
1979
1980 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
1981
1982 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
1983 symbols in merge sections.
1984
1985 2002-04-16 Alan Modra <amodra@bigpond.net.au>
1986
1987 * as.c (main): Don't reference _bfd_chunksize.
1988
1989 2002-04-15 Tom Rix <trix@redhat.com>
1990
1991 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
1992 symbols in merge sections.
1993
1994 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1995
1996 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
1997 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
1998 argument for the precision.
1999 (gen_to_words): Update accordingly.
2000
2001 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2002
2003 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2004 BFD_VERSION_STRING unavailable.
2005 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2006
2007 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
2008
2009 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2010 symbol_used_in_reloc_p is true.
2011
2012 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2013 endian hosts.
2014
2015 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2016
2017 * dep-in.sed: Cope with absolute paths.
2018 * Makefile.am (dep.sed): Subst TOPDIR.
2019 Run "make dep-am".
2020 * Makefile.in: Regenerate.
2021
2022 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2023
2024 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2025 (mips_ip): Remove unused variable.
2026 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2027 unsigned char with bfd_byte.
2028 (s_file): Remove unused variable.
2029 (s_mips_ent): Likewise.
2030
2031 2002-04-03 Tom Rix <trix@redhat.com>
2032
2033 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2034 (build_insn): Same.
2035 (find_opcode): Fix warning in as_warn.
2036 * config/tc-d10v.h: Update Copyright.
2037
2038 2002-04-03 Alan Matsuoka <alanm@redhat.com>
2039 Tom Rix <trix@redhat.com>
2040
2041 From Jeff Knaggs <jknaggs@redhat.com>
2042 * config/tc-d10v.c (check_resource_conflict): New function to
2043 check for resource conflicts.
2044
2045 From Jason Eckhardt <jle@redhat.com>
2046 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2047 imm3 fields.
2048 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2049 reserved control registers is used.
2050 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2051 imm3 fields.
2052
2053 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
2054 * tc-d10v.c (parallel_ok): Prevent packing only if the first
2055 instruction cannot be packed.
2056
2057 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
2058 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2059 write-write conflicts.
2060 (md_assemble): Reformat introductory comment.
2061 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2062 arguments.
2063
2064 2002-04-03 Alan Modra <amodra@bigpond.net.au>
2065
2066 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2067 O_logical_not>): Derive final_seg from add_symbol.
2068 <O_multiply..O_logical_or>: More final_seg twiddles.
2069
2070 2002-04-01 Jessica Han <jessica@cup.hp.com>
2071
2072 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
2073 in 32-bit mode.
2074
2075 2002-03-27 Andreas Schwab <schwab@suse.de>
2076
2077 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2078 field for pc-relative fixups.
2079 (output_disp): Likewise.
2080 (md_estimate_size_before_relax): Likewise.
2081 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2082 pc-relative fixups in 64bit mode.
2083
2084 2002-03-22 Alan Modra <amodra@bigpond.net.au>
2085
2086 * config/te-aix5.h: Typo fix.
2087
2088 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2089
2090 * Makefile.am: Run "make dep-am".
2091 * Makefile.in: Regenerate.
2092 * doc/Makefile.in: Regenerate.
2093
2094 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
2095
2096 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2097 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2098
2099 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2100
2101 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2102 the EXTENDED bit here; report the estimate according to the
2103 current size.
2104
2105 2002-03-18 Tom Rix <trix@redhat.com>
2106
2107 * configure.in: Add AIX 5 support.
2108 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2109 * config/te-aix5.h: New file. AIX 5 support.
2110 * configure: Regenerate.
2111
2112 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2113
2114 * po/fr.po: Updated version.
2115
2116 2002-03-16 Andreas Jaeger <aj@suse.de>
2117
2118 * doc/c-mips.texi (Machine Dependencies): Add new node.
2119
2120 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
2121
2122 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2123 (mips_opts): Initialize "ase_mips3d" member.
2124 (file_ase_mips3d): New variable.
2125 (CPU_HAS_MIPS3D): New macro.
2126 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2127 based on command line options and configuration defaults.
2128 (macro_build, mips_ip): Accept MIPS-3D instructions if
2129 mips_opts.ase_mips3d is set.
2130 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2131 Add support for "-mips3d" and "-no-mips3d" options.
2132 (OPTION_ELF_BASE): Move to accomodate new options.
2133 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2134 (mips_elf_final_processing): Add a comment indicating that a
2135 MIPS-3D ASE ELF header flag should be set, when one exists.
2136 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2137 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2138 nomips3d" directives.
2139
2140 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
2141
2142 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2143 a weak symbol in same section to be within reach.
2144
2145 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2146
2147 * po/fr.po: Updated version.
2148
2149 2002-03-12 Andreas Schwab <schwab@suse.de>
2150
2151 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2152 body record so that an error is given for misplaced .save
2153 pseudo-ops.
2154
2155 2002-03-09 Alan Modra <amodra@bigpond.net.au>
2156
2157 * config/tc-i386.h (REX_OPCODE): Define.
2158 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2159 (rex_byte): typedef to int.
2160 * config/tc-i386.c: Group prototypes and vars together.
2161 Formatting fixes. Remove occurrences of "register" keyword.
2162 (true): Delete.
2163 (false): Delete.
2164 (mode_from_disp_size): Add INLINE keyword to prototype.
2165 (fits_in_signed_byte): Likewise.
2166 (fits_in_unsigned_byte): Likewise.
2167 (fits_in_unsigned_word): Likewise.
2168 (fits_in_signed_word): Likewise.
2169 (fits_in_unsigned_long): Likewise.
2170 (fits_in_signed_long): Likewise.
2171 (type_names): Constify.
2172 (intel_float_operand): Constify param.
2173 (add_prefix): Use REX_OPCODE.
2174 (md_assemble): Likewise. Modify for changed rex_byte.
2175 (parse_insn): Split out of md_assemble.
2176 (parse_operands): Likewise.
2177 (swap_operands): Likewise.
2178 (optimize_imm): Likewise.
2179 (optimize_disp): Likewise.
2180 (match_template): Likewise.
2181 (check_string): Likewise.
2182 (process_suffix): Likewise.
2183 (check_byte_reg): Likewise.
2184 (check_long_reg): Likewise.
2185 (check_qword_reg): Likewise.
2186 (check_word_reg): Likewise.
2187 (finalize_imm): Likewise.
2188 (process_operands): Likewise.
2189 (build_modrm_byte): Likewise.
2190 (output_insn): Likewise.
2191 (output_branch): Likewise.
2192 (output_jump): Likewise.
2193 (output_interseg_jump): Likewise.
2194 (output_disp): Likewise.
2195 (output_imm): Likewise.
2196
2197 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2198
2199 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2200
2201 2002-03-06 Alan Modra <amodra@bigpond.net.au>
2202
2203 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2204 relocs except when BFD64.
2205
2206 * write.c (number_to_chars_bigendian): Don't abort when N is
2207 larger than sizeof (VAL).
2208 (number_to_chars_littleendian): Likewise.
2209
2210 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2211
2212 * config/tc-hppa.c (md_apply_fix3): Add cast.
2213 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2214 e_rrsel.
2215
2216 2002-03-05 Paul Koning <pkoning@equallogic.com>
2217
2218 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2219 (parse_ac5): New function for parsing float regs in float operand.
2220 (parse_expression): Remove attempt to make literals be octal.
2221 (parse_op_no_deferred): Support float literals.
2222 (parse_op): Reject attempts to refer to float regs.
2223 (parse_fop): New function, like parse_op but for float operand.
2224 (md_assemble): Add cases to parse float operands. Also fix
2225 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2226
2227 2002-03-04 H.J. Lu <hjl@gnu.org>
2228
2229 * config/obj-elf.c (special_section): Add .init_array,
2230 .fini_array and .preinit_array.
2231
2232 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2233 .init_array and .fini_array.
2234
2235 2002-03-01 Jakub Jelinek <jakub@redhat.com>
2236
2237 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2238 visibility.
2239 (obj_frob_symbol): Copy visibility.
2240
2241 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2242
2243 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2244 s_text.
2245 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2246
2247 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
2248
2249 * po/es.po: Updated.
2250
2251 2002-02-26 Chris Demetriou <cgd@broadcom.com>
2252
2253 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2254 only, undo the changes made on 2001-06-08, with the
2255 effect being that common or extern symbols are
2256 adjusted for embedded-PIC, but weak symbols are not.
2257 (md_estimate_size_before_relax: Likewise, with the effect
2258 that extern symbols are treated the same as weak symbols
2259 only if not embedded-PIC.
2260 (mips_fix_adjustable) Likewise, with the effect that
2261 weak or extern symbols are not adjusted for embedded-PIC.
2262 (md_apply_fix3): Tweak so that the case where value is zero
2263 is handled more correctly for embedded-PIC code.
2264
2265 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
2266
2267 * doc/as.texinfo (Overview): Add missing @ifset IA64
2268
2269 * configure.in (LINGUAS): Add es.po.
2270 * configure: Regenerate.
2271 * po/es.po: New file.
2272
2273 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2274
2275 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
2276 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
2277 and NO_PIC cases. Code cleanup.
2278 (macro2): Fix handling of 64bit register loads.
2279
2280 2002-02-25 David Mosberger <davidm@hpl.hp.com>
2281
2282 * doc/as.texinfo: Add entry for IA64.
2283 * doc/c-ia64.texi: New file.
2284
2285 2002-02-25 Alan Modra <amodra@bigpond.net.au>
2286
2287 * config/tc-hppa.c: Update copyright date.
2288
2289 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
2290 Remove references to chip manufacturers.
2291 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
2292 Correct comments.
2293 (md_show_usage): Remove references to chip manufacturers. Mention
2294 -mpower4.
2295 (md_begin): Test power4 opcode flag bits.
2296
2297 2002-02-22 David Mosberger <davidm@hpl.hp.com>
2298
2299 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
2300 count exceeds prologue count.
2301 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
2302 (unwind.label_prologue_count): New member.
2303
2304 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
2305
2306 (get_saved_prologue_count): New function.
2307 (save_prologue_count): New function.
2308 (free_saved_prologue_count): New function.
2309 (dot_label_state): Record state label by calling save_prologue_count().
2310 (dot_copy_state): Restore prologue count by calling
2311 get_saved_prologue_count().
2312 (generate_unwind_image): Free up list of saved prologue
2313 counts by calling free_saved_prologue_counts().
2314
2315 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
2316
2317 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
2318 function declarations.
2319
2320 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
2321
2322 * NEWS: Note that GASP is now deprecated.
2323 * Makefile.am: Do not build gasp-new by default.
2324 * Makefile.in: Regenerate.
2325 * doc/Makefile.am: Do not install gasp.info.
2326 * doc/Makefile.in: Regenerate.
2327 * gas/gasp.texi: Note that gasp is now deprecated.
2328
2329 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2330
2331 * NEWS: Mark 2.12 branch.
2332
2333 2002-02-19 Tom Tromey <tromey@redhat.com>
2334
2335 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2336
2337 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2338
2339 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
2340 option input.
2341
2342 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2343
2344 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
2345 Make bit size independent of architecture switch.
2346 (md_begin): Add warning for -m64 with -Aesa.
2347 (s390_md_end): Use renamed architecture defines.
2348
2349 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
2350
2351 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
2352
2353 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
2354
2355 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
2356 instead of CRIS.
2357
2358 2002-02-15 Chris Demetriou <cgd@broadcom.com>
2359
2360 * config/tc-mips.c (md_estimate_size_before_relax): Really
2361 make sure we treat weak like extern only for ELF. (Fixes
2362 patch from 2001-07-25.)
2363
2364 2002-02-15 Ben Elliston <bje@redhat.com>
2365
2366 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
2367 works as expected.
2368
2369 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2370
2371 * NEWS: Mention support for MMIX.
2372
2373 2002-02-13 Chris Demetriou <cgd@broadcom.com>
2374
2375 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
2376 a sequence of indpendent 'if' statements for easier debugging
2377 and future modification.
2378
2379 2002-02-13 Matt Fredette <fredette@netbsd.org>
2380
2381 * config/tc-m68k.c (md_show_usage): No longer display a
2382 hard-coded "68020" for the default CPU, instead display the
2383 canonical name of the true, configured default CPU.
2384 (m68k_elf_final_processing): Mark objects for sub-68020
2385 CPUs with the new EF_M68000 flag.
2386
2387 2002-02-13 Andreas Schwab <schwab@suse.de>
2388
2389 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
2390 pc-relative relocations to merge sections in 64-bit mode.
2391
2392 2002-02-13 Ben Elliston <bje@redhat.com>
2393
2394 * NEWS: Document floating point number handling in gasp.
2395 * gasp.c: Include <assert.h> and "xregex.h".
2396 (is_flonum): New function.
2397 (chew_flownum): Likewise.
2398 (change_base): Consume flonums from the input, where possible.
2399 * doc/gasp.texi (Constants): Document floating point numbers.
2400
2401 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2402
2403 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
2404 that implicitly use LR and RR selectors.
2405
2406 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
2407
2408 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
2409 and `epsw' as available on AM33 and above only.
2410 (other_register_name): Add logic to handle machine type encoded in
2411 reg_number.
2412
2413 2002-02-11 Tom Rix <trix@redhat.com>
2414
2415 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
2416 xcoff64.
2417
2418 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
2419
2420 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
2421 Use all over.
2422
2423 2002-02-11 Jan Hubicka <jh@suse.cz>
2424
2425 * i386.c (md_assemble): Support 32bit address prefix.
2426 (i386_displacement): Likewise.
2427 (i386_index_check): Accept 32bit addressing in 64bit mode.
2428
2429 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2430
2431 * config/tc-sh.c (dot): Removed unused function.
2432
2433 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2434
2435 * Makefile.am: "make dep-am".
2436 * Makefile.in: Regenerate.
2437 * aclocal.m4: Regenerate.
2438 * config.in: Regenerate.
2439 * configure: Regenerate.
2440 * doc/Makefile.in: Regenerate.
2441
2442 2002-02-10 Richard Henderson <rth@redhat.com>
2443
2444 * doc/c-alpha.texi: New file.
2445 * doc/Makefile.am (CPU_DOCS): Add it.
2446 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
2447
2448 2002-02-09 Richard Henderson <rth@redhat.com>
2449
2450 * config/tc-alpha.c (O_samegp): New.
2451 (USER_RELOC_P): Include it.
2452 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
2453 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
2454 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2455 (alpha_validate_fix): New.
2456 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
2457
2458 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
2459
2460 * doc/c-cris.texi: New.
2461 * doc/all.texi: @set CRIS.
2462 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
2463 Include c-cris.texi.
2464 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
2465 * doc/Makefile.in: Regenerate.
2466
2467 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2468
2469 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
2470 determine if a number is a sign-extended 32-bit number.
2471 (load_register): Use IS_SEXT_32BIT_NUM.
2472 (macro): Check if load/store macro handling is using a
2473 constant 32-bit address on 64-bit address systems, and if
2474 so optimize the generation of that address.
2475
2476 2002-02-08 Richard Henderson <rth@redhat.com>
2477
2478 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
2479 we've eliminated all foreign relocation types yet.
2480 (alpha_fix_adjustable): Likewise.
2481
2482 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2483
2484 Contribute sh64-elf.
2485 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2486 Stephen Clarke <Stephen.Clarke@st.com>
2487 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
2488 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
2489 * config/tc-sh.c (md_relax_table): Added default sizes for
2490 non-PC-relative UNDEF_MOVI, and relaxation sequences for
2491 MOVI_16, MOVI_32 and MOVI_48.
2492 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
2493 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
2494 and MOVI_16.
2495 (shmedia_md_estimate_size_before_relax): Remove redundant
2496 blocks. Set fragP->fr_var even if relaxation type unchanged.
2497 Retain UNDEF_MOVI until expression decays to number.
2498 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2499 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
2500 relocation types. Take fixP->fx_addnumber into account too.
2501 (shmedia_md_apply_fix): Likewise.
2502 (shmedia_md_convert_frag): Likewise.
2503 (shmedia_build_Mytes): Likewise.
2504 (sh64_consume_datalabel): Complain about nested datalabel.
2505 Support PIC relocs. Call sh_parse_name.
2506 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
2507 in tc-sh.h to SHmedia reloc types.
2508 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
2509 MOVI_GOTPC): New relaxation constants.
2510 (md_relax_table): Introduce relaxation directives for PIC-related
2511 constants.
2512 (sh_PIC_related_p): Handle datalabel.
2513 (sh_check_fixup): Choose SH5 PIC relocations.
2514 (sh_cons_fix_new): Added BDF_RELOC_64.
2515 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
2516 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2517 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
2518 current ISA is SHmedia, get 7 bytes.
2519 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
2520 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
2521 void function.
2522 * config/tc-sh64.c (shmedia_apply_fix): Rename to
2523 shmedia_apply_fix3 and make void.
2524 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
2525 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
2526 as_bad.
2527 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
2528 * config/tc-sh64.h (md_parse_name): Take &c as argument.
2529 2001-03-14 DJ Delorie <dj@redhat.com>
2530 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
2531 * doc/Makefile.in(CPU_DOCS): Ditto.
2532 * doc/c-sh64.texi: New file.
2533 * doc/as.texinfo: Add SH64 support.
2534 2001-03-13 DJ Delorie <dj@redhat.com>
2535 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
2536 A_REUSE_PREV so that its purpose is more obvious.
2537 (shmedia_build_Mytes): Ditto.
2538 2001-03-07 DJ Delorie <dj@redhat.com>
2539 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
2540 before processing.
2541 (sh64_vtable_inherit): Ditto.
2542 (strip_datalabels): New, strip "datalabel" from given line.
2543 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
2544 pseudos.
2545 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
2546 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
2547 call ...
2548 (shmedia_build_Mytes): ... to here.
2549 2001-03-06 DJ Delorie <dj@redhat.com>
2550 * config/tc-sh.c: Remove sh64-specific uaquad now that there
2551 is a generic one.
2552 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
2553 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
2554 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
2555 address by one in call to dwarf2_emit_insn.
2556 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
2557 Implement ".abi" pseudo and correct .cranges descriptors. Correct
2558 alignment handling broken by imported changes.
2559 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
2560 (sh64_handle_align): Declare.
2561 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
2562 (sh64_max_mem_for_rs_align_code): Declare.
2563 (enum sh64_isa_values): Moved here from tc-sh64.c.
2564 (md_do_align): Define.
2565 (sh64_do_align): Declare.
2566 (struct sh64_tc_frag_data): New.
2567 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
2568 changed.
2569 (TC_FRAG_INIT): Change to set new datatype.
2570 (struct sh64_segment_info_type): Rename member
2571 last_flushed_location to last_contents_mark. All users changed.
2572 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
2573 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
2574 * config/tc-sh.c (md_pseudo_table): Add ".abi".
2575 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
2576 of unsetting seen_insn.
2577 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
2578 call sh64_update_contents_mark.
2579 (sh_handle_align): Remove HAVE_SH64-conditioned code.
2580 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
2581 enum sh64_isa_values.
2582 (sh64_set_contents_type): Drop segT parameter. All callers changed.
2583 (emitting_crange): Boolean guard moved to file scope from function
2584 scope in sh64_set_contents_type.
2585 (s_sh64_abi): New.
2586 (sh64_update_contents_mark): New; most split out from
2587 sh64_flush_pending_output.
2588 (shmedia_md_end): Call sh64_update_contents_mark. Set
2589 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
2590 (sh64_do_align): New function.
2591 (sh64_max_mem_for_rs_align_code): New function.
2592 (sh64_handle_align): Rename from shmedia_do_align. Make
2593 non-static. Add head comment. Emit zero bytes for n bytes modulo
2594 four. Change return-type to void.
2595 (shmedia_elf_new_section): Remove.
2596 (shmedia_md_assemble): Call sh64_update_contents_mark.
2597 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
2598 new frag. Call sh64_update_contents_mark after making the new
2599 frag.
2600 (sh64_flush_pending_output): Just call sh64_update_contents_mark
2601 and sh_flush_pending_output.
2602 (sh64_flag_output): Also call md_flush_pending_output, but add
2603 condition on not emitting_crange.
2604 (sh64_tc_cons_fix_new): Remove.
2605 2001-01-12 Nick Clifton <nickc@redhat.com>
2606 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
2607 alignment handling scheme imported from sourceware.
2608 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
2609 * config/tc-sh64.h (TARGET_FORMAT): Define.
2610 (sh64_target_format): Prototype.
2611 * config/tc-sh64.c (sh64_target_mach): New function.
2612 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
2613 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
2614 zero_address_frag instead of copying the frag of the symbol.
2615 (shmedia_frob_file_before_adjust): Ditto.
2616 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
2617 to valueT to remove signedness.
2618 (shmedia_md_convert_frag): Add parameter final. Rename parameter
2619 headers to output_bfd. Do not evaluate symbols if final is false;
2620 do emit fixups.
2621 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
2622 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
2623 to the current frag, call shmedia_md_convert_frag to emit fixups
2624 and make frag_wane neutralize the frag. Update comments.
2625 * config/tc-sh.c (md_convert_frag): Change caller of
2626 shmedia_md_convert_frag.
2627 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2628 * config/tc-sh64.h: Tweak comments and correct formatting.
2629 * config/tc-sh64.c: Ditto.
2630 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
2631 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
2632 for the no-relocation case.
2633 (shmedia_check_limits): Fix range check being off-by-one for PTA.
2634 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
2635 wrappers.
2636 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
2637 comment.
2638 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
2639 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
2640 expansion.
2641 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
2642 Correct comment.
2643 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2644 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
2645 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
2646 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
2647 al>: Set lowest bit of field to relocate to 1 and rest to empty,
2648 if reloc is emitted.
2649 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
2650 New options plus bugfixes.
2651 * config/tc-sh.c (md_longopts): New options "-no-expand" and
2652 "-expand-pt32".
2653 (md_parse_option): Handle new options.
2654 (md_show_usage): Add blurb for new options.
2655 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
2656 (sh64_expand, sh64_pt32): New variables.
2657 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
2658 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
2659 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
2660 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
2661 <resolved previously-pc-relative relocs>: Handle
2662 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
2663 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
2664 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
2665 points to SHcompact code.
2666 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
2667 SH64PCREL16)>: Check that ISA of what operand points at and
2668 PTA/PTB matches, or emit error.
2669 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
2670 SHMEDIA_BFD_RELOC_PT.
2671 (shmedia_immediate_op): If pcrel, emit fixup also for constant
2672 operand.
2673 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
2674 condition for MOVI expansion.
2675 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
2676 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
2677 sh64_expand.
2678 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
2679 fixup.
2680 (sh64_target_format): Error-check setting of sh64_pt32 and
2681 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
2682 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
2683 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
2684 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
2685 * config/tc-sh64.c: Improve comments.
2686 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
2687 not say the linker will check correctness of PTA/PTB expansion.
2688 (shmedia_md_end): Make non-static.
2689 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
2690 prototype.
2691 * config/tc-sh.c (sh_finalize): Remove.
2692 * config/tc-sh.h (md_end): Do not define.
2693 Remove prototype for sh_finalize.
2694 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2695 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
2696 sh64_section_data container when storing section type in tdata
2697 field in elf_section_data.
2698 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
2699 EF_SH5.
2700 * Makefile.am: Update dependencies.
2701 * Makefile.in: Regenerate.
2702 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
2703 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
2704 dwarf2_emit_insn call with test on debug_type.
2705 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2706 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
2707 CRT_SH5_ISA32 sticky for 64-bit.
2708 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2709 Generate .crange sections when switching ISA mode or emitting
2710 constants in same section as code.
2711 * config/tc-sh64.c: Reformat structure definitions.
2712 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
2713 variables.
2714 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
2715 to emit a .cranges descriptor when contents type changes. Only
2716 emit error if changing contents type and -no-mix is in effect.
2717 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
2718 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
2719 (shmedia_md_end): Set sh64_end_of_assembly. Pass
2720 sh64_flush_last_crange over sections.
2721 When checking main symbol of datalabel symbol, check for
2722 STO_SH5_ISA32, not ISA type of section in definition.
2723 (shmedia_frob_file_before_adjust): Check main symbol for
2724 STO_SH5_ISA32; don't check ISA type of section in definition.
2725 (shmedia_frob_section_type): Adjust for .cranges; set section flag
2726 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
2727 .cranges entries have been output.
2728 (shmedia_elf_new_section): Just call md_flush_pending_output.
2729 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
2730 fix. Do not set tc_segment_info_data.in_code for section. Call
2731 sh64_set_contents_type for SHmedia code.
2732 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
2733 false. Call md_flush_pending_output.
2734 (sh64_target_format): Check that -no-mix and
2735 -shcompact-const-crange are used in sane combination with other
2736 options.
2737 (shmedia_md_pcrel_from_section): Check type of fix for how to
2738 adjust pc-relative.
2739 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
2740 not ISA type of section in definition.
2741 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
2742 hold contents-type state.
2743 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
2744 (sh64_flush_pending_output): Declare.
2745 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
2746 (sh64_tc_cons_fix_new): Declare.
2747 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
2748 call sh64_flag_output.
2749 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
2750 call sh64_set_contents_type to mark SHcompact code and set
2751 seen_insn.
2752 (md_longopts): New options "-no-mix" and
2753 "-shcompact-const-crange".
2754 (md_parse_option): Handle new options.
2755 (md_show_usage): Add blurb for new options.
2756 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
2757 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2758 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
2759 (sh64_last_insn_frag): New.
2760 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
2761 to get frag for insn opcode for generating fixups; do not assume it
2762 is the same frag.
2763 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
2764 for new insn.
2765 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
2766 section.
2767 (TC_FRAG_TYPE): Define as fragS *.
2768 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
2769 (sh64_last_insn_frag): Declare.
2770 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
2771 not == NULL before dereferencing.
2772 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2773 Get rid of BFD section flag and EF_SH64_ABI64.
2774 * config/tc-sh64.c (shmedia_frob_section_type): Use
2775 elf_section_data (sec)->tdata, not a specific BFD section flag, to
2776 communicate the section as containing SHmedia code. Describe why.
2777 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
2778 EF_SH64 regardless of ABI.
2779 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
2780 in error message. Handle resolved expressions for
2781 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2782 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
2783 (shmedia_check_limits): Handle BFD_RELOC_64.
2784 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
2785 a STO_SH5_ISA32 symbol, only the BFD value.
2786 2000-12-11 Ben Elliston <bje@redhat.com>
2787 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
2788 dwarf2_generate_asm_lineno.
2789 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
2790 Handle PC-relative MOVI expansions with assembler relaxation.
2791 Generate PC-relative relocs from 16-bit PC-relative expressions.
2792 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
2793 (shmedia_md_pcrel_from_section): ...here.
2794 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
2795 turned completely resolved. Adjust relocation type for 16-bit
2796 immediate operands that has turned PC-relative. Adjust back for
2797 MD_PCREL_FROM_SECTION being applied twice.
2798 (shmedia_md_convert_frag): Always emit reloc for expression with
2799 global or weak symbol. Handle relaxation result for PC-relative
2800 expressions.
2801 (shmedia_md_estimate_size_before_relax): An expression with a weak
2802 or global symbol can not be relaxed. Break out tests for
2803 relaxable symbol into variable sym_relaxable.
2804 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
2805 UNDEF_MOVI)>: Break out any PC-relative expression and change
2806 relaxation type.
2807 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
2808 opjp.
2809 <case A_IMMS16>: Fix typo for initial minor relaxation type of
2810 MOVI expansion. If X_op_symbol of the immediate expression is
2811 set, make an expression symbol for the argument to frag_var.
2812 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
2813 relaxations.
2814 (END): Adjust for new relaxations.
2815 (md_relax_table): Add entries for new relaxations.
2816 2000-12-07 Ben Elliston <bje@redhat.com>
2817 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
2818 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2819 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
2820 SHORI operand offsets in PT/PTA/PTB expansions.
2821 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2822 Implement DataLabel semantics.
2823 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
2824 shmedia_frob_file_before_adjust.
2825 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
2826 (DATALABEL_SUFFIX): Define.
2827 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
2828 symbol list to update "datalabel" symbols to their main symbol
2829 counterparts.
2830 (shmedia_frob_file_before_adjust): New.
2831 (sh64_adjust_symtab): For remaining datalabel symbols, set to
2832 undefined and set STT_DATALABEL.
2833 (sh64_frob_label): Initialize TC symbol field.
2834 (sh64_consume_datalabel): Actually implement semantics. New
2835 parameter operandf, call it instead of expression.
2836 (sh64_exclude_symbol): New.
2837 * config/tc-sh64.h (md_parse_name): Pass on the function operand
2838 to sh64_consume_datalabel.
2839 (tc_symbol_new_hook): Define to tc_frob_symbol.
2840 (TC_SYMFIELD_TYPE): Define to symbolS *.
2841 (tc_frob_symbol): Define to call sh64_exclude_symbol.
2842 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
2843 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
2844 case.
2845 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
2846 generating dwarf2 debug information.
2847 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2848 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
2849 elf64-sh64 for the 64-bit ABI.
2850 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
2851 option.
2852 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2853 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
2854 case-insensitivity.
2855 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2856 * config/tc-sh64.c: Tweak comments, formatting and error messages.
2857 (enum sh64_abi_values): New type.
2858 (enum sh64_isa_values): New type.
2859 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
2860 (seen_shcompact_mode, seen_shmedia_mode): Delete.
2861 (sh64_abi): Replace shmedia_64.
2862 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
2863 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
2864 (s_sh64_mode): Check validity for this target.
2865 (sh64_target_format): Initialize defaults for ISA and ABI.
2866 Fallback to old object format if no SH64 ISA or ABI has been
2867 specified.
2868 * config/tc-sh.c (md_parse_option): Check combinations for errors.
2869 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
2870 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
2871 * config/tc-sh64.h: Fix typo in comment.
2872 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
2873 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
2874 <PT fixups for absolute values>: Size will be longest, not
2875 shortest.
2876 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
2877 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
2878 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
2879 and l1 to hold lowercase of two first characters. Change all
2880 remaining TO_LOWER to tolower.
2881 * config/tc-sh64.c (TO_LOWER): Delete.
2882 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
2883 (md_parse_name): Define.
2884 (sh64_consume_datalabel): Declare.
2885 (DOLLAR_DOT): Define.
2886 * config/tc-sh64.c (shmedia_parse_exp): New.
2887 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
2888 (shmedia_parse_reg): Remove const from src
2889 parameter.
2890 (shmedia_get_operands): Ditto for args parameter and ptr variable.
2891 (shmedia_md_assemble): Ditto for op_end variable.
2892 (shmedia_get_operand): Ditto for ptr parameter and src variable.
2893 Use shmedia_parse_exp, not parse_exp.
2894 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
2895 parameter. All callers changed.
2896 (shmedia_get_operand): Add shmedia_arg_type parameter. All
2897 callers changed.
2898 (shmedia_parse_reg): Put first two character in local variables.
2899 Use tolower, not TO_LOWER. If no register is found and argtype
2900 indicates a control register, scan shmedia_creg_table
2901 case-insensitive.
2902 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2903 * Makefile.am (CPU_TYPES): Add sh64.
2904 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
2905 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
2906 Regenerate dependencies.
2907 * Makefile.in: Regenerate.
2908 * configure.in: Add support for sh64-*-elf*.
2909 * configure: Regenerate.
2910 * config/tc-sh64.h: New.
2911 * config/tc-sh64.c: New.
2912 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
2913 .mode, .isa and .uaquad.
2914 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
2915 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
2916 [HAVE_SH64] (END): Define as 10.
2917 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
2918 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
2919 MOVI_64): Define.
2920 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
2921 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
2922 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
2923 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
2924 Define.
2925 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
2926 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
2927 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
2928 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
2929 SHmedia instructions. Handle state-change after switching to
2930 SHcompact.
2931 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
2932 (md_parse_option) [HAVE_SH64]: Parse new options.
2933 (md_show_usage) [HAVE_SH64]: Show usage of new options.
2934 (md_convert_frag) [HAVE_SH64] <default>: Call
2935 shmedia_md_convert_frag instead of abort.
2936 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
2937 BFD_RELOC_SH_SHMEDIA_CODE.
2938 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
2939 SHcompact or SHmedia code.
2940 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
2941 shmedia_md_apply_fix instead of abort.
2942 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
2943 result from calling shmedia_md_estimate_size_before_relax instead
2944 of calling abort.
2945 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
2946 do the work.
2947 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
2948 shmedia_init_reloc and do nothing more if it returns non-zero.
2949 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
2950 * po/POTFILES.in: Regenerate.
2951 * po/gas.pot: Regenerate.
2952
2953 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2954
2955 * config/tc-sh.c (parse_at): Install the correct version of
2956 2002-02-04's patch.
2957
2958 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
2959 assume fixP->fx_subsy is non-NULL.
2960
2961 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
2962
2963 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
2964 A_DISP_PC_ABS, and adjust it by -4.
2965 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
2966 expected.
2967 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
2968 the operand type is not A_DISP_PC_ABS.
2969
2970 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2971
2972 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
2973 common and weak symbols. Handle common and weak symbols as
2974 undefined symbols with regards to GREG handling and merging.
2975 (mmix_frob_file): Ditto.
2976
2977 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2978
2979 * configure.in (hppa-*-netbsd*): New target.
2980 * configure: Regenerate.
2981 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
2982
2983 2002-02-02 Alan Modra <amodra@bigpond.net.au>
2984
2985 * config/tc-v850.c: Add missing prototypes amd use old-style
2986 function definitions.
2987 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
2988 (sdata_section tdata_section, zdata_section, sbss_section,
2989 tbss_section, zbss_section, rosdata_section, rozdata_section,
2990 scommon_section, tcommon_section, zcommon_section,
2991 call_table_data_section, call_table_text_section): Delete.
2992 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2993 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
2994 v850_call_table_data, v850_call_table_text): Delete.
2995 (struct v850_seg_entry): New.
2996 (v850_seg_table): New.
2997 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
2998 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
2999 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3000 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3001 (do_v850_seg): New.
3002 (v850_seg): New.
3003 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
3004 recording of alignment.
3005 (md_pseudo_table): Use v850_seg.
3006 (md_begin): Don't init .call_table_data and .call_table_text here.
3007 Set v850_seg_table bss entry.
3008
3009 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3010
3011 Support on-demand global register allocation by passing on
3012 base-plus-offset relocs to the linker.
3013 * config/tc-mmix.c: Tweak and fix typos in comments.
3014 (allocate_undefined_gregs_in_linker): New variable.
3015 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3016 (md_longopts): Add --linker-allocated-gregs.
3017 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3018 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3019 (md_show_usage): Update text for -x. Add text for
3020 --linker-allocated-gregs.
3021 (tc_gen_reloc): Derive default value for addend from val and
3022 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
3023 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3024 GREG if allocate_undefined_gregs_in_linker.
3025 * doc/as.texinfo (Overview) <Target MMIX options>: Add
3026 --linker-allocated-gregs.
3027 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3028 --linker-allocated-gregs. Mention that it's implied by -x.
3029 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3030 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3031
3032 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3033
3034 2002-02-01 Alan Modra <amodra@bigpond.net.au>
3035
3036 * Makefile.am: Run "make dep-am"
3037 * Makefile.in: Regenerate.
3038
3039 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3040
3041 * config/tc-or32.c: New file.
3042 * config/tc-or32.h: New file.
3043 * configure.in: Add support for or32 targets.
3044 * configure: Regenerate.
3045 * config/obj-coff.c: Add support for or32 targets.
3046 * config/obj-coff.h: Add support for or32 targets.
3047 * Makefile.am: Add support for or32 targets.
3048 * Makefile.in: Regenerate.
3049 * NEWS: Mention support for OpenRISC.
3050 * doc/Makefile.in: Regenerate.
3051 * po/POTFILES.in: Regenerate.
3052 * po/gas.pot: Regenerate.
3053
3054 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
3055
3056 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3057 and mod.
3058
3059 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3060
3061 * config/tc-mips.c (tc_gen_reloc): Arrange for
3062 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3063 their LO16 parts, even for ELF.
3064
3065 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
3066
3067 * config/tc-i386.c: Protect definitions of true and false
3068 from redefinition.
3069
3070 2002-01-28 Jakub Jelinek <jakub@redhat.com>
3071
3072 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3073 made because of .weak, if they are neither defined nor used in any
3074 way.
3075
3076 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3077
3078 * configure: Regenerated.
3079
3080 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3081
3082 * doc/Makefile.am (install): Depend on install-info.
3083 * doc/Makefile.in: Regenerate.
3084
3085 2002-01-26 Nick Clifton <nick@redhat.com>
3086
3087 * po/fr.po: Updated version
3088
3089 2002-01-24 Kazu Hirata <kazu@hxi.com>
3090
3091 * config/tc-h8300.c (check_operand): Don't print a warning
3092 when a valid 24-bit address is given to a 16-bit address
3093 operand.
3094
3095 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3096
3097 * config/tc-sh.c (sh_elf_suffix): Removed.
3098 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3099 sh_end_of_match, sh_parse_name): New functions.
3100 (sh_elf_cons): Simplify.
3101 (parse_exp): Reject misplaced PIC operands.
3102 (md_undefined_symbol): Simplify.
3103 (sh_fix_adjustable): Let @GOTOFF be adjusted.
3104 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3105 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3106 Complain if subsy remains at the end.
3107 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3108 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3109
3110 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3111
3112 * config/tc-mn10300.c (xr_registers): Move `pc'...
3113 (other_registers): ... here.
3114
3115 2002-01-22 Alan Modra <amodra@bigpond.net.au>
3116
3117 * Makefile.am: Run "make dep-am".
3118 * Makefile.in: Regenerate.
3119 * gas/po/POTFILES.in: Regenerate.
3120
3121 2002-01-21 DJ Delorie <dj@redhat.com>
3122
3123 * config/obj-coff.c (obj_coff_init_stab_section): Make the
3124 stabstr_name allocation permanent, as it will be referenced from
3125 the section hash.
3126
3127 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3128
3129 * configure.in (ia64-*-netbsd*): New target.
3130 * configure: Regenerate.
3131
3132 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3133
3134 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3135 to @dots call.
3136 <Detailed description, ARM options>: Ditto.
3137 * doc/c-arm.texi (ARM Options): Ditto.
3138
3139 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3140
3141 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3142 do_mia, do_mar and do_mra respectively.
3143 (do_mav_*): Renamed from do_c_*.
3144 (mav_reg_required_here, mav_parse_offset): Renamed from
3145 cirrus_reg_required_here and cirrus_parse_offset respectively.
3146 (MAV_MODE?): Renamed from CIRRUS_MODE?.
3147
3148 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3149 Keith Walker <keith.walker@arm.com>
3150
3151 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3152 (insns): Add pattern for bxj instruction.
3153 (do_bxj): New function.
3154 (arm_cpus): Add arm926ej.
3155 (arm_archs): Add armv5tej.
3156
3157 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3158
3159 * doc/c-arm.texi: Add new fpe options to list of supported flags.
3160
3161 2002-01-19 Keith Walker <keith.walker@arm.com>
3162
3163 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3164
3165 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3166
3167 * NEWS: Mention new ARM command-line options and VFP support.
3168
3169 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
3170 uses changed.
3171 (ARM_CEXT_MAVERICK): Similarly.
3172 (ARM_ANY): Now means any core instruction.
3173 (CPU_DEFAULT): Default to ARM_ANY.
3174 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3175 (pic_code): Declare for all object types. Make type int.
3176 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3177 (march_fpu_opt, mfpu_opt): Declare.
3178 (md_longopts): Tidy up conditional definitions.
3179 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3180 (arm_long_opts): New tables.
3181 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3182 (arm_parse_extension): New function.
3183 (md_parse_option): Rewrite using new table-driven system.
3184 (md_show_usage): Use new table-driven system.
3185 (md_begin): Calculate cpu_variant from command line option data.
3186 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3187 command-line options.
3188 * doc/c-arm.texi: Likewise.
3189
3190 2002-01-18 Andreas Jaeger <aj@suse.de>
3191
3192 * as.c (parse_args): Update year.
3193
3194 2002-01-17 Timothy Wall <twall@alum.mit.edu>
3195
3196 * config/tc-tic54x.c (encode_address): Add a more informative
3197 warning about incorrect syntax.
3198
3199 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3200
3201 * po/gas.pot: Regenerate.
3202
3203 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3204
3205 * macro.c (get_any_string): Add no-c-format comment to prevent
3206 confusion when translating string.
3207 * gasp.c (get_any_string): Add no-c-format comment to prevent
3208 confusion when translating string.
3209
3210 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3211 Johannes Stezenbach <js@convergence.de>
3212 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3213 matched before the shorter ones.
3214 (my_getSmallParser): Fix handling of nested parentheses in
3215 percent_op's. Code cleanup.
3216 (my_getPercentOp): New function, code from my_getSmallParser.
3217 (my_getSmallExpression): Fix handling of closing parentheses.
3218 Code cleanup. Better comments.
3219
3220 2002-01-16 Nick Clifton <nickc@redhat.com>
3221
3222 po/tr.po: New file: Turkish translation.
3223 configure.in (LINGUAS): Add "tr".
3224 configure: Regenerate.
3225
3226 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3227
3228 Support for VFP instructions
3229 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3230 (cp_address_required_here): New argument wb_ok. When false, do not
3231 accept write-back forms of addressing. Change all callers.
3232 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3233 (FPU_VFP_EXT_V2): Define.
3234 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3235 Define in terms of above.
3236 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3237 (vfp_reg): New struct.
3238 (vfp_regs): New array of registers.
3239 (insns): Add VFP instructions.
3240 (sn_table): New array of VFP single-precision register names.
3241 (dn_table): New array of VFP double-precision register names.
3242 (all_reg_maps): Add the new register tables.
3243 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
3244 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3245 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3246 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3247 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3248 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3249 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3250 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3251 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3252 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3253 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3254 (do_vfp_sp_dp_cvt): New functions.
3255 (md_begin): Set soft-float flag for appropriate VFP work.
3256 (md_atof): Handle VFP-format doubles.
3257 (md_parse_option): Handle VFP command-line options.
3258 (md_show_usage): Display VFP command-line options.
3259
3260 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3261
3262 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
3263 various command line options.
3264
3265 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3266
3267 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
3268 vtinherit relocs.
3269 (xstormy16_md_apply_fix3): Do not return a value.
3270
3271 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3272
3273 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
3274 the -EL/-EB option that matches the target's endianness.
3275 (md_parse_option): Likewise.
3276
3277 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3278
3279 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
3280 is not dependent on ARM_BI_ENDIAN.
3281
3282 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3283
3284 * tc-arm.c (all error messages): Normalize capitalization of messages.
3285
3286 * tc-arm.h (md_operand): Delete define.
3287 * tc-arm.c (in_my_get_expression): New static variable.
3288 (my_get_expression): Set and clear it.
3289 (md_operand): New function. If called from my_get_expression
3290 put the error in inst.error.
3291 (output_inst): Now takes argument of instruction being assembled.
3292 Print it out with any error message.
3293 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
3294 with '=' syntax.
3295 (end_of_line): Don't update inst.error if it is already set.
3296
3297 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3298
3299 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
3300 op that can be translated into a mvn instruction.
3301
3302 2002-01-11 Steve Ellcey <sje@cup.hp.com>
3303
3304 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
3305 setting default md.flags.
3306 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
3307 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
3308 * gas/config/tc-ia64.c (setup_unwind_header): Add support
3309 for 32 bit unwind info blocks.
3310 (generate_unwind_image): Add support for different types
3311 of unwind images (32 bits and/or big-endian).
3312 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
3313 (ia64_target_format): Add support for hpux target formats.
3314 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
3315 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
3316 SHT_FINI_ARRAY elf section types.
3317
3318 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
3319
3320 * tc-arm.c (struct reg_entry): Move before prototypes.
3321 (int_register, cp_register, fp_register): Delete.
3322 (reg_table): Delete. Replaced with ...
3323 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
3324 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
3325 (mav_dspsc_table): ... one table per register set.
3326 (arm_reg_hsh): Delete.
3327 (struct reg_map): New structure.
3328 (all_reg_maps): New array.
3329 (enum arm_reg_type): New enums.
3330 (build_reg_hsh): New function.
3331 (insert_reg_alias): Use hash table passed by caller. Adjust all
3332 callers.
3333 (create_register_alias): New function, split out from ...
3334 (md_assemble): ... here.
3335 (md_begin): Build new register hash tables.
3336 (arm_reg_parse): New argument for the hash table to search. Adjust all
3337 callers.
3338 (arm_reg_parse_any): New function.
3339 (co_proc_number): Look up the processor number in the processor hash
3340 table.
3341 (cirrus_regtype): Delete.
3342 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
3343 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
3344 (ARM_EXT_MAVERICKsc_register): Delete.
3345 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
3346 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
3347 functions.
3348 (do_c_triple_4, do_c_triple_5): Delete.
3349 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
3350 (do_c_quad_6): Delete.
3351 (do_c_quad_6[ab]): New functions.
3352 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
3353 arguments to use new register parsing methods.
3354 (cirrus_reg_required_here): Likewise.
3355 (insns): Reclassify cirrus maverick worker functions.
3356 (cirrus_valid_reg): Delete.
3357
3358 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3359
3360 * configure.in (sh*le): Set cpu_type=sh and endian=little.
3361 (sh*-*-netbsdelf*): New target.
3362 * configure: Regenerate.
3363 * tc-sh.h: Update copyright years.
3364 (TARGET_FORMAT): Add version for TE_NetBSD.
3365
3366 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3367
3368 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
3369 negative.
3370
3371 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3372
3373 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
3374 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
3375
3376 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
3377
3378 * tc-mips.c (mips_cprestore_valid): New flag.
3379 (mips_frame_reg_valid): New flag.
3380 (macro) [M_JAL_2]: Check both flags.
3381 [M_JAL_A]: Likewise.
3382 (s_cprestore): Set mips_cprestore_valid.
3383 (tc_get_register): If setting mips_frame_reg, set
3384 mips_frame_reg_valid and clear mips_cprestore_valid.
3385 (s_mips_ent): Clear both flags.
3386 (s_mips_end): Clear both flags.
3387
3388 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3389
3390 * write.c (write_object_file): Make use of bfd_section_list_remove.
3391 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
3392 * config/tc-mmix.c (mmix_frob_file): Likewise.
3393
3394 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3395
3396 * configure.in (i386-*-netbsdelf*): Collapse target into...
3397 (i386-*-netbsd*): ...this. Add support for x86-64.
3398 * configure: Regenerated.
3399
3400 2002-01-03 matthew green <mrg@redhat.com>
3401
3402 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
3403
3404 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3405
3406 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
3407 NULL frag link.
3408
3409 For older changes see ChangeLog-0001
3410 \f
3411 Local Variables:
3412 mode: change-log
3413 left-margin: 8
3414 fill-column: 74
3415 version-control: never
3416 End: