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