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