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