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