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