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