All NetBSD ELF targets should pass these tests.
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
2a19f73f
MS
12003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2
3 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
4 gotplt and pltoff relocations.
5 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
6 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
7 gotplt and pltoff to bfd relocations.
8 (md_gather_operands): Map new instruction operand/elf suffix
9 combinations to bfd relocations.
10 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
11 to the list of unadjustable relocations.
12 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
13 and pltoff relocations.
14 (md_apply_fix3): Add the new relocations.
15
f1fc51da
MS
162003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
17
18 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
19 with a subsy symbol.
20
2d94a61a
SC
212003-01-17 Stephane Carrez <stcarrez@nerim.fr>
22
23 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
24 of relocs for memory bank addressing.
25
d01030e6
SC
262003-01-17 Stephane Carrez <stcarrez@nerim.fr>
27
28 * config/tc-m68hc11.c (md_show_usage): Update usage.
29 (md_parse_option): Recognize -m68hcs12.
30 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
31 HCS12.
32 * doc/as.texinfo (Overview): Document new option -m68hcs12.
33
b3dfd7fe
JJ
342003-01-16 Jakub Jelinek <jakub@redhat.com>
35
36 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
37
f62ba8f2
AM
382003-01-16 Alan Modra <amodra@bigpond.net.au>
39
40 * Makefile.am: Run "make dep-am".
41 * Makefile.in: Regenerate.
42 * po/POTFILES.in: Regenerate.
43
a0ea3e1d
AM
442003-01-11 Alan Modra <amodra@bigpond.net.au>
45
46 * read.c (get_absolute_expr): New, split out from..
47 (get_absolute_expression): ..here.
48 * read.h (get_absolute_expr): Declare.
49 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
50 Trim size to arch bits_per_address, and test for negative input
51 via get_absolute_expr.
52
2d10acd2
DD
532003-01-07 DJ Delorie <dj@redhat.com>
54
55 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
56 on operand type.
57 (xstormy16_md_apply_fix3): Use adjustment.
58
1c53c80d
SC
592003-01-02 Ben Elliston <bje@redhat.com>
60
61 * configure.in: Add iq2000-elf target.
62 * configure: Regenerate.
63 * config/tc-iq2000.c: New file.
64 * config/tc-iq2000.h: Likewise.
65 * po/gas.pot: Regenerate.
66
071742cf
CD
672003-01-02 Chris Demetriou <cgd@broadcom.com>
68
69 * config/tc-mips.c: Update copyright years to include 2003.
70 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
71 Additionally, clean up their code slightly and clean up their
72 comments some more.
73
74 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
75
55ac548d
DJ
762003-01-01 Daniel Jacobowitz <drow@mvista.com>
77
78 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
79 $(CPU_DOCS)".
80 * doc/Makefile.in: Regenerate.
81
db66b292
DA
822003-01-01 John David Anglin <dave.anglin@nrc.ca>
83
84 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
85 of .init and .fini sections for array initializers and finalizers.
86
bbcc0807
CD
872002-12-31 Chris Demetriou <cgd@broadcom.com>
88
89 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
90 the "+D" operand, which will be used only by the disassembler.
91
af7ee8bf
CD
922002-12-30 Chris Demetriou <cgd@broadcom.com>
93
94 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
95 CPU variants.
96 * configure: Regenerate.
97 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
98 (macro_build): Handle "K" operand.
99 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
100 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
101 (mips_ip): New variable "lastpos", and implement "+A", "+B",
102 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
103 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
104 (validate_mips_insn): Implement "+" as a way to extend the
105 allowed operands, and implement "K", "+A", "+B", and "+C"
106 operands.
107 (OPTION_MIPS32R2): New define.
108 (md_longopts): Add entry for OPTION_MIPS32R2.
109 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
110 (md_parse_option): Handle OPTION_MIPS32R2.
111 (s_mipsset): Reimplement handling of ".set mipsN" options
112 and add support for ".set mips32r2".
113 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
114 (md_show_usage): Document "-mips32r2" option.
115 * doc/as.texinfo: Document "-mips32r2" option.
116 * doc/c-mips.texi: Likewise.
117
2469cfa2
NC
1182002-12-30 Dmitry Diky <diwil@mail.ru>
119
120 * configure.in: Add msp430 target.
121 * configure: Regenerate.
122 * Makefile.am: Add msp430 target.
123 * Makefile.in: Regenerate.
124 * config/tc-msp430.c: New file: msp430 assembler.
125 * config/tc-msp430.h: New file: target macros for msp430.
126 * doc/Makefile.am: Add msp430 target.
127 * doc/Makefile.in: Regenerate.
128 * doc/as.texinfo: Include msp430 documenation.
129 * doc/all.texi: Enable msp430 documentation.
130 * doc/c-msp430.texi: New file: document msp430 specific features
131 of the assembler.
132
9605f328
AO
1332002-12-25 Alexandre Oliva <aoliva@redhat.com>
134
135 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
136 (dwarf2_finish): Use it.
137 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
138 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
139
8f46beda
DD
1402002-12-20 DJ Delorie <dj@redhat.com>
141
142 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
143 BFD_RELOC_XSTORMY16_12.
144
5f5e16be
AM
1452002-12-19 Alan Modra <amodra@bigpond.net.au>
146
147 * doc/as.texinfo (Invoking): Typo fix.
148 * config/tc-tic54x.c (encode_operand): Comment typo fix.
149
062b7c0c
KH
1502002-12-18 Kazu Hirata <kazu@cs.umass.edu>
151
152 * doc/c-alpha.texi: Fix typos.
153 * doc/c-arm.texi: Likewise.
154 * doc/c-d10v.texi: Likewise.
155 * doc/c-i370.texi: Likewise.
156 * doc/c-i960.texi: Likewise.
157 * doc/c-ia64.texi: Likewise.
158 * doc/c-mmix.texi: Likewise.
159 * doc/c-ns32k.texi: Likewise.
160 * doc/c-pdp11.texi: Likewise.
161 * doc/c-pj.texi: Likewise.
162 * doc/c-sh64.texi: Likewise.
163 * doc/c-sparc.texi: Likewise.
164 * doc/c-tic54x.texi: Likewise.
165 * doc/c-v850.texi: Likewise.
166 * doc/c-vax.texi: Likewise.
167 * doc/internals.texi: Likewise.
168
82dd0097
CD
1692002-12-18 Chris Demetriou <cgd@broadcom.com>
170
171 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
172 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
173 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
174 arrange not to issue warnings about use of AT when AT is not
175 actually used.
176
9c3b31c6
NC
1772002-12-17 Nick Clifton <nickc@redhat.com>
178
179 * as.c (std_longopts): Duplicate --keep-locals entry in order to
180 prevent it being confused with -k.
181
9bb76eb8
DD
1822002-12-16 Andrew MacLeod <amacleod@redhat.com>
183
184 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
185 has already been set up, use it.
186
c03099e6
KH
1872002-12-16 Kazu Hirata <kazu@cs.umass.edu>
188
189 * ChangeLog-9295: Fix a typo.
190 * README: Likewise.
191 * config/tc-d10v.c: Fix a comment typo.
192 * config/tc-dlx.c: Likewise.
193 * config/tc-h8300.h: Likewise.
194 * config/tc-h8500.h: Likewise.
195 * config/tc-mips.c: Likewise.
196 * config/tc-s390.c: Likewise.
197 * config/tc-sh.h: Likewise.
198 * config/tc-tic80.h: Likewise.
199 * config/tc-w65.h: Likewise.
200 * config/tc-z8k.c: Likewise.
201 * config/tc-z8k.h: Likewise.
202 * testsuite/gas/h8300/cmpsi2.s: Likewise.
203
4cd62c96
AM
2042002-12-16 Alan Modra <amodra@bigpond.net.au>
205
30cdfbed
AM
206 * config/tc-d30v.c (check_range): Warning fixes, formatting.
207 Simplify sign extension. Remove redundant unsigned < 0 test.
208 * config/tc-i960.c (md_ri_to_chars): Prototype.
209 * config/tc-mcore.c (md_pseudo_table): Fix typo.
210 (dump_literals): Init brarsym, and test later instead of isforce.
211
4cd62c96
AM
212 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
213 (parse): Constify line and lineptr.
214 (md_begin): Calculate endop here.
215
ebd0428f
AM
2162002-12-13 Alan Modra <amodra@bigpond.net.au>
217
4eb4336c
AM
218 * config/obj-vms.c: Formatting. Include fnctl.h.
219 (Create_VMS_Object_File): Fix creat call for sane unix systems.
220 (Object_Record_Offset): Make it a size_t.
221 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
222 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
223 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
224 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
225 (vms_fixup_data_section <data_size>): Add here instead.
ebd0428f
AM
226 * config/e-criself.c: Fix typo in last change.
227
78a33af2
AM
2282002-12-13 Alan Modra <amodra@bigpond.net.au>
229
17fc154e
AM
230 * write.c (write_object_file): Fix signed/unsigned warning.
231 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
232 * config/e-criself.c (criself_bfd_name): Prototype.
233 * config/obj-aout.c (s_sect): Remove unused function.
234 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
235 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
236 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
237 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
238 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
239 (VMS_RSYM_Parse <Current_Routine>): Likewise.
240 (vms_fixup_text_section <text_siz>): Likewise.
241 (synthesize_data_segment <data_size>): Likewise.
242 (vms_fixup_xtors_section <sect_no>): Likewise.
243 (structure_count): Don't use implicit int type.
bfc866a6
AM
244 * config/tc-a29k.c (insert_sreg): Prototype.
245 (define_some_regs): Prototype, make static.
246 (parse_operand): Likewise.
247 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
248 (md_show_usage <stream>): Likewise.
249 (md_section_align <segment>): Likewise.
250 (md_convert_frag <all args>): Likewise.
251 (md_estimate_size_before_relax <all args>): Likewise.
252 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
253 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
ebf19f1b
AM
254 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
255 (md_undefined_symbol <name>): Likewise.
256 (md_convert_frag <all args>): Likewise.
257 (write_long <opcode>): Likewise.
258 (tc_gen_reloc <seg>): Likewise.
259 (md_estimate_size_before_relax <all args>): Likewise.
260 (md_apply_fix3 <seg>): Likewise.
261 (s_d30v_align <ignore>): Likewise.
262 (build_insn): Correct format string.
263 (md_apply_fix3): Likewise.
33b5881a
AM
264 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
265 (md_undefined_symbol <name>): Likewise.
266 (md_convert_frag <all args>): Likewise.
267 (md_cgen_lookup_reloc <insn>): Likewise.
268 (md_begin): Delete unused vars.
269 (md_assemble): Likewise.
270 (md_estimate_size_before_relax): Likewise.
271 (fr30_relax_frag): #if 0 out, seems unused.
272 (md_atof): Remove declaration of atof_ieee.
273 (restore_colon): Prototype.
a08333bb
AM
274 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
275 (frv_find_in_vliw): Likewise.
276 (frv_debug_tomcat): Likewise.
277 (frv_adjust_vliw_count): Likewise.
278 (frv_tomcat_shuffle): Likewise.
279 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
280 frv_find_in_vliw call.
281 (md_atof): Remove declaration of atof_ieee.
45e85b87
AM
282 * config/tc-h8500.c (cons): Delete declaration.
283 (md_begin <opcode>): Constify.
284 (displacement_size, immediate_size, absolute_size): Remove.
285 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
286 (tc_crawl_symbol_chain <headers>): Likewise.
287 (md_undefined_symbol <name>): Likewise.
288 (tc_headers_hook <headers>): Likewise.
289 (md_parse_option <c,arg>): Likewise.
290 (md_show_usage <stream>): Likewise.
291 (md_convert_frag <headers, seg>): Likewise.
292 (tc_coff_symbol_emit_hook <ignore>): Likewise.
293 (md_atof): Remove declaration of atof_ieee.
294 (tc_aout_fix_to_chars): Remove unused function.
295 (parse_reg): Prototype.
296 (parse_exp): Prototype.
297 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
298 (parse_reglist): Prototype.
299 (get_operand): Prototype.
300 (get_operands): Prototype.
301 (get_specific): Prototype. Make "this_index" signed.
302 (check): Prototype, make static.
303 (insert): Prototype
304 (build_relaxable_instruction): Prototype, make static.
305 (build_bytes): Prototype.
306 (wordify_scb): Prototype.
307 * config/tc-h8500.h (start_label): Declare.
308 (tc_coff_sizemachdep): Declare.
650f02e9
AM
309 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
310 (i370_rmode <unused>): Likewise.
311 (i370_csect <unused>): Likewise.
312 (i370_dc <unused>): Likewise.
313 (i370_ds <unused>): Likewise.
314 (i370_elf_lcomm <unused>): Likewise.
315 (i370_ltorg <ignore>): Likewise.
316 (i370_using <ignore>): Likewise.
317 (i370_drop <ignore>): Likewise.
318 (i370_byte <ignore>): Likewise.
319 (i370_tc <ignore>): Likewise.
320 (md_estimate_size_before_relax <fragp, seg>): Likewise.
321 (md_convert_frag <all args>): Likewise.
322 (md_undefined_symbol <name>): Likewise.
323 (md_pcrel_from_section <sec>): Likewise.
324 (tc_gen_reloc <seg>): Likewise.
325 (i370_section_letter): #if 0 unused functions.
326 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
327 (symbol_locate): Prototype.
d444b726
AM
328 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
329 (md_number_to_disp, md_number_to_field): Remove.
330 (md_apply_fix3): Correct format string and cast "fup".
b9195351
AM
331 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
332 (s_endian <ignore>): Likewise.
333 (md_undefined_symbol <name>): Likewise.
334 (tc_crawl_symbol_chain <headers>): Likewise.
335 (tc_set_bal_of_call): Likewise.
336 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
337 (i960_handle_align <fragp>): Likewise.
338 (i960_validate_fix <this_segment_type>): Likewise
339 (tc_gen_reloc <section>): Likewise.
340 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
341 (struct memS, struct regop): Forward declare.
342 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
343 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
344 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
345 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
346 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
347 (md_chars_to_number, md_number_to_imm): Make static, prototype.
348 (md_number_to_field): Likewise.
349 (md_number_to_disp): Remove unused function.
350 (md_atof): Remove declaration of atof_ieee.
351 (md_apply_fix3): Correct md_number_to_imm call.
64384dfd 352 * config/tc-ip2k.c (md_assemble): Warning fix.
78a0c6fb
AM
353 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
354 (fill_insn <ignore>): Likewise.
355 (debug_sym <ignore>): Likewise.
356 (md_undefined_symbol <name>): Likewise.
357 (m32r_scomm <ignore>): Likewise.
358 (md_convert_frag <abfd>): Likewise.
359 (md_cgen_lookup_reloc <insn>): Likewise.
360 (m32r_record_hi16 <seg>): Likewise.
361 (md_estimate_size_before_relax): #if 0 old_fr_fix.
362 (allow_m32rx): Prototype.
363 (first_writes_to_seconds_operands): Prototype.
364 (writes_to_pc): Prototype.
365 (can_make_parallel): Prototype.
366 (make_parallel): Prototype.
367 (target_make_parallel): Prototype.
368 (assemble_two_insns): Prototype.
369 (m32r_record_hi16): Prototype.
370 (md_atof): Remove declaration of atof_ieee.
371 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
372 (m32r_force_relocation): Prototype.
373 (m32r_elf_section_change_hook): Prototype.
f1f5ef86
AM
374 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
375 (md_show_usage): Fix signed/unsigned warning.
38b9ac49
AM
376 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
377 (calcop): Ditto for reg_prefix var.
378 (hexval): Add cast to fix signed/unsigned warning.
379 (md_number_to_disp): Delete unused function.
380 (md_number_to_field): Likewise.
381 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
382 (match_name): Prototype.
383 (get_bf2): Prototype.
384 (get_bf_offset_expression): Prototype.
aa699a2c
AM
385 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
386 (md_undefined_symbol <ignore>): Likewise.
387 (md_create_short_jump <all args>): Likewise.
388 (md_create_long_jump <all args>): Likewise.
389 (md_convert_frag <abfd, sec>): Likewise.
390 (md_apply_fix3 <segment>): Likewise.
391 (md_section_align <segment>): Likewise.
392 (md_pcrel_from_section <sec>): Likewise.
393 (tc_gen_reloc <section>): Likewise.
394 (reg_m, reg_n, immediate): Delete unused vars.
395 (dump_literals): Fix signed/unsigned warning.
396 (enter_literal): Likewise.
397 (parse_imm): Likewise. Also fix format string.
398 (parse_mem): Remove unused var.
399 (md_assemble <LS>): Abort on unexpected inst.
400 (md_atof): Remove declaration of atof_ieee.
401 (md_parse_option): Remove unused vars.
402 (md_apply_fix3): Fix format strings, cast args.
403 (tc_gen_reloc): Delete unused var.
404 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2a8ce8da
AM
405 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
406 (md_undefined_symbol <name>): Likewise.
407 (md_convert_frag <abfd>): Likewise.
408 (tc_gen_reloc <seg>): Likewise.
409 (check_operand <insn>): Likewise.
410 (md_convert_frag): Fix format strings.
411 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
717acf4b
AM
412 * config/tc-openrisc.c (ignore_pseudo): Prototype.
413 (md_atof): Remove declaration of atof_ieee.
414 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
415 (md_apply_fix3): Fix bogus >>='s.
416 (md_undefined_symbol): Delete unused var.
0e073f4c
AM
417 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
418 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
419 (fake_opcode): Adjust for pj_opc_int_t change.
420 (md_begin): Likewise.
421 (md_assemble): Likewise.
422 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
423 instead of non-existent third arg of parse_exp_save_ilp.
424 (md_parse_option): Correct "little" and "big" calls.
a7982600
AM
425 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
426 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
427 (tc_gen_reloc <section>): Likewise.
167795c4
AM
428 * config/tc-tic30.c: #include stdarg.h or varargs.h.
429 (debug): Rewrite using VA_* macros.
430 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
431 (md_convert_frag): Likewise.
432 (md_parse_option): Likewise.
433 (md_show_usage): Likewise.
434 (md_undefined_symbol): Likewise.
435 (tc_gen_reloc): Likewise.
436 (md_operand): Likewise.
437 (tc_aout_pre_write_hook): Delete.
438 (struct tic30_insn): Make "operands" unsigned.
439 (struct tic30_par_insn): Likewise.
440 (md_assemble): Likewise for "count", "i" and "numops".
441 (tic30_parallel_insn): Likewise for vars here.
442 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
443 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
444 * config/tc-tic80.c (obj_coff_section): Delete declaration.
445 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
446 (md_undefined_symbol): Likewise.
447 (md_parse_option): Likewise.
448 (md_convert_frag): Likewise.
449 (tc_coff_symbol_emit_hook): Likewise.
450 (md_atof): Remove declaration of atof_ieee.
451 (const_overflow): Warning fixes, tidy.
452 (get_operands): Delete unused vars.
453 (internal_error_a): Adjust format string to expect a long for arg.
454 (find_opcode): Warning fixes, simplify.
455 (build_insn): Cast internal_error_a arg.
456 (md_begin): Likewise.
457 (md_apply_fix3): Likewise.
458 (md_assemble): Delete unused var.
459 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
78a33af2
AM
460 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
461 (whatreg, parse_reg, parse_exp): Make static, prototype.
462 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
463 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
464 (get_operand, get_operands, get_specific, newfix): Likewise.
465 (apply_fix, build_bytes): Likewise.
466 (md_atof): Remove declaration of atof_ieee.
467 (tc_aout_fix_to_chars): Delete.
468 (md_begin): Constify "opcode". Don't try to init opcode->idx.
469 Fix s_unseg call.
470 (md_parse_option): Fix s_segm and s_unseg calls.
471
af6ae2ad
AO
4722002-12-12 Alexandre Oliva <aoliva@redhat.com>
473
474 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
475 Adjust callers.
476 (RELAX_BRANCH_RELOC_S2): Delete.
477 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
478 Do not handle BFD_RELOC_16_PCREL.
479 (macro_build, mips_ip): Likewise.
480 (md_pcrel_from): Return 4 for undefined symbols regardless of
481 mips_pic.
482 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
483 Don't dereference howto if no such relocation is available.
484 Do not apply hack for in-place zero addend in NEWABI.
485 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
486
074d08b0 4872002-12-12 Alexandre Oliva <aoliva@redhat.com>,
78a33af2 488 Alan Modra <amodra@bigpond.net.au>
074d08b0
AO
489
490 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
491 (TC_LINKRELAX_FIXUP): Add comments.
492
497f322d
AO
4932002-12-12 Alexandre Oliva <aoliva@redhat.com>
494
495 * config/tc-mn10300.c (set_arch_mach): Change argument type to
496 avoid warnings.
497 (r_register_name, xr_register_name): Add prototype declarations.
498
ffbceea9
L
4992002-12-08 H.J. Lu <hjl@gnu.org>
500
501 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
502 copied from tc-i386.c.
503
75538612
SC
5042002-12-08 Stephane Carrez <stcarrez@nerim.fr>
505
506 Fix Bug savannah/1825:
507 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
508 (md_relax_table): Define specific relax for PC-rel offsets.
509 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
510 (m68hc11_relax_frag): Handle the new relax code.
511 (md_convert_frag): Likewise.
512 (md_estimate_size_before_relax): Likewise.
513
546c73f9
AM
5142002-12-08 Alan Modra <amodra@bigpond.net.au>
515
516 * subsegs.c (section_symbol): Use the symbol, not the section, name.
517
fa2c7eff
RH
5182002-12-05 Richard Henderson <rth@redhat.com>
519
520 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
521 (ia64_gen_real_reloc_type): Handle it.
522 (pseudo_func): Add @ltoffx.
523 (md_begin): Build .<ltoffx>.
524 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
525
114424c6
AM
5262002-12-05 Alan Modra <amodra@bigpond.net.au>
527
528 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
529 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
530 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
531 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
532 COFF to call arm_force_relocation.
533
c10d9d8f
JW
5342002-12-04 David Mosberger <davidm@hpl.hp.com>
535
536 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
537 instruction.
538 (emit_one_bundle): Handle "hint" instruction.
539 (operand_match): Match IA64_OPND_AR_CSD.
540
c8970b4b
AM
5412002-12-04 Alan Modra <amodra@bigpond.net.au>
542
543 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
544 inside #if.
545
e1a9cb8e
NC
5462002-12-03 Nick Clifton <nickc@redhat.com>
547
548 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
6b0817e5 549 .PPC.EMB.apuinfo sections.
e1a9cb8e 550
a823923b
RH
5512002-12-03 Richard Henderson <rth@redhat.com>
552
553 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
554
61b5f74b
AM
5552002-12-03 Alan Modra <amodra@bigpond.net.au>
556
6297c1fe
AM
557 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
558 (cons, s_align_bytes): Delete declaration.
559 (relax): Delete.
560 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
561 strings common.
562 (dot): Delete unused function.
563 (w65_expression): Remove unused arg.
564 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
565 call.
566 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
567 parse_exp call.
568 (get_specific): Prototype. Constify "struct opinfo *" arg and return
569 value.
570 (check): Remove unused function.
571 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
572 on unhandled switch case.
573 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
574 "opcode".
575 (tc_crawl_symbol_chain): Delete unused function.
576 (tc_headers_hook): Likewise.
577 (tc_Nout_fix_to_chars): Likewise.
578 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
579 (md_parse_option): Likewise.
580 (md_convert_frag): Likewise.
581 (tc_coff_symbol_emit_hook): Likewise.
582 (md_show_usage): Likewise.
583 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
584 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
585 (w65_expression): Declare.
586
587 * po/POTFILES.in: Regenerate.
588
61b5f74b
AM
589 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
590 and ARM_ADRL_IMMEDIATE.
591
fea17916
NC
5922002-12-02 Nick Clifton <nickc@redhat.com>
593
594 * gasp.c: Delete. It has been deprecated.
595 * NEWS: Mention that gasp has been removed.
596 * Makefile.am: Remove references to gasp.
597 * makefile.vms: Likewise.
598 * mpw-make.sed: Likewise.
599 * Makeile.in: Regenerate.
600 * doc/gasp.texi: Delete.
601 * doc/Makefile.am: Remove references to gasp.texi.
602 * doc/Makefile.in: Regenerate.
603 * macro.c: Delete references to gasp.
604 Remove use of comment_char function parameter as it is no longer
605 needed.
606 * macro.h: Update prototypes to remove comment_char parameter.
607 Fix formatting.
608 * read.c (read_a_source_file, s_irp): Remove comment_char
ebd0428f
AM
609 parameter from invocation of functions in macro.c
610
dc59a897
HPN
6112002-12-02 Hans-Peter Nilsson <hp@axis.com>
612
4c83186b 613 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
dc59a897 614
1910266d
SC
6152002-12-01 Stephane Carrez <stcarrez@nerim.fr>
616
617 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
618 (tc_gen_reloc): Mark section param as not used.
619
c9e03e8b
SC
6202002-12-01 Stephane Carrez <stcarrez@nerim.fr>
621
622 Fix Bug savannah/1825:
623 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
624 that are not pc-relative.
625 (m68hc11_relax_frag): Declare.
626
627 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
628 the offsetable indexed addressing modes (n,r).
629 (build_insn): Cleanup some locals.
630 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
631 relaxation of difference between two symbols of same section.
632 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
633 only when this is a PC-relative operand and the offset is not absolute.
634 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
635 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
636 be handled by m68hc11_relax_frag.
637
2f904664
SC
6382002-12-01 Stephane Carrez <stcarrez@nerim.fr>
639
640 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
641 (32-bit int, 64-bit double).
642 (md_longopts): New options -mshort, -mlong, -mshort-double and
643 -mlong-double to control the ABI.
644 (md_show_usage): Update.
645 (md_parse_option): Handle new options.
646 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
647
0909233e
AM
6482002-12-01 Nathan Sidwell <nathan@codesourcery.com>
649
650 * symbols.c (report_op_error): New function, broken out of ...
651 (resolve_symbol_value): ... here. Use for both monadic and dyadic
652 operators.
653
0174e383
KK
6542002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
655
656 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
657 for BFD_RELOC_32_PLT_PCREL.
658
b34976b6
AM
6592002-11-30 Alan Modra <amodra@bigpond.net.au>
660
661 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
662 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
663 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
664 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
665 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
666 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
667 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
668 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
669 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
670 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
671 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
672 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
673 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
674 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
675 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
676 TRUE/FALSE. Formatting.
677
143c8e19
NC
6782002-11-29 Nick Clifton <nickc@redhat.com>
679
680 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
681 assume a value of zero.
682 (do_bkpt): Likewise.
683
2bba4140
KK
6842002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
685
686 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
687 for TLS relocations.
688
7925dd68
JJ
6892002-11-29 Jakub Jelinek <jakub@redhat.com>
690
691 * config/tc-ia64.c (md_apply_fix3): Add default case.
692
00f7efb6
JJ
6932002-11-28 Jakub Jelinek <jakub@redhat.com>
694
695 * symbols.c (S_SET_THREAD_LOCAL): New function.
696 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
697 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
698 for TLS relocations.
699 * config/tc-ia64.c (md_apply_fix3): Likewise.
700 * config/tc-alpha.c (md_apply_fix3): Likewise.
701
381a1ab3
JJ
7022002-11-28 Jakub Jelinek <jakub@redhat.com>
703
704 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
705 to entsize.
706
a3b75434
DD
7072002-11-26 DJ Delorie <dj@redhat.com.
708
709 * dwarf2dbg.c (scale_addr_delta): New.
710 (size_inc_line_addr): Use it.
711 (emit_inc_line_addr): Use it.
712
fb2fd3e1
HPN
7132002-11-26 Hans-Peter Nilsson <hp@axis.com>
714
715 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
716 (md_assemble): Don't pass on branches to constants as relaxable.
717 Tweak comment.
718
da91385d
SS
7192002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
720
721 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
722
1d421636
DA
7232002-11-21 Randolph Chung <randolph@tausq.org>
724
725 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
726 only if they have default visibility.
727
33bf47a8
RH
7282002-11-21 Richard Henderson <rth@redhat.com>
729
730 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
731 S_IS_DEFINED test.
732
5f8075fa
AM
7332002-11-21 Alan Modra <amodra@bigpond.net.au>
734
735 * config/tc-mcore.c (mcore_pool_count): New function.
736 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
737
5ff37431
KD
7382002-11-20 Klee Dienes <kdienes@apple.com>
739
740 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
741 coalesce the name fields to use the same pointer.
742
743 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
744 the name fields to use the same pointer.
745 (get_specific): Check for opcodes with the same name using strcmp
746 as well as comparing the pointer.
747
5045ec7a
AM
7482002-11-20 Alan Modra <amodra@bigpond.net.au>
749
750 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
751 fx_subsy non-NULL.
752
20e420c2
RH
7532002-11-19 Richard Henderson <rth@redhat.com>
754
755 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
756 visibility portion of st_other.
757
a720f7bc
KD
7582002-11-19 Klee Dienes <kdienes@apple.com>
759
760 * config/tc-h8300.c (struct h8_instruction): New type, used to
761 wrap h8_opcodes with length, noperands, idx, and size fields
762 (computed at run-time).
763 (h8_instructions): New variable.
764 (md_begin): Allocate the storage for h8_instructions. Fill
765 h8_instructions with pointers to the appropriate opcode and the
766 correct value for the additional fields.
767 (clever_message): Update to use h8_instructions instead of
768 h8_opcodes.
769 (build_bytes): Ditto.
770 (get_specific): Ditto.
771 (md_assemble): Ditto.
bbce6ab7 772
0a00dd48
MS
7732002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
774
775 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
776 adjustments to symbols in merge sections.
777
81283cde
AM
7782002-11-19 Luke Deller <luked@cse.unsw.edu.au>
779
780 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
781
14e777e0
KB
7822002-11-18 Kevin Buettner <kevinb@redhat.com>
783
784 * dwarf2dbg.h (dwarf2_format): New enum.
785 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
786 (out_debug_line, out_debug_info): Add code for handling 64-bit
787 DWARF 2 formats.
788 * config/tc-mips.h (mips_dwarf2_format): Declare.
789 * config/tc-mips.c (mips_dwarf2_format): New function.
790 * doc/internals.texi (DWARF2_FORMAT): Document.
791
a816d1ed
AO
7922002-11-18 Alexandre Oliva <aoliva@redhat.com>
793
794 * config/tc-mips.c (s_change_section): Make sure input buffer
795 is not accessed past the end. Don't hand
796 obj_elf_change_section a pointer into the input buffer.
797
6b70243f
AO
7982002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
799
800 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
801 GOT_LO16 on NEWABI.
802
48c5eb8a
SS
8032002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
804
9c87d6c7
SS
805 * config/tc-tic4x.c: Fixed proper commandline
806 parameters. Added support for new opcode-list format. General
807 error message fixups.
808 (c4x_inst_add): Reject insn not for our CPU
809 (md_begin): Added matrix for setting the proper opcode-level &
810 device-flags according to cpu type and revision. Rewrite the
811 opcode hasher.
812 (c4x_operand_parse): Fix opcode bug
813 (c4x_operands_match): New function argument. Added dry-run
814 mechanism, that is optional error generation. Added constraint 'i'
815 and 'j'.
816 (c4x_insn_check): Added new function for post-verification of the
817 generated insn.
818 (md_assemble): Check all opcodes before croaking because of an
819 argument mismatch. Need this to be able to fully support
820 ortogonally arguments.
821 (md_parse_options): Revised commandprompt swicthes and added new
822 ones.
823 (md_show_usage): Complete rewrite of printout.
bbce6ab7 824
44287f60
SS
8252002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
826
827 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
828 (c4x_operands_match): Added check for 8-bits LDF insn. Give
829 warning when using constant direct bigger than 2^16. Add the new
830 arguments.
831
591d4689
CF
8322002-11-11 Christopher Faylor <cgf@redhat.com>
833
834 * configure.in: Use .gdbinit under Cygwin.
835 * configure: Regenerate.
836
1a89f85f
CF
8372002-11-11 Christopher Faylor <cgf@redhat.com>
838
839 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
840 STRICT_PE_FORMAT.
841
247b1fe6
SS
8422002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
843
844 * config/tc-tic4x.c: Declare as many functions as possible as
845 static. Maintenance on the general indenting. Removed unnecessary
846 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
847 function. Add support for new DSP, TMS320VC33. Fix bug for
848 converting flonum constants.
849 (c4x_do_align): Add proper align handling. Setup align to insert
bbce6ab7 850 NOP's.
247b1fe6
SS
851 (c4x_gen_to_words): Support for extended TI type floats.
852 (md_atof): Proper dumping of multiple-word littlenums.
853 (c4x_atof): Added support for extended TI type floats.
854 (c4x_stringer): Added new function to handle compact strings.
855 (c4x_emit_char): Added new function argument to handle custom
856 length inserts, like single-byte strings.
857 * config/tc-tic4x.h: Add proper align handling with NOP's.
98199d8f
SS
858 * Makefile.am: Added tic4x dependecy
859 * Makefile.in: Regenerate
247b1fe6 860
9df59bba
HPN
8612002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
862
863 * macro.c (get_any_string): Correct logic for not going beyond end
864 of in->ptr[].
865
32c27eed
HPN
8662002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
867
480c8d94
HPN
868 * config/tc-mmix.c (get_putget_operands): Mark both possible
869 operands as invalid at beginning.
870
32c27eed
HPN
871 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
872 Initialize target of fixup to zero.
873
78e1bb40
AO
8742002-11-07 Alexandre Oliva <aoliva@redhat.com>
875
876 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
877 NEWABI, but we should still emit HI16_S for non-PIC n32.
878
66ba4c77
RH
8792002-11-06 Richard Henderson <rth@redhat.com>
880
881 * config/tc-alpha.c (alpha_validate_fix): Move code ...
882 (alpha_fix_adjustable): ... here.
883 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
884
bbce6ab7 8852002-11-07 Eric Kohl <ekohl@rz-online.de>
c9e38879
NC
886
887 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
888 of a label.
889
aa3d8fdf
L
8902002-11-05 H.J. Lu <hjl@gnu.org>
891
892 * config/tc-mips.c (support_64bit_objects): Check *l before it
893 is freed.
894
e96c5464
NC
8952002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
896
897 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
898 SEC_LOAD flags for sections marked as 's'.
899
4d0b3220
AM
9002002-11-01 Alan Modra <amodra@bigpond.net.au>
901
4f3cafa2
AM
902 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
903 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
904 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
905 default.
906
4d0b3220
AM
907 * dep-in.sed: Fix typo.
908
54847c76
DJ
9092002-10-30 Daniel Jacobowitz <drow@mvista.com>
910
911 * configure.in: Update ARM CPU patterns.
912 * configure: Regenerated.
913
3d82a647
DJ
9142002-10-29 Daniel Jacobowitz <drow@mvista.com>
915
916 * itbl-lex.l: Use #include <> for generated headers.
917 * itbl-ops.c: Likewise.
918
b1744eab
DJ
9192002-10-28 Daniel Jacobowitz <drow@mvista.com>
920
921 * doc/gasp.texi: Fix typo in deprecation note.
922
8df7094c
NC
9232002-10-23 Nick Clifton <nickc@redhat.com>
924
925 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
926 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
927
3a99b990
HPN
9282002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
929
1cd2bb72 930 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3a99b990
HPN
931 (tc_frob_file_before_adjust): Don't define.
932 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
933 function.
934 (mmix_frob_file_before_adjust): Remove ineffective function.
935
1c971160
HPN
9362002-10-23 Hans-Peter Nilsson <hp@axis.com>
937
938 * config/tc-cris.c (SIMPLE_EXPR): New macro.
939 (cris_relax_frag): New function.
940 (md_estimate_size_before_relax) <case ENCODE_RELAX
941 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
942 expressions that will become absolute expressions to relaxation.
943 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
944 STATE_WORD)>: Expect only absolute expressions. Use the symbol
945 value, not distance to symbol.
946 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
947 Ditto. Correct placement of fixup.
948 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
949 (gen_bdap): Ditto.
950 * config/tc-cris.h (cris_relax_frag): Declare.
951 (md_relax_frag): Define.
952
7ed1d346
AM
9532002-10-22 Alan Modra <amodra@bigpond.net.au>
954
955 * config/obj-elf.c (special_sections): Use correct types for init
956 array sections.
957 (obj_elf_change_section): Don't mess with init array section type.
958
631cb423
RS
9592002-10-21 Richard Sandiford <rsandifo@redhat.com>
960
961 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
962 for relocs against symbols in a merged section.
963
6047c971
AO
9642002-10-18 Alexandre Oliva <aoliva@redhat.com>
965
966 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
967 table as register names.
968
75504fed
MS
9692002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
970
971 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
972 for option -m31.
973
02000999
AM
9742002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
975
976 * expr.c (operand): Add support for n.nn flonums.
977
311797d5
AM
9782002-10-17 Johannes Stezenbach <js@convergence.de>
979
980 * itbl-parse.y (entry): Provide empty action.
981
4001ad8c
AM
9822002-10-16 Alan Modra <amodra@bigpond.net.au>
983
984 * configure.in (BFDVER_H): Set and subst.
985 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
986 * Makefile.am: Run "make dep-am".
987 (BFDVER_H): Define.
988 * configure: Regenerate.
989 * Makefile.in: Regenerate.
990 * doc/Makefile.in: Regenerate.
991
3ca4bdc3
AM
9922002-10-15 Alan Modra <amodra@bigpond.net.au>
993
994 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
995 (MD_APPLY_SYM_VALUE): Define for PE too.
996
b95d15c6
AM
9972002-10-14 Alan Modra <amodra@bigpond.net.au>
998
999 * Makefile.am: Run "make dep-am".
1000 (CPU_OBJ_VALID): sh64 coff is invalid.
1001 * as.c: #include "bfdver.h".
1002 * Makefile.in: Regenerate.
1003 * config.in: Regenerate.
1004
ec266e19
AM
10052002-10-14 Momchil Velikov <velco@fadata.bg>
1006
1007 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1008
8f6847cb
RS
10092002-10-14 Richard Sandiford <rsandifo@redhat.com>
1010
1011 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1012 * configure: Regenerate.
1013
ec266e19
AM
10142002-10-13 Eric Christopher <echristo@redhat.com>
1015 Alexandre Oliva <aoliva@redhat.com>
10181a0d
AO
1016
1017 * config/tc-mips.c (s_gpdword): New function.
1018 (mips_pseudo_table): Add .gpdword.
1019 (mips_need_elf_addend_fixup): never for NEWABI.
1020 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1021 GPREL32 as done.
1022 (s_cpadd): Generate .cpadd on NEWABI.
1023
49181a6a
AM
10242002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1025
1026 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1027
4a6a3df4
AO
10282002-10-12 Alexandre Oliva <aoliva@redhat.com>
1029
1030 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1031 (md_relax_frag): Adjust macro.
1032 * config/tc-mips.c (mips_relax_branch): New variable.
1033 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1034 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1035 (RELAX_MIPS16_P): Adjust.
1036 (append_insn): Emit branch to non-constant in a frag_var if
1037 branch-relaxation is desirable and possible.
1038 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1039 (OPTION_ELF_BASE): Adjust.
1040 (md_parse_option): Handle new options.
1041 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1042 branch relaxation.
1043 (relaxed_branch_length): New function.
1044 (md_estimate_size_before_relax): Handle branch frags.
1045 (mips_relax_frag): Likewise.
1046 (md_convert_frag): Handle branch frags. Warn if branch is
1047 relaxed.
1048
9efb3b7b
KK
10492002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1050
1051 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1052 emitted.
1053 (md_apply_fix3): Add TLS relocs.
1054 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1055 @DTPOFF.
1056
3e02c1cc
AM
10572002-10-11 Michel Six <msix@ccr.jussieu.fr>
1058 Alan Modra <amodra@bigpond.net.au>
1059
1060 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1061 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1062
ac62e7a3
JR
1063Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1064
1065 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1066 inside loop.
1067
f61dfddf
SC
10682002-10-09 Richard Shann <richard.shann@superh.com>
1069 Stephen Clarke <stephen.clarke@superh.com>
1070
1071 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1072 Linux environment.
1073
28602ebf
KK
10742002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1075
1076 * contig/tc-sh.c (sh_local_pcrel): New.
1077 (sh_force_relocation): Use sh_local_pcrel.
1078 (md_pcrel_from_section): Check the relocation type whether it
1079 should be resolved locally. Use S_FORCE_RELOC.
1080
97724570
AM
10812002-10-01 Alan Modra <amodra@bigpond.net.au>
1082
1083 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1084 (TC_FORCE_RELOCATION): Tidy arg.
1085
60b63b72 10862002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3e02c1cc
AM
1087 Ken Raeburn <raeburn@cygnus.com>
1088 Aldy Hernandez <aldyh@redhat.com>
1089 DJ Delorie <dj@redhat.com>
1090 Michael Meissner <meissner@redhat.com>
1091 Eric Christopher <echristo@redhat.com>
1092 Richard Sandiford <rsandifo@redhat.com>
60b63b72
RS
1093
1094 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1095 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1096 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1097 (hilo_interlocks): True for CPU_VR5500.
1098 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1099 (mips_fix_vr4122_bugs): New.
1100 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1101 (mips_emit_delays): Likewise.
1102 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1103 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1104 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1105 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1106 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1107 (OPTION_ELF_BASE): Bump.
1108 (md_parse_option): Handle the new options.
1109 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1110 vr5400 and vr5500.
1111
7a49a8c2
L
11122002-09-29 H.J. Lu <hjl@gnu.org>
1113
1114 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1115 twice if howto->pcrel_offset is true.
1116
04ff5cb5 11172002-09-28 Matt Thomas <matt@3am-software.com>
3e02c1cc 1118 Jason Thorpe <thorpej@wasabisystems.com>
04ff5cb5
JT
1119
1120 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1121 convert undefined references to GOT32/PLT32 if PIC code is
1122 requested. Fix comment.
1123
8ba4dac0
DJ
11242002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1125
1126 * config/tc-sh.c (sh_force_relocation): Return 0 for
1127 some PC relative relocations when not relaxing.
1128
bffbf940
JJ
11292002-09-26 Jakub Jelinek <jakub@redhat.com>
1130
1131 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1132 Define them if not BFD_ASSEMBLER.
1133 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1134 @tlsld.
1135 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1136 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1137 (tc_gen_reloc): Handle x86-64 TLS relocs.
1138
87733541
AM
11392002-09-27 Alan Modra <amodra@bigpond.net.au>
1140
1141 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1142 fixups to current or absolute section.
1143
825487fa
JW
11442002-09-26 Jim Wilson <wilson@redhat.com>
1145
1146 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1147 and frag_more.
1148
3396de36
TS
11492002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1150
1151 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1152 capable configuration.
1153 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1154 generation.
1155 (mips_ip): Likewise.
1156
f3c0ec86
TS
11572002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1158
1159 * config/tc-mips.c (append_insn): Fix jump overflow check.
1160
52271982
AM
11612002-09-24 Alan Modra <amodra@bigpond.net.au>
1162
1163 * config/tc-i386.c (process_operands): Warn about "lea" segment
1164 overrides.
1165
823882f5
DD
11662002-09-22 Mark Elbrecht <snowball3@softhome.net>
1167
1168 * write.c: Delete set_segment_vma and prototype. Update all callers.
1169
6539b54b
AM
11702002-09-21 Alan Modra <amodra@bigpond.net.au>
1171
1172 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1173 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1174 Rename "fseg" to "sym_seg".
1175 * Makefile.am: Run "make dep-am".
1176 * Makefile.in: Regenerate.
1177 * doc/Makefile.in: Regenerate.
1178
9f269a72
NC
11792002-09-20 Nick Clifton <nickc@redhat.com>
1180
1181 * symbols.c (colon): Do not allow symbols to be created in the
7cf10893
NC
1182 absolute section if WORKING_DOT_WORD is not defined and
1183 new_broken_words would require a new frag to be created.
9f269a72 1184
26346241
AM
11852002-09-20 Alan Modra <amodra@bigpond.net.au>
1186
f6cf69d7
AM
1187 * expr.c (expr): Simplify foo-foo here.
1188 (clean_up_expression): Remove O_subtract code.
1189
26346241
AM
1190 * write.h (struct fix): Add fx_dot_value.
1191 (dot_value): Declare.
1192 * write.c (dot_value): New var.
1193 (fix_new_internal): Save dot_value as fx_dot_value.
f6cf69d7 1194 (fixup_segment): Adjust fx_offset using fx_dot_value.
26346241
AM
1195 * expr.c (expr): Update dot_value.
1196
37e55690
JJ
11972002-09-19 Jakub Jelinek <jakub@redhat.com>
1198
1199 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1200 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1201 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1202 if not defined.
1203 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1204 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1205 BFD_RELOC_386_TLS_GOTIE.
1206
021c2b5e
RH
12072002-09-19 Richard Henderson <rth@redhat.com>
1208
1209 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1210 branch type relocs.
1211 (alpha_force_relocation): Don't special-case branch type relocs.
1212
4f2a7c9e
NC
12132002-09-19 Nick Clifton <nickc@redhat.com>
1214
1215 * config/tc-m68k.c (select_control_regs): Handle situation where
1216 architecture has not yet been selected.
1217
885add95
CD
12182002-09-18 Chris Demetriou <cgd@broadcom.com>
1219
1220 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1221 (IS_SEXT_16BIT_NUM): New macro.
1222 (macro_build_ldst_constoffset): New function, to build a set of
1223 instructions to do a load or store from a constant offset relative
1224 to a given register.
1225 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1226 .cprestore pseudo-op.
1227
65551fa4
CD
12282002-09-18 Chris Demetriou <cgd@broadcom.com>
1229
1230 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1231
4cf0dd0d
TS
12322002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1233
1234 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1235
ed6fb7bd
SC
12362002-09-17 Stan Cox <scox@redhat.com>
1237
1238 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1239 (macro): Likewise for la. Likewise for ld.
1240 (mips_after_parse_args): Make -xgot optional, not the default.
1241 (md_apply_fix3): Allow composite relocation to set up gp.
1242 (tc_gen_reloc): Allow relaxing for newabi.
1243 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1244 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1245
6189168b
NC
12462002-09-17 Nick Clifton <nickc@redhat.com>
1247
1248 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1249 BFD_RELOC_ARM_IMMEDIATE has been done.
f6cf69d7 1250 (tc_gen_reloc): Do not issue reloc number of unimplemented
6189168b
NC
1251 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1252 their name is already in the error message - plus remove them
1253 from the default case.
1254
1255 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1256 behavior of instructions.
1257
75d12d11
AM
12582002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1259
1260 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1261 Convert functions to K&R format.
1262
7ed4a06a
TS
12632002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1264
1265 * config/tc-mips.c (pdr_seg): Define only for ELF.
1266 (s_change_section): Remove unused variable. Don't use for nonELF.
1267
e8cf2216
TS
12682002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1269
1270 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1271 obj-elf.h
1272 * config/obj-elf.h (obj_elf_change_section): Likewise.
1273
48b91938
RH
12742002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1275
1276 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1277 (out_debug_info): Likewise.
1278
4ada7262
DB
12792002-09-16 Bruno Haible <bruno@clisp.org>
1280
1281 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1282 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1283 * config/tc-i386.c (i386_target_format): Likewise.
1284 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1285 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1286
7fe9cf6b
NC
12872002-09-13 Nick Clifton <nickc@redhat.com>
1288
1289 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1290 when deciding if any operands have been skipped.
1291
e09f4395
NC
12922002-09-11 Nick Clifton <nickc@redhat.com>
1293
004d9caf
NC
1294 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1295
e09f4395
NC
1296 * po/tr.po: Updated Turkish translation.
1297
9dfe7b39
JJ
12982002-09-11 Jakub Jelinek <jakub@redhat.com>
1299
1300 * config/tc-i386.c (md_apply_fix3): Allow addend for
1301 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1302 BFD_RELOC_386_TLS_LE_32.
1303
502b19cb
JL
13042002-09-05 Jeff Law <law@redhat.com>
1305
f6cf69d7
AM
1306 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1307 marker relocations such as ENTRY/EXIT.
1308 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1309 to both OBJ_ELF and OBJ_SOM.
502b19cb 1310
a161fe53
AM
13112002-09-05 Alan Modra <amodra@bigpond.net.au>
1312
1313 * doc/internals.texi (md_apply_fix3): Expand.
1314 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1315 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1316 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1317 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1318 EXTERN_FORCE_RELOC): Document.
1319 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1320 * as.h: Don't include struc-symbol.h for arc.
1321 (IS_ELF): Define.
1322 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1323 subtract absolute symbol.
1324 * obj.h (struct format_ops): Add frob_file_before_fix.
1325 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1326 * symbols.c (S_FORCE_RELOC): New function.
1327 * symbols.h (S_FORCE_RELOC): Declare.
1328 * write.c (TC_FORCE_RELOCATION): Change default.
1329 (TC_FORCE_RELOCATION_ABS): Define.
1330 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1331 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1332 (TC_FORCE_RELOCATION_SECTION): Don't define.
1333 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1334 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1335 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1336 (TC_VALIDATE_FIX_SUB): Define.
1337 (TC_FIX_ADJUSTABLE): Don't define.
1338 (MD_APPLY_SYM_VALUE): Define this instead.
1339 (abs_section_sym): New variable.
1340 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1341 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1342 Don't put the absolute section sym on fixups here.
1343 (fix_segment): New function.
1344 (write_relocs): Don't call fixup_segment from here.
1345 (write_object_file): Instead call tc_frob_file_before_fix,
1346 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1347 Don't output the absolute section symbol.
1348 (fixup_segment): Rewrite.
1349 * write.h (abs_section_sym): Declare.
1350 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1351 obj_aout_frob_file.
1352 (aout_format_ops): Adjust to suit.
1353 * config/obj-aout.h (obj_frob_file): Don't define.
1354 (obj_frob_file_before_fix): Define.
1355 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1356 (S_FORCE_RELOC): Define.
1357 * config/obj-bout.h (S_FORCE_RELOC): Define.
1358 * config/obj-coff.c (coff_format_ops): Init new field.
1359 * config/obj-coff.h: Formatting fixes.
1360 (obj_sec_sym_ok_for_reloc): Define.
1361 (S_FORCE_RELOC): Define.
1362 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1363 (ecoff_frob_file): .. from here.
1364 (ecoff_format_ops): Add new function.
1365 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1366 (obj_frob_file_before_fix): Define.
1367 * config/obj-elf.c (elf_format_ops): Init new field.
1368 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1369 * config/obj-ieee.h: Formatting fixes.
1370 (S_FORCE_RELOC): Define.
1371 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1372 * config/obj-vms.h (S_FORCE_RELOC): Define.
1373 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1374 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1375 for BFD_RELOC_32 and BFD_RELOC_64.
1376 (alpha_fix_adjustable): Remove extern and weak tests.
1377 (alpha_before_fix): Rename from alpha_adjust_symtab.
1378 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1379 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1380 (TC_VALIDATE_FIX): Tweak param name.
1381 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1382 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1383 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1384 (MD_APPLY_SYM_VALUE): Define.
1385 (tc_adjust_symtab): Don't define.
1386 (alpha_adjust_symtab): Don't declare.
1387 (tc_frob_file_before_fix): Define.
1388 (alpha_before_fix): Declare.
1389 (TC_INIT_FIX_DATA): Tweak param names.
1390 * config/tc-arc.c: Include "struc-symbol.h".
1391 (md_pcrel_from): Remove undefined sym fudge.
1392 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1393 Don't set fx_addnumber.
1394 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1395 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1396 (EXTERN_FORCE_RELOC): Define.
1397 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1398 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1399 (arm_validate_fix): Return void.
1400 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1401 Add plt and got reloc tests.
1402 (arm_force_relocation): Call S_FORCE_RELOC.
1403 * config/tc-arm.h (struct fix): Forward declare.
1404 (TC_VALIDATE_FIX): No longer set add_symbolP.
1405 (arm_validate_fix): Adjust declaration.
1406 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1407 (TC_FORCE_RELOCATION): Tweak param name.
1408 (TC_INIT_FIX_DATA): Likewise.
1409 (obj_fix_adjustable): Don't define.
1410 (tc_fix_adjustable): Call arm_fix_adjustable.
1411 (TC_FIX_ADJUSTABLE): Don't define.
1412 (MD_APPLY_SYM_VALUE): Define.
1413 (EXTERN_FORCE_RELOC): Define.
1414 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1415 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1416 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1417 Remove *valP fudges and code to subtract abs sym. Don't set
1418 fx_addnumber.
1419 * config/tc-avr.h: Formatting.
1420 (EXTERN_FORCE_RELOC): Define.
1421 (MD_APPLY_SYM_VALUE): Define.
1422 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1423 (md_apply_fix3): Remove code to subtract abs sym.
1424 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1425 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1426 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1427 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1428 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1429 (tc_fix_adjustable): Remove extern, weak tests.
1430 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1431 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1432 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1433 and code to subtract abs sym.
1434 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1435 (d10v_force_relocation): Call S_FORCE_RELOC.
1436 * config/tc-d10v.h: Don't include write.h.
1437 (struct fix): Instead, forward declare.
1438 (MD_PCREL_FROM_SECTION): Tweak param names.
1439 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1440 (d10v_fix_adjustable): Likewise.
1441 (obj_fix_adjustable): Don't define.
1442 (tc_fix_adjustable): Define.
1443 (TC_FORCE_RELOCATION): Tweak param name.
1444 (MD_APPLY_SYM_VALUE): Define.
1445 (EXTERN_FORCE_RELOC): Define.
1446 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1447 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1448 and code to subtract abs sym.
1449 * config/tc-d30v.h: Don't include write.h.
1450 (struct fix): Instead, forward declare.
1451 (MD_PCREL_FROM_SECTION): Tweak param names.
1452 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1453 (MD_APPLY_SYM_VALUE): Define.
1454 (EXTERN_FORCE_RELOC): Define.
1455 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1456 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1457 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1458 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1459 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1460 Don't use fx_addnumber.
1461 * config/tc-dlx.h: Don't include write.h.
1462 (md_convert_frag): We're not alpha twice over.
1463 (EXTERN_FORCE_RELOC): Define.
1464 (obj_fix_adjustable): Don't define.
1465 (tc_fix_adjustable): Define.
1466 (TC_FIX_ADJUSTABLE): Don't define.
1467 (MD_APPLY_SYM_VALUE): Define.
1468 (LOCAL_LABELS_DOLLAR): Undef always.
1469 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1470 (fr30_fix_adjustable): Remove extern, weak tests.
1471 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1472 (obj_fix_adjustable): Don't define.
1473 (tc_fix_adjustable): Define.
1474 (struct fix): Forward declare.
1475 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1476 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1477 (frv_fix_adjustable): Don't do extern, weak tests.
1478 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1479 (TC_FIX_ADJUSTABLE): Don't define.
1480 (obj_fix_adjustable): Don't define.
1481 (tc_fix_adjustable): Define.
1482 (struct fix): Forward declare.
1483 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1484 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1485 * config/tc-h8300.h (struct fix): Forward declare.
1486 (EXTERN_FORCE_RELOC): Define.
1487 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1488 (hppa_fix_adjustable): Don't test extern or weak. Don't
1489 symbol_mark_used_in_reloc.
1490 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1491 and S_IS_WEAK.
1492 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1493 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1494 (TC_FORCE_RELOCATION_SECTION): Don't define.
1495 (MD_APPLY_SYM_VALUE): Define.
1496 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1497 to subtract abs sym.
1498 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1499 (MD_APPLY_SYM_VALUE): Define.
1500 (MD_PCREL_FROM_SECTION): Tweak param name.
1501 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1502 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1503 (i386_force_relocation): New function.
1504 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1505 (TC_VALIDATE_FIX): Likewise.
1506 (TC_FIX_ADJUSTABLE): Don't define.
1507 (MD_APPLY_SYM_VALUE): Define.
1508 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1509 (i386_force_relocation): Declare.
1510 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1511 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1512 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1513 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1514 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1515 (EXTERN_FORCE_RELOC): Define.
1516 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1517 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1518 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1519 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1520 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1521 Remove #if 0 code. Invert return boolean.
1522 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1523 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1524 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1525 (tc_coff_sizemachdep): Prototype.
1526 (i960_handle_align): Likewise.
1527 (i960_validate_fix): Adjust declaration.
1528 (reloc_callj): Likewise.
1529 (EXTERN_FORCE_RELOC): Define.
1530 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1531 (TC_FORCE_RELOCATION_ABS): Define.
1532 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1533 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1534 (TC_FIX_ADJUSTABLE): Don't define.
1535 (MD_APPLY_SYM_VALUE): Define.
1536 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1537 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1538 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1539 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1540 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1541 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1542 (MD_APPLY_SYM_VALUE): Define.
1543 (EXTERN_FORCE_RELOC): Define.
1544 (TC_FORCE_RELOCATION): Tweak param name.
1545 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1546 (m32r_fix_adjustable): Don't test extern, weak.
1547 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1548 (MD_APPLY_SYM_VALUE): Define.
1549 (obj_fix_adjustable): Don't define.
1550 (tc_fix_adjustable): Define.
1551 (tc_frob_file): Don't define.
1552 (tc_frob_file_before_fix): Define.
1553 (EXTERN_FORCE_RELOC): Define.
1554 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1555 BFD_RELOC_VTABLE_ENTRY address.
1556 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1557 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1558 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1559 Remove duplicated fx_done code.
1560 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1561 (EXTERN_FORCE_RELOC): Define.
1562 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1563 relaxable_symbol.
1564 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1565 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
a161fe53
AM
1566 (TC_FIX_ADJUSTABLE): Don't define.
1567 (EXTERN_FORCE_RELOC): Define.
1568 (MD_APPLY_SYM_VALUE): Define.
1569 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1570 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1571 Remove fx_addsy tests.
1572 (mcore_force_relocation): Call S_FORCE_RELOC.
1573 (mcore_fix_adjustable): Don't test fx_addsy.
1574 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1575 (EXTERN_FORCE_RELOC): Define.
1576 (obj_fix_adjustable): Don't define.
1577 (tc_fix_adjustable): Define.
1578 (MD_APPLY_SYM_VALUE): Define.
1579 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1580 (mips_pic): No longer static.
1581 (mips_force_relocation): Call S_FORCE_RELOC.
1582 (mips_fix_adjustable): Remove extern, weak tests.
1583 * config/tc-mips.h (enum mips_pic_level): Declare.
1584 (mips_pic): Declare.
1585 (tc_frob_file): Don't define.
1586 (tc_frob_file_before_fix): Define this instead.
1587 (EXTERN_FORCE_RELOC): Define.
1588 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1589 with reg_section tests. Set fx_done instead of calling
1590 symbol_clear_used_in_reloc on bad relocs.
1591 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1592 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1593 (mmix_adjust_symtab): Simplify list handling. Abort on any
1594 nonsense.
1595 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1596 BFD_RELOC_MMIX_LOCAL.
1597 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1598 (EXTERN_FORCE_RELOC): Define.
1599 (MD_PCREL_FROM_SECTION): Tweak param name.
1600 (tc_frob_file): Don't define.
1601 (tc_frob_file_before_fix): Define this instead.
1602 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1603 Remove SEC_CODE checks.
1604 (mn10300_fix_adjustable): Remove extern and weak tests.
1605 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1606 (TC_FORCE_RELOCATION): Tweak param name.
1607 (obj_fix_adjustable): Don't define.
1608 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1609 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1610 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1611 (openrisc_fix_adjustable): Don't test fx_addsy.
1612 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1613 (obj_fix_adjustable): Don't define.
1614 (tc_fix_adjustable): Define this instead.
1615 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1616 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1617 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1618 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1619 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1620 (MD_APPLY_SYM_VALUE): Define.
1621 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1622 Don't subtract symbol value.
1623 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1624 (EXTERN_FORCE_RELOC): Define.
1625 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1626 (MD_APPLY_SYM_VALUE): Define.
1627 (obj_fix_adjustable): Don't define.
1628 (tc_fix_adjustable): Define this instead.
1629 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1630 section sym.
1631 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1632 (ppc_force_relocation <elf version>): New.
1633 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1634 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1635 comments. Don't subtract fx_subsy as that is already done.
1636 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1637 (MD_PCREL_FROM_SECTION): Likewise.
1638 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1639 ppc_force_relocation.
1640 (TC_FORCE_RELOCATION_SECTION): Delete.
1641 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1642 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1643 (MD_APPLY_SYM_VALUE): Define.
1644 * config/tc-s390.c: #include "dwarf2dbg.h".
1645 (s390_insn): Remove excess parens.
1646 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1647 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1648 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1649 non-NULL. Don't subtract off fx_addsy value.
1650 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1651 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1652 (TC_FIX_ADJUSTABLE): Don't define.
1653 (MD_APPLY_SYM_VALUE): Define.
1654 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1655 (SWITCH_TABLE): Likewise.
1656 (sh_force_relocation): Call S_FORCE_RELOC.
1657 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1658 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1659 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1660 fx_addnumber is zero on entry. Save val in fx_addnumber.
1661 (tc_gen_reloc): Don't subtract fx_subsy.
1662 * config/tc-sh.h (struct fix): Move.
1663 (obj_fix_adjustable): Don't define.
1664 (tc_fix_adjustable): Define this instead.
1665 (TC_FIX_ADJUSTABLE): Don't define.
1666 (MD_APPLY_SYM_VALUE): Define.
1667 (SWITCH_TABLE_CONS): Define.
1668 (SWITCH_TABLE): Define.
1669 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1670 (TC_VALIDATE_FIX_SUB): Define.
1671 (MD_PCREL_FROM_SECTION): Tweak param name.
1672 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1673 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1674 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1675 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1676 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1677 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1678 (TC_VALIDATE_FIX_SUB): Define.
1679 (MD_PCREL_FROM_SECTION): Tweak param name.
1680 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1681 (tc_gen_reloc): Use S_FORCE_RELOC.
1682 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1683 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1684 (TC_FORCE_RELOCATION_ABS): Define this instead.
1685 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1686 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1687 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1688 (MD_APPLY_SYM_VALUE): Define.
1689 (TC_FIX_DATA_PRINT): Tweak param name.
1690 * config/tc-tic30.c (USE_STDOUT): Don't define.
1691 (md_parse_option): Remove stupid debug code.
1692 (tc_gen_reloc): Don't use fx_addnumber.
1693 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1694 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1695 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1696 (tc_fix_adjustable): Define this instead.
1697 (TC_FIX_ADJUSTABLE): Don't define.
1698 (MD_APPLY_SYM_VALUE): Define this instead.
1699 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1700 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1701 (TC_FIX_ADJUSTABLE): Don't define.
1702 (MD_APPLY_SYM_VALUE): Define this instead.
1703 (tc_fix_adjustable): Remove extern and weak tests.
1704 * config/tc-w65.h (struct fix): Forward declare.
1705 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1706 S_FORCE_RELOC.
1707 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1708 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1709 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1710 absolute symbol.
1711 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1712 (MD_APPLY_SYM_VALUE): Define.
1713 (obj_fix_adjustable): Don't define.
1714 (tc_fix_adjustable): Define this instead.
1715 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1716
2a98c3a6
AM
17172002-09-04 Alan Modra <amodra@bigpond.net.au>
1718
b782de16
AM
1719 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1720 (ppc_fix_adjustable <coff version>): Cleanup.
1721
2a98c3a6
AM
1722 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1723 (md_parse_option): No -a64 without BFD64.
1724 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1725 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1726
341026c1
NC
17272002-09-04 Nick Clifton <nickc@redhat.com>
1728
1729 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1730 instructions into the hash table if the target cpu is the BookE32.
1731
a6bd2a4f
HPN
17322002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1733
1734 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1735 ATTRIBUTE_UNUSED.
1736
86aba9db
NC
17372000-08-28 Catherine Moore <clm@redhat.com>
1738
1739 * tc-v850.c (v850_relax): Declare.
1740 (v850_longcode): New routine.
1741 (v850_handle_align): New routine.
1742 (md_pseudo_table): Add longcall and longjump.
1743 (md_parse_option): Check for relax option.
1744 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1745 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1746 (md_apply_fix3): Likewise.
1747 (v850_force_relocation): Likewise.
1748 (v850_comm): Change the current section.
e4512afa 1749 (md_assemble): Ensure that the correct value is put in the
86aba9db
NC
1750 fixup.
1751 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1752 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
e4512afa 1753 Remove redundant v850ea support.
86aba9db
NC
1754 * tc-v850.h (HANDLE_ALIGN): Define.
1755 (v850_handle_align): Declare.
1756 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1757
026df7c5
NC
17582002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1759
1760 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1761 * configure: Regenerate.
1762 * NEWS: Mention new port.
1763
17642002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1765
1766 * config/obj-coff.c: Add sdef definition.
1767 * config/obj-coff.h: Add tic4x include file and set
1768 target format.
1769 * config/tc-tic4x.c: New file.
1770 * config/tc-tic4x.h: New file.
1771
4252e537
AM
17722002-08-28 Alan Modra <amodra@bigpond.net.au>
1773
df44284e
AM
1774 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1775 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1776 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1777 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1778 (RELOC_ENUM): Define.
1779 (fix_new_internal): Use RELOC_ENUM.
1780 (fix_new, fix_new_exp): Likewise.
1781 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1782 Replace gotos with continue.
1783 (write_relocs): Formatting. Avoid symbol loops in
1784 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1785 errors, and error number in other cases.
1786 (fixup_segment): Remove param names from prototype. Rename
1787 "this_segment_type" to "this_segment". Update linkrelax comment.
1788 Remove "size, "place" and "where" local vars. Formatting. Update
1789 "no symbol" comment. Remove #if 0 and #if 1.
1790
4252e537
AM
1791 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1792
70658493
AM
17932002-08-27 Alan Modra <amodra@bigpond.net.au>
1794
1795 * dwarf2dbg.c: Always include dwarf2dbg.h.
1796 (dwarf2_directive_file): Adjust dummy version args.
1797 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1798 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1799 when symbol values differ.
1800 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1801 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1802 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1803
a2199cc1
AM
18042002-08-26 Alan Modra <amodra@bigpond.net.au>
1805
1806 * config/tc-w65.c (md_section_align): Fix typo.
1807 (md_parse_option): Return 0, not 1.
1808
ececec60
NC
18092002-08-22 Nick Clifton <nickc@redhat.com>
1810
1811 * doc/as.texinfo (Section): Note that if '@' is a comment
1812 character then another symbol is used to prefix the section's
1813 type.
1814
14899840
NC
18152002-08-22 Christian Groessler <chris@groessler.org>
1816
1817 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1818 "case 0" case.
1819
ed71e111
NC
18202002-08-12 Graeme Peterson <gp@qnx.com>
1821
1822 * configure.in: Add support for sh-**-nto* target.
1823 * configure: Regenerate.
1824
dfe0d3fe
JL
18252002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1826
1827 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1828
dc1d03fc
EZ
18292002-08-21 Elena Zannoni <ezannoni@redhat.com>
1830
70658493
AM
1831 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1832 is ELF.
1833 (ppc_apuinfo_section_add): Define only if format is ELF.
1834 (md_assemble): Emit APUinfo section only if format is ELF.
1835 Fix formatting.
dc1d03fc 1836
9f1838ed
AM
18372002-08-21 Alan Modra <amodra@bigpond.net.au>
1838
70658493 1839 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
9f1838ed
AM
1840 * config/tc-frv.c: Likewise.
1841 * config/tc-hppa.c: Likewise.
1842 * config/tc-ia64.c: Likewise.
1843 * config/tc-ip2k.c: Likewise.
1844 * config/tc-m68hc11.c: Likewise.
1845 * config/tc-m68k.c: Likewise.
1846 * config/tc-mmix.c: Likewise.
1847 * config/tc-mn10300.c: Likewise.
1848 * config/tc-sh.c: Likewise.
1849 * config/tc-sparc.c: Likewise.
1850 * config/tc-v850.c: Likewise.
1851
483fc7cd
RS
18522002-08-20 Richard Sandiford <rsandifo@redhat.com>
1853
1854 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1855 by zero.
1856
6a0c61b7
EZ
18572002-08-19 Elena Zannoni <ezannoni@redhat.com>
1858
70658493 1859 From matthew green <mrg@redhat.com>
6a0c61b7 1860
70658493
AM
1861 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1862 PPC_OPCODE_PPC is, except for BookE architectures.
1863 (md_parse_option): Add support for -mspe.
1864 (md_show_usage): Add -mspe.
1865 (md_parse_option): Add support for -me500 and
1866 -me500x2 to generate code for Motorola e500 core complex.
1867 (md_show_usage): Add -me500 and -me500x2.
6a0c61b7 1868
70658493
AM
1869 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1870 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1871 PPC_APUINFO_BRLOCK): New macros.
6a0c61b7 1872
70658493
AM
1873 (ppc_cleanup): New function.
1874 (ppc_apuinfo_section_add): New function.
1875 (APUID): New macro.
1876 (md_assemble): Collect info and write the APUinfo section.
6a0c61b7 1877
70658493
AM
1878 * config/tc-ppc.h (md_cleanup): Define.
1879 (ppc_cleanup): Export.
1880 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
6a0c61b7 1881
cca86cc8
SC
18822002-08-17 Stan Cox <scox@redhat.com>
1883
1884 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1885 config/tc-mips.c (s_change_section): New function to support
1886 IRIX .section pseudo-op.
1887
50b15da2
NC
18882002-08-16 Nick Clifton <nickc@redhat.com>
1889
1890 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1891
f21f8242
AO
18922002-08-15 Alexandre Oliva <aoliva@redhat.com>
1893
1894 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1895 the fix-up against on the right frag.
1896 (s_cpsetup): Likewise. Parse third argument as expression, to
1897 handle global symbols and forward/backward labels correctly.
1898
11f45fb5
NC
18992002-08-14 Nick Clifton <nickc@redhat.com>
1900
8ac9ba6c
NC
1901 * read.c (stringer): Catch attempts to create strings in the abs
1902 section.
1903
11f45fb5
NC
1904 * config/tc-alpha.c: Fix compiling for COFF targets.
1905 Some minor formatting tidyups.
1906
e371935f
SC
19072002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1908
1909 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1910 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1911 according to the reloc.
1912 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1913 (TC_FORCE_RELOCATION): Define.
1914 (tc_m68hc11_force_relocation): Declare.
1915
1916 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1917 (s_m68hc11_relax): New function for relax group.
70658493 1918 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
e371935f
SC
1919 beginning of jump instruction.
1920 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1921 address computation.
1922 (tc-gen_reloc): Update.
70658493 1923 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
e371935f
SC
1924 PC-relative fixup.
1925 (tc_m68hc11_force_relocation): New function, handle new relocs.
1926 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1927 reloc for the linker relax pass.
1928 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1929 and VTABLE relocs.
1930
eb086b59
SC
19312002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1932
1933 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1934 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1935 (s_m68hc11_mode): New function for .mode pseudo op.
1936 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1937 pseudo op.
1938 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1939 (m68hc11_elf_final_processing): Declare.
1940
7bfda7eb
SC
19412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1942
1943 * config/tc-m68hc11.c (md_begin): Take into account additional
1944 page operand for call instruction.
1945 (print_opcode_format): Likewise.
1946 (check_range): Likewise for page range checking.
1947 (get_operand): Don't skip a possible comma in operands.
1948 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1949 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1950 (fixup24): New to handle call reloc.
1951 (build_insn): Handle missing page operand for call instruction.
1952 (find): Likewise.
1953 (md_apply_fix3): Take into account new relocs.
1954 (get_operand): Fix the mode for indexed indirect addressing.
1955 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1956
fdb987ee
RS
19572002-08-12 Richard Sandiford <rsandifo@redhat.com>
1958
1959 * config/tc-mips.c (mips_ip): Don't work out the value of
1960 constant %hi()s here.
1961
31312f95
AM
19622002-08-10 Alan Modra <amodra@bigpond.net.au>
1963
1964 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1965 for ELF, and don't bother checking ELF relocs when non-ELF.
1966 (i386_immediate): Allow absolute_section expressions for aout.
1967 (i386_displacement): Likewise. Also test bfd_is_com_section.
1968 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1969 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1970 not when fx_addsy. Remove dead code.
1971
59bc061d
NC
19722002-08-09 Graeme Peterson <gp@qnx.com>
1973
1974 * configure.in: Add support for ppc-*-nto* target.
1975 * configure: Regenerate.
70658493 1976
6088b00e
AM
19772002-08-09 Alan Modra <amodra@bigpond.net.au>
1978
1979 * config/tc-i386.h: Reorganize.
1980
0c11417f
MR
19812002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1982
1983 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1984 immediate offset in "dla" and "la" expansions.
1985
79500683
AM
19862002-08-09 Alan Modra <amodra@bigpond.net.au>
1987
1988 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1989 Remove "bfd_gas=yes" from target table when covered later.
1990 Consolidate some entries.
1991 * configure: Regenerate
1992
2bbd9c25
JJ
19932002-08-09 Jakub Jelinek <jakub@redhat.com>
1994
1995 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1996 at start of insn, pass it to output_disp and output_imm.
1997 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1998 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1999 properly addend.
2000 (output_imm): Added arguments. Compute properly addend for
2001 R_386_GOTPC.
2002 (md_apply_fix3): Remove R_386_GOTPC handling.
2bbd9c25 2003
dbac4f5b
RH
20042002-08-06 George France <france@handhelds.org>
2005
2006 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2007 and m21264b processor names and cpu types.
2008 * doc/c-alpha.texi: Documented new types.
2009
95210096
AM
20102002-08-06 Alan Modra <amodra@bigpond.net.au>
2011
2012 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2013
98605598
RS
20142002-08-01 Richard Sandiford <rsandifo@redhat.com>
2015
2016 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2017 handling to BFD_RELOC_MIPS16_GPREL.
2018
08df2379
NC
20192002-08-01 Nick Clifton <nickc@redhat.com>
2020
2021 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2022 pool is computed using signed arithmetic so that proper sign
2023 extension is performed if X_add_number is a 64-bit integer.
2024
70ee4658
DJ
20252002-08-01 H.J. Lu <hjl@gnu.org>
2026 Daniel Jacobowitz <drow@mvista.com>
2027
2028 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2029 .debug_line section unless it has line information.
2030
4eb6b71c
NC
20312002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2032
2033 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2034 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2035 Allow default displacement size to be an option "--disp-size-default".
2036 (md_number_to_disp): Make error messages include value. Use %d to
2037 print integers, not %s.
2038 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2039 get duplicate messages sometimes.
2040 (convert_iif): Grow frag to max possible instruction size. Avoid
2041 creating unnecessary fixes.
2042 (md_number_to_field) Add prototype.
2043 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2044 prototypes and make static.
2045 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2046 (evaluate_expr): Use resultP argument instead of exprP global.
2047 (get_addr_mode): Quiten compiler warnings.
2048 (encode_operand): eliminate unused variables. Quiten compiler
2049 warnings. Eliminate nul character in format strings.
2050 (parse): argc is unsigned.
2051 (reloc): Type cast index to quieten compiler.
2052 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2053 (md_convert_frag): Note unused parameters. Remove unused
2054 variables.
2055 (md_create_long_jump, md_create_short_jump,
2056 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2057 unused parameters.
70658493 2058
500800ca
NC
20592002-07-31 Nick Clifton <nickc@redhat.com>
2060
2061 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2062 of the PDP-11 and 2.11BSD a.out support.
2063
03223580
NC
20642002-07-31 Momchil Velikov <velco@fadata.bg>
2065
2066 * config/tc-v850.c (md_assemble): Fix range check for immediate
2067 operand.
2068
c7a23324
CD
20692002-07-30 Chris Demetriou <cgd@broadcom.com>
2070
2071 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2072 to Broadcom SB-1 core support.
2073
cfe86eaa
TS
20742002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2075
2076 * config/tc-mips.c (mips_target_format): Fix formatting.
2077 Add recognition of n32 ABI formats.
2078
460597ba
MR
20792002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2080
2081 * tc-mips.c (load_address): Don't clobber $at when loading a
2082 64-bit address in non-PIC code if noat is in effect.
2083 (macro): Likewise.
2084
9bd7d936
MR
20852002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2086
2087 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2088 used in division/multiply macro expansions similarly to how they
2089 are used in the variants with break instructions.
2090 (macro2): Likewise.
2091
7e392df6
NC
20922002-07-30 Graeme Peterson <gp@qnx.com>
2093
2094 * configure.in: Add support for arm-*-nto target.
2095 * configure: Regenerate.
70658493 2096
3d0c9500
NC
20972002-07-30 Nick Clifton <nickc@redhat.com>
2098
2099 * config/tc-arm.c (struct literal_pool): Add fields to allow
2100 multiple literal pools to be maintained.
2101 (find_literal_pool): New function.
2102 (find_or_make_literal_pool): New function.
2103 (add_to_literal_pool): Use find_or_make_literal_pool.
6088b00e 2104 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3d0c9500
NC
2105 needed.
2106 (s_ltorg): Use find_literal_pool.
2107 (arm_cleanup): Dump all literal pools.
6088b00e 2108 * doc/c-arm.texi: Document new behaviour of only dumping literal
3d0c9500
NC
2109 pools upon request.
2110
dfff24c9
AM
21112002-07-26 Alan Modra <amodra@bigpond.net.au>
2112
2113 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2114 rather than PPC_OPCODE_32 for powerpc64*.
2115
219576a4
NC
21162002-07-25 Nick Clifton <nickc@redhat.com>
2117
2118 * po/es.po: Updated Spanish translation.
2119 * po/fr.po: Updated French translation.
2120
316f5878
RS
21212002-07-25 Richard Sandiford <rsandifo@redhat.com>
2122
2123 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2124 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2125 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2126 * configure, config.in: Regenerate.
2127 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2128 (mips_set_options): Remove "abi" field.
2129 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2130 with mips_abi.
2131 (mips_cpu): Remove.
2132 (mips_arch_string, mips_arch_info): New vars.
2133 (mips_tune_string, mips_tune_info): New vars.
2134 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2135 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2136 (mips_isa_to_str, mips_cpu_to_str): Remove.
2137 (mips_ip): If the selected architecture is a generic ISA rather
2138 than a processor, only mention the ISA level in error messages.
2139 (OPTION_MCPU): Remove.
2140 (OPTION_FP64): New.
2141 (md_longopts): Add -mfp64, remove -mcpu.
2142 (mips_set_option_string): New fn.
2143 (md_parse_option): Make -mipsN update file_mips_isa rather than
2144 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2145 Don't let -mgp32 and -mfp32 change the ABI.
2146 (show): Move to end of file. Constify string argument.
2147 (md_show_usage): Move to the end of the file. Read available
2148 architectures from mips_cpu_info_table.
2149 (mips_set_architecture): New fn.
2150 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2151 is an alias for -march=mipsN. Don't change the ABI based on other
2152 flags. Infer the register size from the ABI as well as the
2153 architecture. Complain about more conflicting arguments.
2154 Unify logic with GCC.
2155 (s_mipsset): Don't change the ABI.
2156 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2157 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2158 "mipsN"-type entries. Remove entries that vary only in the
2159 manufacturer's prefix, or that have "000" replaced by "k".
2160 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2161 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2162 (mips_parse_cpu): New fn.
2163 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2164 (mips_cpu_info_from_isa): Minor formatting tweak.
2165
ff3063f5
NC
21662002-07-24 Nick Clifton <nickc@redhat.com>
2167
2168 * po/sv.po: Updated Swedish translation.
2169 * po/es.po: Updated Spanish translation.
2170
55eab186
AM
21712002-07-23 Alan Modra <amodra@bigpond.net.au>
2172
2173 * Makefile.am: Run "make dep-am".
2174 * Makefile.in: Regenerate.
2175 * doc/Makefile.in: Regenerate.
2176 * config.in: Regenerate.
2177 * po/POTFILES.in: Regenerate.
2178
0461a601
NC
21792002-07-23 Nick Clifton <nickc@redhat.com>
2180
ff3063f5 2181 * po/fr.po: Updated French translation.
0461a601 2182
ee8929cf
NC
21832002-07-23 Nick Clifton <nickc@redhat.com>
2184
2185 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2186 GAS.
2187
bad9ca53
TS
21882002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2189
2190 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2191 instead of S_IS_EXTERN.
2192 (md_estimate_size_before_relax): Likewise.
2193 (mips_fix_adjustable): Likewise.
2194
a37de3d3
TS
21952002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2196
2197 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2198
8dfa0188 21992002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
dfff24c9 2200 Nick Clifton <nickc@redhat.com>
8dfa0188
NC
2201
2202 * cond.c (s_ifdef): Treat a referenced but not yet defined
2203 symbol as if it were undefined, in exactly the same way as
2204 .equiv.
2205
dfff24c9
AM
2206 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2207 consider referenced bug not yet defined symbols to be
2208 undefined.
8dfa0188 2209
a40cbfa3
NC
22102002-07-18 Denis Chertykov <denisc@overta.ru>
2211 Frank Ch. Eigler <fche@redhat.com>
2212 Alan Lehotsky <alehotsky@cygnus.com>
2213 John Healy <jhealy@redhat.com>
2214 Jeff Johnston <jjohnstn@redhat.com>
2215
2216 * configure.in: Add ip2k configuraton.
2217 * configure: Regenerate.
2218 * Makefile.am: Add ip2k configuraton.
2219 * Makefile.in: Regenerate.
2220 * configure: Regenerate.
2221 * Makefile.in: Regenerate.
2222 * config/tc-ip2k.c: New file.
2223 * config/tc-ip2k.h: New files.
2224 * NEWS: Mention new support.
2225 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2226 * doc/Makefile.in: Regenerate.
2227 * doc/all.texi: Set IP2K
2228 * doc/as.texinfo: Add IP2K description.
2229 * doc/c-ip2k.texi: New file.
dfff24c9 2230
a40cbfa3
NC
22312002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2232
2233 * NEWS: Reformat to match style of other NEWS files.
dfff24c9 2234
a40cbfa3 22352002-07-17 Jan Hubicka <jh@suse.cz>
33fef721
JH
2236
2237 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2238
25d3fb58
AM
22392002-07-16 Moritz Jodeit <moritz@jodeit.org>
2240
2241 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2242
2cbb2eef
NC
22432002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2244
2245 * NEWS: Add 'Changes in 2.13'.
2246
da06c61e
AM
22472002-07-15 Matt Fredette <fredette@netbsd.org>
2248
2249 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2250
9146926a
AM
22512002-07-12 Alan Modra <amodra@bigpond.net.au>
2252
2253 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2254 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2255 not CODE_64BIT.
2256
2b3c4602
AM
22572002-07-11 Alan Modra <amodra@bigpond.net.au>
2258
7e8d4ab4
AM
2259 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2260 (ppc_frob_file_before_adjust): New function.
2261 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2262 (ppc_elf_frob_symbol): Don't declare.
2263 (tc_frob_file_before_adjust): Define.
2264 (ppc_frob_file_before_adjust): Declare.
2265
2b3c4602
AM
2266 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2267 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2268 flags.
2269 (ppc_size): Delete.
2270 (ppc_xcoff64): Rename to ppc_obj64.
2271 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2272 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2273 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2274 or bfd_mach_ppc.
2275 (ppc_target_format): Use ppc_obj64 to select format.
2276 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2277 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2278 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2279 (tc_frob_symbol): Likewise.
2280 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2281 BFD_DEFAULT_TARGET_SIZE.
2282 (ppc_tc): Likewise.
2283 (ppc_is_toc_sym): Likewise.
2284 (md_apply_fix3): Likewise.
2285 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2286 BFD_DEFAULT_TARGET_SIZE.
2287 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2288 (tc_frob_symbol): Likewise.
2289
aec421e0
TS
22902002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2291
2292 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2293 (mips_ip): Likewise.
2294
c6682705
AM
22952002-07-09 Alan Modra <amodra@bigpond.net.au>
2296
2297 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2298 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2299 (md_apply_fix3): Formatting. Remove redundant test.
2300 (tc_gen_reloc): Remove redundant code.
2301 (tc_i386_force_relocation): Delete. Movy body of function to..
2302 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2303
03111e83
AM
23042002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2305
2306 * configure.in: Add hppa-*-openbsd* target, change
2307 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2308 with sparc64 cpu.
2309 * configure: Regenerate.
2310
78d32a17
MR
23112002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2312
2313 * config/tc-mips.c (macro): Shift the 32-bit address range
2314 accessible with a lone "lui" down by 32768.
2315
3a482fd5
MR
23162002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2317
2318 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2319 instead of "dadd" in address calculations.
2320 (macro): Likewise.
2321
cd61ebfe
AM
23222002-07-08 Alan Modra <amodra@bigpond.net.au>
2323
2324 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2325 movzx fudges.
2326 (md_assemble): Instead, zap the suffix here.
2327
a5d3c309
NC
23282002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2329
2330 * NEWS: Remove next release number until the release is actually
2331 upon us.
2332
ce4f7385
AM
23332002-07-03 Alan Modra <amodra@bigpond.net.au>
2334
2335 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2336 Run "make dep-am".
2337 * Makefile.in: Regenerate.
2338
148b4c7a
MS
23392002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2340
2341 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2342 to symbols in merge sections, even non pc-relative ones.
2343
2916066e
SC
23442002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2345
2346 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2347
96e87417
SC
23482002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2349
2350 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2351 .softregs and .eeprom.
2352
83518699
DB
23532002-06-28 David O'Brien <obrien@FreeBSD.org>
2354
2355 * NEWS: Note the next release is 2.13.
2356
6c6783ff
NC
23572002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2358
2359 * po/tr.po: New translation imported.
2360
a2c36061
AM
23612002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2362
2363 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2364 (ecoff_directive_def): Likewise.
2365 (ecoff_directive_tag): Likewise.
2366 * listing.c (file_info): Likewise.
2367 * hash.c (what): Likewise.
2368
a13a0de8
L
23692002-06-25 H.J. Lu <hjl@gnu.org>
2370
2371 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2372 * Makefile.in: Regenerated.
2373
6c6783ff 23742002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
5db33d76
JR
2375
2376 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2377 (assemble_ppi): Generate warning if the same register is used
2378 twice as destination in the same padd / pmuls instruction.
2379
0ebb9a87
DB
23802002-06-18 Dave Brolley <brolley@redhat.com>
2381
a2c36061 2382 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
0ebb9a87
DB
2383 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2384 * configure.in: Support frv-*-*.
2385 * Makefile.am (CPU_TYPES): Add frv.
2386 (TARGET_CPU_CFILES): Add tc-frv.c.
2387 (TARGET_CPU_HFILES): Add tc-frv.h.
2388 (DEPTC_frv_coff): New variable.
2389 (DEPTC_frv_elf): New variable.
2390 (DEPOBJ_frv_coff): New variable.
2391 (DEPOBJ_frv_elf): New variable.
2392 (DEP_frv_coff): New variable.
2393 (DEP_frv_elf): New variable.
2394 * tc-frv.c: New file.
2395 * tc-frv.h: New file.
2396
2a24298d
CM
23972002-06-17 Catherine Moore <clm@redhat.com>
2398
a2c36061 2399 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2a24298d 2400
6c6783ff 24012002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
96f31fc7
JR
2402
2403 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2404
184e65b1
TR
24052002-06-17 Tom Rix <trix@redhat.com>
2406
2407 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2408
ecb4347a
DJ
24092002-06-14 H.J. Lu <hjl@gnu.org>
2410 Daniel Jacobowitz <drow@mvista.com>
2411
2412 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2413 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2414 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2415 and new_logical_line for the first .file directive.
2416 * read.c (s_app_file_string): New function.
2417 (s_app_file): Call it.
2418 * read.h (s_app_file_string): Add declaration.
2419
24202002-06-14 Daniel Jacobowitz <drow@mvista.com>
2421
2422 * configure.in: Remove MIPS_STABS_ELF.
2423 * configure: Regenerated.
2424 * config.in: Regenerated.
2425 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2426 for MIPS targets.
2427 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2428 ".extern".
2429 (pdr_seg): Declare unconditionally.
2430 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2431 (s_mips_end): Likewise. Generate stabs function markers.
2432 (s_mips_ent): Generate stabs function markers.
2433 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2434 ELF.
2435 (s_mips_mask): Likewise.
2436 (mips_flag_mdebug): New.
2437 (md_longopts): Add "mdebug" and "no-mdebug".
2438 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2439 (mips_after_parse_args): Set mips_flag_mdebug.
2440 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2441
d6e9d61a
MR
24422002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2443
2444 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2445 value twice for RELA relocations.
2446
03e83a45
BE
24472002-06-12 Ben Elliston <bje@redhat.com>
2448
2449 * symbols.c (resolve_symbol_value): Initialise final_val.
2450
2451 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2452
b4f96c78
TR
24532002-06-11 Tom Rix <trix@redhat.com>
2454
2455 * config/tc-ppc.c (ppc_subseg_align): Delete.
2456 (ppc_change_csect): Default csect align is 2.
a2c36061 2457 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
b4f96c78 2458
8a6def3b
MM
24592002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2460
2461 * config/tc-avr.c (mcu_types): Update.
2462
7542c0f2
JT
24632002-06-08 Matt Thomas <matt@3am-software.com>
2464
2465 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2466 (vax-*-netbsd*): New targets.
2467 * configure: Regenerate.
a2c36061 2468 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
7542c0f2 2469 * config/tc-vax.c: Add support for ELF and PIC.
a2c36061 2470 (flag_want_pic): New flag.
7542c0f2
JT
2471 (float_cons): Fix prototype.
2472 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2473 (md_assemble): Introduce a new is_absolute local, and use it
2474 rather than repeating the test. Make fatal errors actually
a2c36061 2475 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
7542c0f2 2476 Add support for ELF. Add support for PIC.
a2c36061 2477 (md_convert_frag): Adjust for BFD_ASSEMBLER.
7542c0f2
JT
2478 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2479 BFD_ASSEMBLER.
a2c36061 2480 (vax_reg_parse): Make the % register prefix mandatory for ELF,
7542c0f2
JT
2481 optional for a.out, and not allowed for VMS. Adjust all callers.
2482 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
a2c36061 2483 (md_create_long_jump): Likewise.
7542c0f2
JT
2484 (md_undefined_symbol): Likewise.
2485 (md_section_align): Likewise.
2486 (md_shortopts): Allow -k and -K for ELF.
2487 (md_parse_option): Set flag_want_pic if -k or -K.
2488 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2489 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2490 * config/tc-vax.h (tc_headers_hook): Remove.
2491 (TARGET_FORMAT): Set according to object format and target
2492 environment.
2493 (BFD_ARCH, TARGET_ARCH): Define.
2494 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2495 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2496 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2497 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2498
5a38dc70
AM
24992002-06-08 Alan Modra <amodra@bigpond.net.au>
2500
e90b95f6
AM
2501 * Makefile.am: Run "make dep-am".
2502 * Makefile.in: Regenerate.
2503
5a38dc70
AM
2504 * as.c: Replace CONST with const.
2505 * write.c: Likewise.
2506 * config/obj-coff.c: Likewise.
2507 * config/tc-a29k.c: Likewise.
2508 * config/tc-arm.c: Likewise.
2509 * config/tc-dlx.c: Likewise.
2510 * config/tc-h8300.c: Likewise.
2511 * config/tc-h8500.c: Likewise.
2512 * config/tc-i370.c: Likewise.
2513 * config/tc-i860.c: Likewise.
2514 * config/tc-i960.c: Likewise.
2515 * config/tc-m68hc11.c: Likewise.
2516 * config/tc-m68k.c: Likewise.
2517 * config/tc-m88k.c: Likewise.
2518 * config/tc-mcore.c: Likewise.
2519 * config/tc-mips.c: Likewise.
2520 * config/tc-ns32k.c: Likewise.
2521 * config/tc-pdp11.c: Likewise.
2522 * config/tc-pj.c: Likewise.
2523 * config/tc-s390.c: Likewise.
2524 * config/tc-sh.c: Likewise.
2525 * config/tc-sparc.c: Likewise.
2526 * config/tc-tahoe.c: Likewise.
2527 * config/tc-tic80.c: Likewise.
2528 * config/tc-v850.c: Likewise.
2529 * config/tc-vax.c: Likewise.
2530 * config/tc-w65.c: Likewise.
2531 * config/tc-z8k.c: Likewise.
2532
c5dd6aab
DJ
25332002-06-08 Daniel Jacobowitz <drow@mvista.com>
2534
2535 Based on patch from Matt Green:
2536 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
a2c36061 2537 * config/tc-mips.c (s_mips_file): Renamed from s_file.
c5dd6aab
DJ
2538 (s_mips_loc): New function.
2539 (mips_nonecoff_pseudo_table): Call them.
a2c36061 2540 (append_insn): Call dwarf2_emit_insn.
c5dd6aab 2541
a4672219
TS
25422002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2543
2544 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2545 to -1.
2546 (file_ase_mips16): New veriable.
2547 (mips_eabi64): Remove.
2548 (CPU_HAS_MIPS16): New define.
2549 (CPU_HAS_MDMX): Fix data type.
2550 (md_begin): Code cleanup. Use file_ase_mips16.
2551 (mips_elf_final_processing): Handle mips16 header flag.
2552 Handle EABI flag without intermediate variable.
2553
437ee9d5
TS
25542002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2555
2556 * doc/as.texinfo: Update MIPS documentation.
2557
85b51719
TS
25582002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2559
2560 * config/tc-mips.c: Add define for $zero register.
2561 (md_begin): Add $zero as alias name for $0.
2562 (insn_uses_reg): Use ZERO define.
2563 (mips_ip): Add $zero as alias name for $0.
2564 (mips16_ip): Likewise.
2565 (s_cplocal): Demand empty rest of input line.
2566 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2567 names. Use ZERO define. Fix input_line_pointer progress.
2568
9758f3fc
AM
25692002-06-07 Alan Modra <amodra@bigpond.net.au>
2570
2571 * symbols.c: Replace CONST by const throughout.
2572 (symbol_find_exact): Split out from..
2573 (symbol_find_base): ..here.
2574 * symbols.h: Replace CONST by const throughout.
2575 (symbol_find_exact): Declare.
2576 * config/obj-elf.c: #include "struc-symbol.h".
2577 (elf_frob_file): If group name matches an exported symbol, use that
2578 symbol for the signature and ".group" as the section name.
2579
6c6783ff 25802002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
9691d64f
JR
2581
2582 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2583 but warn about it.
9691d64f 2584
ffdefa66
DJ
25852002-06-06 Daniel Jacobowitz <drow@mvista.com>
2586
2587 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2588 and mips_opts.ase_mdmx if they are uninitialized.
2589
ec8b3afd
JL
25902002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2591
2592 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2593 (hppa_force_relocation): Check if a stub just before the start symbol
2594 of the last call_info is reachable before forcing relocation. Fix
2595 typo.
2596
e9670677
MR
25972002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2598
2599 * config/tc-mips.c (mips_after_parse_args): New function.
2600 (md_begin): Move processing of defaults to mips_after_parse_args.
2601 config/tc-mips.h (md_after_parse_args): Define.
2602
5b0e55b6
JT
26032002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2604
2605 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2606 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2607 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2608 * configure: Regenerate.
2609 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2610 environment.
2611
a074e149
JT
26122002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2613
2614 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2615
d2dab548
AM
26162002-06-04 Alan Modra <amodra@bigpond.net.au>
2617
2618 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2619 linkonce flag. Print all warnings.
2620 (obj_elf_section): Parse ",comdat" for groups.
2621 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2622 consistency of comdat flag.
2623
20e130e9
RH
26242002-06-02 Richard Henderson <rth@redhat.com>
2625
2626 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2627 with LITERALs without sequence numbers.
2628
9e756d64
RH
26292002-06-01 Richard Henderson <rth@redhat.com>
2630
2631 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2632 Rename them LITUSE_ALPHA_*.
2633
3048287a
NC
26342002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2635
2636 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2637 accept parentheses enclosed register lists.
2638
194b5210
AM
26392002-05-31 Alan Modra <amodra@bigpond.net.au>
2640
2641 * Makefile.am: Run "make dep-am".
2642 * Makefile.in: Regenerate.
2643 * po/POTFILES.in: Regenerate.
2644
34e97952
AM
26452002-05-31 Graeme Peterson <gp@qnx.com>
2646
2647 * configure.in: Add i386-*-nto-qnx*.
2648 * configure: Regenerate.
2649
793b27f4
TS
26502002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2651
2652 * config/tc-mips.c (mips_ip): Use unsigned long values for
2653 warning output.
2654
80245285
TS
26552002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2656
2657 * config/tc-mips.c (s_cpsetup): Fix initialization of
2658 mips_cpreturn_register and mips_cpreturn_offset.
2659
698b7d9d
TS
26602002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2661
2662 * config/tc-mips.c (s_cpsetup): Fix comment.
2663
76db943d
TS
26642002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2665
2666 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2667 (mips_ip): Likewise.
2668 (mips16_ip): Likewise.
2669 (tc_get_register): Likewise.
2670
deec1734 26712002-05-30 Chris G. Demetriou <cgd@broadcom.com>
a2c36061 2672 Ed Satterthwaite <ehs@broadcom.com>
deec1734
CD
2673
2674 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2675 (mips_opts): Initialize "ase_mdmx" member.
2676 (file_ase_mdmx): New variable.
2677 (CPU_HAS_MDMX): New macro.
2678 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2679 based on command line options and configuration defaults.
2680 (macro_build): Note in comment that use of MDMX in macros is
2681 not currently allowed.
2682 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2683 "Z" MDMX operand types.
2684 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2685 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2686 types.
2687 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2688 Add support for "-mdmx" and "-no-mdmx" options.
2689 (OPTION_ELF_BASE): Move to accomodate new options.
2690 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2691 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2692 file_ase_mdmx was set.
2693 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2694 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2695 nomdmx" directives.
2696
9ee72ff1
TS
26972002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2698
2699 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2700 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2701 command line switch conforming to gcc conventions.
2702 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2703
438c16b8
TS
27042002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2705
2706 * config/tc-mips.c (macro_build_jalr): New Function.
2707 (md_begin): NewABI uses big GOTs.
2708 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2709 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2710 (load_address): Add some NewABI PIC support.
2711 (macro): Likewise.
2712 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2713 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2714
f7ea7ef2
TS
27152002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2716
2717 * config/tc-mips.c (load_address): Use mips_gp_register instead
2718 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2719 instead.
2720 (macro): Use mips_gp_register instead of hardcoded value.
2721
3765b1be
RH
27222002-05-30 Richard Henderson <rth@redhat.com>
2723
2724 * expr.h (operatorT): Add O_md17..O_md32.
2725 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2726 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2727 O_tprelhi, O_tprello, O_tprel): New.
2728 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2729 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2730 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2731 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2732 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2733 (md_apply_fix3): Handle TLS relocations.
2734 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2735 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2736 associated TLS reloc. Check lituse_tls relocs match up.
2737 (emit_insn): Handle TLS relocations.
2738 (ldX_op): Remove.
2739
1c5cec28
RH
2740 * doc/c-alpha.texi: Add docs for tls relocations.
2741
def2e0dd
TS
27422002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2743
2744 * config/tc-mips.c (mips_gprel_offset): New variable.
2745 (s_gpvalue): Use it.
2746
8ade06a8
TR
27472002-05-30 Diego Novillo <dnovillo@redhat.com>
2748
a2c36061
AM
2749 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2750 write-write conflicts.
2751 (md_assemble): Reformat introductory comment.
2752 (parallel_ok): Prevent packing only if the first
2753 instruction cannot be packed.
8ade06a8
TR
2754
27552002-05-30 Jason Eckhardt <jle@redhat.com>
2756 Tom Rix <trix@redhat.com>
2757
2758 * config/tc-d10v.c (build_insn): Check for immediates.
2759
c9914766
TS
27602002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2761
2762 * config/tc-mips.c: Replace GP in comments by $gp.
2763 (mips_big_got): Initialize.
2764 (mips_trap): Initialize.
2765 (load_address): Use mips_gp_register instead of hardcoded value.
2766 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2767 (macro): Use mips_gp_register instead of hardcoded value.
2768 (macro2): Change load_address calls.
2769 (md_pcrel_from): Comment formatting.
2770 (s_cpload): Use mips_gp_register instead of hardcoded value.
2771 (s_cprestore): Likewise. Comment formatting.
2772 (s_gpword): Fix data type.
2773 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2774 (nopic_need_relax): Replace GP in comments by $gp.
2775 (mips_elf_final_processing): Better comment.
2776
d172d4ba
NC
27772002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2778
2779 * configure.in: Add DLX configuraton
2780 * Makefile.am: Add DLX configuraton
2781 * configure: Regenerate.
2782 * Makefile.in: Regenerate.
2783 * config/tc-dlx.c: New file.
2784 * config/tc-dlx.h: New files.
52216602 2785 * NEWS: Mention new support.
d172d4ba 2786
e9732b6d
NC
27872002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2788
2789 * config/obj-coff.c (write_object_file): Add missing semicolon.
2790
f9419b05
TS
27912002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2792
2793 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2794 by the define. Remove superfluous check of mips_opts.mips16.
2795 (append_insn): Likewise. Canonicalize variable increments.
2796 (macro_build): Canonicalize variable increments.
2797 (macro_build_lui): Likewise.
2798 (load_register): Likewise.
2799 (load_address): Move pointer initialization.
2800 (macro): Move pointer to a more local scope. Canonicalize variable
2801 increments. Better comments. Replace magic constant for RA by the
2802 define.
2803 (macro2): Replace magic constant for RA by the define. Canonicalize
2804 variable increments.
2805 (mips_ip): Canonicalize variable increments.
2806 (mips16_ip): Replace magic constant for RA by the define.
2807 (my_getSmallParser): Canonicalize variable increments/decrements.
2808 (my_getPercentOp): Likewise.
2809 (my_getSmallExpression): Likewise.
2810 (s_align): Likewise.
2811 (s_mipsset): Likewise.
2812 (s_cpsetup): Likewise.
2813 (s_insn): Remove superfluous check of mips_opts.mips16.
2814 (s_mips_stab): Likewise.
2815 (mips_handle_align): Canonicalize variable increments.
2816 (s_mips_ent): Likewise.
2817 (s_mips_end): Add comment.
2818
aa501e5c
JT
28192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2820
2821 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2822 * configure: Regenerate.
2823
29589b0c
AM
28242002-05-25 Alan Modra <amodra@bigpond.net.au>
2825
2826 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2827 * Makefile.in: Regenerate.
2828 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2829 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2830 * configure: Regenerate.
2831 * as.h: Use #include "" instead of <> for local header files.
2832 * flonum-konst.c: Likewise.
2833 * flonum-mult.c: Likewise.
2834 * gasp.c: Likewise.
2835 * listing.c: Likewise.
2836 * config/tc-ia64.h: Likewise.
2837 * config/tc-v850.h: Likewise.
2838
436e8db0
NC
28392002-05-24 TAMURA Kent <kent@netbsd.org>
2840
2841 * configure.in: Add a target for i386-netbsdpe.
2842 * configure: Regenerate.
2843
13ae64f3
JJ
28442002-05-23 Jakub Jelinek <jakub@redhat.com>
2845
2846 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2847 (obj_elf_common): Call elf_common.
2848 (obj_elf_tls_common): New function.
2849 (elf_pseudo_tab): Support .tls_common.
2850 (special_sections): Add .tdata and .tbss.
2851 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2852 sections.
2853 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2854 (obj_elf_parse_section_letters): Include T in error message.
2855 * config/tc-ppc.c (ppc_section_letter): Likewise.
2856 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2857 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2858 SEC_MERGE.
2859 * config/tc-sparc.c (md_apply_fix3): Likewise.
2860 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2861 Define them if not BFD_ASSEMBLER.
2862 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2863 and @NTPOFF.
2864 (md_apply_fix3): Add TLS relocs.
2865 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2866 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2867 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2868 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2869 (ia64_elf_section_letter): Include T in error message.
2870 (md_begin): Support TLS operators.
2871 (md_operand): Likewise.
2872 (ia64_gen_real_reloc_type): Support TLS relocs.
13ae64f3
JJ
2873 * write.c (adjust_reloc_syms): Don't change symbols in
2874 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2875
c62e1cc3
NC
28762002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2877
2878 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2879 round the relocation up rather than down.
2880
6ff96af6
NC
28812002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2882
2883 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2884 flag.
a2c36061 2885 * doc/as.texinfo: Document that the COFF version of .section
6ff96af6
NC
2886 ignores the 'a' flag.
2887
18e1d487
AM
28882002-05-23 Alan Modra <amodra@bigpond.net.au>
2889
69108c1f
AM
2890 * config/tc-alpha.c (assemble_tokens): Protect use of
2891 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2892
18e1d487
AM
2893 * write.c (size_seg): Check adjustment to last frag.
2894 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2895 section alignment.
2896 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2897 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2898 (write_object_file): Invoke md_do_align if available, and use
2899 frag_align_code on text sections.
2900 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2901 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2902 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2903 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2904 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2905 BFD_ASSEMBLER too.
2906
9d66a1d9
L
29072002-05-22 H.J. Lu <hjl@gnu.org>
2908
2909 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2910 for source file.
2911
76feaaf3
NC
29122002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2913
2914 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2915 as ELF builds.
2916
1080e97d
L
29172002-05-22 H.J. Lu <hjl@gnu.org>
2918
2919 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2920 for one .loc for compiler.
2921
c90bbe5b
TS
29222002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2923
2924 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2925 embedded-PIC.
2926
771c7ce4
TS
29272002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2928
2929 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2930 Optimize the rotate by zero case.
2931
fa70f2ed
NC
29322002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2933
2934 * configure.in: Remove accidental enabling of bfd_gas=yes for
2935 sh-coff targets.
2936 * configure: Regenerate.
2937
411863a4
KH
29382002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2939
2940 * app.c: Fix formatting.
2941 * as.c: Likewise.
2942 * ehopt.c: Likewise.
2943 * expr.c: Likewise.
2944 * input-file.c: Likewise.
2945 * listing.c: Likewise.
2946 * macro.h: Likewise.
2947 * stabs.c: Likewise.
2948 * symbols.c: Likewise.
2949
eb268f46
AM
29502002-05-17 Alan Modra <amodra@bigpond.net.au>
2951
2952 * config/obj-generic.c: Delete file.
2953 * config/obj-generic.h: Likewise.
2954
bdfdba87
MM
29552002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2956
2957 * config/tc-avr.c (mcu_types): Update for new devices.
2958
3bec30a8
TS
29592002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2960
2961 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2962
8586fc66
TS
29632002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2964
2965 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2966 worked sometimes by accident. Fix copy&paste comment.
2967
195325d2
TS
29682002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2969
2970 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2971 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2972 (mips_elf_final_processing): Let n32 use .reginfo.
2973
4db1a35d
TS
29742002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2975
2976 * config/tc-mips.c (append_insn): Fix too small range of variable.
2977
7f367f01
NC
29782002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2979
2980 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2981 listing_prev_line().
2982
7193a0e7
NC
29832002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2984
f5b4e9e4
NC
2985 * config/tc-arm.c (md_assemble): Remove redundant call to
2986 listing_prev().
2987
b6675117
NC
2988 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2989 loc_directive_seen.
2990
7193a0e7
NC
2991 * stabs.c (s_stab_generic): Fix grammatical error in warning
2992 message.
2993
50b31228
AM
29942002-05-13 Alan Modra <amodra@bigpond.net.au>
2995
2996 * write.c (subsegs_finish): Don't specially align last subseg.
2997
cce5a618
NC
29982002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2999
6360824b
NC
3000 * stabs.c (s_stab_generic): Warn about a description field that is
3001 too big.
3002
f8e42b8c
NC
3003 * config/obj-coff.c: Fix compile time warnings when compiling
3004 without BFD_ASSEMBLER defined.
3005 Fix formatting.
3006
cce5a618
NC
3007 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3008 target.
3009 (md_pcrel_from_section): Use md_pcrel_from().
3010
d7c310c2
NC
30112002-05-11 Bruno Haible <bruno@clisp.org>
3012
3013 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3014 by dwarf2_directive_loc, instead of calling dwarf2_where.
3015
5d6255fe
KH
30162002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3017
3018 * config/obj-coff.h: Fix formatting.
3019 * config/tc-mcore.c: Likewise.
3020 * config/tc-mn10300.c: Likewise.
3021 * config/tc-openrisc.c: Likewise.
3022 * config/tc-or32.c: Likewise.
3023 * config/tc-pdp11.c: Likewise.
3024 * config/tc-ppc.c: Likewise.
3025 * config/tc-ppc.h: Likewise.
3026 * config/tc-sh64.c: Likewise.
3027 * config/tc-sh.c: Likewise.
3028 * config/tc-tic54x.c: Likewise.
3029 * config/tc-xstormy16.c: Likewise.
3030 * config/tc-xstormy16.h: Likewise.
3031
cc8a6dd0
KH
30322002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3033
3034 * config/obj-coff.c: Fix formatting.
3035 * config/obj-elf.c: Likewise.
3036 * config/tc-alpha.c: Likewise.
3037 * config/tc-arm.c: Likewise.
3038 * config/tc-d10v.c: Likewise.
3039 * config/tc-d30v.c: Likewise.
3040 * config/tc-h8300.c: Likewise.
3041 * config/tc-hppa.c: Likewise.
3042
412167cb
AM
30432002-05-09 Alan Modra <amodra@bigpond.net.au>
3044
3045 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3046 reloc when no_cond_jump_promotion.
3047
91975467
JW
30482002-05-08 Jim Wilson <wilson@redhat.com>
3049
3050 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3051 current variable part of frag.
3052
a1b6236b
KH
30532002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3054
3055 * config/tc-mmix.c: Fix formatting.
3056 * config/tc-mmix.h: Likewise.
3057
c8615825
AM
30582002-05-08 Alan Modra <amodra@bigpond.net.au>
3059
3060 * configure: Regenerate.
3061
8a104df9
KH
30622002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3063
3064 * config/tc-m68k.c: Fix formatting.
3065
d3d8a9ee
NC
30662002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3067
3068 * Makefile.am: Honour DESTDIR.
3069 * Makefile.in: Regenerate.
3070
40449e9f
KH
30712002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3072
3073 * config/tc-ia64.c: Fix formatting.
3074 * config/tc-ia64.h: Likewise.
3075
98d3f06f
KH
30762002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3077
3078 * config/tc-mips.c: Fix formatting.
3079 * config/tc-s390.c: Likewise.
3080 * config/tc-s390.h: Likewise.
3081
8f5b2891
AO
30822002-05-03 Alexandre Oliva <aoliva@redhat.com>
3083
3084 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3085 information for instructions.
3086
d1a6c242
KH
30872002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3088
3089 * as.h: Fix formatting.
3090 * cgen.c: Likewise.
3091 * cgen.h: Likewise.
3092 * dwarf2dbg.c: Likewise.
3093 * frags.h: Likewise.
3094 * gasp.c: Likewise.
3095 * macro.c: Likewise.
3096 * read.c: Likewise.
3097 * stabs.c: Likewise.
3098 * symbols.c: Likewise.
3099
1cfc59d5
AM
31002002-05-02 Alan Modra <amodra@bigpond.net.au>
3101
72297628
AM
3102 * app.c (mri_pseudo): Only declare for TC_M68K.
3103
1cfc59d5
AM
3104 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3105 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3106 BFD_RELOC_16_BASEREL.
3107 (md_assemble): Likewise.
3108 (md_apply_fix3): Likewise.
3109
358b94bd
NC
31102002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3111
3112 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3113 zero into an add of zero - it is not the same.
3114
d8731e7d
NC
31152002-05-01 Arati Dikey <aratid@kpit.com>
3116
3117 * tc-sh.c (get_specific): Generate warning if the same
3118 destination register is used in parallel instructions.
3119
200dbde8
AM
31202002-05-01 Andrew Macleod <amacleod@cygnus.com>
3121
3122 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3123
3f3cdb03
AM
31242002-05-01 Alan Modra <amodra@bigpond.net.au>
3125
3126 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3127 backwards to prevent cascading errors.
3128
9b2b7d69
MM
31292002-04-30 Mark Mitchell <mark@codesourcery.com>
3130
3131 * configure.in: Add support for powerpc-*-windiss.
3132 * configure: Regenerated.
a2c36061 3133
0f3f3d8b
AM
31342002-04-28 Alan Modra <amodra@bigpond.net.au>
3135
819e6420
AM
3136 * config/tc-s390.c (md_parse_option): Formatting.
3137
0f3f3d8b
AM
3138 * config/tc-i386.c: Formatting fixes, add missing space in error
3139 message.
3140
3c25c5f6
NC
31412002-04-24 Christian Groessler <chris@groessler.org>
3142
3143 * config/tc-z8k.c (build_bytes): Add support for new cases:
3144 CLASS_IGNORE and ARG_NIM4.
3145 (md_assemble): Prevent destruction of input_line_pointer if
3146 get_operands returns failure.
3147
af55c2e6
CD
31482002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3149
3150 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3151 instructions to be generated by macros.
3152
062cd5e7
AS
31532002-04-24 Andreas Schwab <schwab@suse.de>
3154
3155 * config/tc-i386.c (output_jump, output_disp)
3156 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3157 more.
3158 (md_apply_fix3): Remember addend value for rela relocations.
3159 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3160
2b2e39bf
CD
31612002-04-22 Chris Demetriou <cgd@broadcom.com>
3162
3163 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3164 from previous change.
3165
80cc45a5
EC
31662002-04-22 Eric Christopher <echristo@redhat.com>
3167
2b2e39bf
CD
3168 * config/tc-mips.c (macro_build): Add warning if macro instructions
3169 are expanded into a branch delay slot.
80cc45a5 3170
ffa554ed
GK
31712002-04-17 Geoffrey Keating <geoffk@redhat.com>
3172
3173 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3174 numbers, gdb relies on them to detect the start of the prologue.
3175
302576af
MS
31762002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3177
3178 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3179 symbols in merge sections.
3180
0f3f3d8b 31812002-04-16 Alan Modra <amodra@bigpond.net.au>
091e58c1
AM
3182
3183 * as.c (main): Don't reference _bfd_chunksize.
3184
76b999d0
TR
31852002-04-15 Tom Rix <trix@redhat.com>
3186
80cc45a5 3187 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
76b999d0
TR
3188 symbols in merge sections.
3189
580a832e
RS
31902002-04-11 Richard Sandiford <rsandifo@redhat.com>
3191
3192 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3193 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3194 argument for the precision.
3195 (gen_to_words): Update accordingly.
3196
edde18a5
AM
31972002-04-10 Alan Modra <amodra@bigpond.net.au>
3198
3199 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3200 BFD_VERSION_STRING unavailable.
3201 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3202
6c6783ff 32032002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5bcd00a6
JR
3204
3205 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3206 symbol_used_in_reloc_p is true.
2ed5f585
JR
3207
3208 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3209 endian hosts.
3210
8e42bcb6
AM
32112002-04-04 Alan Modra <amodra@bigpond.net.au>
3212
3213 * dep-in.sed: Cope with absolute paths.
3214 * Makefile.am (dep.sed): Subst TOPDIR.
3215 Run "make dep-am".
3216 * Makefile.in: Regenerate.
3217
874e8986
TS
32182002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3219
3220 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3221 (mips_ip): Remove unused variable.
3222 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3223 unsigned char with bfd_byte.
3224 (s_file): Remove unused variable.
3225 (s_mips_ent): Likewise.
3226
fbdbf472
TR
32272002-04-03 Tom Rix <trix@redhat.com>
3228
3229 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3230 (build_insn): Same.
3231 (find_opcode): Fix warning in as_warn.
3232 * config/tc-d10v.h: Update Copyright.
3233
32342002-04-03 Alan Matsuoka <alanm@redhat.com>
3235 Tom Rix <trix@redhat.com>
3236
3237 From Jeff Knaggs <jknaggs@redhat.com>
80cc45a5 3238 * config/tc-d10v.c (check_resource_conflict): New function to
fbdbf472
TR
3239 check for resource conflicts.
3240
3241 From Jason Eckhardt <jle@redhat.com>
a2c36061
AM
3242 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3243 imm3 fields.
3244 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3245 reserved control registers is used.
3246 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3247 imm3 fields.
fbdbf472
TR
3248
3249 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
a2c36061
AM
3250 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3251 instruction cannot be packed.
fbdbf472
TR
3252
3253 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
a2c36061
AM
3254 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3255 write-write conflicts.
3256 (md_assemble): Reformat introductory comment.
3257 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3258 arguments.
fbdbf472 3259
784b640d
AM
32602002-04-03 Alan Modra <amodra@bigpond.net.au>
3261
3262 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3263 O_logical_not>): Derive final_seg from add_symbol.
3264 <O_multiply..O_logical_or>: More final_seg twiddles.
3265
5f44c186
RH
32662002-04-01 Jessica Han <jessica@cup.hp.com>
3267
a2c36061 3268 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5f44c186
RH
3269 in 32-bit mode.
3270
3458b54c
AS
32712002-03-27 Andreas Schwab <schwab@suse.de>
3272
3273 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3274 field for pc-relative fixups.
3275 (output_disp): Likewise.
3276 (md_estimate_size_before_relax): Likewise.
3277 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3278 pc-relative fixups in 64bit mode.
3279
815b453c
AM
32802002-03-22 Alan Modra <amodra@bigpond.net.au>
3281
3282 * config/te-aix5.h: Typo fix.
3283
d5b32339
AM
32842002-03-21 Alan Modra <amodra@bigpond.net.au>
3285
3286 * Makefile.am: Run "make dep-am".
3287 * Makefile.in: Regenerate.
3288 * doc/Makefile.in: Regenerate.
3289
f201ccb3
NC
32902002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3291
3292 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3293 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3294
177b4a6a
AO
32952002-03-18 Alexandre Oliva <aoliva@redhat.com>
3296
3297 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3298 the EXTENDED bit here; report the estimate according to the
3299 current size.
3300
eb1e0e80
NC
33012002-03-18 Tom Rix <trix@redhat.com>
3302
3303 * configure.in: Add AIX 5 support.
3304 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3305 * config/te-aix5.h: New file. AIX 5 support.
3306 * configure: Regenerate.
3307
a1c259a1
NC
33082002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3309
3310 * po/fr.po: Updated version.
3311
949f2b5c
AJ
33122002-03-16 Andreas Jaeger <aj@suse.de>
3313
3314 * doc/c-mips.texi (Machine Dependencies): Add new node.
3315
1f25f5d3
CD
33162002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3317
3318 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3319 (mips_opts): Initialize "ase_mips3d" member.
3320 (file_ase_mips3d): New variable.
3321 (CPU_HAS_MIPS3D): New macro.
3322 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3323 based on command line options and configuration defaults.
3324 (macro_build, mips_ip): Accept MIPS-3D instructions if
3325 mips_opts.ase_mips3d is set.
3326 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3327 Add support for "-mips3d" and "-no-mips3d" options.
3328 (OPTION_ELF_BASE): Move to accomodate new options.
3329 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3330 (mips_elf_final_processing): Add a comment indicating that a
3331 MIPS-3D ASE ELF header flag should be set, when one exists.
3332 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3333 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3334 nomips3d" directives.
949f2b5c 3335
2be11e7e
HPN
33362002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3337
3338 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3339 a weak symbol in same section to be within reach.
3340
9ce88e60
NC
33412002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3342
3343 * po/fr.po: Updated version.
3344
1e16b528
AS
33452002-03-12 Andreas Schwab <schwab@suse.de>
3346
3347 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3348 body record so that an error is given for misplaced .save
3349 pseudo-ops.
3350
29b0f896
AM
33512002-03-09 Alan Modra <amodra@bigpond.net.au>
3352
3353 * config/tc-i386.h (REX_OPCODE): Define.
3354 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3355 (rex_byte): typedef to int.
3356 * config/tc-i386.c: Group prototypes and vars together.
3357 Formatting fixes. Remove occurrences of "register" keyword.
3358 (true): Delete.
3359 (false): Delete.
3360 (mode_from_disp_size): Add INLINE keyword to prototype.
3361 (fits_in_signed_byte): Likewise.
3362 (fits_in_unsigned_byte): Likewise.
3363 (fits_in_unsigned_word): Likewise.
3364 (fits_in_signed_word): Likewise.
3365 (fits_in_unsigned_long): Likewise.
3366 (fits_in_signed_long): Likewise.
3367 (type_names): Constify.
3368 (intel_float_operand): Constify param.
3369 (add_prefix): Use REX_OPCODE.
3370 (md_assemble): Likewise. Modify for changed rex_byte.
3371 (parse_insn): Split out of md_assemble.
3372 (parse_operands): Likewise.
3373 (swap_operands): Likewise.
3374 (optimize_imm): Likewise.
3375 (optimize_disp): Likewise.
3376 (match_template): Likewise.
3377 (check_string): Likewise.
3378 (process_suffix): Likewise.
3379 (check_byte_reg): Likewise.
3380 (check_long_reg): Likewise.
3381 (check_qword_reg): Likewise.
3382 (check_word_reg): Likewise.
3383 (finalize_imm): Likewise.
3384 (process_operands): Likewise.
3385 (build_modrm_byte): Likewise.
3386 (output_insn): Likewise.
3387 (output_branch): Likewise.
3388 (output_jump): Likewise.
3389 (output_interseg_jump): Likewise.
3390 (output_disp): Likewise.
3391 (output_imm): Likewise.
3392
2e64b665
DJ
33932002-03-07 Daniel Jacobowitz <drow@mvista.com>
3394
3395 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3396
937149dd
AM
33972002-03-06 Alan Modra <amodra@bigpond.net.au>
3398
3399 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3400 relocs except when BFD64.
3401
3402 * write.c (number_to_chars_bigendian): Don't abort when N is
3403 larger than sizeof (VAL).
3404 (number_to_chars_littleendian): Likewise.
3405
40d74fb1
JL
34062002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3407
3408 * config/tc-hppa.c (md_apply_fix3): Add cast.
3409 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3410 e_rrsel.
3411
cd3cde86
AM
34122002-03-05 Paul Koning <pkoning@equallogic.com>
3413
3414 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3415 (parse_ac5): New function for parsing float regs in float operand.
3416 (parse_expression): Remove attempt to make literals be octal.
3417 (parse_op_no_deferred): Support float literals.
3418 (parse_op): Reject attempts to refer to float regs.
3419 (parse_fop): New function, like parse_op but for float operand.
949f2b5c 3420 (md_assemble): Add cases to parse float operands. Also fix
cd3cde86
AM
3421 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3422
e9682144
L
34232002-03-04 H.J. Lu <hjl@gnu.org>
3424
3425 * config/obj-elf.c (special_section): Add .init_array,
3426 .fini_array and .preinit_array.
3427
3428 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3429 .init_array and .fini_array.
3430
26eb4093
JJ
34312002-03-01 Jakub Jelinek <jakub@redhat.com>
3432
3433 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3434 visibility.
3435 (obj_frob_symbol): Copy visibility.
3436
559e22f3
JJ
34372002-02-28 Jakub Jelinek <jakub@redhat.com>
3438
3439 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3440 s_text.
3441 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3442
ef412327
NC
34432002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3444
3445 * po/es.po: Updated.
3446
b25a253c
CD
34472002-02-26 Chris Demetriou <cgd@broadcom.com>
3448
3449 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3450 only, undo the changes made on 2001-06-08, with the
3451 effect being that common or extern symbols are
3452 adjusted for embedded-PIC, but weak symbols are not.
3453 (md_estimate_size_before_relax: Likewise, with the effect
3454 that extern symbols are treated the same as weak symbols
3455 only if not embedded-PIC.
3456 (mips_fix_adjustable) Likewise, with the effect that
3457 weak or extern symbols are not adjusted for embedded-PIC.
3458 (md_apply_fix3): Tweak so that the case where value is zero
3459 is handled more correctly for embedded-PIC code.
3460
fe41178f
NC
34612002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3462
587fe2b3
NC
3463 * doc/as.texinfo (Overview): Add missing @ifset IA64
3464
fe41178f
NC
3465 * configure.in (LINGUAS): Add es.po.
3466 * configure: Regenerate.
3467 * po/es.po: New file.
3468
4d34fb5f
TS
34692002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3470
3471 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3472 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3473 and NO_PIC cases. Code cleanup.
3474 (macro2): Fix handling of 64bit register loads.
3475
9e32ca89
NC
34762002-02-25 David Mosberger <davidm@hpl.hp.com>
3477
3478 * doc/as.texinfo: Add entry for IA64.
3479 * doc/c-ia64.texi: New file.
3480
23e1d84c
AM
34812002-02-25 Alan Modra <amodra@bigpond.net.au>
3482
c7d004c5
AM
3483 * config/tc-hppa.c: Update copyright date.
3484
3485 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
23e1d84c
AM
3486 Remove references to chip manufacturers.
3487 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3488 Correct comments.
3489 (md_show_usage): Remove references to chip manufacturers. Mention
3490 -mpower4.
3491 (md_begin): Test power4 opcode flag bits.
3492
b1c6bf70 34932002-02-22 David Mosberger <davidm@hpl.hp.com>
6290819d
NC
3494
3495 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3496 count exceeds prologue count.
3497 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3498 (unwind.label_prologue_count): New member.
3499
3500 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3501
3502 (get_saved_prologue_count): New function.
3503 (save_prologue_count): New function.
3504 (free_saved_prologue_count): New function.
3505 (dot_label_state): Record state label by calling save_prologue_count().
3506 (dot_copy_state): Restore prologue count by calling
3507 get_saved_prologue_count().
3508 (generate_unwind_image): Free up list of saved prologue
3509 counts by calling free_saved_prologue_counts().
3510
f1e7a2c9
NC
35112002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3512
3513 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3514 function declarations.
3515
3f965e60
NC
35162002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3517
3518 * NEWS: Note that GASP is now deprecated.
3519 * Makefile.am: Do not build gasp-new by default.
3520 * Makefile.in: Regenerate.
3521 * doc/Makefile.am: Do not install gasp.info.
3522 * doc/Makefile.in: Regenerate.
3523 * gas/gasp.texi: Note that gasp is now deprecated.
3524
9a66911f
NC
35252002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3526
3527 * NEWS: Mark 2.12 branch.
3528
f88fd9fe
TT
35292002-02-19 Tom Tromey <tromey@redhat.com>
3530
3531 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3532
da0e507f
TS
35332002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3534
3535 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3536 option input.
3537
ff0fb565
MS
35382002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3539
3540 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3541 Make bit size independent of architecture switch.
3542 (md_begin): Add warning for -m64 with -Aesa.
3543 (s390_md_end): Use renamed architecture defines.
3544
a245a9aa
DJ
35452002-02-18 Daniel Jacobowitz <drow@mvista.com>
3546
3547 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3548
8bf549a8
NC
35492002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3550
3551 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3552 instead of CRIS.
3553
9151e8bf
CD
35542002-02-15 Chris Demetriou <cgd@broadcom.com>
3555
a2c36061 3556 * config/tc-mips.c (md_estimate_size_before_relax): Really
9151e8bf
CD
3557 make sure we treat weak like extern only for ELF. (Fixes
3558 patch from 2001-07-25.)
3559
59455fb1
BE
35602002-02-15 Ben Elliston <bje@redhat.com>
3561
3562 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3563 works as expected.
3564
49fda6c8
HPN
35652002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3566
3567 * NEWS: Mention support for MMIX.
3568
2d2bf3e0
CD
35692002-02-13 Chris Demetriou <cgd@broadcom.com>
3570
3571 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3572 a sequence of indpendent 'if' statements for easier debugging
3573 and future modification.
3574
76f57f3a
JT
35752002-02-13 Matt Fredette <fredette@netbsd.org>
3576
3577 * config/tc-m68k.c (md_show_usage): No longer display a
3578 hard-coded "68020" for the default CPU, instead display the
3579 canonical name of the true, configured default CPU.
3580 (m68k_elf_final_processing): Mark objects for sub-68020
3581 CPUs with the new EF_M68000 flag.
3582
3bf057fa
AS
35832002-02-13 Andreas Schwab <schwab@suse.de>
3584
3585 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3586 pc-relative relocations to merge sections in 64-bit mode.
3587
6334e312 35882002-02-13 Ben Elliston <bje@redhat.com>
1ac57253
BE
3589
3590 * NEWS: Document floating point number handling in gasp.
3591 * gasp.c: Include <assert.h> and "xregex.h".
3592 (is_flonum): New function.
3593 (chew_flownum): Likewise.
3594 (change_base): Consume flonums from the input, where possible.
3595 * doc/gasp.texi (Constants): Document floating point numbers.
3596
3dcfe21d
AM
35972002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3598
3599 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3600 that implicitly use LR and RR selectors.
3601
913572ec
AO
36022002-02-12 Alexandre Oliva <aoliva@redhat.com>
3603
3604 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3605 and `epsw' as available on AM33 and above only.
3606 (other_register_name): Add logic to handle machine type encoded in
3607 reg_number.
3608
9b90b531
TR
36092002-02-11 Tom Rix <trix@redhat.com>
3610
949f2b5c 3611 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
9b90b531
TR
3612 xcoff64.
3613
6c6783ff 36142002-06-11 Alexandre Oliva <aoliva@redhat.com>
6c1b24e4
AO
3615
3616 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3617 Use all over.
3618
6c6783ff 36192002-02-11 Jan Hubicka <jh@suse.cz>
7ecd2f8b
JH
3620
3621 * i386.c (md_assemble): Support 32bit address prefix.
3622 (i386_displacement): Likewise.
3623 (i386_index_check): Accept 32bit addressing in 64bit mode.
3624
7eb27ef2
AO
36252002-02-11 Alexandre Oliva <aoliva@redhat.com>
3626
3627 * config/tc-sh.c (dot): Removed unused function.
3628
fa702524
AM
36292002-02-11 Alan Modra <amodra@bigpond.net.au>
3630
3631 * Makefile.am: "make dep-am".
3632 * Makefile.in: Regenerate.
3633 * aclocal.m4: Regenerate.
3634 * config.in: Regenerate.
3635 * configure: Regenerate.
3636 * doc/Makefile.in: Regenerate.
3637
625e1353
RH
36382002-02-10 Richard Henderson <rth@redhat.com>
3639
3640 * doc/c-alpha.texi: New file.
3641 * doc/Makefile.am (CPU_DOCS): Add it.
3642 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3643
543833df
RH
36442002-02-09 Richard Henderson <rth@redhat.com>
3645
3646 * config/tc-alpha.c (O_samegp): New.
3647 (USER_RELOC_P): Include it.
3648 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3649 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3650 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3651 (alpha_validate_fix): New.
3652 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3653
328eb32e
HPN
36542002-02-09 Hans-Peter Nilsson <hp@axis.com>
3655
3656 * doc/c-cris.texi: New.
3657 * doc/all.texi: @set CRIS.
3658 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3659 Include c-cris.texi.
3660 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3661 * doc/Makefile.in: Regenerate.
3662
6373ee54
CD
36632002-02-08 Chris Demetriou <cgd@broadcom.com>
3664
3665 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3666 determine if a number is a sign-extended 32-bit number.
3667 (load_register): Use IS_SEXT_32BIT_NUM.
3668 (macro): Check if load/store macro handling is using a
3669 constant 32-bit address on 64-bit address systems, and if
3670 so optimize the generation of that address.
3671
50a4c611
RH
36722002-02-08 Richard Henderson <rth@redhat.com>
3673
3674 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3675 we've eliminated all foreign relocation types yet.
3676 (alpha_fix_adjustable): Likewise.
3677
324bfcf3
AO
36782002-02-08 Alexandre Oliva <aoliva@redhat.com>
3679
3680 Contribute sh64-elf.
3681 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3682 Stephen Clarke <Stephen.Clarke@st.com>
3683 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3684 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3685 * config/tc-sh.c (md_relax_table): Added default sizes for
3686 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3687 MOVI_16, MOVI_32 and MOVI_48.
3688 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3689 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3690 and MOVI_16.
3691 (shmedia_md_estimate_size_before_relax): Remove redundant
f6cf69d7 3692 blocks. Set fragP->fr_var even if relaxation type unchanged.
324bfcf3
AO
3693 Retain UNDEF_MOVI until expression decays to number.
3694 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3695 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3696 relocation types. Take fixP->fx_addnumber into account too.
3697 (shmedia_md_apply_fix): Likewise.
3698 (shmedia_md_convert_frag): Likewise.
3699 (shmedia_build_Mytes): Likewise.
3700 (sh64_consume_datalabel): Complain about nested datalabel.
3701 Support PIC relocs. Call sh_parse_name.
3702 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3703 in tc-sh.h to SHmedia reloc types.
3704 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3705 MOVI_GOTPC): New relaxation constants.
3706 (md_relax_table): Introduce relaxation directives for PIC-related
3707 constants.
3708 (sh_PIC_related_p): Handle datalabel.
3709 (sh_check_fixup): Choose SH5 PIC relocations.
3710 (sh_cons_fix_new): Added BDF_RELOC_64.
3711 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3712 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3713 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3714 current ISA is SHmedia, get 7 bytes.
3715 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3716 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3717 void function.
3718 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3719 shmedia_apply_fix3 and make void.
3720 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3721 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3722 as_bad.
3723 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3724 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3725 2001-03-14 DJ Delorie <dj@redhat.com>
3726 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3727 * doc/Makefile.in(CPU_DOCS): Ditto.
3728 * doc/c-sh64.texi: New file.
3729 * doc/as.texinfo: Add SH64 support.
3730 2001-03-13 DJ Delorie <dj@redhat.com>
3731 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3732 A_REUSE_PREV so that its purpose is more obvious.
3733 (shmedia_build_Mytes): Ditto.
3734 2001-03-07 DJ Delorie <dj@redhat.com>
3735 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3736 before processing.
3737 (sh64_vtable_inherit): Ditto.
3738 (strip_datalabels): New, strip "datalabel" from given line.
3739 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3740 pseudos.
3741 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3742 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3743 call ...
3744 (shmedia_build_Mytes): ... to here.
3745 2001-03-06 DJ Delorie <dj@redhat.com>
3746 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3747 is a generic one.
3748 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3749 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3750 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3751 address by one in call to dwarf2_emit_insn.
3752 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3753 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3754 alignment handling broken by imported changes.
3755 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3756 (sh64_handle_align): Declare.
3757 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3758 (sh64_max_mem_for_rs_align_code): Declare.
3759 (enum sh64_isa_values): Moved here from tc-sh64.c.
3760 (md_do_align): Define.
3761 (sh64_do_align): Declare.
3762 (struct sh64_tc_frag_data): New.
3763 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3764 changed.
3765 (TC_FRAG_INIT): Change to set new datatype.
3766 (struct sh64_segment_info_type): Rename member
3767 last_flushed_location to last_contents_mark. All users changed.
3768 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3769 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3770 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3771 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3772 of unsetting seen_insn.
3773 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3774 call sh64_update_contents_mark.
3775 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3776 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3777 enum sh64_isa_values.
3778 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3779 (emitting_crange): Boolean guard moved to file scope from function
3780 scope in sh64_set_contents_type.
3781 (s_sh64_abi): New.
3782 (sh64_update_contents_mark): New; most split out from
3783 sh64_flush_pending_output.
3784 (shmedia_md_end): Call sh64_update_contents_mark. Set
3785 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3786 (sh64_do_align): New function.
3787 (sh64_max_mem_for_rs_align_code): New function.
3788 (sh64_handle_align): Rename from shmedia_do_align. Make
3789 non-static. Add head comment. Emit zero bytes for n bytes modulo
3790 four. Change return-type to void.
3791 (shmedia_elf_new_section): Remove.
3792 (shmedia_md_assemble): Call sh64_update_contents_mark.
3793 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3794 new frag. Call sh64_update_contents_mark after making the new
3795 frag.
3796 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3797 and sh_flush_pending_output.
3798 (sh64_flag_output): Also call md_flush_pending_output, but add
3799 condition on not emitting_crange.
3800 (sh64_tc_cons_fix_new): Remove.
3801 2001-01-12 Nick Clifton <nickc@redhat.com>
3802 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3803 alignment handling scheme imported from sourceware.
3804 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3805 * config/tc-sh64.h (TARGET_FORMAT): Define.
3806 (sh64_target_format): Prototype.
3807 * config/tc-sh64.c (sh64_target_mach): New function.
3808 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3809 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3810 zero_address_frag instead of copying the frag of the symbol.
3811 (shmedia_frob_file_before_adjust): Ditto.
3812 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3813 to valueT to remove signedness.
f6cf69d7 3814 (shmedia_md_convert_frag): Add parameter final. Rename parameter
324bfcf3
AO
3815 headers to output_bfd. Do not evaluate symbols if final is false;
3816 do emit fixups.
3817 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3818 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3819 to the current frag, call shmedia_md_convert_frag to emit fixups
f6cf69d7 3820 and make frag_wane neutralize the frag. Update comments.
324bfcf3
AO
3821 * config/tc-sh.c (md_convert_frag): Change caller of
3822 shmedia_md_convert_frag.
3823 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3824 * config/tc-sh64.h: Tweak comments and correct formatting.
3825 * config/tc-sh64.c: Ditto.
3826 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3827 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3828 for the no-relocation case.
3829 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3830 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3831 wrappers.
f6cf69d7 3832 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
324bfcf3
AO
3833 comment.
3834 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3835 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3836 expansion.
3837 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3838 Correct comment.
3839 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3840 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3841 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3842 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3843 al>: Set lowest bit of field to relocate to 1 and rest to empty,
949f2b5c 3844 if reloc is emitted.
324bfcf3
AO
3845 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3846 New options plus bugfixes.
3847 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3848 "-expand-pt32".
3849 (md_parse_option): Handle new options.
3850 (md_show_usage): Add blurb for new options.
3851 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3852 (sh64_expand, sh64_pt32): New variables.
3853 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3854 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
f6cf69d7 3855 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
324bfcf3
AO
3856 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3857 <resolved previously-pc-relative relocs>: Handle
3858 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3859 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3860 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3861 points to SHcompact code.
3862 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3863 SH64PCREL16)>: Check that ISA of what operand points at and
3864 PTA/PTB matches, or emit error.
3865 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3866 SHMEDIA_BFD_RELOC_PT.
3867 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3868 operand.
3869 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3870 condition for MOVI expansion.
3871 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3872 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3873 sh64_expand.
3874 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3875 fixup.
3876 (sh64_target_format): Error-check setting of sh64_pt32 and
3877 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3878 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3879 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3880 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3881 * config/tc-sh64.c: Improve comments.
3882 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3883 not say the linker will check correctness of PTA/PTB expansion.
3884 (shmedia_md_end): Make non-static.
3885 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3886 prototype.
3887 * config/tc-sh.c (sh_finalize): Remove.
3888 * config/tc-sh.h (md_end): Do not define.
3889 Remove prototype for sh_finalize.
3890 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3891 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3892 sh64_section_data container when storing section type in tdata
3893 field in elf_section_data.
3894 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3895 EF_SH5.
3896 * Makefile.am: Update dependencies.
3897 * Makefile.in: Regenerate.
3898 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3899 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3900 dwarf2_emit_insn call with test on debug_type.
3901 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3902 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3903 CRT_SH5_ISA32 sticky for 64-bit.
3904 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3905 Generate .crange sections when switching ISA mode or emitting
3906 constants in same section as code.
3907 * config/tc-sh64.c: Reformat structure definitions.
3908 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3909 variables.
3910 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3911 to emit a .cranges descriptor when contents type changes. Only
3912 emit error if changing contents type and -no-mix is in effect.
3913 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3914 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3915 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3916 sh64_flush_last_crange over sections.
3917 When checking main symbol of datalabel symbol, check for
3918 STO_SH5_ISA32, not ISA type of section in definition.
3919 (shmedia_frob_file_before_adjust): Check main symbol for
3920 STO_SH5_ISA32; don't check ISA type of section in definition.
3921 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3922 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3923 .cranges entries have been output.
3924 (shmedia_elf_new_section): Just call md_flush_pending_output.
3925 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3926 fix. Do not set tc_segment_info_data.in_code for section. Call
3927 sh64_set_contents_type for SHmedia code.
3928 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3929 false. Call md_flush_pending_output.
3930 (sh64_target_format): Check that -no-mix and
3931 -shcompact-const-crange are used in sane combination with other
3932 options.
3933 (shmedia_md_pcrel_from_section): Check type of fix for how to
3934 adjust pc-relative.
3935 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3936 not ISA type of section in definition.
3937 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3938 hold contents-type state.
3939 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3940 (sh64_flush_pending_output): Declare.
3941 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3942 (sh64_tc_cons_fix_new): Declare.
3943 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3944 call sh64_flag_output.
3945 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3946 call sh64_set_contents_type to mark SHcompact code and set
3947 seen_insn.
3948 (md_longopts): New options "-no-mix" and
3949 "-shcompact-const-crange".
3950 (md_parse_option): Handle new options.
3951 (md_show_usage): Add blurb for new options.
3952 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3953 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3954 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3955 (sh64_last_insn_frag): New.
3956 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3957 to get frag for insn opcode for generating fixups; do not assume it
3958 is the same frag.
3959 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3960 for new insn.
3961 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3962 section.
3963 (TC_FRAG_TYPE): Define as fragS *.
3964 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3965 (sh64_last_insn_frag): Declare.
3966 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3967 not == NULL before dereferencing.
3968 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3969 Get rid of BFD section flag and EF_SH64_ABI64.
3970 * config/tc-sh64.c (shmedia_frob_section_type): Use
3971 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3972 communicate the section as containing SHmedia code. Describe why.
3973 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3974 EF_SH64 regardless of ABI.
3975 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3976 in error message. Handle resolved expressions for
3977 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3978 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3979 (shmedia_check_limits): Handle BFD_RELOC_64.
3980 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3981 a STO_SH5_ISA32 symbol, only the BFD value.
3982 2000-12-11 Ben Elliston <bje@redhat.com>
3983 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3984 dwarf2_generate_asm_lineno.
3985 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3986 Handle PC-relative MOVI expansions with assembler relaxation.
3987 Generate PC-relative relocs from 16-bit PC-relative expressions.
3988 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3989 (shmedia_md_pcrel_from_section): ...here.
3990 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3991 turned completely resolved. Adjust relocation type for 16-bit
f6cf69d7 3992 immediate operands that has turned PC-relative. Adjust back for
324bfcf3
AO
3993 MD_PCREL_FROM_SECTION being applied twice.
3994 (shmedia_md_convert_frag): Always emit reloc for expression with
3995 global or weak symbol. Handle relaxation result for PC-relative
3996 expressions.
3997 (shmedia_md_estimate_size_before_relax): An expression with a weak
3998 or global symbol can not be relaxed. Break out tests for
3999 relaxable symbol into variable sym_relaxable.
4000 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4001 UNDEF_MOVI)>: Break out any PC-relative expression and change
4002 relaxation type.
4003 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4004 opjp.
4005 <case A_IMMS16>: Fix typo for initial minor relaxation type of
f6cf69d7 4006 MOVI expansion. If X_op_symbol of the immediate expression is
324bfcf3
AO
4007 set, make an expression symbol for the argument to frag_var.
4008 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4009 relaxations.
4010 (END): Adjust for new relaxations.
4011 (md_relax_table): Add entries for new relaxations.
4012 2000-12-07 Ben Elliston <bje@redhat.com>
4013 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4014 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4015 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4016 SHORI operand offsets in PT/PTA/PTB expansions.
4017 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4018 Implement DataLabel semantics.
4019 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4020 shmedia_frob_file_before_adjust.
4021 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4022 (DATALABEL_SUFFIX): Define.
4023 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4024 symbol list to update "datalabel" symbols to their main symbol
4025 counterparts.
4026 (shmedia_frob_file_before_adjust): New.
4027 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4028 undefined and set STT_DATALABEL.
4029 (sh64_frob_label): Initialize TC symbol field.
f6cf69d7 4030 (sh64_consume_datalabel): Actually implement semantics. New
324bfcf3
AO
4031 parameter operandf, call it instead of expression.
4032 (sh64_exclude_symbol): New.
4033 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4034 to sh64_consume_datalabel.
4035 (tc_symbol_new_hook): Define to tc_frob_symbol.
4036 (TC_SYMFIELD_TYPE): Define to symbolS *.
4037 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4038 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4039 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4040 case.
4041 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4042 generating dwarf2 debug information.
4043 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4044 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4045 elf64-sh64 for the 64-bit ABI.
4046 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4047 option.
4048 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4049 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4050 case-insensitivity.
4051 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4052 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4053 (enum sh64_abi_values): New type.
4054 (enum sh64_isa_values): New type.
4055 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4056 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4057 (sh64_abi): Replace shmedia_64.
4058 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4059 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4060 (s_sh64_mode): Check validity for this target.
4061 (sh64_target_format): Initialize defaults for ISA and ABI.
4062 Fallback to old object format if no SH64 ISA or ABI has been
4063 specified.
4064 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4065 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4066 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4067 * config/tc-sh64.h: Fix typo in comment.
4068 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4069 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4070 <PT fixups for absolute values>: Size will be longest, not
4071 shortest.
4072 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4073 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4074 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4075 and l1 to hold lowercase of two first characters. Change all
4076 remaining TO_LOWER to tolower.
4077 * config/tc-sh64.c (TO_LOWER): Delete.
4078 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4079 (md_parse_name): Define.
4080 (sh64_consume_datalabel): Declare.
4081 (DOLLAR_DOT): Define.
4082 * config/tc-sh64.c (shmedia_parse_exp): New.
4083 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4084 (shmedia_parse_reg): Remove const from src
4085 parameter.
4086 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4087 (shmedia_md_assemble): Ditto for op_end variable.
4088 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4089 Use shmedia_parse_exp, not parse_exp.
4090 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4091 parameter. All callers changed.
4092 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4093 callers changed.
4094 (shmedia_parse_reg): Put first two character in local variables.
4095 Use tolower, not TO_LOWER. If no register is found and argtype
4096 indicates a control register, scan shmedia_creg_table
4097 case-insensitive.
4098 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4099 * Makefile.am (CPU_TYPES): Add sh64.
4100 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4101 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4102 Regenerate dependencies.
4103 * Makefile.in: Regenerate.
4104 * configure.in: Add support for sh64-*-elf*.
4105 * configure: Regenerate.
4106 * config/tc-sh64.h: New.
4107 * config/tc-sh64.c: New.
4108 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4109 .mode, .isa and .uaquad.
4110 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4111 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4112 [HAVE_SH64] (END): Define as 10.
4113 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4114 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4115 MOVI_64): Define.
4116 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4117 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4118 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4119 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4120 Define.
4121 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4122 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4123 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4124 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4125 SHmedia instructions. Handle state-change after switching to
4126 SHcompact.
4127 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4128 (md_parse_option) [HAVE_SH64]: Parse new options.
4129 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4130 (md_convert_frag) [HAVE_SH64] <default>: Call
4131 shmedia_md_convert_frag instead of abort.
4132 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4133 BFD_RELOC_SH_SHMEDIA_CODE.
4134 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4135 SHcompact or SHmedia code.
4136 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4137 shmedia_md_apply_fix instead of abort.
4138 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4139 result from calling shmedia_md_estimate_size_before_relax instead
4140 of calling abort.
4141 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4142 do the work.
4143 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4144 shmedia_init_reloc and do nothing more if it returns non-zero.
4145 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4146 * po/POTFILES.in: Regenerate.
4147 * po/gas.pot: Regenerate.
4148
ac3f04d7
AO
41492002-02-06 Alexandre Oliva <aoliva@redhat.com>
4150
6b32719e
AO
4151 * config/tc-sh.c (parse_at): Install the correct version of
4152 2002-02-04's patch.
949f2b5c 4153
ac3f04d7
AO
4154 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4155 assume fixP->fx_subsy is non-NULL.
4156
7679ead9
AO
41572002-02-04 Alexandre Oliva <aoliva@redhat.com>
4158
4159 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
fdf4122d 4160 A_DISP_PC_ABS, and adjust it by -4.
7679ead9
AO
4161 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4162 expected.
4163 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4164 the operand type is not A_DISP_PC_ABS.
4165
5459d7a0
HPN
41662002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4167
4168 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4169 common and weak symbols. Handle common and weak symbols as
4170 undefined symbols with regards to GREG handling and merging.
4171 (mmix_frob_file): Ditto.
4172
006336b8
JT
41732002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4174
4175 * configure.in (hppa-*-netbsd*): New target.
4176 * configure: Regenerate.
4177 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4178
9e0665bc
AM
41792002-02-02 Alan Modra <amodra@bigpond.net.au>
4180
4181 * config/tc-v850.c: Add missing prototypes amd use old-style
4182 function definitions.
4183 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4184 (sdata_section tdata_section, zdata_section, sbss_section,
4185 tbss_section, zbss_section, rosdata_section, rozdata_section,
4186 scommon_section, tcommon_section, zcommon_section,
4187 call_table_data_section, call_table_text_section): Delete.
4188 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4189 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4190 v850_call_table_data, v850_call_table_text): Delete.
4191 (struct v850_seg_entry): New.
4192 (v850_seg_table): New.
4193 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4194 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4195 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4196 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4197 (do_v850_seg): New.
4198 (v850_seg): New.
4199 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4200 recording of alignment.
4201 (md_pseudo_table): Use v850_seg.
4202 (md_begin): Don't init .call_table_data and .call_table_text here.
4203 Set v850_seg_table bss entry.
4204
973eb340
HPN
42052002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4206
4207 Support on-demand global register allocation by passing on
4208 base-plus-offset relocs to the linker.
4209 * config/tc-mmix.c: Tweak and fix typos in comments.
949f2b5c 4210 (allocate_undefined_gregs_in_linker): New variable.
973eb340
HPN
4211 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4212 (md_longopts): Add --linker-allocated-gregs.
4213 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4214 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4215 (md_show_usage): Update text for -x. Add text for
4216 --linker-allocated-gregs.
4217 (tc_gen_reloc): Derive default value for addend from val and
4218 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4219 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4220 GREG if allocate_undefined_gregs_in_linker.
4221 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4222 --linker-allocated-gregs.
4223 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4224 --linker-allocated-gregs. Mention that it's implied by -x.
4225 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4226 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4227
4228 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4229
ba323545
AM
42302002-02-01 Alan Modra <amodra@bigpond.net.au>
4231
4232 * Makefile.am: Run "make dep-am"
4233 * Makefile.in: Regenerate.
4234
3b16e843
NC
42352002-01-31 Ivan Guzvinec <ivang@opencores.org>
4236
4237 * config/tc-or32.c: New file.
4238 * config/tc-or32.h: New file.
4239 * configure.in: Add support for or32 targets.
4240 * configure: Regenerate.
4241 * config/obj-coff.c: Add support for or32 targets.
4242 * config/obj-coff.h: Add support for or32 targets.
4243 * Makefile.am: Add support for or32 targets.
4244 * Makefile.in: Regenerate.
4245 * NEWS: Mention support for OpenRISC.
4246 * doc/Makefile.in: Regenerate.
4247 * po/POTFILES.in: Regenerate.
4248 * po/gas.pot: Regenerate.
4249
912a07db
RS
42502002-01-30 Richard Sandiford <rsandifo@redhat.com>
4251
4252 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4253 and mod.
4254
4514d474
CD
42552002-01-29 Chris Demetriou <cgd@broadcom.com>
4256
4257 * config/tc-mips.c (tc_gen_reloc): Arrange for
4258 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4259 their LO16 parts, even for ELF.
4260
246fcdee
DJ
42612002-01-29 Daniel Jacobowitz <drow@mvista.com>
4262
4263 * config/tc-i386.c: Protect definitions of true and false
4264 from redefinition.
4265
00e6e13d
JJ
42662002-01-28 Jakub Jelinek <jakub@redhat.com>
4267
4268 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4269 made because of .weak, if they are neither defined nor used in any
4270 way.
4271
4867be41
DJ
42722002-01-27 Daniel Jacobowitz <drow@mvista.com>
4273
4274 * configure: Regenerated.
4275
7562a296
HPN
42762002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4277
4278 * doc/Makefile.am (install): Depend on install-info.
4279 * doc/Makefile.in: Regenerate.
4280
1caa7b23
NC
42812002-01-26 Nick Clifton <nick@redhat.com>
4282
4283 * po/fr.po: Updated version
4284
166e23f9
KH
42852002-01-24 Kazu Hirata <kazu@hxi.com>
4286
4287 * config/tc-h8300.c (check_operand): Don't print a warning
4288 when a valid 24-bit address is given to a 16-bit address
4289 operand.
4290
538cd60f
AO
42912002-01-24 Alexandre Oliva <aoliva@redhat.com>
4292
4293 * config/tc-sh.c (sh_elf_suffix): Removed.
4294 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4295 sh_end_of_match, sh_parse_name): New functions.
4296 (sh_elf_cons): Simplify.
4297 (parse_exp): Reject misplaced PIC operands.
4298 (md_undefined_symbol): Simplify.
4299 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4300 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4301 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4302 Complain if subsy remains at the end.
4303 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4304 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4305
b386f24b
AO
43062002-01-22 Alexandre Oliva <aoliva@redhat.com>
4307
4308 * config/tc-mn10300.c (xr_registers): Move `pc'...
4309 (other_registers): ... here.
4310
c46f0c34
AM
43112002-01-22 Alan Modra <amodra@bigpond.net.au>
4312
4313 * Makefile.am: Run "make dep-am".
4314 * Makefile.in: Regenerate.
4315 * gas/po/POTFILES.in: Regenerate.
4316
23deb923
DD
43172002-01-21 DJ Delorie <dj@redhat.com>
4318
4319 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4320 stabstr_name allocation permanent, as it will be referenced from
4321 the section hash.
4322
9596feea
JT
43232002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4324
4325 * configure.in (ia64-*-netbsd*): New target.
949f2b5c 4326 * configure: Regenerate.
9596feea 4327
92081f48
HPN
43282002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4329
4330 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4331 to @dots call.
4332 <Detailed description, ARM options>: Ditto.
4333 * doc/c-arm.texi (ARM Options): Ditto.
4334
63e63b07
RE
43352002-01-18 Richard Earnshaw <rearnsha@arm.com>
4336
4337 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4338 do_mia, do_mar and do_mra respectively.
4339 (do_mav_*): Renamed from do_c_*.
4340 (mav_reg_required_here, mav_parse_offset): Renamed from
4341 cirrus_reg_required_here and cirrus_parse_offset respectively.
4342 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4343
ea6ef066
RE
43442002-01-18 Richard Earnshaw <rearnsha@arm.com>
4345 Keith Walker <keith.walker@arm.com>
4346
4347 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4348 (insns): Add pattern for bxj instruction.
4349 (do_bxj): New function.
4350 (arm_cpus): Add arm926ej.
4351 (arm_archs): Add armv5tej.
4352
bc89618b
RE
43532002-01-18 Richard Earnshaw <rearnsha@arm.com>
4354
4355 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4356
d193a22a
RE
43572002-01-19 Keith Walker <keith.walker@arm.com>
4358
4359 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4360
03b1477f
RE
43612002-01-18 Richard Earnshaw <rearnsha@arm.com>
4362
4363 * NEWS: Mention new ARM command-line options and VFP support.
4364
949f2b5c 4365 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
03b1477f
RE
4366 uses changed.
4367 (ARM_CEXT_MAVERICK): Similarly.
4368 (ARM_ANY): Now means any core instruction.
4369 (CPU_DEFAULT): Default to ARM_ANY.
4370 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4371 (pic_code): Declare for all object types. Make type int.
4372 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4373 (march_fpu_opt, mfpu_opt): Declare.
4374 (md_longopts): Tidy up conditional definitions.
4375 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4376 (arm_long_opts): New tables.
4377 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4378 (arm_parse_extension): New function.
4379 (md_parse_option): Rewrite using new table-driven system.
4380 (md_show_usage): Use new table-driven system.
4381 (md_begin): Calculate cpu_variant from command line option data.
4382 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4383 command-line options.
4384 * doc/c-arm.texi: Likewise.
4385
2a538ba5
AJ
43862002-01-18 Andreas Jaeger <aj@suse.de>
4387
4388 * as.c (parse_args): Update year.
4389
b1ffc257 43902002-01-17 Timothy Wall <twall@alum.mit.edu>
2a538ba5 4391
b1ffc257
TW
4392 * config/tc-tic54x.c (encode_address): Add a more informative
4393 warning about incorrect syntax.
4394
328577ad
NC
43952002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4396
4397 * po/gas.pot: Regenerate.
4398
06f030db
NC
43992002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4400
4401 * macro.c (get_any_string): Add no-c-format comment to prevent
4402 confusion when translating string.
4403 * gasp.c (get_any_string): Add no-c-format comment to prevent
4404 confusion when translating string.
4405
394f9b3a
TS
44062002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4407 Johannes Stezenbach <js@convergence.de>
4408 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4409 matched before the shorter ones.
4410 (my_getSmallParser): Fix handling of nested parentheses in
4411 percent_op's. Code cleanup.
4412 (my_getPercentOp): New function, code from my_getSmallParser.
4413 (my_getSmallExpression): Fix handling of closing parentheses.
4414 Code cleanup. Better comments.
4415
af3ae48d
NC
44162002-01-16 Nick Clifton <nickc@redhat.com>
4417
4418 po/tr.po: New file: Turkish translation.
4419 configure.in (LINGUAS): Add "tr".
4420 configure: Regenerate.
4421
bfae80f2
RE
44222002-01-15 Richard Earnshaw <rearnsha@arm.com>
4423
4424 Support for VFP instructions
4425 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4426 (cp_address_required_here): New argument wb_ok. When false, do not
4427 accept write-back forms of addressing. Change all callers.
4428 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4429 (FPU_VFP_EXT_V2): Define.
4430 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4431 Define in terms of above.
4432 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4433 (vfp_reg): New struct.
4434 (vfp_regs): New array of registers.
4435 (insns): Add VFP instructions.
4436 (sn_table): New array of VFP single-precision register names.
4437 (dn_table): New array of VFP double-precision register names.
4438 (all_reg_maps): Add the new register tables.
4439 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4440 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4441 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4442 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4443 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4444 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4445 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4446 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4447 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4448 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4449 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4450 (do_vfp_sp_dp_cvt): New functions.
4451 (md_begin): Set soft-float flag for appropriate VFP work.
4452 (md_atof): Handle VFP-format doubles.
4453 (md_parse_option): Handle VFP command-line options.
4454 (md_show_usage): Display VFP command-line options.
4455
fcd6d8d6
RE
44562002-01-15 Richard Earnshaw <rearnsha@arm.com>
4457
2a538ba5 4458 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
fcd6d8d6
RE
4459 various command line options.
4460
1f7fd478
NC
44612002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4462
4463 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4464 vtinherit relocs.
4465 (xstormy16_md_apply_fix3): Do not return a value.
4466
21f0f23a
RE
44672002-01-14 Richard Earnshaw <rearnsha@arm.com>
4468
4469 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4470 the -EL/-EB option that matches the target's endianness.
4471 (md_parse_option): Likewise.
4472
ce058b6c
RE
44732002-01-14 Richard Earnshaw <rearnsha@arm.com>
4474
2a538ba5 4475 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
ce058b6c
RE
4476 is not dependent on ARM_BI_ENDIAN.
4477
f03698e6
RE
44782002-01-14 Richard Earnshaw <rearnsha@arm.com>
4479
4480 * tc-arm.c (all error messages): Normalize capitalization of messages.
4481
4482 * tc-arm.h (md_operand): Delete define.
4483 * tc-arm.c (in_my_get_expression): New static variable.
4484 (my_get_expression): Set and clear it.
4485 (md_operand): New function. If called from my_get_expression
4486 put the error in inst.error.
4487 (output_inst): Now takes argument of instruction being assembled.
4488 Print it out with any error message.
4489 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4490 with '=' syntax.
4491 (end_of_line): Don't update inst.error if it is already set.
4492
e28cd48c
RE
44932002-01-11 Richard Earnshaw <rearnsha@arm.com>
4494
6088b00e 4495 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
e28cd48c
RE
4496 op that can be translated into a mvn instruction.
4497
1cd8ff38
NC
44982002-01-11 Steve Ellcey <sje@cup.hp.com>
4499
4500 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4501 setting default md.flags.
4502 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4503 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4504 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4505 for 32 bit unwind info blocks.
4506 (generate_unwind_image): Add support for different types
4507 of unwind images (32 bits and/or big-endian).
4508 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4509 (ia64_target_format): Add support for hpux target formats.
4510 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4511 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4512 SHT_FINI_ARRAY elf section types.
4513
6c43fab6
RE
45142002-01-10 Richard Earnshaw <rearnsha@arm.com>
4515
4516 * tc-arm.c (struct reg_entry): Move before prototypes.
4517 (int_register, cp_register, fp_register): Delete.
4518 (reg_table): Delete. Replaced with ...
4519 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4520 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4521 (mav_dspsc_table): ... one table per register set.
4522 (arm_reg_hsh): Delete.
4523 (struct reg_map): New structure.
4524 (all_reg_maps): New array.
4525 (enum arm_reg_type): New enums.
4526 (build_reg_hsh): New function.
4527 (insert_reg_alias): Use hash table passed by caller. Adjust all
4528 callers.
4529 (create_register_alias): New function, split out from ...
4530 (md_assemble): ... here.
4531 (md_begin): Build new register hash tables.
4532 (arm_reg_parse): New argument for the hash table to search. Adjust all
4533 callers.
4534 (arm_reg_parse_any): New function.
4535 (co_proc_number): Look up the processor number in the processor hash
4536 table.
4537 (cirrus_regtype): Delete.
4538 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4539 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4540 (ARM_EXT_MAVERICKsc_register): Delete.
4541 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4542 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4543 functions.
4544 (do_c_triple_4, do_c_triple_5): Delete.
4545 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4546 (do_c_quad_6): Delete.
4547 (do_c_quad_6[ab]): New functions.
4548 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4549 arguments to use new register parsing methods.
4550 (cirrus_reg_required_here): Likewise.
4551 (insns): Reclassify cirrus maverick worker functions.
4552 (cirrus_valid_reg): Delete.
4553
8d05742f
JT
45542002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4555
4556 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4557 (sh*-*-netbsdelf*): New target.
4558 * configure: Regenerate.
2a538ba5 4559 * tc-sh.h: Update copyright years.
8d05742f
JT
4560 (TARGET_FORMAT): Add version for TE_NetBSD.
4561
ceac3f62
NC
45622002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4563
4564 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4565 negative.
4566
d7861ad2
AM
45672002-01-06 Alan Modra <amodra@bigpond.net.au>
4568
4569 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4570 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4571
7a621144
DJ
45722002-01-05 Daniel Jacobowitz <drow@mvista.com>
4573
4574 * tc-mips.c (mips_cprestore_valid): New flag.
4575 (mips_frame_reg_valid): New flag.
4576 (macro) [M_JAL_2]: Check both flags.
4577 [M_JAL_A]: Likewise.
4578 (s_cprestore): Set mips_cprestore_valid.
4579 (tc_get_register): If setting mips_frame_reg, set
4580 mips_frame_reg_valid and clear mips_cprestore_valid.
4581 (s_mips_ent): Clear both flags.
4582 (s_mips_end): Clear both flags.
4583
7c6beb69
AM
45842002-01-05 Alan Modra <amodra@bigpond.net.au>
4585
4586 * write.c (write_object_file): Make use of bfd_section_list_remove.
4587 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4588 * config/tc-mmix.c (mmix_frob_file): Likewise.
4589
8a8b2d4b
AJ
45902002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4591
4592 * configure.in (i386-*-netbsdelf*): Collapse target into...
4593 (i386-*-netbsd*): ...this. Add support for x86-64.
4594 * configure: Regenerated.
4595
a09cf9bd
MG
45962002-01-03 matthew green <mrg@redhat.com>
4597
4598 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4599
23b7f870
NC
46002002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4601
4602 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4603 NULL frag link.
4604
08d56133
NC
4605For older changes see ChangeLog-0001
4606\f
4607Local Variables:
4608mode: change-log
4609left-margin: 8
4610fill-column: 74
4611version-control: never
4612End:
This page took 0.295597 seconds and 4 git commands to generate.