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