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