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