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