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