[gas/]
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
60b63b72
RS
12002-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
7a49a8c2
L
272002-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
04ff5cb5
JT
322002-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
8ba4dac0
DJ
392002-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
bffbf940
JJ
442002-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
87733541
AM
542002-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
825487fa
JW
592002-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
3396de36
TS
642002-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
f3c0ec86
TS
722002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
73
74 * config/tc-mips.c (append_insn): Fix jump overflow check.
75
52271982
AM
762002-09-24 Alan Modra <amodra@bigpond.net.au>
77
78 * config/tc-i386.c (process_operands): Warn about "lea" segment
79 overrides.
80
823882f5
DD
812002-09-22 Mark Elbrecht <snowball3@softhome.net>
82
83 * write.c: Delete set_segment_vma and prototype. Update all callers.
84
6539b54b
AM
852002-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
9f269a72
NC
942002-09-20 Nick Clifton <nickc@redhat.com>
95
96 * symbols.c (colon): Do not allow symbols to be created in the
7cf10893
NC
97 absolute section if WORKING_DOT_WORD is not defined and
98 new_broken_words would require a new frag to be created.
9f269a72 99
26346241
AM
1002002-09-20 Alan Modra <amodra@bigpond.net.au>
101
f6cf69d7
AM
102 * expr.c (expr): Simplify foo-foo here.
103 (clean_up_expression): Remove O_subtract code.
104
26346241
AM
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.
f6cf69d7 109 (fixup_segment): Adjust fx_offset using fx_dot_value.
26346241
AM
110 * expr.c (expr): Update dot_value.
111
37e55690
JJ
1122002-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
021c2b5e
RH
1222002-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
4f2a7c9e
NC
1282002-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
885add95
CD
1332002-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
65551fa4
CD
1432002-09-18 Chris Demetriou <cgd@broadcom.com>
144
145 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
146
4cf0dd0d
TS
1472002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
148
149 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
150
ed6fb7bd
SC
1512002-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
6189168b
NC
1612002-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.
f6cf69d7 165 (tc_gen_reloc): Do not issue reloc number of unimplemented
6189168b
NC
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
75d12d11
AM
1732002-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
7ed4a06a
TS
1782002-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
e8cf2216
TS
1832002-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
48b91938
RH
1892002-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
4ada7262
DB
1942002-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
7fe9cf6b
NC
2022002-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
e09f4395
NC
2072002-09-11 Nick Clifton <nickc@redhat.com>
208
004d9caf
NC
209 * NEWS: New TI port supports both C4x and C3x series of DSPs.
210
e09f4395
NC
211 * po/tr.po: Updated Turkish translation.
212
9dfe7b39
JJ
2132002-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
502b19cb
JL
2192002-09-05 Jeff Law <law@redhat.com>
220
f6cf69d7
AM
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.
502b19cb 225
a161fe53
AM
2262002-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.
a161fe53
AM
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
2a98c3a6
AM
6322002-09-04 Alan Modra <amodra@bigpond.net.au>
633
b782de16
AM
634 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
635 (ppc_fix_adjustable <coff version>): Cleanup.
636
2a98c3a6
AM
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
341026c1
NC
6422002-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
a6bd2a4f
HPN
6472002-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
86aba9db
NC
6522000-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.
e4512afa 664 (md_assemble): Ensure that the correct value is put in the
86aba9db
NC
665 fixup.
666 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
667 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
e4512afa 668 Remove redundant v850ea support.
86aba9db
NC
669 * tc-v850.h (HANDLE_ALIGN): Define.
670 (v850_handle_align): Declare.
671 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
672
026df7c5
NC
6732002-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
6792002-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
4252e537
AM
6872002-08-28 Alan Modra <amodra@bigpond.net.au>
688
df44284e
AM
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
4252e537
AM
706 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
707
70658493
AM
7082002-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
a2199cc1
AM
7192002-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
ececec60
NC
7242002-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
14899840
NC
7302002-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
ed71e111
NC
7352002-08-12 Graeme Peterson <gp@qnx.com>
736
737 * configure.in: Add support for sh-**-nto* target.
738 * configure: Regenerate.
739
dfe0d3fe
JL
7402002-08-21 Nitin Gupta <niting@noida.hcltech.com>
741
742 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
743
dc1d03fc
EZ
7442002-08-21 Elena Zannoni <ezannoni@redhat.com>
745
70658493
AM
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.
dc1d03fc 751
9f1838ed
AM
7522002-08-21 Alan Modra <amodra@bigpond.net.au>
753
70658493 754 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
9f1838ed
AM
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
483fc7cd
RS
7672002-08-20 Richard Sandiford <rsandifo@redhat.com>
768
769 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
770 by zero.
771
6a0c61b7
EZ
7722002-08-19 Elena Zannoni <ezannoni@redhat.com>
773
70658493 774 From matthew green <mrg@redhat.com>
6a0c61b7 775
70658493
AM
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.
6a0c61b7 783
70658493
AM
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.
6a0c61b7 787
70658493
AM
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.
6a0c61b7 792
70658493
AM
793 * config/tc-ppc.h (md_cleanup): Define.
794 (ppc_cleanup): Export.
795 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
6a0c61b7 796
cca86cc8
SC
7972002-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
50b15da2
NC
8032002-08-16 Nick Clifton <nickc@redhat.com>
804
805 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
806
f21f8242
AO
8072002-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
11f45fb5
NC
8142002-08-14 Nick Clifton <nickc@redhat.com>
815
8ac9ba6c
NC
816 * read.c (stringer): Catch attempts to create strings in the abs
817 section.
818
11f45fb5
NC
819 * config/tc-alpha.c: Fix compiling for COFF targets.
820 Some minor formatting tidyups.
821
e371935f
SC
8222002-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.
70658493 833 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
e371935f
SC
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.
70658493 838 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
e371935f
SC
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
eb086b59
SC
8462002-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
7bfda7eb
SC
8562002-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
fdb987ee
RS
8722002-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
31312f95
AM
8772002-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
59bc061d
NC
8872002-08-09 Graeme Peterson <gp@qnx.com>
888
889 * configure.in: Add support for ppc-*-nto* target.
890 * configure: Regenerate.
70658493 891
6088b00e
AM
8922002-08-09 Alan Modra <amodra@bigpond.net.au>
893
894 * config/tc-i386.h: Reorganize.
895
0c11417f
MR
8962002-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
79500683
AM
9012002-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
2bbd9c25
JJ
9082002-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
dbac4f5b
RH
9222002-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
95210096
AM
9282002-08-06 Alan Modra <amodra@bigpond.net.au>
929
930 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
931
98605598
RS
9322002-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
08df2379
NC
9372002-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
70ee4658
DJ
9432002-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
4eb6b71c
NC
9492002-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.
70658493 976
500800ca
NC
9772002-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
03223580
NC
9822002-07-31 Momchil Velikov <velco@fadata.bg>
983
984 * config/tc-v850.c (md_assemble): Fix range check for immediate
985 operand.
986
c7a23324
CD
9872002-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
cfe86eaa
TS
9922002-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
460597ba
MR
9972002-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
9bd7d936
MR
10032002-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
7e392df6
NC
10102002-07-30 Graeme Peterson <gp@qnx.com>
1011
1012 * configure.in: Add support for arm-*-nto target.
1013 * configure: Regenerate.
70658493 1014
3d0c9500
NC
10152002-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.
6088b00e 1022 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3d0c9500
NC
1023 needed.
1024 (s_ltorg): Use find_literal_pool.
1025 (arm_cleanup): Dump all literal pools.
6088b00e 1026 * doc/c-arm.texi: Document new behaviour of only dumping literal
3d0c9500
NC
1027 pools upon request.
1028
dfff24c9
AM
10292002-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
219576a4
NC
10342002-07-25 Nick Clifton <nickc@redhat.com>
1035
1036 * po/es.po: Updated Spanish translation.
1037 * po/fr.po: Updated French translation.
1038
316f5878
RS
10392002-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
ff3063f5
NC
10842002-07-24 Nick Clifton <nickc@redhat.com>
1085
1086 * po/sv.po: Updated Swedish translation.
1087 * po/es.po: Updated Spanish translation.
1088
55eab186
AM
10892002-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
0461a601
NC
10972002-07-23 Nick Clifton <nickc@redhat.com>
1098
ff3063f5 1099 * po/fr.po: Updated French translation.
0461a601 1100
ee8929cf
NC
11012002-07-23 Nick Clifton <nickc@redhat.com>
1102
1103 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1104 GAS.
1105
bad9ca53
TS
11062002-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
a37de3d3
TS
11132002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1114
1115 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1116
8dfa0188 11172002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
dfff24c9 1118 Nick Clifton <nickc@redhat.com>
8dfa0188
NC
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
dfff24c9
AM
1124 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1125 consider referenced bug not yet defined symbols to be
1126 undefined.
8dfa0188 1127
a40cbfa3
NC
11282002-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.
dfff24c9 1148
a40cbfa3
NC
11492002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1150
1151 * NEWS: Reformat to match style of other NEWS files.
dfff24c9 1152
a40cbfa3 11532002-07-17 Jan Hubicka <jh@suse.cz>
33fef721
JH
1154
1155 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1156
25d3fb58
AM
11572002-07-16 Moritz Jodeit <moritz@jodeit.org>
1158
1159 * config/tc-z8k.c (build_bytes): Correct order of memset args.
1160
2cbb2eef
NC
11612002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1162
1163 * NEWS: Add 'Changes in 2.13'.
1164
da06c61e
AM
11652002-07-15 Matt Fredette <fredette@netbsd.org>
1166
1167 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1168
9146926a
AM
11692002-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
2b3c4602
AM
11752002-07-11 Alan Modra <amodra@bigpond.net.au>
1176
7e8d4ab4
AM
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
2b3c4602
AM
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
aec421e0
TS
12082002-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
c6682705
AM
12132002-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
03111e83
AM
12222002-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
78d32a17
MR
12292002-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
3a482fd5
MR
12342002-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
cd61ebfe
AM
12402002-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
a5d3c309
NC
12462002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1247
1248 * NEWS: Remove next release number until the release is actually
1249 upon us.
1250
ce4f7385
AM
12512002-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
148b4c7a
MS
12572002-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
2916066e
SC
12622002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1263
1264 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1265
96e87417
SC
12662002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1267
1268 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1269 .softregs and .eeprom.
1270
83518699
DB
12712002-06-28 David O'Brien <obrien@FreeBSD.org>
1272
1273 * NEWS: Note the next release is 2.13.
1274
6c6783ff
NC
12752002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
1276
1277 * po/tr.po: New translation imported.
1278
a2c36061
AM
12792002-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
a13a0de8
L
12872002-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
6c6783ff 12922002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
5db33d76
JR
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
0ebb9a87
DB
12982002-06-18 Dave Brolley <brolley@redhat.com>
1299
a2c36061 1300 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
0ebb9a87
DB
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
2a24298d
CM
13152002-06-17 Catherine Moore <clm@redhat.com>
1316
a2c36061 1317 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2a24298d 1318
6c6783ff 13192002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
96f31fc7
JR
1320
1321 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1322
184e65b1
TR
13232002-06-17 Tom Rix <trix@redhat.com>
1324
1325 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1326
ecb4347a
DJ
13272002-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
13382002-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
d6e9d61a
MR
13602002-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
03e83a45
BE
13652002-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
b4f96c78
TR
13712002-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.
a2c36061 1375 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
b4f96c78 1376
8a6def3b
MM
13772002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1378
1379 * config/tc-avr.c (mcu_types): Update.
1380
7542c0f2
JT
13812002-06-08 Matt Thomas <matt@3am-software.com>
1382
1383 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1384 (vax-*-netbsd*): New targets.
1385 * configure: Regenerate.
a2c36061 1386 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
7542c0f2 1387 * config/tc-vax.c: Add support for ELF and PIC.
a2c36061 1388 (flag_want_pic): New flag.
7542c0f2
JT
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
a2c36061 1393 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
7542c0f2 1394 Add support for ELF. Add support for PIC.
a2c36061 1395 (md_convert_frag): Adjust for BFD_ASSEMBLER.
7542c0f2
JT
1396 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1397 BFD_ASSEMBLER.
a2c36061 1398 (vax_reg_parse): Make the % register prefix mandatory for ELF,
7542c0f2
JT
1399 optional for a.out, and not allowed for VMS. Adjust all callers.
1400 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
a2c36061 1401 (md_create_long_jump): Likewise.
7542c0f2
JT
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
5a38dc70
AM
14172002-06-08 Alan Modra <amodra@bigpond.net.au>
1418
e90b95f6
AM
1419 * Makefile.am: Run "make dep-am".
1420 * Makefile.in: Regenerate.
1421
5a38dc70
AM
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
c5dd6aab
DJ
14512002-06-08 Daniel Jacobowitz <drow@mvista.com>
1452
1453 Based on patch from Matt Green:
1454 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
a2c36061 1455 * config/tc-mips.c (s_mips_file): Renamed from s_file.
c5dd6aab
DJ
1456 (s_mips_loc): New function.
1457 (mips_nonecoff_pseudo_table): Call them.
a2c36061 1458 (append_insn): Call dwarf2_emit_insn.
c5dd6aab 1459
a4672219
TS
14602002-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
437ee9d5
TS
14722002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1473
1474 * doc/as.texinfo: Update MIPS documentation.
1475
85b51719
TS
14762002-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
9758f3fc
AM
14872002-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
6c6783ff 14982002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
9691d64f
JR
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
ffdefa66
DJ
15062002-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
ec8b3afd
JL
15112002-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
e9670677
MR
15182002-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
5b0e55b6
JT
15242002-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
a074e149
JT
15332002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1534
1535 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
1536
d2dab548
AM
15372002-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
20e130e9
RH
15452002-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
9e756d64
RH
15502002-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
3048287a
NC
15552002-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
194b5210
AM
15602002-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
34e97952
AM
15662002-05-31 Graeme Peterson <gp@qnx.com>
1567
1568 * configure.in: Add i386-*-nto-qnx*.
1569 * configure: Regenerate.
1570
793b27f4
TS
15712002-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
80245285
TS
15762002-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
698b7d9d
TS
15812002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1582
1583 * config/tc-mips.c (s_cpsetup): Fix comment.
1584
76db943d
TS
15852002-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
deec1734 15922002-05-30 Chris G. Demetriou <cgd@broadcom.com>
a2c36061 1593 Ed Satterthwaite <ehs@broadcom.com>
deec1734
CD
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
9ee72ff1
TS
16182002-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
438c16b8
TS
16252002-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
f7ea7ef2
TS
16362002-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
3765b1be
RH
16432002-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
1c5cec28
RH
1661 * doc/c-alpha.texi: Add docs for tls relocations.
1662
def2e0dd
TS
16632002-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
8ade06a8
TR
16682002-05-30 Diego Novillo <dnovillo@redhat.com>
1669
a2c36061
AM
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.
8ade06a8
TR
1675
16762002-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
c9914766
TS
16812002-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
d172d4ba
NC
16982002-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.
52216602 1706 * NEWS: Mention new support.
d172d4ba 1707
e9732b6d
NC
17082002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
1709
1710 * config/obj-coff.c (write_object_file): Add missing semicolon.
1711
f9419b05
TS
17122002-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
aa501e5c
JT
17402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1741
1742 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1743 * configure: Regenerate.
1744
29589b0c
AM
17452002-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
436e8db0
NC
17602002-05-24 TAMURA Kent <kent@netbsd.org>
1761
1762 * configure.in: Add a target for i386-netbsdpe.
1763 * configure: Regenerate.
1764
13ae64f3
JJ
17652002-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
c62e1cc3
NC
18072002-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
6ff96af6
NC
18122002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1813
1814 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
1815 flag.
a2c36061 1816 * doc/as.texinfo: Document that the COFF version of .section
6ff96af6
NC
1817 ignores the 'a' flag.
1818
18e1d487
AM
18192002-05-23 Alan Modra <amodra@bigpond.net.au>
1820
69108c1f
AM
1821 * config/tc-alpha.c (assemble_tokens): Protect use of
1822 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
1823
18e1d487
AM
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
9d66a1d9
L
18382002-05-22 H.J. Lu <hjl@gnu.org>
1839
1840 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
1841 for source file.
1842
76feaaf3
NC
18432002-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
1080e97d
L
18482002-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
c90bbe5b
TS
18532002-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
771c7ce4
TS
18582002-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
fa70f2ed
NC
18632002-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
411863a4
KH
18692002-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
eb268f46
AM
18812002-05-17 Alan Modra <amodra@bigpond.net.au>
1882
1883 * config/obj-generic.c: Delete file.
1884 * config/obj-generic.h: Likewise.
1885
bdfdba87
MM
18862002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1887
1888 * config/tc-avr.c (mcu_types): Update for new devices.
1889
3bec30a8
TS
18902002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1891
1892 * config/tc-mips.c (macro): Warn about wrong la/dla use.
1893
8586fc66
TS
18942002-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
195325d2
TS
18992002-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
4db1a35d
TS
19052002-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
7f367f01
NC
19092002-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
7193a0e7
NC
19142002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
1915
f5b4e9e4
NC
1916 * config/tc-arm.c (md_assemble): Remove redundant call to
1917 listing_prev().
1918
b6675117
NC
1919 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
1920 loc_directive_seen.
1921
7193a0e7
NC
1922 * stabs.c (s_stab_generic): Fix grammatical error in warning
1923 message.
1924
50b31228
AM
19252002-05-13 Alan Modra <amodra@bigpond.net.au>
1926
1927 * write.c (subsegs_finish): Don't specially align last subseg.
1928
cce5a618
NC
19292002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1930
6360824b
NC
1931 * stabs.c (s_stab_generic): Warn about a description field that is
1932 too big.
1933
f8e42b8c
NC
1934 * config/obj-coff.c: Fix compile time warnings when compiling
1935 without BFD_ASSEMBLER defined.
1936 Fix formatting.
1937
cce5a618
NC
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
d7c310c2
NC
19422002-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
5d6255fe
KH
19472002-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
cc8a6dd0
KH
19632002-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
412167cb
AM
19742002-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
91975467
JW
19792002-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
a1b6236b
KH
19842002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1985
1986 * config/tc-mmix.c: Fix formatting.
1987 * config/tc-mmix.h: Likewise.
1988
c8615825
AM
19892002-05-08 Alan Modra <amodra@bigpond.net.au>
1990
1991 * configure: Regenerate.
1992
8a104df9
KH
19932002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1994
1995 * config/tc-m68k.c: Fix formatting.
1996
d3d8a9ee
NC
19972002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1998
1999 * Makefile.am: Honour DESTDIR.
2000 * Makefile.in: Regenerate.
2001
40449e9f
KH
20022002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2003
2004 * config/tc-ia64.c: Fix formatting.
2005 * config/tc-ia64.h: Likewise.
2006
98d3f06f
KH
20072002-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
8f5b2891
AO
20132002-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
d1a6c242
KH
20182002-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
1cfc59d5
AM
20312002-05-02 Alan Modra <amodra@bigpond.net.au>
2032
72297628
AM
2033 * app.c (mri_pseudo): Only declare for TC_M68K.
2034
1cfc59d5
AM
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
358b94bd
NC
20412002-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
d8731e7d
NC
20462002-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
200dbde8
AM
20512002-05-01 Andrew Macleod <amacleod@cygnus.com>
2052
2053 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2054
3f3cdb03
AM
20552002-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
9b2b7d69
MM
20602002-04-30 Mark Mitchell <mark@codesourcery.com>
2061
2062 * configure.in: Add support for powerpc-*-windiss.
2063 * configure: Regenerated.
a2c36061 2064
0f3f3d8b
AM
20652002-04-28 Alan Modra <amodra@bigpond.net.au>
2066
819e6420
AM
2067 * config/tc-s390.c (md_parse_option): Formatting.
2068
0f3f3d8b
AM
2069 * config/tc-i386.c: Formatting fixes, add missing space in error
2070 message.
2071
3c25c5f6
NC
20722002-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
af55c2e6
CD
20792002-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
062cd5e7
AS
20842002-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
2b2e39bf
CD
20922002-04-22 Chris Demetriou <cgd@broadcom.com>
2093
2094 * config/tc-mips.c (macro_build): Add close-parenthesis missing
2095 from previous change.
2096
80cc45a5
EC
20972002-04-22 Eric Christopher <echristo@redhat.com>
2098
2b2e39bf
CD
2099 * config/tc-mips.c (macro_build): Add warning if macro instructions
2100 are expanded into a branch delay slot.
80cc45a5 2101
ffa554ed
GK
21022002-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
302576af
MS
21072002-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
0f3f3d8b 21122002-04-16 Alan Modra <amodra@bigpond.net.au>
091e58c1
AM
2113
2114 * as.c (main): Don't reference _bfd_chunksize.
2115
76b999d0
TR
21162002-04-15 Tom Rix <trix@redhat.com>
2117
80cc45a5 2118 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
76b999d0
TR
2119 symbols in merge sections.
2120
580a832e
RS
21212002-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
edde18a5
AM
21282002-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
6c6783ff 21342002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5bcd00a6
JR
2135
2136 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2137 symbol_used_in_reloc_p is true.
2ed5f585
JR
2138
2139 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2140 endian hosts.
2141
8e42bcb6
AM
21422002-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
874e8986
TS
21492002-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
fbdbf472
TR
21582002-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
21652002-04-03 Alan Matsuoka <alanm@redhat.com>
2166 Tom Rix <trix@redhat.com>
2167
2168 From Jeff Knaggs <jknaggs@redhat.com>
80cc45a5 2169 * config/tc-d10v.c (check_resource_conflict): New function to
fbdbf472
TR
2170 check for resource conflicts.
2171
2172 From Jason Eckhardt <jle@redhat.com>
a2c36061
AM
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.
fbdbf472
TR
2179
2180 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
a2c36061
AM
2181 * tc-d10v.c (parallel_ok): Prevent packing only if the first
2182 instruction cannot be packed.
fbdbf472
TR
2183
2184 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
a2c36061
AM
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.
fbdbf472 2190
784b640d
AM
21912002-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
5f44c186
RH
21972002-04-01 Jessica Han <jessica@cup.hp.com>
2198
a2c36061 2199 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5f44c186
RH
2200 in 32-bit mode.
2201
3458b54c
AS
22022002-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
815b453c
AM
22112002-03-22 Alan Modra <amodra@bigpond.net.au>
2212
2213 * config/te-aix5.h: Typo fix.
2214
d5b32339
AM
22152002-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
f201ccb3
NC
22212002-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
177b4a6a
AO
22262002-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
eb1e0e80
NC
22322002-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
a1c259a1
NC
22392002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2240
2241 * po/fr.po: Updated version.
2242
949f2b5c
AJ
22432002-03-16 Andreas Jaeger <aj@suse.de>
2244
2245 * doc/c-mips.texi (Machine Dependencies): Add new node.
2246
1f25f5d3
CD
22472002-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.
949f2b5c 2266
2be11e7e
HPN
22672002-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
9ce88e60
NC
22722002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2273
2274 * po/fr.po: Updated version.
2275
1e16b528
AS
22762002-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
29b0f896
AM
22822002-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
2e64b665
DJ
23242002-03-07 Daniel Jacobowitz <drow@mvista.com>
2325
2326 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2327
937149dd
AM
23282002-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
40d74fb1
JL
23372002-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
cd3cde86
AM
23432002-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.
949f2b5c 2351 (md_assemble): Add cases to parse float operands. Also fix
cd3cde86
AM
2352 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2353
e9682144
L
23542002-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
26eb4093
JJ
23622002-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
559e22f3
JJ
23682002-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
ef412327
NC
23742002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
2375
2376 * po/es.po: Updated.
2377
b25a253c
CD
23782002-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
fe41178f
NC
23922002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
2393
587fe2b3
NC
2394 * doc/as.texinfo (Overview): Add missing @ifset IA64
2395
fe41178f
NC
2396 * configure.in (LINGUAS): Add es.po.
2397 * configure: Regenerate.
2398 * po/es.po: New file.
2399
4d34fb5f
TS
24002002-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
9e32ca89
NC
24072002-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
23e1d84c
AM
24122002-02-25 Alan Modra <amodra@bigpond.net.au>
2413
c7d004c5
AM
2414 * config/tc-hppa.c: Update copyright date.
2415
2416 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
23e1d84c
AM
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
b1c6bf70 24242002-02-22 David Mosberger <davidm@hpl.hp.com>
6290819d
NC
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
f1e7a2c9
NC
24422002-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
3f965e60
NC
24472002-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
9a66911f
NC
24562002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2457
2458 * NEWS: Mark 2.12 branch.
2459
f88fd9fe
TT
24602002-02-19 Tom Tromey <tromey@redhat.com>
2461
2462 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2463
da0e507f
TS
24642002-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
ff0fb565
MS
24692002-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
a245a9aa
DJ
24762002-02-18 Daniel Jacobowitz <drow@mvista.com>
2477
2478 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
2479
8bf549a8
NC
24802002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
2481
2482 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
2483 instead of CRIS.
2484
9151e8bf
CD
24852002-02-15 Chris Demetriou <cgd@broadcom.com>
2486
a2c36061 2487 * config/tc-mips.c (md_estimate_size_before_relax): Really
9151e8bf
CD
2488 make sure we treat weak like extern only for ELF. (Fixes
2489 patch from 2001-07-25.)
2490
59455fb1
BE
24912002-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
49fda6c8
HPN
24962002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2497
2498 * NEWS: Mention support for MMIX.
2499
2d2bf3e0
CD
25002002-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
76f57f3a
JT
25062002-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
3bf057fa
AS
25142002-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
6334e312 25192002-02-13 Ben Elliston <bje@redhat.com>
1ac57253
BE
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
3dcfe21d
AM
25282002-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
913572ec
AO
25332002-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
9b90b531
TR
25402002-02-11 Tom Rix <trix@redhat.com>
2541
949f2b5c 2542 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
9b90b531
TR
2543 xcoff64.
2544
6c6783ff 25452002-06-11 Alexandre Oliva <aoliva@redhat.com>
6c1b24e4
AO
2546
2547 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
2548 Use all over.
2549
6c6783ff 25502002-02-11 Jan Hubicka <jh@suse.cz>
7ecd2f8b
JH
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
7eb27ef2
AO
25562002-02-11 Alexandre Oliva <aoliva@redhat.com>
2557
2558 * config/tc-sh.c (dot): Removed unused function.
2559
fa702524
AM
25602002-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
625e1353
RH
25692002-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
543833df
RH
25752002-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
328eb32e
HPN
25852002-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
6373ee54
CD
25942002-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
50a4c611
RH
26032002-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
324bfcf3
AO
26092002-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
f6cf69d7 2623 blocks. Set fragP->fr_var even if relaxation type unchanged.
324bfcf3
AO
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.
f6cf69d7 2745 (shmedia_md_convert_frag): Add parameter final. Rename parameter
324bfcf3
AO
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
f6cf69d7 2751 and make frag_wane neutralize the frag. Update comments.
324bfcf3
AO
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.
f6cf69d7 2763 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
324bfcf3
AO
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,
949f2b5c 2775 if reloc is emitted.
324bfcf3
AO
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
f6cf69d7 2786 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
324bfcf3
AO
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
f6cf69d7 2923 immediate operands that has turned PC-relative. Adjust back for
324bfcf3
AO
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
f6cf69d7 2937 MOVI expansion. If X_op_symbol of the immediate expression is
324bfcf3
AO
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.
f6cf69d7 2961 (sh64_consume_datalabel): Actually implement semantics. New
324bfcf3
AO
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
ac3f04d7
AO
30802002-02-06 Alexandre Oliva <aoliva@redhat.com>
3081
6b32719e
AO
3082 * config/tc-sh.c (parse_at): Install the correct version of
3083 2002-02-04's patch.
949f2b5c 3084
ac3f04d7
AO
3085 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3086 assume fixP->fx_subsy is non-NULL.
3087
7679ead9
AO
30882002-02-04 Alexandre Oliva <aoliva@redhat.com>
3089
3090 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
fdf4122d 3091 A_DISP_PC_ABS, and adjust it by -4.
7679ead9
AO
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
5459d7a0
HPN
30972002-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
006336b8
JT
31042002-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
9e0665bc
AM
31102002-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
973eb340
HPN
31362002-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.
949f2b5c 3141 (allocate_undefined_gregs_in_linker): New variable.
973eb340
HPN
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
ba323545
AM
31612002-02-01 Alan Modra <amodra@bigpond.net.au>
3162
3163 * Makefile.am: Run "make dep-am"
3164 * Makefile.in: Regenerate.
3165
3b16e843
NC
31662002-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
912a07db
RS
31812002-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
4514d474
CD
31862002-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
246fcdee
DJ
31922002-01-29 Daniel Jacobowitz <drow@mvista.com>
3193
3194 * config/tc-i386.c: Protect definitions of true and false
3195 from redefinition.
3196
00e6e13d
JJ
31972002-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
4867be41
DJ
32032002-01-27 Daniel Jacobowitz <drow@mvista.com>
3204
3205 * configure: Regenerated.
3206
7562a296
HPN
32072002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3208
3209 * doc/Makefile.am (install): Depend on install-info.
3210 * doc/Makefile.in: Regenerate.
3211
1caa7b23
NC
32122002-01-26 Nick Clifton <nick@redhat.com>
3213
3214 * po/fr.po: Updated version
3215
166e23f9
KH
32162002-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
538cd60f
AO
32222002-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
b386f24b
AO
32372002-01-22 Alexandre Oliva <aoliva@redhat.com>
3238
3239 * config/tc-mn10300.c (xr_registers): Move `pc'...
3240 (other_registers): ... here.
3241
c46f0c34
AM
32422002-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
23deb923
DD
32482002-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
9596feea
JT
32542002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3255
3256 * configure.in (ia64-*-netbsd*): New target.
949f2b5c 3257 * configure: Regenerate.
9596feea 3258
92081f48
HPN
32592002-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
63e63b07
RE
32662002-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
ea6ef066
RE
32752002-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
bc89618b
RE
32842002-01-18 Richard Earnshaw <rearnsha@arm.com>
3285
3286 * doc/c-arm.texi: Add new fpe options to list of supported flags.
3287
d193a22a
RE
32882002-01-19 Keith Walker <keith.walker@arm.com>
3289
3290 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3291
03b1477f
RE
32922002-01-18 Richard Earnshaw <rearnsha@arm.com>
3293
3294 * NEWS: Mention new ARM command-line options and VFP support.
3295
949f2b5c 3296 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
03b1477f
RE
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
2a538ba5
AJ
33172002-01-18 Andreas Jaeger <aj@suse.de>
3318
3319 * as.c (parse_args): Update year.
3320
b1ffc257 33212002-01-17 Timothy Wall <twall@alum.mit.edu>
2a538ba5 3322
b1ffc257
TW
3323 * config/tc-tic54x.c (encode_address): Add a more informative
3324 warning about incorrect syntax.
3325
328577ad
NC
33262002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3327
3328 * po/gas.pot: Regenerate.
3329
06f030db
NC
33302002-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
394f9b3a
TS
33372002-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
af3ae48d
NC
33472002-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
bfae80f2
RE
33532002-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
fcd6d8d6
RE
33872002-01-15 Richard Earnshaw <rearnsha@arm.com>
3388
2a538ba5 3389 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
fcd6d8d6
RE
3390 various command line options.
3391
1f7fd478
NC
33922002-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
21f0f23a
RE
33982002-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
ce058b6c
RE
34042002-01-14 Richard Earnshaw <rearnsha@arm.com>
3405
2a538ba5 3406 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
ce058b6c
RE
3407 is not dependent on ARM_BI_ENDIAN.
3408
f03698e6
RE
34092002-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
e28cd48c
RE
34242002-01-11 Richard Earnshaw <rearnsha@arm.com>
3425
6088b00e 3426 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
e28cd48c
RE
3427 op that can be translated into a mvn instruction.
3428
1cd8ff38
NC
34292002-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
6c43fab6
RE
34452002-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
8d05742f
JT
34852002-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.
2a538ba5 3490 * tc-sh.h: Update copyright years.
8d05742f
JT
3491 (TARGET_FORMAT): Add version for TE_NetBSD.
3492
ceac3f62
NC
34932002-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
d7861ad2
AM
34982002-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
7a621144
DJ
35032002-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
7c6beb69
AM
35152002-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
8a8b2d4b
AJ
35212002-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
a09cf9bd
MG
35272002-01-03 matthew green <mrg@redhat.com>
3528
3529 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
3530
23b7f870
NC
35312002-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
08d56133
NC
3536For older changes see ChangeLog-0001
3537\f
3538Local Variables:
3539mode: change-log
3540left-margin: 8
3541fill-column: 74
3542version-control: never
3543End:
This page took 0.22198 seconds and 4 git commands to generate.