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