1 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
3 * config/tc-m68hc11.c (md_show_usage): Update usage.
4 (md_parse_option): Recognize -m68hcs12.
5 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
7 * doc/as.texinfo (Overview): Document new option -m68hcs12.
9 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
13 2003-01-16 Alan Modra <amodra@bigpond.net.au>
15 * Makefile.am: Run "make dep-am".
16 * Makefile.in: Regenerate.
17 * po/POTFILES.in: Regenerate.
19 2003-01-11 Alan Modra <amodra@bigpond.net.au>
21 * read.c (get_absolute_expr): New, split out from..
22 (get_absolute_expression): ..here.
23 * read.h (get_absolute_expr): Declare.
24 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
25 Trim size to arch bits_per_address, and test for negative input
26 via get_absolute_expr.
28 2003-01-07 DJ Delorie <dj@redhat.com>
30 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
32 (xstormy16_md_apply_fix3): Use adjustment.
34 2003-01-02 Ben Elliston <bje@redhat.com>
36 * configure.in: Add iq2000-elf target.
37 * configure: Regenerate.
38 * config/tc-iq2000.c: New file.
39 * config/tc-iq2000.h: Likewise.
40 * po/gas.pot: Regenerate.
42 2003-01-02 Chris Demetriou <cgd@broadcom.com>
44 * config/tc-mips.c: Update copyright years to include 2003.
45 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
46 Additionally, clean up their code slightly and clean up their
49 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
51 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
53 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
55 * doc/Makefile.in: Regenerate.
57 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
59 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
60 of .init and .fini sections for array initializers and finalizers.
62 2002-12-31 Chris Demetriou <cgd@broadcom.com>
64 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
65 the "+D" operand, which will be used only by the disassembler.
67 2002-12-30 Chris Demetriou <cgd@broadcom.com>
69 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
71 * configure: Regenerate.
72 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
73 (macro_build): Handle "K" operand.
74 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
75 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
76 (mips_ip): New variable "lastpos", and implement "+A", "+B",
77 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
78 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
79 (validate_mips_insn): Implement "+" as a way to extend the
80 allowed operands, and implement "K", "+A", "+B", and "+C"
82 (OPTION_MIPS32R2): New define.
83 (md_longopts): Add entry for OPTION_MIPS32R2.
84 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
85 (md_parse_option): Handle OPTION_MIPS32R2.
86 (s_mipsset): Reimplement handling of ".set mipsN" options
87 and add support for ".set mips32r2".
88 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
89 (md_show_usage): Document "-mips32r2" option.
90 * doc/as.texinfo: Document "-mips32r2" option.
91 * doc/c-mips.texi: Likewise.
93 2002-12-30 Dmitry Diky <diwil@mail.ru>
95 * configure.in: Add msp430 target.
96 * configure: Regenerate.
97 * Makefile.am: Add msp430 target.
98 * Makefile.in: Regenerate.
99 * config/tc-msp430.c: New file: msp430 assembler.
100 * config/tc-msp430.h: New file: target macros for msp430.
101 * doc/Makefile.am: Add msp430 target.
102 * doc/Makefile.in: Regenerate.
103 * doc/as.texinfo: Include msp430 documenation.
104 * doc/all.texi: Enable msp430 documentation.
105 * doc/c-msp430.texi: New file: document msp430 specific features
108 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
110 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
111 (dwarf2_finish): Use it.
112 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
113 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
115 2002-12-20 DJ Delorie <dj@redhat.com>
117 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
118 BFD_RELOC_XSTORMY16_12.
120 2002-12-19 Alan Modra <amodra@bigpond.net.au>
122 * doc/as.texinfo (Invoking): Typo fix.
123 * config/tc-tic54x.c (encode_operand): Comment typo fix.
125 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
127 * doc/c-alpha.texi: Fix typos.
128 * doc/c-arm.texi: Likewise.
129 * doc/c-d10v.texi: Likewise.
130 * doc/c-i370.texi: Likewise.
131 * doc/c-i960.texi: Likewise.
132 * doc/c-ia64.texi: Likewise.
133 * doc/c-mmix.texi: Likewise.
134 * doc/c-ns32k.texi: Likewise.
135 * doc/c-pdp11.texi: Likewise.
136 * doc/c-pj.texi: Likewise.
137 * doc/c-sh64.texi: Likewise.
138 * doc/c-sparc.texi: Likewise.
139 * doc/c-tic54x.texi: Likewise.
140 * doc/c-v850.texi: Likewise.
141 * doc/c-vax.texi: Likewise.
142 * doc/internals.texi: Likewise.
144 2002-12-18 Chris Demetriou <cgd@broadcom.com>
146 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
147 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
148 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
149 arrange not to issue warnings about use of AT when AT is not
152 2002-12-17 Nick Clifton <nickc@redhat.com>
154 * as.c (std_longopts): Duplicate --keep-locals entry in order to
155 prevent it being confused with -k.
157 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
159 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
160 has already been set up, use it.
162 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
164 * ChangeLog-9295: Fix a typo.
166 * config/tc-d10v.c: Fix a comment typo.
167 * config/tc-dlx.c: Likewise.
168 * config/tc-h8300.h: Likewise.
169 * config/tc-h8500.h: Likewise.
170 * config/tc-mips.c: Likewise.
171 * config/tc-s390.c: Likewise.
172 * config/tc-sh.h: Likewise.
173 * config/tc-tic80.h: Likewise.
174 * config/tc-w65.h: Likewise.
175 * config/tc-z8k.c: Likewise.
176 * config/tc-z8k.h: Likewise.
177 * testsuite/gas/h8300/cmpsi2.s: Likewise.
179 2002-12-16 Alan Modra <amodra@bigpond.net.au>
181 * config/tc-d30v.c (check_range): Warning fixes, formatting.
182 Simplify sign extension. Remove redundant unsigned < 0 test.
183 * config/tc-i960.c (md_ri_to_chars): Prototype.
184 * config/tc-mcore.c (md_pseudo_table): Fix typo.
185 (dump_literals): Init brarsym, and test later instead of isforce.
187 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
188 (parse): Constify line and lineptr.
189 (md_begin): Calculate endop here.
191 2002-12-13 Alan Modra <amodra@bigpond.net.au>
193 * config/obj-vms.c: Formatting. Include fnctl.h.
194 (Create_VMS_Object_File): Fix creat call for sane unix systems.
195 (Object_Record_Offset): Make it a size_t.
196 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
197 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
198 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
199 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
200 (vms_fixup_data_section <data_size>): Add here instead.
201 * config/e-criself.c: Fix typo in last change.
203 2002-12-13 Alan Modra <amodra@bigpond.net.au>
205 * write.c (write_object_file): Fix signed/unsigned warning.
206 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
207 * config/e-criself.c (criself_bfd_name): Prototype.
208 * config/obj-aout.c (s_sect): Remove unused function.
209 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
210 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
211 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
212 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
213 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
214 (VMS_RSYM_Parse <Current_Routine>): Likewise.
215 (vms_fixup_text_section <text_siz>): Likewise.
216 (synthesize_data_segment <data_size>): Likewise.
217 (vms_fixup_xtors_section <sect_no>): Likewise.
218 (structure_count): Don't use implicit int type.
219 * config/tc-a29k.c (insert_sreg): Prototype.
220 (define_some_regs): Prototype, make static.
221 (parse_operand): Likewise.
222 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
223 (md_show_usage <stream>): Likewise.
224 (md_section_align <segment>): Likewise.
225 (md_convert_frag <all args>): Likewise.
226 (md_estimate_size_before_relax <all args>): Likewise.
227 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
228 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
229 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
230 (md_undefined_symbol <name>): Likewise.
231 (md_convert_frag <all args>): Likewise.
232 (write_long <opcode>): Likewise.
233 (tc_gen_reloc <seg>): Likewise.
234 (md_estimate_size_before_relax <all args>): Likewise.
235 (md_apply_fix3 <seg>): Likewise.
236 (s_d30v_align <ignore>): Likewise.
237 (build_insn): Correct format string.
238 (md_apply_fix3): Likewise.
239 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
240 (md_undefined_symbol <name>): Likewise.
241 (md_convert_frag <all args>): Likewise.
242 (md_cgen_lookup_reloc <insn>): Likewise.
243 (md_begin): Delete unused vars.
244 (md_assemble): Likewise.
245 (md_estimate_size_before_relax): Likewise.
246 (fr30_relax_frag): #if 0 out, seems unused.
247 (md_atof): Remove declaration of atof_ieee.
248 (restore_colon): Prototype.
249 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
250 (frv_find_in_vliw): Likewise.
251 (frv_debug_tomcat): Likewise.
252 (frv_adjust_vliw_count): Likewise.
253 (frv_tomcat_shuffle): Likewise.
254 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
255 frv_find_in_vliw call.
256 (md_atof): Remove declaration of atof_ieee.
257 * config/tc-h8500.c (cons): Delete declaration.
258 (md_begin <opcode>): Constify.
259 (displacement_size, immediate_size, absolute_size): Remove.
260 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
261 (tc_crawl_symbol_chain <headers>): Likewise.
262 (md_undefined_symbol <name>): Likewise.
263 (tc_headers_hook <headers>): Likewise.
264 (md_parse_option <c,arg>): Likewise.
265 (md_show_usage <stream>): Likewise.
266 (md_convert_frag <headers, seg>): Likewise.
267 (tc_coff_symbol_emit_hook <ignore>): Likewise.
268 (md_atof): Remove declaration of atof_ieee.
269 (tc_aout_fix_to_chars): Remove unused function.
270 (parse_reg): Prototype.
271 (parse_exp): Prototype.
272 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
273 (parse_reglist): Prototype.
274 (get_operand): Prototype.
275 (get_operands): Prototype.
276 (get_specific): Prototype. Make "this_index" signed.
277 (check): Prototype, make static.
279 (build_relaxable_instruction): Prototype, make static.
280 (build_bytes): Prototype.
281 (wordify_scb): Prototype.
282 * config/tc-h8500.h (start_label): Declare.
283 (tc_coff_sizemachdep): Declare.
284 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
285 (i370_rmode <unused>): Likewise.
286 (i370_csect <unused>): Likewise.
287 (i370_dc <unused>): Likewise.
288 (i370_ds <unused>): Likewise.
289 (i370_elf_lcomm <unused>): Likewise.
290 (i370_ltorg <ignore>): Likewise.
291 (i370_using <ignore>): Likewise.
292 (i370_drop <ignore>): Likewise.
293 (i370_byte <ignore>): Likewise.
294 (i370_tc <ignore>): Likewise.
295 (md_estimate_size_before_relax <fragp, seg>): Likewise.
296 (md_convert_frag <all args>): Likewise.
297 (md_undefined_symbol <name>): Likewise.
298 (md_pcrel_from_section <sec>): Likewise.
299 (tc_gen_reloc <seg>): Likewise.
300 (i370_section_letter): #if 0 unused functions.
301 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
302 (symbol_locate): Prototype.
303 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
304 (md_number_to_disp, md_number_to_field): Remove.
305 (md_apply_fix3): Correct format string and cast "fup".
306 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
307 (s_endian <ignore>): Likewise.
308 (md_undefined_symbol <name>): Likewise.
309 (tc_crawl_symbol_chain <headers>): Likewise.
310 (tc_set_bal_of_call): Likewise.
311 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
312 (i960_handle_align <fragp>): Likewise.
313 (i960_validate_fix <this_segment_type>): Likewise
314 (tc_gen_reloc <section>): Likewise.
315 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
316 (struct memS, struct regop): Forward declare.
317 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
318 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
319 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
320 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
321 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
322 (md_chars_to_number, md_number_to_imm): Make static, prototype.
323 (md_number_to_field): Likewise.
324 (md_number_to_disp): Remove unused function.
325 (md_atof): Remove declaration of atof_ieee.
326 (md_apply_fix3): Correct md_number_to_imm call.
327 * config/tc-ip2k.c (md_assemble): Warning fix.
328 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
329 (fill_insn <ignore>): Likewise.
330 (debug_sym <ignore>): Likewise.
331 (md_undefined_symbol <name>): Likewise.
332 (m32r_scomm <ignore>): Likewise.
333 (md_convert_frag <abfd>): Likewise.
334 (md_cgen_lookup_reloc <insn>): Likewise.
335 (m32r_record_hi16 <seg>): Likewise.
336 (md_estimate_size_before_relax): #if 0 old_fr_fix.
337 (allow_m32rx): Prototype.
338 (first_writes_to_seconds_operands): Prototype.
339 (writes_to_pc): Prototype.
340 (can_make_parallel): Prototype.
341 (make_parallel): Prototype.
342 (target_make_parallel): Prototype.
343 (assemble_two_insns): Prototype.
344 (m32r_record_hi16): Prototype.
345 (md_atof): Remove declaration of atof_ieee.
346 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
347 (m32r_force_relocation): Prototype.
348 (m32r_elf_section_change_hook): Prototype.
349 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
350 (md_show_usage): Fix signed/unsigned warning.
351 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
352 (calcop): Ditto for reg_prefix var.
353 (hexval): Add cast to fix signed/unsigned warning.
354 (md_number_to_disp): Delete unused function.
355 (md_number_to_field): Likewise.
356 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
357 (match_name): Prototype.
358 (get_bf2): Prototype.
359 (get_bf_offset_expression): Prototype.
360 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
361 (md_undefined_symbol <ignore>): Likewise.
362 (md_create_short_jump <all args>): Likewise.
363 (md_create_long_jump <all args>): Likewise.
364 (md_convert_frag <abfd, sec>): Likewise.
365 (md_apply_fix3 <segment>): Likewise.
366 (md_section_align <segment>): Likewise.
367 (md_pcrel_from_section <sec>): Likewise.
368 (tc_gen_reloc <section>): Likewise.
369 (reg_m, reg_n, immediate): Delete unused vars.
370 (dump_literals): Fix signed/unsigned warning.
371 (enter_literal): Likewise.
372 (parse_imm): Likewise. Also fix format string.
373 (parse_mem): Remove unused var.
374 (md_assemble <LS>): Abort on unexpected inst.
375 (md_atof): Remove declaration of atof_ieee.
376 (md_parse_option): Remove unused vars.
377 (md_apply_fix3): Fix format strings, cast args.
378 (tc_gen_reloc): Delete unused var.
379 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
380 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
381 (md_undefined_symbol <name>): Likewise.
382 (md_convert_frag <abfd>): Likewise.
383 (tc_gen_reloc <seg>): Likewise.
384 (check_operand <insn>): Likewise.
385 (md_convert_frag): Fix format strings.
386 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
387 * config/tc-openrisc.c (ignore_pseudo): Prototype.
388 (md_atof): Remove declaration of atof_ieee.
389 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
390 (md_apply_fix3): Fix bogus >>='s.
391 (md_undefined_symbol): Delete unused var.
392 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
393 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
394 (fake_opcode): Adjust for pj_opc_int_t change.
395 (md_begin): Likewise.
396 (md_assemble): Likewise.
397 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
398 instead of non-existent third arg of parse_exp_save_ilp.
399 (md_parse_option): Correct "little" and "big" calls.
400 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
401 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
402 (tc_gen_reloc <section>): Likewise.
403 * config/tc-tic30.c: #include stdarg.h or varargs.h.
404 (debug): Rewrite using VA_* macros.
405 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
406 (md_convert_frag): Likewise.
407 (md_parse_option): Likewise.
408 (md_show_usage): Likewise.
409 (md_undefined_symbol): Likewise.
410 (tc_gen_reloc): Likewise.
411 (md_operand): Likewise.
412 (tc_aout_pre_write_hook): Delete.
413 (struct tic30_insn): Make "operands" unsigned.
414 (struct tic30_par_insn): Likewise.
415 (md_assemble): Likewise for "count", "i" and "numops".
416 (tic30_parallel_insn): Likewise for vars here.
417 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
418 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
419 * config/tc-tic80.c (obj_coff_section): Delete declaration.
420 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
421 (md_undefined_symbol): Likewise.
422 (md_parse_option): Likewise.
423 (md_convert_frag): Likewise.
424 (tc_coff_symbol_emit_hook): Likewise.
425 (md_atof): Remove declaration of atof_ieee.
426 (const_overflow): Warning fixes, tidy.
427 (get_operands): Delete unused vars.
428 (internal_error_a): Adjust format string to expect a long for arg.
429 (find_opcode): Warning fixes, simplify.
430 (build_insn): Cast internal_error_a arg.
431 (md_begin): Likewise.
432 (md_apply_fix3): Likewise.
433 (md_assemble): Delete unused var.
434 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
435 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
436 (whatreg, parse_reg, parse_exp): Make static, prototype.
437 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
438 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
439 (get_operand, get_operands, get_specific, newfix): Likewise.
440 (apply_fix, build_bytes): Likewise.
441 (md_atof): Remove declaration of atof_ieee.
442 (tc_aout_fix_to_chars): Delete.
443 (md_begin): Constify "opcode". Don't try to init opcode->idx.
445 (md_parse_option): Fix s_segm and s_unseg calls.
447 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
449 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
451 (RELAX_BRANCH_RELOC_S2): Delete.
452 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
453 Do not handle BFD_RELOC_16_PCREL.
454 (macro_build, mips_ip): Likewise.
455 (md_pcrel_from): Return 4 for undefined symbols regardless of
457 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
458 Don't dereference howto if no such relocation is available.
459 Do not apply hack for in-place zero addend in NEWABI.
460 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
462 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
463 Alan Modra <amodra@bigpond.net.au>
465 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
466 (TC_LINKRELAX_FIXUP): Add comments.
468 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
470 * config/tc-mn10300.c (set_arch_mach): Change argument type to
472 (r_register_name, xr_register_name): Add prototype declarations.
474 2002-12-08 H.J. Lu <hjl@gnu.org>
476 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
477 copied from tc-i386.c.
479 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
481 Fix Bug savannah/1825:
482 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
483 (md_relax_table): Define specific relax for PC-rel offsets.
484 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
485 (m68hc11_relax_frag): Handle the new relax code.
486 (md_convert_frag): Likewise.
487 (md_estimate_size_before_relax): Likewise.
489 2002-12-08 Alan Modra <amodra@bigpond.net.au>
491 * subsegs.c (section_symbol): Use the symbol, not the section, name.
493 2002-12-05 Richard Henderson <rth@redhat.com>
495 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
496 (ia64_gen_real_reloc_type): Handle it.
497 (pseudo_func): Add @ltoffx.
498 (md_begin): Build .<ltoffx>.
499 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
501 2002-12-05 Alan Modra <amodra@bigpond.net.au>
503 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
504 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
505 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
506 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
507 COFF to call arm_force_relocation.
509 2002-12-04 David Mosberger <davidm@hpl.hp.com>
511 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
513 (emit_one_bundle): Handle "hint" instruction.
514 (operand_match): Match IA64_OPND_AR_CSD.
516 2002-12-04 Alan Modra <amodra@bigpond.net.au>
518 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
521 2002-12-03 Nick Clifton <nickc@redhat.com>
523 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
524 .PPC.EMB.apuinfo sections.
526 2002-12-03 Richard Henderson <rth@redhat.com>
528 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
530 2002-12-03 Alan Modra <amodra@bigpond.net.au>
532 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
533 (cons, s_align_bytes): Delete declaration.
535 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
537 (dot): Delete unused function.
538 (w65_expression): Remove unused arg.
539 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
541 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
543 (get_specific): Prototype. Constify "struct opinfo *" arg and return
545 (check): Remove unused function.
546 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
547 on unhandled switch case.
548 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
550 (tc_crawl_symbol_chain): Delete unused function.
551 (tc_headers_hook): Likewise.
552 (tc_Nout_fix_to_chars): Likewise.
553 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
554 (md_parse_option): Likewise.
555 (md_convert_frag): Likewise.
556 (tc_coff_symbol_emit_hook): Likewise.
557 (md_show_usage): Likewise.
558 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
559 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
560 (w65_expression): Declare.
562 * po/POTFILES.in: Regenerate.
564 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
565 and ARM_ADRL_IMMEDIATE.
567 2002-12-02 Nick Clifton <nickc@redhat.com>
569 * gasp.c: Delete. It has been deprecated.
570 * NEWS: Mention that gasp has been removed.
571 * Makefile.am: Remove references to gasp.
572 * makefile.vms: Likewise.
573 * mpw-make.sed: Likewise.
574 * Makeile.in: Regenerate.
575 * doc/gasp.texi: Delete.
576 * doc/Makefile.am: Remove references to gasp.texi.
577 * doc/Makefile.in: Regenerate.
578 * macro.c: Delete references to gasp.
579 Remove use of comment_char function parameter as it is no longer
581 * macro.h: Update prototypes to remove comment_char parameter.
583 * read.c (read_a_source_file, s_irp): Remove comment_char
584 parameter from invocation of functions in macro.c
586 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
588 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
590 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
592 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
593 (tc_gen_reloc): Mark section param as not used.
595 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
597 Fix Bug savannah/1825:
598 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
599 that are not pc-relative.
600 (m68hc11_relax_frag): Declare.
602 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
603 the offsetable indexed addressing modes (n,r).
604 (build_insn): Cleanup some locals.
605 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
606 relaxation of difference between two symbols of same section.
607 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
608 only when this is a PC-relative operand and the offset is not absolute.
609 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
610 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
611 be handled by m68hc11_relax_frag.
613 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
615 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
616 (32-bit int, 64-bit double).
617 (md_longopts): New options -mshort, -mlong, -mshort-double and
618 -mlong-double to control the ABI.
619 (md_show_usage): Update.
620 (md_parse_option): Handle new options.
621 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
623 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
625 * symbols.c (report_op_error): New function, broken out of ...
626 (resolve_symbol_value): ... here. Use for both monadic and dyadic
629 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
631 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
632 for BFD_RELOC_32_PLT_PCREL.
634 2002-11-30 Alan Modra <amodra@bigpond.net.au>
636 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
637 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
638 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
639 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
640 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
641 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
642 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
643 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
644 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
645 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
646 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
647 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
648 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
649 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
650 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
651 TRUE/FALSE. Formatting.
653 2002-11-29 Nick Clifton <nickc@redhat.com>
655 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
656 assume a value of zero.
659 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
661 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
664 2002-11-29 Jakub Jelinek <jakub@redhat.com>
666 * config/tc-ia64.c (md_apply_fix3): Add default case.
668 2002-11-28 Jakub Jelinek <jakub@redhat.com>
670 * symbols.c (S_SET_THREAD_LOCAL): New function.
671 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
672 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
674 * config/tc-ia64.c (md_apply_fix3): Likewise.
675 * config/tc-alpha.c (md_apply_fix3): Likewise.
677 2002-11-28 Jakub Jelinek <jakub@redhat.com>
679 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
682 2002-11-26 DJ Delorie <dj@redhat.com.
684 * dwarf2dbg.c (scale_addr_delta): New.
685 (size_inc_line_addr): Use it.
686 (emit_inc_line_addr): Use it.
688 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
690 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
691 (md_assemble): Don't pass on branches to constants as relaxable.
694 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
696 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
698 2002-11-21 Randolph Chung <randolph@tausq.org>
700 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
701 only if they have default visibility.
703 2002-11-21 Richard Henderson <rth@redhat.com>
705 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
708 2002-11-21 Alan Modra <amodra@bigpond.net.au>
710 * config/tc-mcore.c (mcore_pool_count): New function.
711 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
713 2002-11-20 Klee Dienes <kdienes@apple.com>
715 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
716 coalesce the name fields to use the same pointer.
718 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
719 the name fields to use the same pointer.
720 (get_specific): Check for opcodes with the same name using strcmp
721 as well as comparing the pointer.
723 2002-11-20 Alan Modra <amodra@bigpond.net.au>
725 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
728 2002-11-19 Richard Henderson <rth@redhat.com>
730 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
731 visibility portion of st_other.
733 2002-11-19 Klee Dienes <kdienes@apple.com>
735 * config/tc-h8300.c (struct h8_instruction): New type, used to
736 wrap h8_opcodes with length, noperands, idx, and size fields
737 (computed at run-time).
738 (h8_instructions): New variable.
739 (md_begin): Allocate the storage for h8_instructions. Fill
740 h8_instructions with pointers to the appropriate opcode and the
741 correct value for the additional fields.
742 (clever_message): Update to use h8_instructions instead of
744 (build_bytes): Ditto.
745 (get_specific): Ditto.
746 (md_assemble): Ditto.
748 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
750 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
751 adjustments to symbols in merge sections.
753 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
755 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
757 2002-11-18 Kevin Buettner <kevinb@redhat.com>
759 * dwarf2dbg.h (dwarf2_format): New enum.
760 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
761 (out_debug_line, out_debug_info): Add code for handling 64-bit
763 * config/tc-mips.h (mips_dwarf2_format): Declare.
764 * config/tc-mips.c (mips_dwarf2_format): New function.
765 * doc/internals.texi (DWARF2_FORMAT): Document.
767 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
769 * config/tc-mips.c (s_change_section): Make sure input buffer
770 is not accessed past the end. Don't hand
771 obj_elf_change_section a pointer into the input buffer.
773 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
775 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
778 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
780 * config/tc-tic4x.c: Fixed proper commandline
781 parameters. Added support for new opcode-list format. General
782 error message fixups.
783 (c4x_inst_add): Reject insn not for our CPU
784 (md_begin): Added matrix for setting the proper opcode-level &
785 device-flags according to cpu type and revision. Rewrite the
787 (c4x_operand_parse): Fix opcode bug
788 (c4x_operands_match): New function argument. Added dry-run
789 mechanism, that is optional error generation. Added constraint 'i'
791 (c4x_insn_check): Added new function for post-verification of the
793 (md_assemble): Check all opcodes before croaking because of an
794 argument mismatch. Need this to be able to fully support
795 ortogonally arguments.
796 (md_parse_options): Revised commandprompt swicthes and added new
798 (md_show_usage): Complete rewrite of printout.
800 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
802 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
803 (c4x_operands_match): Added check for 8-bits LDF insn. Give
804 warning when using constant direct bigger than 2^16. Add the new
807 2002-11-11 Christopher Faylor <cgf@redhat.com>
809 * configure.in: Use .gdbinit under Cygwin.
810 * configure: Regenerate.
812 2002-11-11 Christopher Faylor <cgf@redhat.com>
814 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
817 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
819 * config/tc-tic4x.c: Declare as many functions as possible as
820 static. Maintenance on the general indenting. Removed unnecessary
821 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
822 function. Add support for new DSP, TMS320VC33. Fix bug for
823 converting flonum constants.
824 (c4x_do_align): Add proper align handling. Setup align to insert
826 (c4x_gen_to_words): Support for extended TI type floats.
827 (md_atof): Proper dumping of multiple-word littlenums.
828 (c4x_atof): Added support for extended TI type floats.
829 (c4x_stringer): Added new function to handle compact strings.
830 (c4x_emit_char): Added new function argument to handle custom
831 length inserts, like single-byte strings.
832 * config/tc-tic4x.h: Add proper align handling with NOP's.
833 * Makefile.am: Added tic4x dependecy
834 * Makefile.in: Regenerate
836 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
838 * macro.c (get_any_string): Correct logic for not going beyond end
841 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
843 * config/tc-mmix.c (get_putget_operands): Mark both possible
844 operands as invalid at beginning.
846 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
847 Initialize target of fixup to zero.
849 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
851 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
852 NEWABI, but we should still emit HI16_S for non-PIC n32.
854 2002-11-06 Richard Henderson <rth@redhat.com>
856 * config/tc-alpha.c (alpha_validate_fix): Move code ...
857 (alpha_fix_adjustable): ... here.
858 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
860 2002-11-07 Eric Kohl <ekohl@rz-online.de>
862 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
865 2002-11-05 H.J. Lu <hjl@gnu.org>
867 * config/tc-mips.c (support_64bit_objects): Check *l before it
870 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
872 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
873 SEC_LOAD flags for sections marked as 's'.
875 2002-11-01 Alan Modra <amodra@bigpond.net.au>
877 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
878 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
879 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
882 * dep-in.sed: Fix typo.
884 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
886 * configure.in: Update ARM CPU patterns.
887 * configure: Regenerated.
889 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
891 * itbl-lex.l: Use #include <> for generated headers.
892 * itbl-ops.c: Likewise.
894 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
896 * doc/gasp.texi: Fix typo in deprecation note.
898 2002-10-23 Nick Clifton <nickc@redhat.com>
900 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
901 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
903 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
905 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
906 (tc_frob_file_before_adjust): Don't define.
907 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
909 (mmix_frob_file_before_adjust): Remove ineffective function.
911 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
913 * config/tc-cris.c (SIMPLE_EXPR): New macro.
914 (cris_relax_frag): New function.
915 (md_estimate_size_before_relax) <case ENCODE_RELAX
916 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
917 expressions that will become absolute expressions to relaxation.
918 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
919 STATE_WORD)>: Expect only absolute expressions. Use the symbol
920 value, not distance to symbol.
921 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
922 Ditto. Correct placement of fixup.
923 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
925 * config/tc-cris.h (cris_relax_frag): Declare.
926 (md_relax_frag): Define.
928 2002-10-22 Alan Modra <amodra@bigpond.net.au>
930 * config/obj-elf.c (special_sections): Use correct types for init
932 (obj_elf_change_section): Don't mess with init array section type.
934 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
936 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
937 for relocs against symbols in a merged section.
939 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
941 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
942 table as register names.
944 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
946 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
949 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
951 * expr.c (operand): Add support for n.nn flonums.
953 2002-10-17 Johannes Stezenbach <js@convergence.de>
955 * itbl-parse.y (entry): Provide empty action.
957 2002-10-16 Alan Modra <amodra@bigpond.net.au>
959 * configure.in (BFDVER_H): Set and subst.
960 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
961 * Makefile.am: Run "make dep-am".
963 * configure: Regenerate.
964 * Makefile.in: Regenerate.
965 * doc/Makefile.in: Regenerate.
967 2002-10-15 Alan Modra <amodra@bigpond.net.au>
969 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
970 (MD_APPLY_SYM_VALUE): Define for PE too.
972 2002-10-14 Alan Modra <amodra@bigpond.net.au>
974 * Makefile.am: Run "make dep-am".
975 (CPU_OBJ_VALID): sh64 coff is invalid.
976 * as.c: #include "bfdver.h".
977 * Makefile.in: Regenerate.
978 * config.in: Regenerate.
980 2002-10-14 Momchil Velikov <velco@fadata.bg>
982 * config/tc-v850.c (CHECK_): Remove token pasting operator.
984 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
986 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
987 * configure: Regenerate.
989 2002-10-13 Eric Christopher <echristo@redhat.com>
990 Alexandre Oliva <aoliva@redhat.com>
992 * config/tc-mips.c (s_gpdword): New function.
993 (mips_pseudo_table): Add .gpdword.
994 (mips_need_elf_addend_fixup): never for NEWABI.
995 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
997 (s_cpadd): Generate .cpadd on NEWABI.
999 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1001 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1003 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1005 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1006 (md_relax_frag): Adjust macro.
1007 * config/tc-mips.c (mips_relax_branch): New variable.
1008 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1009 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1010 (RELAX_MIPS16_P): Adjust.
1011 (append_insn): Emit branch to non-constant in a frag_var if
1012 branch-relaxation is desirable and possible.
1013 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1014 (OPTION_ELF_BASE): Adjust.
1015 (md_parse_option): Handle new options.
1016 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1018 (relaxed_branch_length): New function.
1019 (md_estimate_size_before_relax): Handle branch frags.
1020 (mips_relax_frag): Likewise.
1021 (md_convert_frag): Handle branch frags. Warn if branch is
1024 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1026 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1028 (md_apply_fix3): Add TLS relocs.
1029 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1032 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1033 Alan Modra <amodra@bigpond.net.au>
1035 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1036 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1038 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1040 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1043 2002-10-09 Richard Shann <richard.shann@superh.com>
1044 Stephen Clarke <stephen.clarke@superh.com>
1046 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1049 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1051 * contig/tc-sh.c (sh_local_pcrel): New.
1052 (sh_force_relocation): Use sh_local_pcrel.
1053 (md_pcrel_from_section): Check the relocation type whether it
1054 should be resolved locally. Use S_FORCE_RELOC.
1056 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1058 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1059 (TC_FORCE_RELOCATION): Tidy arg.
1061 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1062 Ken Raeburn <raeburn@cygnus.com>
1063 Aldy Hernandez <aldyh@redhat.com>
1064 DJ Delorie <dj@redhat.com>
1065 Michael Meissner <meissner@redhat.com>
1066 Eric Christopher <echristo@redhat.com>
1067 Richard Sandiford <rsandifo@redhat.com>
1069 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1070 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1071 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1072 (hilo_interlocks): True for CPU_VR5500.
1073 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1074 (mips_fix_vr4122_bugs): New.
1075 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1076 (mips_emit_delays): Likewise.
1077 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1078 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1079 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1080 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1081 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1082 (OPTION_ELF_BASE): Bump.
1083 (md_parse_option): Handle the new options.
1084 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1087 2002-09-29 H.J. Lu <hjl@gnu.org>
1089 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1090 twice if howto->pcrel_offset is true.
1092 2002-09-28 Matt Thomas <matt@3am-software.com>
1093 Jason Thorpe <thorpej@wasabisystems.com>
1095 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1096 convert undefined references to GOT32/PLT32 if PIC code is
1097 requested. Fix comment.
1099 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1101 * config/tc-sh.c (sh_force_relocation): Return 0 for
1102 some PC relative relocations when not relaxing.
1104 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1106 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1107 Define them if not BFD_ASSEMBLER.
1108 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1110 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1111 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1112 (tc_gen_reloc): Handle x86-64 TLS relocs.
1114 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1116 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1117 fixups to current or absolute section.
1119 2002-09-26 Jim Wilson <wilson@redhat.com>
1121 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1124 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1126 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1127 capable configuration.
1128 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1130 (mips_ip): Likewise.
1132 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1134 * config/tc-mips.c (append_insn): Fix jump overflow check.
1136 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1138 * config/tc-i386.c (process_operands): Warn about "lea" segment
1141 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1143 * write.c: Delete set_segment_vma and prototype. Update all callers.
1145 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1147 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1148 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1149 Rename "fseg" to "sym_seg".
1150 * Makefile.am: Run "make dep-am".
1151 * Makefile.in: Regenerate.
1152 * doc/Makefile.in: Regenerate.
1154 2002-09-20 Nick Clifton <nickc@redhat.com>
1156 * symbols.c (colon): Do not allow symbols to be created in the
1157 absolute section if WORKING_DOT_WORD is not defined and
1158 new_broken_words would require a new frag to be created.
1160 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1162 * expr.c (expr): Simplify foo-foo here.
1163 (clean_up_expression): Remove O_subtract code.
1165 * write.h (struct fix): Add fx_dot_value.
1166 (dot_value): Declare.
1167 * write.c (dot_value): New var.
1168 (fix_new_internal): Save dot_value as fx_dot_value.
1169 (fixup_segment): Adjust fx_offset using fx_dot_value.
1170 * expr.c (expr): Update dot_value.
1172 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1174 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1175 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1176 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1178 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1179 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1180 BFD_RELOC_386_TLS_GOTIE.
1182 2002-09-19 Richard Henderson <rth@redhat.com>
1184 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1186 (alpha_force_relocation): Don't special-case branch type relocs.
1188 2002-09-19 Nick Clifton <nickc@redhat.com>
1190 * config/tc-m68k.c (select_control_regs): Handle situation where
1191 architecture has not yet been selected.
1193 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1195 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1196 (IS_SEXT_16BIT_NUM): New macro.
1197 (macro_build_ldst_constoffset): New function, to build a set of
1198 instructions to do a load or store from a constant offset relative
1199 to a given register.
1200 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1201 .cprestore pseudo-op.
1203 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1205 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1207 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1209 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1211 2002-09-17 Stan Cox <scox@redhat.com>
1213 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1214 (macro): Likewise for la. Likewise for ld.
1215 (mips_after_parse_args): Make -xgot optional, not the default.
1216 (md_apply_fix3): Allow composite relocation to set up gp.
1217 (tc_gen_reloc): Allow relaxing for newabi.
1218 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1219 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1221 2002-09-17 Nick Clifton <nickc@redhat.com>
1223 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1224 BFD_RELOC_ARM_IMMEDIATE has been done.
1225 (tc_gen_reloc): Do not issue reloc number of unimplemented
1226 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1227 their name is already in the error message - plus remove them
1228 from the default case.
1230 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1231 behavior of instructions.
1233 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1235 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1236 Convert functions to K&R format.
1238 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1240 * config/tc-mips.c (pdr_seg): Define only for ELF.
1241 (s_change_section): Remove unused variable. Don't use for nonELF.
1243 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1245 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1247 * config/obj-elf.h (obj_elf_change_section): Likewise.
1249 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1251 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1252 (out_debug_info): Likewise.
1254 2002-09-16 Bruno Haible <bruno@clisp.org>
1256 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1257 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1258 * config/tc-i386.c (i386_target_format): Likewise.
1259 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1260 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1262 2002-09-13 Nick Clifton <nickc@redhat.com>
1264 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1265 when deciding if any operands have been skipped.
1267 2002-09-11 Nick Clifton <nickc@redhat.com>
1269 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1271 * po/tr.po: Updated Turkish translation.
1273 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1275 * config/tc-i386.c (md_apply_fix3): Allow addend for
1276 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1277 BFD_RELOC_386_TLS_LE_32.
1279 2002-09-05 Jeff Law <law@redhat.com>
1281 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1282 marker relocations such as ENTRY/EXIT.
1283 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1284 to both OBJ_ELF and OBJ_SOM.
1286 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1288 * doc/internals.texi (md_apply_fix3): Expand.
1289 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1290 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1291 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1292 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1293 EXTERN_FORCE_RELOC): Document.
1294 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1295 * as.h: Don't include struc-symbol.h for arc.
1297 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1298 subtract absolute symbol.
1299 * obj.h (struct format_ops): Add frob_file_before_fix.
1300 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1301 * symbols.c (S_FORCE_RELOC): New function.
1302 * symbols.h (S_FORCE_RELOC): Declare.
1303 * write.c (TC_FORCE_RELOCATION): Change default.
1304 (TC_FORCE_RELOCATION_ABS): Define.
1305 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1306 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1307 (TC_FORCE_RELOCATION_SECTION): Don't define.
1308 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1309 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1310 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1311 (TC_VALIDATE_FIX_SUB): Define.
1312 (TC_FIX_ADJUSTABLE): Don't define.
1313 (MD_APPLY_SYM_VALUE): Define this instead.
1314 (abs_section_sym): New variable.
1315 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1316 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1317 Don't put the absolute section sym on fixups here.
1318 (fix_segment): New function.
1319 (write_relocs): Don't call fixup_segment from here.
1320 (write_object_file): Instead call tc_frob_file_before_fix,
1321 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1322 Don't output the absolute section symbol.
1323 (fixup_segment): Rewrite.
1324 * write.h (abs_section_sym): Declare.
1325 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1327 (aout_format_ops): Adjust to suit.
1328 * config/obj-aout.h (obj_frob_file): Don't define.
1329 (obj_frob_file_before_fix): Define.
1330 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1331 (S_FORCE_RELOC): Define.
1332 * config/obj-bout.h (S_FORCE_RELOC): Define.
1333 * config/obj-coff.c (coff_format_ops): Init new field.
1334 * config/obj-coff.h: Formatting fixes.
1335 (obj_sec_sym_ok_for_reloc): Define.
1336 (S_FORCE_RELOC): Define.
1337 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1338 (ecoff_frob_file): .. from here.
1339 (ecoff_format_ops): Add new function.
1340 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1341 (obj_frob_file_before_fix): Define.
1342 * config/obj-elf.c (elf_format_ops): Init new field.
1343 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1344 * config/obj-ieee.h: Formatting fixes.
1345 (S_FORCE_RELOC): Define.
1346 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1347 * config/obj-vms.h (S_FORCE_RELOC): Define.
1348 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1349 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1350 for BFD_RELOC_32 and BFD_RELOC_64.
1351 (alpha_fix_adjustable): Remove extern and weak tests.
1352 (alpha_before_fix): Rename from alpha_adjust_symtab.
1353 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1354 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1355 (TC_VALIDATE_FIX): Tweak param name.
1356 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1357 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1358 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1359 (MD_APPLY_SYM_VALUE): Define.
1360 (tc_adjust_symtab): Don't define.
1361 (alpha_adjust_symtab): Don't declare.
1362 (tc_frob_file_before_fix): Define.
1363 (alpha_before_fix): Declare.
1364 (TC_INIT_FIX_DATA): Tweak param names.
1365 * config/tc-arc.c: Include "struc-symbol.h".
1366 (md_pcrel_from): Remove undefined sym fudge.
1367 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1368 Don't set fx_addnumber.
1369 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1370 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1371 (EXTERN_FORCE_RELOC): Define.
1372 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1373 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1374 (arm_validate_fix): Return void.
1375 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1376 Add plt and got reloc tests.
1377 (arm_force_relocation): Call S_FORCE_RELOC.
1378 * config/tc-arm.h (struct fix): Forward declare.
1379 (TC_VALIDATE_FIX): No longer set add_symbolP.
1380 (arm_validate_fix): Adjust declaration.
1381 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1382 (TC_FORCE_RELOCATION): Tweak param name.
1383 (TC_INIT_FIX_DATA): Likewise.
1384 (obj_fix_adjustable): Don't define.
1385 (tc_fix_adjustable): Call arm_fix_adjustable.
1386 (TC_FIX_ADJUSTABLE): Don't define.
1387 (MD_APPLY_SYM_VALUE): Define.
1388 (EXTERN_FORCE_RELOC): Define.
1389 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1390 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1391 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1392 Remove *valP fudges and code to subtract abs sym. Don't set
1394 * config/tc-avr.h: Formatting.
1395 (EXTERN_FORCE_RELOC): Define.
1396 (MD_APPLY_SYM_VALUE): Define.
1397 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1398 (md_apply_fix3): Remove code to subtract abs sym.
1399 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1400 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1401 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1402 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1403 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1404 (tc_fix_adjustable): Remove extern, weak tests.
1405 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1406 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1407 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1408 and code to subtract abs sym.
1409 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1410 (d10v_force_relocation): Call S_FORCE_RELOC.
1411 * config/tc-d10v.h: Don't include write.h.
1412 (struct fix): Instead, forward declare.
1413 (MD_PCREL_FROM_SECTION): Tweak param names.
1414 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1415 (d10v_fix_adjustable): Likewise.
1416 (obj_fix_adjustable): Don't define.
1417 (tc_fix_adjustable): Define.
1418 (TC_FORCE_RELOCATION): Tweak param name.
1419 (MD_APPLY_SYM_VALUE): Define.
1420 (EXTERN_FORCE_RELOC): Define.
1421 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1422 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1423 and code to subtract abs sym.
1424 * config/tc-d30v.h: Don't include write.h.
1425 (struct fix): Instead, forward declare.
1426 (MD_PCREL_FROM_SECTION): Tweak param names.
1427 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1428 (MD_APPLY_SYM_VALUE): Define.
1429 (EXTERN_FORCE_RELOC): Define.
1430 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1431 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1432 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1433 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1434 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1435 Don't use fx_addnumber.
1436 * config/tc-dlx.h: Don't include write.h.
1437 (md_convert_frag): We're not alpha twice over.
1438 (EXTERN_FORCE_RELOC): Define.
1439 (obj_fix_adjustable): Don't define.
1440 (tc_fix_adjustable): Define.
1441 (TC_FIX_ADJUSTABLE): Don't define.
1442 (MD_APPLY_SYM_VALUE): Define.
1443 (LOCAL_LABELS_DOLLAR): Undef always.
1444 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1445 (fr30_fix_adjustable): Remove extern, weak tests.
1446 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1447 (obj_fix_adjustable): Don't define.
1448 (tc_fix_adjustable): Define.
1449 (struct fix): Forward declare.
1450 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1451 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1452 (frv_fix_adjustable): Don't do extern, weak tests.
1453 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1454 (TC_FIX_ADJUSTABLE): Don't define.
1455 (obj_fix_adjustable): Don't define.
1456 (tc_fix_adjustable): Define.
1457 (struct fix): Forward declare.
1458 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1459 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1460 * config/tc-h8300.h (struct fix): Forward declare.
1461 (EXTERN_FORCE_RELOC): Define.
1462 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1463 (hppa_fix_adjustable): Don't test extern or weak. Don't
1464 symbol_mark_used_in_reloc.
1465 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1467 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1468 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1469 (TC_FORCE_RELOCATION_SECTION): Don't define.
1470 (MD_APPLY_SYM_VALUE): Define.
1471 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1472 to subtract abs sym.
1473 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1474 (MD_APPLY_SYM_VALUE): Define.
1475 (MD_PCREL_FROM_SECTION): Tweak param name.
1476 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1477 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1478 (i386_force_relocation): New function.
1479 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1480 (TC_VALIDATE_FIX): Likewise.
1481 (TC_FIX_ADJUSTABLE): Don't define.
1482 (MD_APPLY_SYM_VALUE): Define.
1483 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1484 (i386_force_relocation): Declare.
1485 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1486 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1487 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1488 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1489 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1490 (EXTERN_FORCE_RELOC): Define.
1491 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1492 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1493 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1494 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1495 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1496 Remove #if 0 code. Invert return boolean.
1497 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1498 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1499 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1500 (tc_coff_sizemachdep): Prototype.
1501 (i960_handle_align): Likewise.
1502 (i960_validate_fix): Adjust declaration.
1503 (reloc_callj): Likewise.
1504 (EXTERN_FORCE_RELOC): Define.
1505 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1506 (TC_FORCE_RELOCATION_ABS): Define.
1507 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1508 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1509 (TC_FIX_ADJUSTABLE): Don't define.
1510 (MD_APPLY_SYM_VALUE): Define.
1511 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1512 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1513 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1514 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1515 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1516 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1517 (MD_APPLY_SYM_VALUE): Define.
1518 (EXTERN_FORCE_RELOC): Define.
1519 (TC_FORCE_RELOCATION): Tweak param name.
1520 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1521 (m32r_fix_adjustable): Don't test extern, weak.
1522 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1523 (MD_APPLY_SYM_VALUE): Define.
1524 (obj_fix_adjustable): Don't define.
1525 (tc_fix_adjustable): Define.
1526 (tc_frob_file): Don't define.
1527 (tc_frob_file_before_fix): Define.
1528 (EXTERN_FORCE_RELOC): Define.
1529 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1530 BFD_RELOC_VTABLE_ENTRY address.
1531 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1532 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1533 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1534 Remove duplicated fx_done code.
1535 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1536 (EXTERN_FORCE_RELOC): Define.
1537 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1539 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1540 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1541 (TC_FIX_ADJUSTABLE): Don't define.
1542 (EXTERN_FORCE_RELOC): Define.
1543 (MD_APPLY_SYM_VALUE): Define.
1544 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1545 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1546 Remove fx_addsy tests.
1547 (mcore_force_relocation): Call S_FORCE_RELOC.
1548 (mcore_fix_adjustable): Don't test fx_addsy.
1549 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1550 (EXTERN_FORCE_RELOC): Define.
1551 (obj_fix_adjustable): Don't define.
1552 (tc_fix_adjustable): Define.
1553 (MD_APPLY_SYM_VALUE): Define.
1554 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1555 (mips_pic): No longer static.
1556 (mips_force_relocation): Call S_FORCE_RELOC.
1557 (mips_fix_adjustable): Remove extern, weak tests.
1558 * config/tc-mips.h (enum mips_pic_level): Declare.
1559 (mips_pic): Declare.
1560 (tc_frob_file): Don't define.
1561 (tc_frob_file_before_fix): Define this instead.
1562 (EXTERN_FORCE_RELOC): Define.
1563 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1564 with reg_section tests. Set fx_done instead of calling
1565 symbol_clear_used_in_reloc on bad relocs.
1566 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1567 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1568 (mmix_adjust_symtab): Simplify list handling. Abort on any
1570 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1571 BFD_RELOC_MMIX_LOCAL.
1572 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1573 (EXTERN_FORCE_RELOC): Define.
1574 (MD_PCREL_FROM_SECTION): Tweak param name.
1575 (tc_frob_file): Don't define.
1576 (tc_frob_file_before_fix): Define this instead.
1577 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1578 Remove SEC_CODE checks.
1579 (mn10300_fix_adjustable): Remove extern and weak tests.
1580 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1581 (TC_FORCE_RELOCATION): Tweak param name.
1582 (obj_fix_adjustable): Don't define.
1583 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1584 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1585 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1586 (openrisc_fix_adjustable): Don't test fx_addsy.
1587 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1588 (obj_fix_adjustable): Don't define.
1589 (tc_fix_adjustable): Define this instead.
1590 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1591 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1592 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1593 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1594 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1595 (MD_APPLY_SYM_VALUE): Define.
1596 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1597 Don't subtract symbol value.
1598 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1599 (EXTERN_FORCE_RELOC): Define.
1600 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1601 (MD_APPLY_SYM_VALUE): Define.
1602 (obj_fix_adjustable): Don't define.
1603 (tc_fix_adjustable): Define this instead.
1604 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1606 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1607 (ppc_force_relocation <elf version>): New.
1608 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1609 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1610 comments. Don't subtract fx_subsy as that is already done.
1611 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1612 (MD_PCREL_FROM_SECTION): Likewise.
1613 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1614 ppc_force_relocation.
1615 (TC_FORCE_RELOCATION_SECTION): Delete.
1616 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1617 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1618 (MD_APPLY_SYM_VALUE): Define.
1619 * config/tc-s390.c: #include "dwarf2dbg.h".
1620 (s390_insn): Remove excess parens.
1621 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1622 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1623 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1624 non-NULL. Don't subtract off fx_addsy value.
1625 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1626 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1627 (TC_FIX_ADJUSTABLE): Don't define.
1628 (MD_APPLY_SYM_VALUE): Define.
1629 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1630 (SWITCH_TABLE): Likewise.
1631 (sh_force_relocation): Call S_FORCE_RELOC.
1632 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1633 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1634 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1635 fx_addnumber is zero on entry. Save val in fx_addnumber.
1636 (tc_gen_reloc): Don't subtract fx_subsy.
1637 * config/tc-sh.h (struct fix): Move.
1638 (obj_fix_adjustable): Don't define.
1639 (tc_fix_adjustable): Define this instead.
1640 (TC_FIX_ADJUSTABLE): Don't define.
1641 (MD_APPLY_SYM_VALUE): Define.
1642 (SWITCH_TABLE_CONS): Define.
1643 (SWITCH_TABLE): Define.
1644 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1645 (TC_VALIDATE_FIX_SUB): Define.
1646 (MD_PCREL_FROM_SECTION): Tweak param name.
1647 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1648 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1649 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1650 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1651 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1652 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1653 (TC_VALIDATE_FIX_SUB): Define.
1654 (MD_PCREL_FROM_SECTION): Tweak param name.
1655 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1656 (tc_gen_reloc): Use S_FORCE_RELOC.
1657 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1658 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1659 (TC_FORCE_RELOCATION_ABS): Define this instead.
1660 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1661 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1662 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1663 (MD_APPLY_SYM_VALUE): Define.
1664 (TC_FIX_DATA_PRINT): Tweak param name.
1665 * config/tc-tic30.c (USE_STDOUT): Don't define.
1666 (md_parse_option): Remove stupid debug code.
1667 (tc_gen_reloc): Don't use fx_addnumber.
1668 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1669 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1670 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1671 (tc_fix_adjustable): Define this instead.
1672 (TC_FIX_ADJUSTABLE): Don't define.
1673 (MD_APPLY_SYM_VALUE): Define this instead.
1674 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1675 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1676 (TC_FIX_ADJUSTABLE): Don't define.
1677 (MD_APPLY_SYM_VALUE): Define this instead.
1678 (tc_fix_adjustable): Remove extern and weak tests.
1679 * config/tc-w65.h (struct fix): Forward declare.
1680 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1682 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1683 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1684 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1686 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1687 (MD_APPLY_SYM_VALUE): Define.
1688 (obj_fix_adjustable): Don't define.
1689 (tc_fix_adjustable): Define this instead.
1690 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1692 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1694 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1695 (ppc_fix_adjustable <coff version>): Cleanup.
1697 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1698 (md_parse_option): No -a64 without BFD64.
1699 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1700 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1702 2002-09-04 Nick Clifton <nickc@redhat.com>
1704 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1705 instructions into the hash table if the target cpu is the BookE32.
1707 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1709 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1712 2000-08-28 Catherine Moore <clm@redhat.com>
1714 * tc-v850.c (v850_relax): Declare.
1715 (v850_longcode): New routine.
1716 (v850_handle_align): New routine.
1717 (md_pseudo_table): Add longcall and longjump.
1718 (md_parse_option): Check for relax option.
1719 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1720 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1721 (md_apply_fix3): Likewise.
1722 (v850_force_relocation): Likewise.
1723 (v850_comm): Change the current section.
1724 (md_assemble): Ensure that the correct value is put in the
1726 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1727 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1728 Remove redundant v850ea support.
1729 * tc-v850.h (HANDLE_ALIGN): Define.
1730 (v850_handle_align): Declare.
1731 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1733 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1735 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1736 * configure: Regenerate.
1737 * NEWS: Mention new port.
1739 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1741 * config/obj-coff.c: Add sdef definition.
1742 * config/obj-coff.h: Add tic4x include file and set
1744 * config/tc-tic4x.c: New file.
1745 * config/tc-tic4x.h: New file.
1747 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1749 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1750 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1751 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1752 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1753 (RELOC_ENUM): Define.
1754 (fix_new_internal): Use RELOC_ENUM.
1755 (fix_new, fix_new_exp): Likewise.
1756 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1757 Replace gotos with continue.
1758 (write_relocs): Formatting. Avoid symbol loops in
1759 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1760 errors, and error number in other cases.
1761 (fixup_segment): Remove param names from prototype. Rename
1762 "this_segment_type" to "this_segment". Update linkrelax comment.
1763 Remove "size, "place" and "where" local vars. Formatting. Update
1764 "no symbol" comment. Remove #if 0 and #if 1.
1766 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1768 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1770 * dwarf2dbg.c: Always include dwarf2dbg.h.
1771 (dwarf2_directive_file): Adjust dummy version args.
1772 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1773 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1774 when symbol values differ.
1775 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1776 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1777 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1779 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1781 * config/tc-w65.c (md_section_align): Fix typo.
1782 (md_parse_option): Return 0, not 1.
1784 2002-08-22 Nick Clifton <nickc@redhat.com>
1786 * doc/as.texinfo (Section): Note that if '@' is a comment
1787 character then another symbol is used to prefix the section's
1790 2002-08-22 Christian Groessler <chris@groessler.org>
1792 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1795 2002-08-12 Graeme Peterson <gp@qnx.com>
1797 * configure.in: Add support for sh-**-nto* target.
1798 * configure: Regenerate.
1800 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1802 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1804 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1806 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1808 (ppc_apuinfo_section_add): Define only if format is ELF.
1809 (md_assemble): Emit APUinfo section only if format is ELF.
1812 2002-08-21 Alan Modra <amodra@bigpond.net.au>
1814 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1815 * config/tc-frv.c: Likewise.
1816 * config/tc-hppa.c: Likewise.
1817 * config/tc-ia64.c: Likewise.
1818 * config/tc-ip2k.c: Likewise.
1819 * config/tc-m68hc11.c: Likewise.
1820 * config/tc-m68k.c: Likewise.
1821 * config/tc-mmix.c: Likewise.
1822 * config/tc-mn10300.c: Likewise.
1823 * config/tc-sh.c: Likewise.
1824 * config/tc-sparc.c: Likewise.
1825 * config/tc-v850.c: Likewise.
1827 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
1829 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1832 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1834 From matthew green <mrg@redhat.com>
1836 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1837 PPC_OPCODE_PPC is, except for BookE architectures.
1838 (md_parse_option): Add support for -mspe.
1839 (md_show_usage): Add -mspe.
1840 (md_parse_option): Add support for -me500 and
1841 -me500x2 to generate code for Motorola e500 core complex.
1842 (md_show_usage): Add -me500 and -me500x2.
1844 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1845 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1846 PPC_APUINFO_BRLOCK): New macros.
1848 (ppc_cleanup): New function.
1849 (ppc_apuinfo_section_add): New function.
1851 (md_assemble): Collect info and write the APUinfo section.
1853 * config/tc-ppc.h (md_cleanup): Define.
1854 (ppc_cleanup): Export.
1855 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1857 2002-08-17 Stan Cox <scox@redhat.com>
1859 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1860 config/tc-mips.c (s_change_section): New function to support
1861 IRIX .section pseudo-op.
1863 2002-08-16 Nick Clifton <nickc@redhat.com>
1865 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1867 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1869 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1870 the fix-up against on the right frag.
1871 (s_cpsetup): Likewise. Parse third argument as expression, to
1872 handle global symbols and forward/backward labels correctly.
1874 2002-08-14 Nick Clifton <nickc@redhat.com>
1876 * read.c (stringer): Catch attempts to create strings in the abs
1879 * config/tc-alpha.c: Fix compiling for COFF targets.
1880 Some minor formatting tidyups.
1882 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1884 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1885 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1886 according to the reloc.
1887 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1888 (TC_FORCE_RELOCATION): Define.
1889 (tc_m68hc11_force_relocation): Declare.
1891 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1892 (s_m68hc11_relax): New function for relax group.
1893 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1894 beginning of jump instruction.
1895 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1896 address computation.
1897 (tc-gen_reloc): Update.
1898 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1900 (tc_m68hc11_force_relocation): New function, handle new relocs.
1901 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1902 reloc for the linker relax pass.
1903 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1906 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1908 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1909 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1910 (s_m68hc11_mode): New function for .mode pseudo op.
1911 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1913 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1914 (m68hc11_elf_final_processing): Declare.
1916 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1918 * config/tc-m68hc11.c (md_begin): Take into account additional
1919 page operand for call instruction.
1920 (print_opcode_format): Likewise.
1921 (check_range): Likewise for page range checking.
1922 (get_operand): Don't skip a possible comma in operands.
1923 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1924 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1925 (fixup24): New to handle call reloc.
1926 (build_insn): Handle missing page operand for call instruction.
1928 (md_apply_fix3): Take into account new relocs.
1929 (get_operand): Fix the mode for indexed indirect addressing.
1930 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1932 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1934 * config/tc-mips.c (mips_ip): Don't work out the value of
1935 constant %hi()s here.
1937 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1939 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1940 for ELF, and don't bother checking ELF relocs when non-ELF.
1941 (i386_immediate): Allow absolute_section expressions for aout.
1942 (i386_displacement): Likewise. Also test bfd_is_com_section.
1943 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1944 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1945 not when fx_addsy. Remove dead code.
1947 2002-08-09 Graeme Peterson <gp@qnx.com>
1949 * configure.in: Add support for ppc-*-nto* target.
1950 * configure: Regenerate.
1952 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1954 * config/tc-i386.h: Reorganize.
1956 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1958 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1959 immediate offset in "dla" and "la" expansions.
1961 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1963 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1964 Remove "bfd_gas=yes" from target table when covered later.
1965 Consolidate some entries.
1966 * configure: Regenerate
1968 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1970 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1971 at start of insn, pass it to output_disp and output_imm.
1972 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1973 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1975 (output_imm): Added arguments. Compute properly addend for
1977 (md_apply_fix3): Remove R_386_GOTPC handling.
1979 2002-08-06 George France <france@handhelds.org>
1981 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1982 and m21264b processor names and cpu types.
1983 * doc/c-alpha.texi: Documented new types.
1985 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1987 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1989 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1991 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1992 handling to BFD_RELOC_MIPS16_GPREL.
1994 2002-08-01 Nick Clifton <nickc@redhat.com>
1996 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1997 pool is computed using signed arithmetic so that proper sign
1998 extension is performed if X_add_number is a 64-bit integer.
2000 2002-08-01 H.J. Lu <hjl@gnu.org>
2001 Daniel Jacobowitz <drow@mvista.com>
2003 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2004 .debug_line section unless it has line information.
2006 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2008 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2009 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2010 Allow default displacement size to be an option "--disp-size-default".
2011 (md_number_to_disp): Make error messages include value. Use %d to
2012 print integers, not %s.
2013 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2014 get duplicate messages sometimes.
2015 (convert_iif): Grow frag to max possible instruction size. Avoid
2016 creating unnecessary fixes.
2017 (md_number_to_field) Add prototype.
2018 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2019 prototypes and make static.
2020 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2021 (evaluate_expr): Use resultP argument instead of exprP global.
2022 (get_addr_mode): Quiten compiler warnings.
2023 (encode_operand): eliminate unused variables. Quiten compiler
2024 warnings. Eliminate nul character in format strings.
2025 (parse): argc is unsigned.
2026 (reloc): Type cast index to quieten compiler.
2027 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2028 (md_convert_frag): Note unused parameters. Remove unused
2030 (md_create_long_jump, md_create_short_jump,
2031 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2034 2002-07-31 Nick Clifton <nickc@redhat.com>
2036 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2037 of the PDP-11 and 2.11BSD a.out support.
2039 2002-07-31 Momchil Velikov <velco@fadata.bg>
2041 * config/tc-v850.c (md_assemble): Fix range check for immediate
2044 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2046 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2047 to Broadcom SB-1 core support.
2049 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2051 * config/tc-mips.c (mips_target_format): Fix formatting.
2052 Add recognition of n32 ABI formats.
2054 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2056 * tc-mips.c (load_address): Don't clobber $at when loading a
2057 64-bit address in non-PIC code if noat is in effect.
2060 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2062 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2063 used in division/multiply macro expansions similarly to how they
2064 are used in the variants with break instructions.
2067 2002-07-30 Graeme Peterson <gp@qnx.com>
2069 * configure.in: Add support for arm-*-nto target.
2070 * configure: Regenerate.
2072 2002-07-30 Nick Clifton <nickc@redhat.com>
2074 * config/tc-arm.c (struct literal_pool): Add fields to allow
2075 multiple literal pools to be maintained.
2076 (find_literal_pool): New function.
2077 (find_or_make_literal_pool): New function.
2078 (add_to_literal_pool): Use find_or_make_literal_pool.
2079 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2081 (s_ltorg): Use find_literal_pool.
2082 (arm_cleanup): Dump all literal pools.
2083 * doc/c-arm.texi: Document new behaviour of only dumping literal
2086 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2088 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2089 rather than PPC_OPCODE_32 for powerpc64*.
2091 2002-07-25 Nick Clifton <nickc@redhat.com>
2093 * po/es.po: Updated Spanish translation.
2094 * po/fr.po: Updated French translation.
2096 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2098 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2099 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2100 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2101 * configure, config.in: Regenerate.
2102 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2103 (mips_set_options): Remove "abi" field.
2104 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2107 (mips_arch_string, mips_arch_info): New vars.
2108 (mips_tune_string, mips_tune_info): New vars.
2109 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2110 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2111 (mips_isa_to_str, mips_cpu_to_str): Remove.
2112 (mips_ip): If the selected architecture is a generic ISA rather
2113 than a processor, only mention the ISA level in error messages.
2114 (OPTION_MCPU): Remove.
2116 (md_longopts): Add -mfp64, remove -mcpu.
2117 (mips_set_option_string): New fn.
2118 (md_parse_option): Make -mipsN update file_mips_isa rather than
2119 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2120 Don't let -mgp32 and -mfp32 change the ABI.
2121 (show): Move to end of file. Constify string argument.
2122 (md_show_usage): Move to the end of the file. Read available
2123 architectures from mips_cpu_info_table.
2124 (mips_set_architecture): New fn.
2125 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2126 is an alias for -march=mipsN. Don't change the ABI based on other
2127 flags. Infer the register size from the ABI as well as the
2128 architecture. Complain about more conflicting arguments.
2129 Unify logic with GCC.
2130 (s_mipsset): Don't change the ABI.
2131 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2132 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2133 "mipsN"-type entries. Remove entries that vary only in the
2134 manufacturer's prefix, or that have "000" replaced by "k".
2135 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2136 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2137 (mips_parse_cpu): New fn.
2138 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2139 (mips_cpu_info_from_isa): Minor formatting tweak.
2141 2002-07-24 Nick Clifton <nickc@redhat.com>
2143 * po/sv.po: Updated Swedish translation.
2144 * po/es.po: Updated Spanish translation.
2146 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2148 * Makefile.am: Run "make dep-am".
2149 * Makefile.in: Regenerate.
2150 * doc/Makefile.in: Regenerate.
2151 * config.in: Regenerate.
2152 * po/POTFILES.in: Regenerate.
2154 2002-07-23 Nick Clifton <nickc@redhat.com>
2156 * po/fr.po: Updated French translation.
2158 2002-07-23 Nick Clifton <nickc@redhat.com>
2160 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2163 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2165 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2166 instead of S_IS_EXTERN.
2167 (md_estimate_size_before_relax): Likewise.
2168 (mips_fix_adjustable): Likewise.
2170 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2172 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2174 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2175 Nick Clifton <nickc@redhat.com>
2177 * cond.c (s_ifdef): Treat a referenced but not yet defined
2178 symbol as if it were undefined, in exactly the same way as
2181 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2182 consider referenced bug not yet defined symbols to be
2185 2002-07-18 Denis Chertykov <denisc@overta.ru>
2186 Frank Ch. Eigler <fche@redhat.com>
2187 Alan Lehotsky <alehotsky@cygnus.com>
2188 John Healy <jhealy@redhat.com>
2189 Jeff Johnston <jjohnstn@redhat.com>
2191 * configure.in: Add ip2k configuraton.
2192 * configure: Regenerate.
2193 * Makefile.am: Add ip2k configuraton.
2194 * Makefile.in: Regenerate.
2195 * configure: Regenerate.
2196 * Makefile.in: Regenerate.
2197 * config/tc-ip2k.c: New file.
2198 * config/tc-ip2k.h: New files.
2199 * NEWS: Mention new support.
2200 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2201 * doc/Makefile.in: Regenerate.
2202 * doc/all.texi: Set IP2K
2203 * doc/as.texinfo: Add IP2K description.
2204 * doc/c-ip2k.texi: New file.
2206 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2208 * NEWS: Reformat to match style of other NEWS files.
2210 2002-07-17 Jan Hubicka <jh@suse.cz>
2212 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2214 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2216 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2218 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2220 * NEWS: Add 'Changes in 2.13'.
2222 2002-07-15 Matt Fredette <fredette@netbsd.org>
2224 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2226 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2228 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2229 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2232 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2234 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2235 (ppc_frob_file_before_adjust): New function.
2236 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2237 (ppc_elf_frob_symbol): Don't declare.
2238 (tc_frob_file_before_adjust): Define.
2239 (ppc_frob_file_before_adjust): Declare.
2241 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2242 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2245 (ppc_xcoff64): Rename to ppc_obj64.
2246 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2247 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2248 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2250 (ppc_target_format): Use ppc_obj64 to select format.
2251 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2252 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2253 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2254 (tc_frob_symbol): Likewise.
2255 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2256 BFD_DEFAULT_TARGET_SIZE.
2258 (ppc_is_toc_sym): Likewise.
2259 (md_apply_fix3): Likewise.
2260 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2261 BFD_DEFAULT_TARGET_SIZE.
2262 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2263 (tc_frob_symbol): Likewise.
2265 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2267 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2268 (mips_ip): Likewise.
2270 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2272 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2273 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2274 (md_apply_fix3): Formatting. Remove redundant test.
2275 (tc_gen_reloc): Remove redundant code.
2276 (tc_i386_force_relocation): Delete. Movy body of function to..
2277 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2279 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2281 * configure.in: Add hppa-*-openbsd* target, change
2282 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2284 * configure: Regenerate.
2286 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2288 * config/tc-mips.c (macro): Shift the 32-bit address range
2289 accessible with a lone "lui" down by 32768.
2291 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2293 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2294 instead of "dadd" in address calculations.
2297 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2299 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2301 (md_assemble): Instead, zap the suffix here.
2303 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2305 * NEWS: Remove next release number until the release is actually
2308 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2310 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2312 * Makefile.in: Regenerate.
2314 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2316 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2317 to symbols in merge sections, even non pc-relative ones.
2319 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2321 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2323 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2325 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2326 .softregs and .eeprom.
2328 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2330 * NEWS: Note the next release is 2.13.
2332 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2334 * po/tr.po: New translation imported.
2336 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2338 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2339 (ecoff_directive_def): Likewise.
2340 (ecoff_directive_tag): Likewise.
2341 * listing.c (file_info): Likewise.
2342 * hash.c (what): Likewise.
2344 2002-06-25 H.J. Lu <hjl@gnu.org>
2346 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2347 * Makefile.in: Regenerated.
2349 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2351 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2352 (assemble_ppi): Generate warning if the same register is used
2353 twice as destination in the same padd / pmuls instruction.
2355 2002-06-18 Dave Brolley <brolley@redhat.com>
2357 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2358 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2359 * configure.in: Support frv-*-*.
2360 * Makefile.am (CPU_TYPES): Add frv.
2361 (TARGET_CPU_CFILES): Add tc-frv.c.
2362 (TARGET_CPU_HFILES): Add tc-frv.h.
2363 (DEPTC_frv_coff): New variable.
2364 (DEPTC_frv_elf): New variable.
2365 (DEPOBJ_frv_coff): New variable.
2366 (DEPOBJ_frv_elf): New variable.
2367 (DEP_frv_coff): New variable.
2368 (DEP_frv_elf): New variable.
2369 * tc-frv.c: New file.
2370 * tc-frv.h: New file.
2372 2002-06-17 Catherine Moore <clm@redhat.com>
2374 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2376 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2378 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2380 2002-06-17 Tom Rix <trix@redhat.com>
2382 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2384 2002-06-14 H.J. Lu <hjl@gnu.org>
2385 Daniel Jacobowitz <drow@mvista.com>
2387 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2388 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2389 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2390 and new_logical_line for the first .file directive.
2391 * read.c (s_app_file_string): New function.
2392 (s_app_file): Call it.
2393 * read.h (s_app_file_string): Add declaration.
2395 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2397 * configure.in: Remove MIPS_STABS_ELF.
2398 * configure: Regenerated.
2399 * config.in: Regenerated.
2400 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2402 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2404 (pdr_seg): Declare unconditionally.
2405 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2406 (s_mips_end): Likewise. Generate stabs function markers.
2407 (s_mips_ent): Generate stabs function markers.
2408 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2410 (s_mips_mask): Likewise.
2411 (mips_flag_mdebug): New.
2412 (md_longopts): Add "mdebug" and "no-mdebug".
2413 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2414 (mips_after_parse_args): Set mips_flag_mdebug.
2415 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2417 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2419 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2420 value twice for RELA relocations.
2422 2002-06-12 Ben Elliston <bje@redhat.com>
2424 * symbols.c (resolve_symbol_value): Initialise final_val.
2426 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2428 2002-06-11 Tom Rix <trix@redhat.com>
2430 * config/tc-ppc.c (ppc_subseg_align): Delete.
2431 (ppc_change_csect): Default csect align is 2.
2432 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2434 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2436 * config/tc-avr.c (mcu_types): Update.
2438 2002-06-08 Matt Thomas <matt@3am-software.com>
2440 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2441 (vax-*-netbsd*): New targets.
2442 * configure: Regenerate.
2443 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2444 * config/tc-vax.c: Add support for ELF and PIC.
2445 (flag_want_pic): New flag.
2446 (float_cons): Fix prototype.
2447 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2448 (md_assemble): Introduce a new is_absolute local, and use it
2449 rather than repeating the test. Make fatal errors actually
2450 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2451 Add support for ELF. Add support for PIC.
2452 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2453 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2455 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2456 optional for a.out, and not allowed for VMS. Adjust all callers.
2457 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2458 (md_create_long_jump): Likewise.
2459 (md_undefined_symbol): Likewise.
2460 (md_section_align): Likewise.
2461 (md_shortopts): Allow -k and -K for ELF.
2462 (md_parse_option): Set flag_want_pic if -k or -K.
2463 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2464 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2465 * config/tc-vax.h (tc_headers_hook): Remove.
2466 (TARGET_FORMAT): Set according to object format and target
2468 (BFD_ARCH, TARGET_ARCH): Define.
2469 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2470 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2471 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2472 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2474 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2476 * Makefile.am: Run "make dep-am".
2477 * Makefile.in: Regenerate.
2479 * as.c: Replace CONST with const.
2480 * write.c: Likewise.
2481 * config/obj-coff.c: Likewise.
2482 * config/tc-a29k.c: Likewise.
2483 * config/tc-arm.c: Likewise.
2484 * config/tc-dlx.c: Likewise.
2485 * config/tc-h8300.c: Likewise.
2486 * config/tc-h8500.c: Likewise.
2487 * config/tc-i370.c: Likewise.
2488 * config/tc-i860.c: Likewise.
2489 * config/tc-i960.c: Likewise.
2490 * config/tc-m68hc11.c: Likewise.
2491 * config/tc-m68k.c: Likewise.
2492 * config/tc-m88k.c: Likewise.
2493 * config/tc-mcore.c: Likewise.
2494 * config/tc-mips.c: Likewise.
2495 * config/tc-ns32k.c: Likewise.
2496 * config/tc-pdp11.c: Likewise.
2497 * config/tc-pj.c: Likewise.
2498 * config/tc-s390.c: Likewise.
2499 * config/tc-sh.c: Likewise.
2500 * config/tc-sparc.c: Likewise.
2501 * config/tc-tahoe.c: Likewise.
2502 * config/tc-tic80.c: Likewise.
2503 * config/tc-v850.c: Likewise.
2504 * config/tc-vax.c: Likewise.
2505 * config/tc-w65.c: Likewise.
2506 * config/tc-z8k.c: Likewise.
2508 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2510 Based on patch from Matt Green:
2511 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2512 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2513 (s_mips_loc): New function.
2514 (mips_nonecoff_pseudo_table): Call them.
2515 (append_insn): Call dwarf2_emit_insn.
2517 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2519 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2521 (file_ase_mips16): New veriable.
2522 (mips_eabi64): Remove.
2523 (CPU_HAS_MIPS16): New define.
2524 (CPU_HAS_MDMX): Fix data type.
2525 (md_begin): Code cleanup. Use file_ase_mips16.
2526 (mips_elf_final_processing): Handle mips16 header flag.
2527 Handle EABI flag without intermediate variable.
2529 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2531 * doc/as.texinfo: Update MIPS documentation.
2533 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2535 * config/tc-mips.c: Add define for $zero register.
2536 (md_begin): Add $zero as alias name for $0.
2537 (insn_uses_reg): Use ZERO define.
2538 (mips_ip): Add $zero as alias name for $0.
2539 (mips16_ip): Likewise.
2540 (s_cplocal): Demand empty rest of input line.
2541 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2542 names. Use ZERO define. Fix input_line_pointer progress.
2544 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2546 * symbols.c: Replace CONST by const throughout.
2547 (symbol_find_exact): Split out from..
2548 (symbol_find_base): ..here.
2549 * symbols.h: Replace CONST by const throughout.
2550 (symbol_find_exact): Declare.
2551 * config/obj-elf.c: #include "struc-symbol.h".
2552 (elf_frob_file): If group name matches an exported symbol, use that
2553 symbol for the signature and ".group" as the section name.
2555 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2557 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2560 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2562 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2563 and mips_opts.ase_mdmx if they are uninitialized.
2565 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2567 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2568 (hppa_force_relocation): Check if a stub just before the start symbol
2569 of the last call_info is reachable before forcing relocation. Fix
2572 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2574 * config/tc-mips.c (mips_after_parse_args): New function.
2575 (md_begin): Move processing of defaults to mips_after_parse_args.
2576 config/tc-mips.h (md_after_parse_args): Define.
2578 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2580 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2581 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2582 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2583 * configure: Regenerate.
2584 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2587 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2589 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2591 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2593 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2594 linkonce flag. Print all warnings.
2595 (obj_elf_section): Parse ",comdat" for groups.
2596 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2597 consistency of comdat flag.
2599 2002-06-02 Richard Henderson <rth@redhat.com>
2601 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2602 with LITERALs without sequence numbers.
2604 2002-06-01 Richard Henderson <rth@redhat.com>
2606 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2607 Rename them LITUSE_ALPHA_*.
2609 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2611 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2612 accept parentheses enclosed register lists.
2614 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2616 * Makefile.am: Run "make dep-am".
2617 * Makefile.in: Regenerate.
2618 * po/POTFILES.in: Regenerate.
2620 2002-05-31 Graeme Peterson <gp@qnx.com>
2622 * configure.in: Add i386-*-nto-qnx*.
2623 * configure: Regenerate.
2625 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2627 * config/tc-mips.c (mips_ip): Use unsigned long values for
2630 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2632 * config/tc-mips.c (s_cpsetup): Fix initialization of
2633 mips_cpreturn_register and mips_cpreturn_offset.
2635 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2637 * config/tc-mips.c (s_cpsetup): Fix comment.
2639 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2641 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2642 (mips_ip): Likewise.
2643 (mips16_ip): Likewise.
2644 (tc_get_register): Likewise.
2646 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2647 Ed Satterthwaite <ehs@broadcom.com>
2649 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2650 (mips_opts): Initialize "ase_mdmx" member.
2651 (file_ase_mdmx): New variable.
2652 (CPU_HAS_MDMX): New macro.
2653 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2654 based on command line options and configuration defaults.
2655 (macro_build): Note in comment that use of MDMX in macros is
2656 not currently allowed.
2657 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2658 "Z" MDMX operand types.
2659 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2660 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2662 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2663 Add support for "-mdmx" and "-no-mdmx" options.
2664 (OPTION_ELF_BASE): Move to accomodate new options.
2665 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2666 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2667 file_ase_mdmx was set.
2668 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2669 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2672 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2674 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2675 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2676 command line switch conforming to gcc conventions.
2677 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2679 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2681 * config/tc-mips.c (macro_build_jalr): New Function.
2682 (md_begin): NewABI uses big GOTs.
2683 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2684 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2685 (load_address): Add some NewABI PIC support.
2687 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2688 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2690 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2692 * config/tc-mips.c (load_address): Use mips_gp_register instead
2693 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2695 (macro): Use mips_gp_register instead of hardcoded value.
2697 2002-05-30 Richard Henderson <rth@redhat.com>
2699 * expr.h (operatorT): Add O_md17..O_md32.
2700 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2701 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2702 O_tprelhi, O_tprello, O_tprel): New.
2703 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2704 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2705 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2706 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2707 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2708 (md_apply_fix3): Handle TLS relocations.
2709 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2710 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2711 associated TLS reloc. Check lituse_tls relocs match up.
2712 (emit_insn): Handle TLS relocations.
2715 * doc/c-alpha.texi: Add docs for tls relocations.
2717 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2719 * config/tc-mips.c (mips_gprel_offset): New variable.
2720 (s_gpvalue): Use it.
2722 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2724 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2725 write-write conflicts.
2726 (md_assemble): Reformat introductory comment.
2727 (parallel_ok): Prevent packing only if the first
2728 instruction cannot be packed.
2730 2002-05-30 Jason Eckhardt <jle@redhat.com>
2731 Tom Rix <trix@redhat.com>
2733 * config/tc-d10v.c (build_insn): Check for immediates.
2735 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2737 * config/tc-mips.c: Replace GP in comments by $gp.
2738 (mips_big_got): Initialize.
2739 (mips_trap): Initialize.
2740 (load_address): Use mips_gp_register instead of hardcoded value.
2741 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2742 (macro): Use mips_gp_register instead of hardcoded value.
2743 (macro2): Change load_address calls.
2744 (md_pcrel_from): Comment formatting.
2745 (s_cpload): Use mips_gp_register instead of hardcoded value.
2746 (s_cprestore): Likewise. Comment formatting.
2747 (s_gpword): Fix data type.
2748 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2749 (nopic_need_relax): Replace GP in comments by $gp.
2750 (mips_elf_final_processing): Better comment.
2752 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2754 * configure.in: Add DLX configuraton
2755 * Makefile.am: Add DLX configuraton
2756 * configure: Regenerate.
2757 * Makefile.in: Regenerate.
2758 * config/tc-dlx.c: New file.
2759 * config/tc-dlx.h: New files.
2760 * NEWS: Mention new support.
2762 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2764 * config/obj-coff.c (write_object_file): Add missing semicolon.
2766 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2768 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2769 by the define. Remove superfluous check of mips_opts.mips16.
2770 (append_insn): Likewise. Canonicalize variable increments.
2771 (macro_build): Canonicalize variable increments.
2772 (macro_build_lui): Likewise.
2773 (load_register): Likewise.
2774 (load_address): Move pointer initialization.
2775 (macro): Move pointer to a more local scope. Canonicalize variable
2776 increments. Better comments. Replace magic constant for RA by the
2778 (macro2): Replace magic constant for RA by the define. Canonicalize
2779 variable increments.
2780 (mips_ip): Canonicalize variable increments.
2781 (mips16_ip): Replace magic constant for RA by the define.
2782 (my_getSmallParser): Canonicalize variable increments/decrements.
2783 (my_getPercentOp): Likewise.
2784 (my_getSmallExpression): Likewise.
2785 (s_align): Likewise.
2786 (s_mipsset): Likewise.
2787 (s_cpsetup): Likewise.
2788 (s_insn): Remove superfluous check of mips_opts.mips16.
2789 (s_mips_stab): Likewise.
2790 (mips_handle_align): Canonicalize variable increments.
2791 (s_mips_ent): Likewise.
2792 (s_mips_end): Add comment.
2794 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2796 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2797 * configure: Regenerate.
2799 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2801 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2802 * Makefile.in: Regenerate.
2803 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2804 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2805 * configure: Regenerate.
2806 * as.h: Use #include "" instead of <> for local header files.
2807 * flonum-konst.c: Likewise.
2808 * flonum-mult.c: Likewise.
2810 * listing.c: Likewise.
2811 * config/tc-ia64.h: Likewise.
2812 * config/tc-v850.h: Likewise.
2814 2002-05-24 TAMURA Kent <kent@netbsd.org>
2816 * configure.in: Add a target for i386-netbsdpe.
2817 * configure: Regenerate.
2819 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2821 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2822 (obj_elf_common): Call elf_common.
2823 (obj_elf_tls_common): New function.
2824 (elf_pseudo_tab): Support .tls_common.
2825 (special_sections): Add .tdata and .tbss.
2826 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2828 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2829 (obj_elf_parse_section_letters): Include T in error message.
2830 * config/tc-ppc.c (ppc_section_letter): Likewise.
2831 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2832 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2834 * config/tc-sparc.c (md_apply_fix3): Likewise.
2835 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2836 Define them if not BFD_ASSEMBLER.
2837 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2839 (md_apply_fix3): Add TLS relocs.
2840 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2841 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2842 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2843 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2844 (ia64_elf_section_letter): Include T in error message.
2845 (md_begin): Support TLS operators.
2846 (md_operand): Likewise.
2847 (ia64_gen_real_reloc_type): Support TLS relocs.
2848 * write.c (adjust_reloc_syms): Don't change symbols in
2849 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2851 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2853 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2854 round the relocation up rather than down.
2856 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2858 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2860 * doc/as.texinfo: Document that the COFF version of .section
2861 ignores the 'a' flag.
2863 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2865 * config/tc-alpha.c (assemble_tokens): Protect use of
2866 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2868 * write.c (size_seg): Check adjustment to last frag.
2869 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2871 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2872 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2873 (write_object_file): Invoke md_do_align if available, and use
2874 frag_align_code on text sections.
2875 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2876 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2877 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2878 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2879 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2882 2002-05-22 H.J. Lu <hjl@gnu.org>
2884 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2887 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2889 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2892 2002-05-22 H.J. Lu <hjl@gnu.org>
2894 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2895 for one .loc for compiler.
2897 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2899 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2902 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2904 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2905 Optimize the rotate by zero case.
2907 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2909 * configure.in: Remove accidental enabling of bfd_gas=yes for
2911 * configure: Regenerate.
2913 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2915 * app.c: Fix formatting.
2917 * ehopt.c: Likewise.
2919 * input-file.c: Likewise.
2920 * listing.c: Likewise.
2921 * macro.h: Likewise.
2922 * stabs.c: Likewise.
2923 * symbols.c: Likewise.
2925 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2927 * config/obj-generic.c: Delete file.
2928 * config/obj-generic.h: Likewise.
2930 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2932 * config/tc-avr.c (mcu_types): Update for new devices.
2934 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2936 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2938 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2940 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2941 worked sometimes by accident. Fix copy&paste comment.
2943 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2945 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2946 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2947 (mips_elf_final_processing): Let n32 use .reginfo.
2949 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2951 * config/tc-mips.c (append_insn): Fix too small range of variable.
2953 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2955 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2956 listing_prev_line().
2958 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2960 * config/tc-arm.c (md_assemble): Remove redundant call to
2963 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2966 * stabs.c (s_stab_generic): Fix grammatical error in warning
2969 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2971 * write.c (subsegs_finish): Don't specially align last subseg.
2973 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2975 * stabs.c (s_stab_generic): Warn about a description field that is
2978 * config/obj-coff.c: Fix compile time warnings when compiling
2979 without BFD_ASSEMBLER defined.
2982 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2984 (md_pcrel_from_section): Use md_pcrel_from().
2986 2002-05-11 Bruno Haible <bruno@clisp.org>
2988 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2989 by dwarf2_directive_loc, instead of calling dwarf2_where.
2991 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2993 * config/obj-coff.h: Fix formatting.
2994 * config/tc-mcore.c: Likewise.
2995 * config/tc-mn10300.c: Likewise.
2996 * config/tc-openrisc.c: Likewise.
2997 * config/tc-or32.c: Likewise.
2998 * config/tc-pdp11.c: Likewise.
2999 * config/tc-ppc.c: Likewise.
3000 * config/tc-ppc.h: Likewise.
3001 * config/tc-sh64.c: Likewise.
3002 * config/tc-sh.c: Likewise.
3003 * config/tc-tic54x.c: Likewise.
3004 * config/tc-xstormy16.c: Likewise.
3005 * config/tc-xstormy16.h: Likewise.
3007 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3009 * config/obj-coff.c: Fix formatting.
3010 * config/obj-elf.c: Likewise.
3011 * config/tc-alpha.c: Likewise.
3012 * config/tc-arm.c: Likewise.
3013 * config/tc-d10v.c: Likewise.
3014 * config/tc-d30v.c: Likewise.
3015 * config/tc-h8300.c: Likewise.
3016 * config/tc-hppa.c: Likewise.
3018 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3020 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3021 reloc when no_cond_jump_promotion.
3023 2002-05-08 Jim Wilson <wilson@redhat.com>
3025 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3026 current variable part of frag.
3028 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3030 * config/tc-mmix.c: Fix formatting.
3031 * config/tc-mmix.h: Likewise.
3033 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3035 * configure: Regenerate.
3037 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3039 * config/tc-m68k.c: Fix formatting.
3041 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3043 * Makefile.am: Honour DESTDIR.
3044 * Makefile.in: Regenerate.
3046 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3048 * config/tc-ia64.c: Fix formatting.
3049 * config/tc-ia64.h: Likewise.
3051 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3053 * config/tc-mips.c: Fix formatting.
3054 * config/tc-s390.c: Likewise.
3055 * config/tc-s390.h: Likewise.
3057 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3059 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3060 information for instructions.
3062 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3064 * as.h: Fix formatting.
3067 * dwarf2dbg.c: Likewise.
3068 * frags.h: Likewise.
3070 * macro.c: Likewise.
3072 * stabs.c: Likewise.
3073 * symbols.c: Likewise.
3075 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3077 * app.c (mri_pseudo): Only declare for TC_M68K.
3079 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3080 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3081 BFD_RELOC_16_BASEREL.
3082 (md_assemble): Likewise.
3083 (md_apply_fix3): Likewise.
3085 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3087 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3088 zero into an add of zero - it is not the same.
3090 2002-05-01 Arati Dikey <aratid@kpit.com>
3092 * tc-sh.c (get_specific): Generate warning if the same
3093 destination register is used in parallel instructions.
3095 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3097 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3099 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3101 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3102 backwards to prevent cascading errors.
3104 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3106 * configure.in: Add support for powerpc-*-windiss.
3107 * configure: Regenerated.
3109 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3111 * config/tc-s390.c (md_parse_option): Formatting.
3113 * config/tc-i386.c: Formatting fixes, add missing space in error
3116 2002-04-24 Christian Groessler <chris@groessler.org>
3118 * config/tc-z8k.c (build_bytes): Add support for new cases:
3119 CLASS_IGNORE and ARG_NIM4.
3120 (md_assemble): Prevent destruction of input_line_pointer if
3121 get_operands returns failure.
3123 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3125 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3126 instructions to be generated by macros.
3128 2002-04-24 Andreas Schwab <schwab@suse.de>
3130 * config/tc-i386.c (output_jump, output_disp)
3131 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3133 (md_apply_fix3): Remember addend value for rela relocations.
3134 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3136 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3138 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3139 from previous change.
3141 2002-04-22 Eric Christopher <echristo@redhat.com>
3143 * config/tc-mips.c (macro_build): Add warning if macro instructions
3144 are expanded into a branch delay slot.
3146 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3148 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3149 numbers, gdb relies on them to detect the start of the prologue.
3151 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3153 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3154 symbols in merge sections.
3156 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3158 * as.c (main): Don't reference _bfd_chunksize.
3160 2002-04-15 Tom Rix <trix@redhat.com>
3162 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3163 symbols in merge sections.
3165 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3167 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3168 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3169 argument for the precision.
3170 (gen_to_words): Update accordingly.
3172 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3174 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3175 BFD_VERSION_STRING unavailable.
3176 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3178 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3180 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3181 symbol_used_in_reloc_p is true.
3183 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3186 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3188 * dep-in.sed: Cope with absolute paths.
3189 * Makefile.am (dep.sed): Subst TOPDIR.
3191 * Makefile.in: Regenerate.
3193 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3195 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3196 (mips_ip): Remove unused variable.
3197 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3198 unsigned char with bfd_byte.
3199 (s_file): Remove unused variable.
3200 (s_mips_ent): Likewise.
3202 2002-04-03 Tom Rix <trix@redhat.com>
3204 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3206 (find_opcode): Fix warning in as_warn.
3207 * config/tc-d10v.h: Update Copyright.
3209 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3210 Tom Rix <trix@redhat.com>
3212 From Jeff Knaggs <jknaggs@redhat.com>
3213 * config/tc-d10v.c (check_resource_conflict): New function to
3214 check for resource conflicts.
3216 From Jason Eckhardt <jle@redhat.com>
3217 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3219 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3220 reserved control registers is used.
3221 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3224 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3225 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3226 instruction cannot be packed.
3228 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3229 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3230 write-write conflicts.
3231 (md_assemble): Reformat introductory comment.
3232 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3235 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3237 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3238 O_logical_not>): Derive final_seg from add_symbol.
3239 <O_multiply..O_logical_or>: More final_seg twiddles.
3241 2002-04-01 Jessica Han <jessica@cup.hp.com>
3243 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3246 2002-03-27 Andreas Schwab <schwab@suse.de>
3248 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3249 field for pc-relative fixups.
3250 (output_disp): Likewise.
3251 (md_estimate_size_before_relax): Likewise.
3252 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3253 pc-relative fixups in 64bit mode.
3255 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3257 * config/te-aix5.h: Typo fix.
3259 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3261 * Makefile.am: Run "make dep-am".
3262 * Makefile.in: Regenerate.
3263 * doc/Makefile.in: Regenerate.
3265 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3267 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3268 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3270 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3272 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3273 the EXTENDED bit here; report the estimate according to the
3276 2002-03-18 Tom Rix <trix@redhat.com>
3278 * configure.in: Add AIX 5 support.
3279 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3280 * config/te-aix5.h: New file. AIX 5 support.
3281 * configure: Regenerate.
3283 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3285 * po/fr.po: Updated version.
3287 2002-03-16 Andreas Jaeger <aj@suse.de>
3289 * doc/c-mips.texi (Machine Dependencies): Add new node.
3291 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3293 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3294 (mips_opts): Initialize "ase_mips3d" member.
3295 (file_ase_mips3d): New variable.
3296 (CPU_HAS_MIPS3D): New macro.
3297 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3298 based on command line options and configuration defaults.
3299 (macro_build, mips_ip): Accept MIPS-3D instructions if
3300 mips_opts.ase_mips3d is set.
3301 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3302 Add support for "-mips3d" and "-no-mips3d" options.
3303 (OPTION_ELF_BASE): Move to accomodate new options.
3304 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3305 (mips_elf_final_processing): Add a comment indicating that a
3306 MIPS-3D ASE ELF header flag should be set, when one exists.
3307 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3308 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3309 nomips3d" directives.
3311 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3313 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3314 a weak symbol in same section to be within reach.
3316 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3318 * po/fr.po: Updated version.
3320 2002-03-12 Andreas Schwab <schwab@suse.de>
3322 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3323 body record so that an error is given for misplaced .save
3326 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3328 * config/tc-i386.h (REX_OPCODE): Define.
3329 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3330 (rex_byte): typedef to int.
3331 * config/tc-i386.c: Group prototypes and vars together.
3332 Formatting fixes. Remove occurrences of "register" keyword.
3335 (mode_from_disp_size): Add INLINE keyword to prototype.
3336 (fits_in_signed_byte): Likewise.
3337 (fits_in_unsigned_byte): Likewise.
3338 (fits_in_unsigned_word): Likewise.
3339 (fits_in_signed_word): Likewise.
3340 (fits_in_unsigned_long): Likewise.
3341 (fits_in_signed_long): Likewise.
3342 (type_names): Constify.
3343 (intel_float_operand): Constify param.
3344 (add_prefix): Use REX_OPCODE.
3345 (md_assemble): Likewise. Modify for changed rex_byte.
3346 (parse_insn): Split out of md_assemble.
3347 (parse_operands): Likewise.
3348 (swap_operands): Likewise.
3349 (optimize_imm): Likewise.
3350 (optimize_disp): Likewise.
3351 (match_template): Likewise.
3352 (check_string): Likewise.
3353 (process_suffix): Likewise.
3354 (check_byte_reg): Likewise.
3355 (check_long_reg): Likewise.
3356 (check_qword_reg): Likewise.
3357 (check_word_reg): Likewise.
3358 (finalize_imm): Likewise.
3359 (process_operands): Likewise.
3360 (build_modrm_byte): Likewise.
3361 (output_insn): Likewise.
3362 (output_branch): Likewise.
3363 (output_jump): Likewise.
3364 (output_interseg_jump): Likewise.
3365 (output_disp): Likewise.
3366 (output_imm): Likewise.
3368 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3370 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3372 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3374 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3375 relocs except when BFD64.
3377 * write.c (number_to_chars_bigendian): Don't abort when N is
3378 larger than sizeof (VAL).
3379 (number_to_chars_littleendian): Likewise.
3381 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3383 * config/tc-hppa.c (md_apply_fix3): Add cast.
3384 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3387 2002-03-05 Paul Koning <pkoning@equallogic.com>
3389 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3390 (parse_ac5): New function for parsing float regs in float operand.
3391 (parse_expression): Remove attempt to make literals be octal.
3392 (parse_op_no_deferred): Support float literals.
3393 (parse_op): Reject attempts to refer to float regs.
3394 (parse_fop): New function, like parse_op but for float operand.
3395 (md_assemble): Add cases to parse float operands. Also fix
3396 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3398 2002-03-04 H.J. Lu <hjl@gnu.org>
3400 * config/obj-elf.c (special_section): Add .init_array,
3401 .fini_array and .preinit_array.
3403 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3404 .init_array and .fini_array.
3406 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3408 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3410 (obj_frob_symbol): Copy visibility.
3412 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3414 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3416 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3418 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3420 * po/es.po: Updated.
3422 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3424 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3425 only, undo the changes made on 2001-06-08, with the
3426 effect being that common or extern symbols are
3427 adjusted for embedded-PIC, but weak symbols are not.
3428 (md_estimate_size_before_relax: Likewise, with the effect
3429 that extern symbols are treated the same as weak symbols
3430 only if not embedded-PIC.
3431 (mips_fix_adjustable) Likewise, with the effect that
3432 weak or extern symbols are not adjusted for embedded-PIC.
3433 (md_apply_fix3): Tweak so that the case where value is zero
3434 is handled more correctly for embedded-PIC code.
3436 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3438 * doc/as.texinfo (Overview): Add missing @ifset IA64
3440 * configure.in (LINGUAS): Add es.po.
3441 * configure: Regenerate.
3442 * po/es.po: New file.
3444 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3446 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3447 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3448 and NO_PIC cases. Code cleanup.
3449 (macro2): Fix handling of 64bit register loads.
3451 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3453 * doc/as.texinfo: Add entry for IA64.
3454 * doc/c-ia64.texi: New file.
3456 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3458 * config/tc-hppa.c: Update copyright date.
3460 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3461 Remove references to chip manufacturers.
3462 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3464 (md_show_usage): Remove references to chip manufacturers. Mention
3466 (md_begin): Test power4 opcode flag bits.
3468 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3470 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3471 count exceeds prologue count.
3472 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3473 (unwind.label_prologue_count): New member.
3475 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3477 (get_saved_prologue_count): New function.
3478 (save_prologue_count): New function.
3479 (free_saved_prologue_count): New function.
3480 (dot_label_state): Record state label by calling save_prologue_count().
3481 (dot_copy_state): Restore prologue count by calling
3482 get_saved_prologue_count().
3483 (generate_unwind_image): Free up list of saved prologue
3484 counts by calling free_saved_prologue_counts().
3486 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3488 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3489 function declarations.
3491 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3493 * NEWS: Note that GASP is now deprecated.
3494 * Makefile.am: Do not build gasp-new by default.
3495 * Makefile.in: Regenerate.
3496 * doc/Makefile.am: Do not install gasp.info.
3497 * doc/Makefile.in: Regenerate.
3498 * gas/gasp.texi: Note that gasp is now deprecated.
3500 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3502 * NEWS: Mark 2.12 branch.
3504 2002-02-19 Tom Tromey <tromey@redhat.com>
3506 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3508 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3510 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3513 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3515 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3516 Make bit size independent of architecture switch.
3517 (md_begin): Add warning for -m64 with -Aesa.
3518 (s390_md_end): Use renamed architecture defines.
3520 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3522 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3524 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3526 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3529 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3531 * config/tc-mips.c (md_estimate_size_before_relax): Really
3532 make sure we treat weak like extern only for ELF. (Fixes
3533 patch from 2001-07-25.)
3535 2002-02-15 Ben Elliston <bje@redhat.com>
3537 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3540 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3542 * NEWS: Mention support for MMIX.
3544 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3546 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3547 a sequence of indpendent 'if' statements for easier debugging
3548 and future modification.
3550 2002-02-13 Matt Fredette <fredette@netbsd.org>
3552 * config/tc-m68k.c (md_show_usage): No longer display a
3553 hard-coded "68020" for the default CPU, instead display the
3554 canonical name of the true, configured default CPU.
3555 (m68k_elf_final_processing): Mark objects for sub-68020
3556 CPUs with the new EF_M68000 flag.
3558 2002-02-13 Andreas Schwab <schwab@suse.de>
3560 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3561 pc-relative relocations to merge sections in 64-bit mode.
3563 2002-02-13 Ben Elliston <bje@redhat.com>
3565 * NEWS: Document floating point number handling in gasp.
3566 * gasp.c: Include <assert.h> and "xregex.h".
3567 (is_flonum): New function.
3568 (chew_flownum): Likewise.
3569 (change_base): Consume flonums from the input, where possible.
3570 * doc/gasp.texi (Constants): Document floating point numbers.
3572 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3574 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3575 that implicitly use LR and RR selectors.
3577 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3579 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3580 and `epsw' as available on AM33 and above only.
3581 (other_register_name): Add logic to handle machine type encoded in
3584 2002-02-11 Tom Rix <trix@redhat.com>
3586 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3589 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3591 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3594 2002-02-11 Jan Hubicka <jh@suse.cz>
3596 * i386.c (md_assemble): Support 32bit address prefix.
3597 (i386_displacement): Likewise.
3598 (i386_index_check): Accept 32bit addressing in 64bit mode.
3600 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3602 * config/tc-sh.c (dot): Removed unused function.
3604 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3606 * Makefile.am: "make dep-am".
3607 * Makefile.in: Regenerate.
3608 * aclocal.m4: Regenerate.
3609 * config.in: Regenerate.
3610 * configure: Regenerate.
3611 * doc/Makefile.in: Regenerate.
3613 2002-02-10 Richard Henderson <rth@redhat.com>
3615 * doc/c-alpha.texi: New file.
3616 * doc/Makefile.am (CPU_DOCS): Add it.
3617 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3619 2002-02-09 Richard Henderson <rth@redhat.com>
3621 * config/tc-alpha.c (O_samegp): New.
3622 (USER_RELOC_P): Include it.
3623 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3624 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3625 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3626 (alpha_validate_fix): New.
3627 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3629 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3631 * doc/c-cris.texi: New.
3632 * doc/all.texi: @set CRIS.
3633 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3634 Include c-cris.texi.
3635 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3636 * doc/Makefile.in: Regenerate.
3638 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3640 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3641 determine if a number is a sign-extended 32-bit number.
3642 (load_register): Use IS_SEXT_32BIT_NUM.
3643 (macro): Check if load/store macro handling is using a
3644 constant 32-bit address on 64-bit address systems, and if
3645 so optimize the generation of that address.
3647 2002-02-08 Richard Henderson <rth@redhat.com>
3649 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3650 we've eliminated all foreign relocation types yet.
3651 (alpha_fix_adjustable): Likewise.
3653 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3655 Contribute sh64-elf.
3656 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3657 Stephen Clarke <Stephen.Clarke@st.com>
3658 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3659 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3660 * config/tc-sh.c (md_relax_table): Added default sizes for
3661 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3662 MOVI_16, MOVI_32 and MOVI_48.
3663 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3664 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3666 (shmedia_md_estimate_size_before_relax): Remove redundant
3667 blocks. Set fragP->fr_var even if relaxation type unchanged.
3668 Retain UNDEF_MOVI until expression decays to number.
3669 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3670 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3671 relocation types. Take fixP->fx_addnumber into account too.
3672 (shmedia_md_apply_fix): Likewise.
3673 (shmedia_md_convert_frag): Likewise.
3674 (shmedia_build_Mytes): Likewise.
3675 (sh64_consume_datalabel): Complain about nested datalabel.
3676 Support PIC relocs. Call sh_parse_name.
3677 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3678 in tc-sh.h to SHmedia reloc types.
3679 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3680 MOVI_GOTPC): New relaxation constants.
3681 (md_relax_table): Introduce relaxation directives for PIC-related
3683 (sh_PIC_related_p): Handle datalabel.
3684 (sh_check_fixup): Choose SH5 PIC relocations.
3685 (sh_cons_fix_new): Added BDF_RELOC_64.
3686 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3687 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3688 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3689 current ISA is SHmedia, get 7 bytes.
3690 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3691 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3693 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3694 shmedia_apply_fix3 and make void.
3695 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3696 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3698 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3699 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3700 2001-03-14 DJ Delorie <dj@redhat.com>
3701 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3702 * doc/Makefile.in(CPU_DOCS): Ditto.
3703 * doc/c-sh64.texi: New file.
3704 * doc/as.texinfo: Add SH64 support.
3705 2001-03-13 DJ Delorie <dj@redhat.com>
3706 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3707 A_REUSE_PREV so that its purpose is more obvious.
3708 (shmedia_build_Mytes): Ditto.
3709 2001-03-07 DJ Delorie <dj@redhat.com>
3710 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3712 (sh64_vtable_inherit): Ditto.
3713 (strip_datalabels): New, strip "datalabel" from given line.
3714 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3716 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3717 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3719 (shmedia_build_Mytes): ... to here.
3720 2001-03-06 DJ Delorie <dj@redhat.com>
3721 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3723 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3724 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3725 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3726 address by one in call to dwarf2_emit_insn.
3727 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3728 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3729 alignment handling broken by imported changes.
3730 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3731 (sh64_handle_align): Declare.
3732 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3733 (sh64_max_mem_for_rs_align_code): Declare.
3734 (enum sh64_isa_values): Moved here from tc-sh64.c.
3735 (md_do_align): Define.
3736 (sh64_do_align): Declare.
3737 (struct sh64_tc_frag_data): New.
3738 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3740 (TC_FRAG_INIT): Change to set new datatype.
3741 (struct sh64_segment_info_type): Rename member
3742 last_flushed_location to last_contents_mark. All users changed.
3743 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3744 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3745 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3746 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3747 of unsetting seen_insn.
3748 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3749 call sh64_update_contents_mark.
3750 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3751 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3752 enum sh64_isa_values.
3753 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3754 (emitting_crange): Boolean guard moved to file scope from function
3755 scope in sh64_set_contents_type.
3757 (sh64_update_contents_mark): New; most split out from
3758 sh64_flush_pending_output.
3759 (shmedia_md_end): Call sh64_update_contents_mark. Set
3760 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3761 (sh64_do_align): New function.
3762 (sh64_max_mem_for_rs_align_code): New function.
3763 (sh64_handle_align): Rename from shmedia_do_align. Make
3764 non-static. Add head comment. Emit zero bytes for n bytes modulo
3765 four. Change return-type to void.
3766 (shmedia_elf_new_section): Remove.
3767 (shmedia_md_assemble): Call sh64_update_contents_mark.
3768 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3769 new frag. Call sh64_update_contents_mark after making the new
3771 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3772 and sh_flush_pending_output.
3773 (sh64_flag_output): Also call md_flush_pending_output, but add
3774 condition on not emitting_crange.
3775 (sh64_tc_cons_fix_new): Remove.
3776 2001-01-12 Nick Clifton <nickc@redhat.com>
3777 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3778 alignment handling scheme imported from sourceware.
3779 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3780 * config/tc-sh64.h (TARGET_FORMAT): Define.
3781 (sh64_target_format): Prototype.
3782 * config/tc-sh64.c (sh64_target_mach): New function.
3783 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3784 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3785 zero_address_frag instead of copying the frag of the symbol.
3786 (shmedia_frob_file_before_adjust): Ditto.
3787 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3788 to valueT to remove signedness.
3789 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3790 headers to output_bfd. Do not evaluate symbols if final is false;
3792 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3793 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3794 to the current frag, call shmedia_md_convert_frag to emit fixups
3795 and make frag_wane neutralize the frag. Update comments.
3796 * config/tc-sh.c (md_convert_frag): Change caller of
3797 shmedia_md_convert_frag.
3798 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3799 * config/tc-sh64.h: Tweak comments and correct formatting.
3800 * config/tc-sh64.c: Ditto.
3801 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3802 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3803 for the no-relocation case.
3804 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3805 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3807 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
3809 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3810 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3812 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3814 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3815 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3816 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3817 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3818 al>: Set lowest bit of field to relocate to 1 and rest to empty,
3819 if reloc is emitted.
3820 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3821 New options plus bugfixes.
3822 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3824 (md_parse_option): Handle new options.
3825 (md_show_usage): Add blurb for new options.
3826 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3827 (sh64_expand, sh64_pt32): New variables.
3828 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3829 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3830 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
3831 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3832 <resolved previously-pc-relative relocs>: Handle
3833 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3834 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3835 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3836 points to SHcompact code.
3837 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3838 SH64PCREL16)>: Check that ISA of what operand points at and
3839 PTA/PTB matches, or emit error.
3840 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3841 SHMEDIA_BFD_RELOC_PT.
3842 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3844 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3845 condition for MOVI expansion.
3846 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3847 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3849 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3851 (sh64_target_format): Error-check setting of sh64_pt32 and
3852 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3853 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3854 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3855 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3856 * config/tc-sh64.c: Improve comments.
3857 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3858 not say the linker will check correctness of PTA/PTB expansion.
3859 (shmedia_md_end): Make non-static.
3860 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3862 * config/tc-sh.c (sh_finalize): Remove.
3863 * config/tc-sh.h (md_end): Do not define.
3864 Remove prototype for sh_finalize.
3865 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3866 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3867 sh64_section_data container when storing section type in tdata
3868 field in elf_section_data.
3869 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3871 * Makefile.am: Update dependencies.
3872 * Makefile.in: Regenerate.
3873 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3874 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3875 dwarf2_emit_insn call with test on debug_type.
3876 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3877 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3878 CRT_SH5_ISA32 sticky for 64-bit.
3879 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3880 Generate .crange sections when switching ISA mode or emitting
3881 constants in same section as code.
3882 * config/tc-sh64.c: Reformat structure definitions.
3883 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3885 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3886 to emit a .cranges descriptor when contents type changes. Only
3887 emit error if changing contents type and -no-mix is in effect.
3888 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3889 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3890 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3891 sh64_flush_last_crange over sections.
3892 When checking main symbol of datalabel symbol, check for
3893 STO_SH5_ISA32, not ISA type of section in definition.
3894 (shmedia_frob_file_before_adjust): Check main symbol for
3895 STO_SH5_ISA32; don't check ISA type of section in definition.
3896 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3897 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3898 .cranges entries have been output.
3899 (shmedia_elf_new_section): Just call md_flush_pending_output.
3900 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3901 fix. Do not set tc_segment_info_data.in_code for section. Call
3902 sh64_set_contents_type for SHmedia code.
3903 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3904 false. Call md_flush_pending_output.
3905 (sh64_target_format): Check that -no-mix and
3906 -shcompact-const-crange are used in sane combination with other
3908 (shmedia_md_pcrel_from_section): Check type of fix for how to
3910 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3911 not ISA type of section in definition.
3912 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3913 hold contents-type state.
3914 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3915 (sh64_flush_pending_output): Declare.
3916 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3917 (sh64_tc_cons_fix_new): Declare.
3918 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3919 call sh64_flag_output.
3920 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3921 call sh64_set_contents_type to mark SHcompact code and set
3923 (md_longopts): New options "-no-mix" and
3924 "-shcompact-const-crange".
3925 (md_parse_option): Handle new options.
3926 (md_show_usage): Add blurb for new options.
3927 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3928 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3929 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3930 (sh64_last_insn_frag): New.
3931 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3932 to get frag for insn opcode for generating fixups; do not assume it
3934 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3936 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3938 (TC_FRAG_TYPE): Define as fragS *.
3939 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3940 (sh64_last_insn_frag): Declare.
3941 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3942 not == NULL before dereferencing.
3943 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3944 Get rid of BFD section flag and EF_SH64_ABI64.
3945 * config/tc-sh64.c (shmedia_frob_section_type): Use
3946 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3947 communicate the section as containing SHmedia code. Describe why.
3948 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3949 EF_SH64 regardless of ABI.
3950 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3951 in error message. Handle resolved expressions for
3952 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3953 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3954 (shmedia_check_limits): Handle BFD_RELOC_64.
3955 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3956 a STO_SH5_ISA32 symbol, only the BFD value.
3957 2000-12-11 Ben Elliston <bje@redhat.com>
3958 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3959 dwarf2_generate_asm_lineno.
3960 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3961 Handle PC-relative MOVI expansions with assembler relaxation.
3962 Generate PC-relative relocs from 16-bit PC-relative expressions.
3963 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3964 (shmedia_md_pcrel_from_section): ...here.
3965 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3966 turned completely resolved. Adjust relocation type for 16-bit
3967 immediate operands that has turned PC-relative. Adjust back for
3968 MD_PCREL_FROM_SECTION being applied twice.
3969 (shmedia_md_convert_frag): Always emit reloc for expression with
3970 global or weak symbol. Handle relaxation result for PC-relative
3972 (shmedia_md_estimate_size_before_relax): An expression with a weak
3973 or global symbol can not be relaxed. Break out tests for
3974 relaxable symbol into variable sym_relaxable.
3975 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3976 UNDEF_MOVI)>: Break out any PC-relative expression and change
3978 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3980 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3981 MOVI expansion. If X_op_symbol of the immediate expression is
3982 set, make an expression symbol for the argument to frag_var.
3983 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3985 (END): Adjust for new relaxations.
3986 (md_relax_table): Add entries for new relaxations.
3987 2000-12-07 Ben Elliston <bje@redhat.com>
3988 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3989 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3990 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3991 SHORI operand offsets in PT/PTA/PTB expansions.
3992 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3993 Implement DataLabel semantics.
3994 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3995 shmedia_frob_file_before_adjust.
3996 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3997 (DATALABEL_SUFFIX): Define.
3998 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3999 symbol list to update "datalabel" symbols to their main symbol
4001 (shmedia_frob_file_before_adjust): New.
4002 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4003 undefined and set STT_DATALABEL.
4004 (sh64_frob_label): Initialize TC symbol field.
4005 (sh64_consume_datalabel): Actually implement semantics. New
4006 parameter operandf, call it instead of expression.
4007 (sh64_exclude_symbol): New.
4008 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4009 to sh64_consume_datalabel.
4010 (tc_symbol_new_hook): Define to tc_frob_symbol.
4011 (TC_SYMFIELD_TYPE): Define to symbolS *.
4012 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4013 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4014 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4016 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4017 generating dwarf2 debug information.
4018 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4019 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4020 elf64-sh64 for the 64-bit ABI.
4021 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4023 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4024 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4026 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4027 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4028 (enum sh64_abi_values): New type.
4029 (enum sh64_isa_values): New type.
4030 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4031 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4032 (sh64_abi): Replace shmedia_64.
4033 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4034 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4035 (s_sh64_mode): Check validity for this target.
4036 (sh64_target_format): Initialize defaults for ISA and ABI.
4037 Fallback to old object format if no SH64 ISA or ABI has been
4039 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4040 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4041 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4042 * config/tc-sh64.h: Fix typo in comment.
4043 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4044 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4045 <PT fixups for absolute values>: Size will be longest, not
4047 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4048 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4049 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4050 and l1 to hold lowercase of two first characters. Change all
4051 remaining TO_LOWER to tolower.
4052 * config/tc-sh64.c (TO_LOWER): Delete.
4053 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4054 (md_parse_name): Define.
4055 (sh64_consume_datalabel): Declare.
4056 (DOLLAR_DOT): Define.
4057 * config/tc-sh64.c (shmedia_parse_exp): New.
4058 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4059 (shmedia_parse_reg): Remove const from src
4061 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4062 (shmedia_md_assemble): Ditto for op_end variable.
4063 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4064 Use shmedia_parse_exp, not parse_exp.
4065 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4066 parameter. All callers changed.
4067 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4069 (shmedia_parse_reg): Put first two character in local variables.
4070 Use tolower, not TO_LOWER. If no register is found and argtype
4071 indicates a control register, scan shmedia_creg_table
4073 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4074 * Makefile.am (CPU_TYPES): Add sh64.
4075 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4076 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4077 Regenerate dependencies.
4078 * Makefile.in: Regenerate.
4079 * configure.in: Add support for sh64-*-elf*.
4080 * configure: Regenerate.
4081 * config/tc-sh64.h: New.
4082 * config/tc-sh64.c: New.
4083 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4084 .mode, .isa and .uaquad.
4085 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4086 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4087 [HAVE_SH64] (END): Define as 10.
4088 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4089 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4091 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4092 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4093 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4094 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4096 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4097 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4098 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4099 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4100 SHmedia instructions. Handle state-change after switching to
4102 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4103 (md_parse_option) [HAVE_SH64]: Parse new options.
4104 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4105 (md_convert_frag) [HAVE_SH64] <default>: Call
4106 shmedia_md_convert_frag instead of abort.
4107 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4108 BFD_RELOC_SH_SHMEDIA_CODE.
4109 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4110 SHcompact or SHmedia code.
4111 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4112 shmedia_md_apply_fix instead of abort.
4113 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4114 result from calling shmedia_md_estimate_size_before_relax instead
4116 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4118 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4119 shmedia_init_reloc and do nothing more if it returns non-zero.
4120 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4121 * po/POTFILES.in: Regenerate.
4122 * po/gas.pot: Regenerate.
4124 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4126 * config/tc-sh.c (parse_at): Install the correct version of
4129 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4130 assume fixP->fx_subsy is non-NULL.
4132 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4134 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4135 A_DISP_PC_ABS, and adjust it by -4.
4136 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4138 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4139 the operand type is not A_DISP_PC_ABS.
4141 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4143 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4144 common and weak symbols. Handle common and weak symbols as
4145 undefined symbols with regards to GREG handling and merging.
4146 (mmix_frob_file): Ditto.
4148 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4150 * configure.in (hppa-*-netbsd*): New target.
4151 * configure: Regenerate.
4152 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4154 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4156 * config/tc-v850.c: Add missing prototypes amd use old-style
4157 function definitions.
4158 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4159 (sdata_section tdata_section, zdata_section, sbss_section,
4160 tbss_section, zbss_section, rosdata_section, rozdata_section,
4161 scommon_section, tcommon_section, zcommon_section,
4162 call_table_data_section, call_table_text_section): Delete.
4163 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4164 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4165 v850_call_table_data, v850_call_table_text): Delete.
4166 (struct v850_seg_entry): New.
4167 (v850_seg_table): New.
4168 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4169 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4170 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4171 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4174 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4175 recording of alignment.
4176 (md_pseudo_table): Use v850_seg.
4177 (md_begin): Don't init .call_table_data and .call_table_text here.
4178 Set v850_seg_table bss entry.
4180 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4182 Support on-demand global register allocation by passing on
4183 base-plus-offset relocs to the linker.
4184 * config/tc-mmix.c: Tweak and fix typos in comments.
4185 (allocate_undefined_gregs_in_linker): New variable.
4186 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4187 (md_longopts): Add --linker-allocated-gregs.
4188 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4189 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4190 (md_show_usage): Update text for -x. Add text for
4191 --linker-allocated-gregs.
4192 (tc_gen_reloc): Derive default value for addend from val and
4193 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4194 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4195 GREG if allocate_undefined_gregs_in_linker.
4196 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4197 --linker-allocated-gregs.
4198 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4199 --linker-allocated-gregs. Mention that it's implied by -x.
4200 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4201 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4203 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4205 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4207 * Makefile.am: Run "make dep-am"
4208 * Makefile.in: Regenerate.
4210 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4212 * config/tc-or32.c: New file.
4213 * config/tc-or32.h: New file.
4214 * configure.in: Add support for or32 targets.
4215 * configure: Regenerate.
4216 * config/obj-coff.c: Add support for or32 targets.
4217 * config/obj-coff.h: Add support for or32 targets.
4218 * Makefile.am: Add support for or32 targets.
4219 * Makefile.in: Regenerate.
4220 * NEWS: Mention support for OpenRISC.
4221 * doc/Makefile.in: Regenerate.
4222 * po/POTFILES.in: Regenerate.
4223 * po/gas.pot: Regenerate.
4225 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4227 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4230 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4232 * config/tc-mips.c (tc_gen_reloc): Arrange for
4233 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4234 their LO16 parts, even for ELF.
4236 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4238 * config/tc-i386.c: Protect definitions of true and false
4241 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4243 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4244 made because of .weak, if they are neither defined nor used in any
4247 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4249 * configure: Regenerated.
4251 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4253 * doc/Makefile.am (install): Depend on install-info.
4254 * doc/Makefile.in: Regenerate.
4256 2002-01-26 Nick Clifton <nick@redhat.com>
4258 * po/fr.po: Updated version
4260 2002-01-24 Kazu Hirata <kazu@hxi.com>
4262 * config/tc-h8300.c (check_operand): Don't print a warning
4263 when a valid 24-bit address is given to a 16-bit address
4266 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4268 * config/tc-sh.c (sh_elf_suffix): Removed.
4269 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4270 sh_end_of_match, sh_parse_name): New functions.
4271 (sh_elf_cons): Simplify.
4272 (parse_exp): Reject misplaced PIC operands.
4273 (md_undefined_symbol): Simplify.
4274 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4275 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4276 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4277 Complain if subsy remains at the end.
4278 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4279 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4281 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4283 * config/tc-mn10300.c (xr_registers): Move `pc'...
4284 (other_registers): ... here.
4286 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4288 * Makefile.am: Run "make dep-am".
4289 * Makefile.in: Regenerate.
4290 * gas/po/POTFILES.in: Regenerate.
4292 2002-01-21 DJ Delorie <dj@redhat.com>
4294 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4295 stabstr_name allocation permanent, as it will be referenced from
4298 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4300 * configure.in (ia64-*-netbsd*): New target.
4301 * configure: Regenerate.
4303 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4305 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4307 <Detailed description, ARM options>: Ditto.
4308 * doc/c-arm.texi (ARM Options): Ditto.
4310 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4312 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4313 do_mia, do_mar and do_mra respectively.
4314 (do_mav_*): Renamed from do_c_*.
4315 (mav_reg_required_here, mav_parse_offset): Renamed from
4316 cirrus_reg_required_here and cirrus_parse_offset respectively.
4317 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4319 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4320 Keith Walker <keith.walker@arm.com>
4322 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4323 (insns): Add pattern for bxj instruction.
4324 (do_bxj): New function.
4325 (arm_cpus): Add arm926ej.
4326 (arm_archs): Add armv5tej.
4328 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4330 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4332 2002-01-19 Keith Walker <keith.walker@arm.com>
4334 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4336 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4338 * NEWS: Mention new ARM command-line options and VFP support.
4340 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4342 (ARM_CEXT_MAVERICK): Similarly.
4343 (ARM_ANY): Now means any core instruction.
4344 (CPU_DEFAULT): Default to ARM_ANY.
4345 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4346 (pic_code): Declare for all object types. Make type int.
4347 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4348 (march_fpu_opt, mfpu_opt): Declare.
4349 (md_longopts): Tidy up conditional definitions.
4350 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4351 (arm_long_opts): New tables.
4352 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4353 (arm_parse_extension): New function.
4354 (md_parse_option): Rewrite using new table-driven system.
4355 (md_show_usage): Use new table-driven system.
4356 (md_begin): Calculate cpu_variant from command line option data.
4357 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4358 command-line options.
4359 * doc/c-arm.texi: Likewise.
4361 2002-01-18 Andreas Jaeger <aj@suse.de>
4363 * as.c (parse_args): Update year.
4365 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4367 * config/tc-tic54x.c (encode_address): Add a more informative
4368 warning about incorrect syntax.
4370 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4372 * po/gas.pot: Regenerate.
4374 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4376 * macro.c (get_any_string): Add no-c-format comment to prevent
4377 confusion when translating string.
4378 * gasp.c (get_any_string): Add no-c-format comment to prevent
4379 confusion when translating string.
4381 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4382 Johannes Stezenbach <js@convergence.de>
4383 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4384 matched before the shorter ones.
4385 (my_getSmallParser): Fix handling of nested parentheses in
4386 percent_op's. Code cleanup.
4387 (my_getPercentOp): New function, code from my_getSmallParser.
4388 (my_getSmallExpression): Fix handling of closing parentheses.
4389 Code cleanup. Better comments.
4391 2002-01-16 Nick Clifton <nickc@redhat.com>
4393 po/tr.po: New file: Turkish translation.
4394 configure.in (LINGUAS): Add "tr".
4395 configure: Regenerate.
4397 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4399 Support for VFP instructions
4400 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4401 (cp_address_required_here): New argument wb_ok. When false, do not
4402 accept write-back forms of addressing. Change all callers.
4403 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4404 (FPU_VFP_EXT_V2): Define.
4405 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4406 Define in terms of above.
4407 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4408 (vfp_reg): New struct.
4409 (vfp_regs): New array of registers.
4410 (insns): Add VFP instructions.
4411 (sn_table): New array of VFP single-precision register names.
4412 (dn_table): New array of VFP double-precision register names.
4413 (all_reg_maps): Add the new register tables.
4414 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4415 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4416 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4417 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4418 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4419 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4420 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4421 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4422 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4423 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4424 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4425 (do_vfp_sp_dp_cvt): New functions.
4426 (md_begin): Set soft-float flag for appropriate VFP work.
4427 (md_atof): Handle VFP-format doubles.
4428 (md_parse_option): Handle VFP command-line options.
4429 (md_show_usage): Display VFP command-line options.
4431 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4433 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4434 various command line options.
4436 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4438 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4440 (xstormy16_md_apply_fix3): Do not return a value.
4442 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4444 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4445 the -EL/-EB option that matches the target's endianness.
4446 (md_parse_option): Likewise.
4448 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4450 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4451 is not dependent on ARM_BI_ENDIAN.
4453 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4455 * tc-arm.c (all error messages): Normalize capitalization of messages.
4457 * tc-arm.h (md_operand): Delete define.
4458 * tc-arm.c (in_my_get_expression): New static variable.
4459 (my_get_expression): Set and clear it.
4460 (md_operand): New function. If called from my_get_expression
4461 put the error in inst.error.
4462 (output_inst): Now takes argument of instruction being assembled.
4463 Print it out with any error message.
4464 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4466 (end_of_line): Don't update inst.error if it is already set.
4468 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4470 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4471 op that can be translated into a mvn instruction.
4473 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4475 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4476 setting default md.flags.
4477 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4478 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4479 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4480 for 32 bit unwind info blocks.
4481 (generate_unwind_image): Add support for different types
4482 of unwind images (32 bits and/or big-endian).
4483 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4484 (ia64_target_format): Add support for hpux target formats.
4485 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4486 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4487 SHT_FINI_ARRAY elf section types.
4489 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4491 * tc-arm.c (struct reg_entry): Move before prototypes.
4492 (int_register, cp_register, fp_register): Delete.
4493 (reg_table): Delete. Replaced with ...
4494 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4495 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4496 (mav_dspsc_table): ... one table per register set.
4497 (arm_reg_hsh): Delete.
4498 (struct reg_map): New structure.
4499 (all_reg_maps): New array.
4500 (enum arm_reg_type): New enums.
4501 (build_reg_hsh): New function.
4502 (insert_reg_alias): Use hash table passed by caller. Adjust all
4504 (create_register_alias): New function, split out from ...
4505 (md_assemble): ... here.
4506 (md_begin): Build new register hash tables.
4507 (arm_reg_parse): New argument for the hash table to search. Adjust all
4509 (arm_reg_parse_any): New function.
4510 (co_proc_number): Look up the processor number in the processor hash
4512 (cirrus_regtype): Delete.
4513 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4514 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4515 (ARM_EXT_MAVERICKsc_register): Delete.
4516 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4517 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4519 (do_c_triple_4, do_c_triple_5): Delete.
4520 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4521 (do_c_quad_6): Delete.
4522 (do_c_quad_6[ab]): New functions.
4523 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4524 arguments to use new register parsing methods.
4525 (cirrus_reg_required_here): Likewise.
4526 (insns): Reclassify cirrus maverick worker functions.
4527 (cirrus_valid_reg): Delete.
4529 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4531 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4532 (sh*-*-netbsdelf*): New target.
4533 * configure: Regenerate.
4534 * tc-sh.h: Update copyright years.
4535 (TARGET_FORMAT): Add version for TE_NetBSD.
4537 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4539 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4542 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4544 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4545 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4547 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4549 * tc-mips.c (mips_cprestore_valid): New flag.
4550 (mips_frame_reg_valid): New flag.
4551 (macro) [M_JAL_2]: Check both flags.
4552 [M_JAL_A]: Likewise.
4553 (s_cprestore): Set mips_cprestore_valid.
4554 (tc_get_register): If setting mips_frame_reg, set
4555 mips_frame_reg_valid and clear mips_cprestore_valid.
4556 (s_mips_ent): Clear both flags.
4557 (s_mips_end): Clear both flags.
4559 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4561 * write.c (write_object_file): Make use of bfd_section_list_remove.
4562 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4563 * config/tc-mmix.c (mmix_frob_file): Likewise.
4565 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4567 * configure.in (i386-*-netbsdelf*): Collapse target into...
4568 (i386-*-netbsd*): ...this. Add support for x86-64.
4569 * configure: Regenerated.
4571 2002-01-03 matthew green <mrg@redhat.com>
4573 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4575 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4577 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4580 For older changes see ChangeLog-0001
4586 version-control: never