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