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