1 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
3 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
4 of .init and .fini sections for array initializers and finalizers.
6 2002-12-31 Chris Demetriou <cgd@broadcom.com>
8 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
9 the "+D" operand, which will be used only by the disassembler.
11 2002-12-30 Chris Demetriou <cgd@broadcom.com>
13 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
15 * configure: Regenerate.
16 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
17 (macro_build): Handle "K" operand.
18 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
19 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
20 (mips_ip): New variable "lastpos", and implement "+A", "+B",
21 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
22 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
23 (validate_mips_insn): Implement "+" as a way to extend the
24 allowed operands, and implement "K", "+A", "+B", and "+C"
26 (OPTION_MIPS32R2): New define.
27 (md_longopts): Add entry for OPTION_MIPS32R2.
28 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
29 (md_parse_option): Handle OPTION_MIPS32R2.
30 (s_mipsset): Reimplement handling of ".set mipsN" options
31 and add support for ".set mips32r2".
32 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
33 (md_show_usage): Document "-mips32r2" option.
34 * doc/as.texinfo: Document "-mips32r2" option.
35 * doc/c-mips.texi: Likewise.
37 2002-12-30 Dmitry Diky <diwil@mail.ru>
39 * configure.in: Add msp430 target.
40 * configure: Regenerate.
41 * Makefile.am: Add msp430 target.
42 * Makefile.in: Regenerate.
43 * config/tc-msp430.c: New file: msp430 assembler.
44 * config/tc-msp430.h: New file: target macros for msp430.
45 * doc/Makefile.am: Add msp430 target.
46 * doc/Makefile.in: Regenerate.
47 * doc/as.texinfo: Include msp430 documenation.
48 * doc/all.texi: Enable msp430 documentation.
49 * doc/c-msp430.texi: New file: document msp430 specific features
52 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
54 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
55 (dwarf2_finish): Use it.
56 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
57 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
59 2002-12-20 DJ Delorie <dj@redhat.com>
61 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
62 BFD_RELOC_XSTORMY16_12.
64 2002-12-19 Alan Modra <amodra@bigpond.net.au>
66 * doc/as.texinfo (Invoking): Typo fix.
67 * config/tc-tic54x.c (encode_operand): Comment typo fix.
69 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
71 * doc/c-alpha.texi: Fix typos.
72 * doc/c-arm.texi: Likewise.
73 * doc/c-d10v.texi: Likewise.
74 * doc/c-i370.texi: Likewise.
75 * doc/c-i960.texi: Likewise.
76 * doc/c-ia64.texi: Likewise.
77 * doc/c-mmix.texi: Likewise.
78 * doc/c-ns32k.texi: Likewise.
79 * doc/c-pdp11.texi: Likewise.
80 * doc/c-pj.texi: Likewise.
81 * doc/c-sh64.texi: Likewise.
82 * doc/c-sparc.texi: Likewise.
83 * doc/c-tic54x.texi: Likewise.
84 * doc/c-v850.texi: Likewise.
85 * doc/c-vax.texi: Likewise.
86 * doc/internals.texi: Likewise.
88 2002-12-18 Chris Demetriou <cgd@broadcom.com>
90 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
91 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
92 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
93 arrange not to issue warnings about use of AT when AT is not
96 2002-12-17 Nick Clifton <nickc@redhat.com>
98 * as.c (std_longopts): Duplicate --keep-locals entry in order to
99 prevent it being confused with -k.
101 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
103 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
104 has already been set up, use it.
106 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
108 * ChangeLog-9295: Fix a typo.
110 * config/tc-d10v.c: Fix a comment typo.
111 * config/tc-dlx.c: Likewise.
112 * config/tc-h8300.h: Likewise.
113 * config/tc-h8500.h: Likewise.
114 * config/tc-mips.c: Likewise.
115 * config/tc-s390.c: Likewise.
116 * config/tc-sh.h: Likewise.
117 * config/tc-tic80.h: Likewise.
118 * config/tc-w65.h: Likewise.
119 * config/tc-z8k.c: Likewise.
120 * config/tc-z8k.h: Likewise.
121 * testsuite/gas/h8300/cmpsi2.s: Likewise.
123 2002-12-16 Alan Modra <amodra@bigpond.net.au>
125 * config/tc-d30v.c (check_range): Warning fixes, formatting.
126 Simplify sign extension. Remove redundant unsigned < 0 test.
127 * config/tc-i960.c (md_ri_to_chars): Prototype.
128 * config/tc-mcore.c (md_pseudo_table): Fix typo.
129 (dump_literals): Init brarsym, and test later instead of isforce.
131 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
132 (parse): Constify line and lineptr.
133 (md_begin): Calculate endop here.
135 2002-12-13 Alan Modra <amodra@bigpond.net.au>
137 * config/obj-vms.c: Formatting. Include fnctl.h.
138 (Create_VMS_Object_File): Fix creat call for sane unix systems.
139 (Object_Record_Offset): Make it a size_t.
140 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
141 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
142 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
143 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
144 (vms_fixup_data_section <data_size>): Add here instead.
145 * config/e-criself.c: Fix typo in last change.
147 2002-12-13 Alan Modra <amodra@bigpond.net.au>
149 * write.c (write_object_file): Fix signed/unsigned warning.
150 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
151 * config/e-criself.c (criself_bfd_name): Prototype.
152 * config/obj-aout.c (s_sect): Remove unused function.
153 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
154 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
155 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
156 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
157 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
158 (VMS_RSYM_Parse <Current_Routine>): Likewise.
159 (vms_fixup_text_section <text_siz>): Likewise.
160 (synthesize_data_segment <data_size>): Likewise.
161 (vms_fixup_xtors_section <sect_no>): Likewise.
162 (structure_count): Don't use implicit int type.
163 * config/tc-a29k.c (insert_sreg): Prototype.
164 (define_some_regs): Prototype, make static.
165 (parse_operand): Likewise.
166 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
167 (md_show_usage <stream>): Likewise.
168 (md_section_align <segment>): Likewise.
169 (md_convert_frag <all args>): Likewise.
170 (md_estimate_size_before_relax <all args>): Likewise.
171 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
172 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
173 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
174 (md_undefined_symbol <name>): Likewise.
175 (md_convert_frag <all args>): Likewise.
176 (write_long <opcode>): Likewise.
177 (tc_gen_reloc <seg>): Likewise.
178 (md_estimate_size_before_relax <all args>): Likewise.
179 (md_apply_fix3 <seg>): Likewise.
180 (s_d30v_align <ignore>): Likewise.
181 (build_insn): Correct format string.
182 (md_apply_fix3): Likewise.
183 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
184 (md_undefined_symbol <name>): Likewise.
185 (md_convert_frag <all args>): Likewise.
186 (md_cgen_lookup_reloc <insn>): Likewise.
187 (md_begin): Delete unused vars.
188 (md_assemble): Likewise.
189 (md_estimate_size_before_relax): Likewise.
190 (fr30_relax_frag): #if 0 out, seems unused.
191 (md_atof): Remove declaration of atof_ieee.
192 (restore_colon): Prototype.
193 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
194 (frv_find_in_vliw): Likewise.
195 (frv_debug_tomcat): Likewise.
196 (frv_adjust_vliw_count): Likewise.
197 (frv_tomcat_shuffle): Likewise.
198 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
199 frv_find_in_vliw call.
200 (md_atof): Remove declaration of atof_ieee.
201 * config/tc-h8500.c (cons): Delete declaration.
202 (md_begin <opcode>): Constify.
203 (displacement_size, immediate_size, absolute_size): Remove.
204 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
205 (tc_crawl_symbol_chain <headers>): Likewise.
206 (md_undefined_symbol <name>): Likewise.
207 (tc_headers_hook <headers>): Likewise.
208 (md_parse_option <c,arg>): Likewise.
209 (md_show_usage <stream>): Likewise.
210 (md_convert_frag <headers, seg>): Likewise.
211 (tc_coff_symbol_emit_hook <ignore>): Likewise.
212 (md_atof): Remove declaration of atof_ieee.
213 (tc_aout_fix_to_chars): Remove unused function.
214 (parse_reg): Prototype.
215 (parse_exp): Prototype.
216 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
217 (parse_reglist): Prototype.
218 (get_operand): Prototype.
219 (get_operands): Prototype.
220 (get_specific): Prototype. Make "this_index" signed.
221 (check): Prototype, make static.
223 (build_relaxable_instruction): Prototype, make static.
224 (build_bytes): Prototype.
225 (wordify_scb): Prototype.
226 * config/tc-h8500.h (start_label): Declare.
227 (tc_coff_sizemachdep): Declare.
228 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
229 (i370_rmode <unused>): Likewise.
230 (i370_csect <unused>): Likewise.
231 (i370_dc <unused>): Likewise.
232 (i370_ds <unused>): Likewise.
233 (i370_elf_lcomm <unused>): Likewise.
234 (i370_ltorg <ignore>): Likewise.
235 (i370_using <ignore>): Likewise.
236 (i370_drop <ignore>): Likewise.
237 (i370_byte <ignore>): Likewise.
238 (i370_tc <ignore>): Likewise.
239 (md_estimate_size_before_relax <fragp, seg>): Likewise.
240 (md_convert_frag <all args>): Likewise.
241 (md_undefined_symbol <name>): Likewise.
242 (md_pcrel_from_section <sec>): Likewise.
243 (tc_gen_reloc <seg>): Likewise.
244 (i370_section_letter): #if 0 unused functions.
245 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
246 (symbol_locate): Prototype.
247 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
248 (md_number_to_disp, md_number_to_field): Remove.
249 (md_apply_fix3): Correct format string and cast "fup".
250 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
251 (s_endian <ignore>): Likewise.
252 (md_undefined_symbol <name>): Likewise.
253 (tc_crawl_symbol_chain <headers>): Likewise.
254 (tc_set_bal_of_call): Likewise.
255 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
256 (i960_handle_align <fragp>): Likewise.
257 (i960_validate_fix <this_segment_type>): Likewise
258 (tc_gen_reloc <section>): Likewise.
259 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
260 (struct memS, struct regop): Forward declare.
261 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
262 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
263 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
264 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
265 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
266 (md_chars_to_number, md_number_to_imm): Make static, prototype.
267 (md_number_to_field): Likewise.
268 (md_number_to_disp): Remove unused function.
269 (md_atof): Remove declaration of atof_ieee.
270 (md_apply_fix3): Correct md_number_to_imm call.
271 * config/tc-ip2k.c (md_assemble): Warning fix.
272 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
273 (fill_insn <ignore>): Likewise.
274 (debug_sym <ignore>): Likewise.
275 (md_undefined_symbol <name>): Likewise.
276 (m32r_scomm <ignore>): Likewise.
277 (md_convert_frag <abfd>): Likewise.
278 (md_cgen_lookup_reloc <insn>): Likewise.
279 (m32r_record_hi16 <seg>): Likewise.
280 (md_estimate_size_before_relax): #if 0 old_fr_fix.
281 (allow_m32rx): Prototype.
282 (first_writes_to_seconds_operands): Prototype.
283 (writes_to_pc): Prototype.
284 (can_make_parallel): Prototype.
285 (make_parallel): Prototype.
286 (target_make_parallel): Prototype.
287 (assemble_two_insns): Prototype.
288 (m32r_record_hi16): Prototype.
289 (md_atof): Remove declaration of atof_ieee.
290 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
291 (m32r_force_relocation): Prototype.
292 (m32r_elf_section_change_hook): Prototype.
293 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
294 (md_show_usage): Fix signed/unsigned warning.
295 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
296 (calcop): Ditto for reg_prefix var.
297 (hexval): Add cast to fix signed/unsigned warning.
298 (md_number_to_disp): Delete unused function.
299 (md_number_to_field): Likewise.
300 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
301 (match_name): Prototype.
302 (get_bf2): Prototype.
303 (get_bf_offset_expression): Prototype.
304 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
305 (md_undefined_symbol <ignore>): Likewise.
306 (md_create_short_jump <all args>): Likewise.
307 (md_create_long_jump <all args>): Likewise.
308 (md_convert_frag <abfd, sec>): Likewise.
309 (md_apply_fix3 <segment>): Likewise.
310 (md_section_align <segment>): Likewise.
311 (md_pcrel_from_section <sec>): Likewise.
312 (tc_gen_reloc <section>): Likewise.
313 (reg_m, reg_n, immediate): Delete unused vars.
314 (dump_literals): Fix signed/unsigned warning.
315 (enter_literal): Likewise.
316 (parse_imm): Likewise. Also fix format string.
317 (parse_mem): Remove unused var.
318 (md_assemble <LS>): Abort on unexpected inst.
319 (md_atof): Remove declaration of atof_ieee.
320 (md_parse_option): Remove unused vars.
321 (md_apply_fix3): Fix format strings, cast args.
322 (tc_gen_reloc): Delete unused var.
323 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
324 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
325 (md_undefined_symbol <name>): Likewise.
326 (md_convert_frag <abfd>): Likewise.
327 (tc_gen_reloc <seg>): Likewise.
328 (check_operand <insn>): Likewise.
329 (md_convert_frag): Fix format strings.
330 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
331 * config/tc-openrisc.c (ignore_pseudo): Prototype.
332 (md_atof): Remove declaration of atof_ieee.
333 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
334 (md_apply_fix3): Fix bogus >>='s.
335 (md_undefined_symbol): Delete unused var.
336 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
337 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
338 (fake_opcode): Adjust for pj_opc_int_t change.
339 (md_begin): Likewise.
340 (md_assemble): Likewise.
341 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
342 instead of non-existent third arg of parse_exp_save_ilp.
343 (md_parse_option): Correct "little" and "big" calls.
344 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
345 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
346 (tc_gen_reloc <section>): Likewise.
347 * config/tc-tic30.c: #include stdarg.h or varargs.h.
348 (debug): Rewrite using VA_* macros.
349 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
350 (md_convert_frag): Likewise.
351 (md_parse_option): Likewise.
352 (md_show_usage): Likewise.
353 (md_undefined_symbol): Likewise.
354 (tc_gen_reloc): Likewise.
355 (md_operand): Likewise.
356 (tc_aout_pre_write_hook): Delete.
357 (struct tic30_insn): Make "operands" unsigned.
358 (struct tic30_par_insn): Likewise.
359 (md_assemble): Likewise for "count", "i" and "numops".
360 (tic30_parallel_insn): Likewise for vars here.
361 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
362 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
363 * config/tc-tic80.c (obj_coff_section): Delete declaration.
364 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
365 (md_undefined_symbol): Likewise.
366 (md_parse_option): Likewise.
367 (md_convert_frag): Likewise.
368 (tc_coff_symbol_emit_hook): Likewise.
369 (md_atof): Remove declaration of atof_ieee.
370 (const_overflow): Warning fixes, tidy.
371 (get_operands): Delete unused vars.
372 (internal_error_a): Adjust format string to expect a long for arg.
373 (find_opcode): Warning fixes, simplify.
374 (build_insn): Cast internal_error_a arg.
375 (md_begin): Likewise.
376 (md_apply_fix3): Likewise.
377 (md_assemble): Delete unused var.
378 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
379 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
380 (whatreg, parse_reg, parse_exp): Make static, prototype.
381 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
382 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
383 (get_operand, get_operands, get_specific, newfix): Likewise.
384 (apply_fix, build_bytes): Likewise.
385 (md_atof): Remove declaration of atof_ieee.
386 (tc_aout_fix_to_chars): Delete.
387 (md_begin): Constify "opcode". Don't try to init opcode->idx.
389 (md_parse_option): Fix s_segm and s_unseg calls.
391 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
393 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
395 (RELAX_BRANCH_RELOC_S2): Delete.
396 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
397 Do not handle BFD_RELOC_16_PCREL.
398 (macro_build, mips_ip): Likewise.
399 (md_pcrel_from): Return 4 for undefined symbols regardless of
401 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
402 Don't dereference howto if no such relocation is available.
403 Do not apply hack for in-place zero addend in NEWABI.
404 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
406 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
407 Alan Modra <amodra@bigpond.net.au>
409 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
410 (TC_LINKRELAX_FIXUP): Add comments.
412 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
414 * config/tc-mn10300.c (set_arch_mach): Change argument type to
416 (r_register_name, xr_register_name): Add prototype declarations.
418 2002-12-08 H.J. Lu <hjl@gnu.org>
420 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
421 copied from tc-i386.c.
423 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
425 Fix Bug savannah/1825:
426 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
427 (md_relax_table): Define specific relax for PC-rel offsets.
428 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
429 (m68hc11_relax_frag): Handle the new relax code.
430 (md_convert_frag): Likewise.
431 (md_estimate_size_before_relax): Likewise.
433 2002-12-08 Alan Modra <amodra@bigpond.net.au>
435 * subsegs.c (section_symbol): Use the symbol, not the section, name.
437 2002-12-05 Richard Henderson <rth@redhat.com>
439 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
440 (ia64_gen_real_reloc_type): Handle it.
441 (pseudo_func): Add @ltoffx.
442 (md_begin): Build .<ltoffx>.
443 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
445 2002-12-05 Alan Modra <amodra@bigpond.net.au>
447 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
448 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
449 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
450 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
451 COFF to call arm_force_relocation.
453 2002-12-04 David Mosberger <davidm@hpl.hp.com>
455 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
457 (emit_one_bundle): Handle "hint" instruction.
458 (operand_match): Match IA64_OPND_AR_CSD.
460 2002-12-04 Alan Modra <amodra@bigpond.net.au>
462 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
465 2002-12-03 Nick Clifton <nickc@redhat.com>
467 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
468 .PPC.EMB.apuinfo sections.
470 2002-12-03 Richard Henderson <rth@redhat.com>
472 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
474 2002-12-03 Alan Modra <amodra@bigpond.net.au>
476 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
477 (cons, s_align_bytes): Delete declaration.
479 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
481 (dot): Delete unused function.
482 (w65_expression): Remove unused arg.
483 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
485 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
487 (get_specific): Prototype. Constify "struct opinfo *" arg and return
489 (check): Remove unused function.
490 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
491 on unhandled switch case.
492 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
494 (tc_crawl_symbol_chain): Delete unused function.
495 (tc_headers_hook): Likewise.
496 (tc_Nout_fix_to_chars): Likewise.
497 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
498 (md_parse_option): Likewise.
499 (md_convert_frag): Likewise.
500 (tc_coff_symbol_emit_hook): Likewise.
501 (md_show_usage): Likewise.
502 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
503 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
504 (w65_expression): Declare.
506 * po/POTFILES.in: Regenerate.
508 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
509 and ARM_ADRL_IMMEDIATE.
511 2002-12-02 Nick Clifton <nickc@redhat.com>
513 * gasp.c: Delete. It has been deprecated.
514 * NEWS: Mention that gasp has been removed.
515 * Makefile.am: Remove references to gasp.
516 * makefile.vms: Likewise.
517 * mpw-make.sed: Likewise.
518 * Makeile.in: Regenerate.
519 * doc/gasp.texi: Delete.
520 * doc/Makefile.am: Remove references to gasp.texi.
521 * doc/Makefile.in: Regenerate.
522 * macro.c: Delete references to gasp.
523 Remove use of comment_char function parameter as it is no longer
525 * macro.h: Update prototypes to remove comment_char parameter.
527 * read.c (read_a_source_file, s_irp): Remove comment_char
528 parameter from invocation of functions in macro.c
530 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
532 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
534 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
536 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
537 (tc_gen_reloc): Mark section param as not used.
539 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
541 Fix Bug savannah/1825:
542 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
543 that are not pc-relative.
544 (m68hc11_relax_frag): Declare.
546 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
547 the offsetable indexed addressing modes (n,r).
548 (build_insn): Cleanup some locals.
549 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
550 relaxation of difference between two symbols of same section.
551 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
552 only when this is a PC-relative operand and the offset is not absolute.
553 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
554 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
555 be handled by m68hc11_relax_frag.
557 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
559 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
560 (32-bit int, 64-bit double).
561 (md_longopts): New options -mshort, -mlong, -mshort-double and
562 -mlong-double to control the ABI.
563 (md_show_usage): Update.
564 (md_parse_option): Handle new options.
565 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
567 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
569 * symbols.c (report_op_error): New function, broken out of ...
570 (resolve_symbol_value): ... here. Use for both monadic and dyadic
573 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
575 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
576 for BFD_RELOC_32_PLT_PCREL.
578 2002-11-30 Alan Modra <amodra@bigpond.net.au>
580 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
581 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
582 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
583 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
584 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
585 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
586 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
587 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
588 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
589 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
590 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
591 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
592 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
593 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
594 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
595 TRUE/FALSE. Formatting.
597 2002-11-29 Nick Clifton <nickc@redhat.com>
599 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
600 assume a value of zero.
603 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
605 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
608 2002-11-29 Jakub Jelinek <jakub@redhat.com>
610 * config/tc-ia64.c (md_apply_fix3): Add default case.
612 2002-11-28 Jakub Jelinek <jakub@redhat.com>
614 * symbols.c (S_SET_THREAD_LOCAL): New function.
615 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
616 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
618 * config/tc-ia64.c (md_apply_fix3): Likewise.
619 * config/tc-alpha.c (md_apply_fix3): Likewise.
621 2002-11-28 Jakub Jelinek <jakub@redhat.com>
623 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
626 2002-11-26 DJ Delorie <dj@redhat.com.
628 * dwarf2dbg.c (scale_addr_delta): New.
629 (size_inc_line_addr): Use it.
630 (emit_inc_line_addr): Use it.
632 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
634 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
635 (md_assemble): Don't pass on branches to constants as relaxable.
638 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
640 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
642 2002-11-21 Randolph Chung <randolph@tausq.org>
644 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
645 only if they have default visibility.
647 2002-11-21 Richard Henderson <rth@redhat.com>
649 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
652 2002-11-21 Alan Modra <amodra@bigpond.net.au>
654 * config/tc-mcore.c (mcore_pool_count): New function.
655 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
657 2002-11-20 Klee Dienes <kdienes@apple.com>
659 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
660 coalesce the name fields to use the same pointer.
662 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
663 the name fields to use the same pointer.
664 (get_specific): Check for opcodes with the same name using strcmp
665 as well as comparing the pointer.
667 2002-11-20 Alan Modra <amodra@bigpond.net.au>
669 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
672 2002-11-19 Richard Henderson <rth@redhat.com>
674 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
675 visibility portion of st_other.
677 2002-11-19 Klee Dienes <kdienes@apple.com>
679 * config/tc-h8300.c (struct h8_instruction): New type, used to
680 wrap h8_opcodes with length, noperands, idx, and size fields
681 (computed at run-time).
682 (h8_instructions): New variable.
683 (md_begin): Allocate the storage for h8_instructions. Fill
684 h8_instructions with pointers to the appropriate opcode and the
685 correct value for the additional fields.
686 (clever_message): Update to use h8_instructions instead of
688 (build_bytes): Ditto.
689 (get_specific): Ditto.
690 (md_assemble): Ditto.
692 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
694 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
695 adjustments to symbols in merge sections.
697 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
699 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
701 2002-11-18 Kevin Buettner <kevinb@redhat.com>
703 * dwarf2dbg.h (dwarf2_format): New enum.
704 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
705 (out_debug_line, out_debug_info): Add code for handling 64-bit
707 * config/tc-mips.h (mips_dwarf2_format): Declare.
708 * config/tc-mips.c (mips_dwarf2_format): New function.
709 * doc/internals.texi (DWARF2_FORMAT): Document.
711 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
713 * config/tc-mips.c (s_change_section): Make sure input buffer
714 is not accessed past the end. Don't hand
715 obj_elf_change_section a pointer into the input buffer.
717 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
719 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
722 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
724 * config/tc-tic4x.c: Fixed proper commandline
725 parameters. Added support for new opcode-list format. General
726 error message fixups.
727 (c4x_inst_add): Reject insn not for our CPU
728 (md_begin): Added matrix for setting the proper opcode-level &
729 device-flags according to cpu type and revision. Rewrite the
731 (c4x_operand_parse): Fix opcode bug
732 (c4x_operands_match): New function argument. Added dry-run
733 mechanism, that is optional error generation. Added constraint 'i'
735 (c4x_insn_check): Added new function for post-verification of the
737 (md_assemble): Check all opcodes before croaking because of an
738 argument mismatch. Need this to be able to fully support
739 ortogonally arguments.
740 (md_parse_options): Revised commandprompt swicthes and added new
742 (md_show_usage): Complete rewrite of printout.
744 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
746 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
747 (c4x_operands_match): Added check for 8-bits LDF insn. Give
748 warning when using constant direct bigger than 2^16. Add the new
751 2002-11-11 Christopher Faylor <cgf@redhat.com>
753 * configure.in: Use .gdbinit under Cygwin.
754 * configure: Regenerate.
756 2002-11-11 Christopher Faylor <cgf@redhat.com>
758 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
761 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
763 * config/tc-tic4x.c: Declare as many functions as possible as
764 static. Maintenance on the general indenting. Removed unnecessary
765 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
766 function. Add support for new DSP, TMS320VC33. Fix bug for
767 converting flonum constants.
768 (c4x_do_align): Add proper align handling. Setup align to insert
770 (c4x_gen_to_words): Support for extended TI type floats.
771 (md_atof): Proper dumping of multiple-word littlenums.
772 (c4x_atof): Added support for extended TI type floats.
773 (c4x_stringer): Added new function to handle compact strings.
774 (c4x_emit_char): Added new function argument to handle custom
775 length inserts, like single-byte strings.
776 * config/tc-tic4x.h: Add proper align handling with NOP's.
777 * Makefile.am: Added tic4x dependecy
778 * Makefile.in: Regenerate
780 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
782 * macro.c (get_any_string): Correct logic for not going beyond end
785 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
787 * config/tc-mmix.c (get_putget_operands): Mark both possible
788 operands as invalid at beginning.
790 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
791 Initialize target of fixup to zero.
793 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
795 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
796 NEWABI, but we should still emit HI16_S for non-PIC n32.
798 2002-11-06 Richard Henderson <rth@redhat.com>
800 * config/tc-alpha.c (alpha_validate_fix): Move code ...
801 (alpha_fix_adjustable): ... here.
802 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
804 2002-11-07 Eric Kohl <ekohl@rz-online.de>
806 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
809 2002-11-05 H.J. Lu <hjl@gnu.org>
811 * config/tc-mips.c (support_64bit_objects): Check *l before it
814 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
816 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
817 SEC_LOAD flags for sections marked as 's'.
819 2002-11-01 Alan Modra <amodra@bigpond.net.au>
821 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
822 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
823 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
826 * dep-in.sed: Fix typo.
828 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
830 * configure.in: Update ARM CPU patterns.
831 * configure: Regenerated.
833 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
835 * itbl-lex.l: Use #include <> for generated headers.
836 * itbl-ops.c: Likewise.
838 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
840 * doc/gasp.texi: Fix typo in deprecation note.
842 2002-10-23 Nick Clifton <nickc@redhat.com>
844 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
845 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
847 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
849 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
850 (tc_frob_file_before_adjust): Don't define.
851 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
853 (mmix_frob_file_before_adjust): Remove ineffective function.
855 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
857 * config/tc-cris.c (SIMPLE_EXPR): New macro.
858 (cris_relax_frag): New function.
859 (md_estimate_size_before_relax) <case ENCODE_RELAX
860 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
861 expressions that will become absolute expressions to relaxation.
862 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
863 STATE_WORD)>: Expect only absolute expressions. Use the symbol
864 value, not distance to symbol.
865 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
866 Ditto. Correct placement of fixup.
867 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
869 * config/tc-cris.h (cris_relax_frag): Declare.
870 (md_relax_frag): Define.
872 2002-10-22 Alan Modra <amodra@bigpond.net.au>
874 * config/obj-elf.c (special_sections): Use correct types for init
876 (obj_elf_change_section): Don't mess with init array section type.
878 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
880 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
881 for relocs against symbols in a merged section.
883 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
885 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
886 table as register names.
888 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
890 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
893 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
895 * expr.c (operand): Add support for n.nn flonums.
897 2002-10-17 Johannes Stezenbach <js@convergence.de>
899 * itbl-parse.y (entry): Provide empty action.
901 2002-10-16 Alan Modra <amodra@bigpond.net.au>
903 * configure.in (BFDVER_H): Set and subst.
904 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
905 * Makefile.am: Run "make dep-am".
907 * configure: Regenerate.
908 * Makefile.in: Regenerate.
909 * doc/Makefile.in: Regenerate.
911 2002-10-15 Alan Modra <amodra@bigpond.net.au>
913 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
914 (MD_APPLY_SYM_VALUE): Define for PE too.
916 2002-10-14 Alan Modra <amodra@bigpond.net.au>
918 * Makefile.am: Run "make dep-am".
919 (CPU_OBJ_VALID): sh64 coff is invalid.
920 * as.c: #include "bfdver.h".
921 * Makefile.in: Regenerate.
922 * config.in: Regenerate.
924 2002-10-14 Momchil Velikov <velco@fadata.bg>
926 * config/tc-v850.c (CHECK_): Remove token pasting operator.
928 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
930 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
931 * configure: Regenerate.
933 2002-10-13 Eric Christopher <echristo@redhat.com>
934 Alexandre Oliva <aoliva@redhat.com>
936 * config/tc-mips.c (s_gpdword): New function.
937 (mips_pseudo_table): Add .gpdword.
938 (mips_need_elf_addend_fixup): never for NEWABI.
939 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
941 (s_cpadd): Generate .cpadd on NEWABI.
943 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
945 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
947 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
949 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
950 (md_relax_frag): Adjust macro.
951 * config/tc-mips.c (mips_relax_branch): New variable.
952 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
953 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
954 (RELAX_MIPS16_P): Adjust.
955 (append_insn): Emit branch to non-constant in a frag_var if
956 branch-relaxation is desirable and possible.
957 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
958 (OPTION_ELF_BASE): Adjust.
959 (md_parse_option): Handle new options.
960 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
962 (relaxed_branch_length): New function.
963 (md_estimate_size_before_relax): Handle branch frags.
964 (mips_relax_frag): Likewise.
965 (md_convert_frag): Handle branch frags. Warn if branch is
968 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
970 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
972 (md_apply_fix3): Add TLS relocs.
973 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
976 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
977 Alan Modra <amodra@bigpond.net.au>
979 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
980 (md_estimate_size_before_relax): Likewise for 8 bit branches.
982 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
984 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
987 2002-10-09 Richard Shann <richard.shann@superh.com>
988 Stephen Clarke <stephen.clarke@superh.com>
990 * config/tc-sh64.c (sh64_target_format): Add support for sh64
993 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
995 * contig/tc-sh.c (sh_local_pcrel): New.
996 (sh_force_relocation): Use sh_local_pcrel.
997 (md_pcrel_from_section): Check the relocation type whether it
998 should be resolved locally. Use S_FORCE_RELOC.
1000 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1002 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1003 (TC_FORCE_RELOCATION): Tidy arg.
1005 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1006 Ken Raeburn <raeburn@cygnus.com>
1007 Aldy Hernandez <aldyh@redhat.com>
1008 DJ Delorie <dj@redhat.com>
1009 Michael Meissner <meissner@redhat.com>
1010 Eric Christopher <echristo@redhat.com>
1011 Richard Sandiford <rsandifo@redhat.com>
1013 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1014 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1015 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1016 (hilo_interlocks): True for CPU_VR5500.
1017 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1018 (mips_fix_vr4122_bugs): New.
1019 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1020 (mips_emit_delays): Likewise.
1021 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1022 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1023 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1024 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1025 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1026 (OPTION_ELF_BASE): Bump.
1027 (md_parse_option): Handle the new options.
1028 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1031 2002-09-29 H.J. Lu <hjl@gnu.org>
1033 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1034 twice if howto->pcrel_offset is true.
1036 2002-09-28 Matt Thomas <matt@3am-software.com>
1037 Jason Thorpe <thorpej@wasabisystems.com>
1039 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1040 convert undefined references to GOT32/PLT32 if PIC code is
1041 requested. Fix comment.
1043 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1045 * config/tc-sh.c (sh_force_relocation): Return 0 for
1046 some PC relative relocations when not relaxing.
1048 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1050 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1051 Define them if not BFD_ASSEMBLER.
1052 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1054 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1055 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1056 (tc_gen_reloc): Handle x86-64 TLS relocs.
1058 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1060 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1061 fixups to current or absolute section.
1063 2002-09-26 Jim Wilson <wilson@redhat.com>
1065 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1068 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1070 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1071 capable configuration.
1072 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1074 (mips_ip): Likewise.
1076 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1078 * config/tc-mips.c (append_insn): Fix jump overflow check.
1080 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1082 * config/tc-i386.c (process_operands): Warn about "lea" segment
1085 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1087 * write.c: Delete set_segment_vma and prototype. Update all callers.
1089 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1091 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1092 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1093 Rename "fseg" to "sym_seg".
1094 * Makefile.am: Run "make dep-am".
1095 * Makefile.in: Regenerate.
1096 * doc/Makefile.in: Regenerate.
1098 2002-09-20 Nick Clifton <nickc@redhat.com>
1100 * symbols.c (colon): Do not allow symbols to be created in the
1101 absolute section if WORKING_DOT_WORD is not defined and
1102 new_broken_words would require a new frag to be created.
1104 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1106 * expr.c (expr): Simplify foo-foo here.
1107 (clean_up_expression): Remove O_subtract code.
1109 * write.h (struct fix): Add fx_dot_value.
1110 (dot_value): Declare.
1111 * write.c (dot_value): New var.
1112 (fix_new_internal): Save dot_value as fx_dot_value.
1113 (fixup_segment): Adjust fx_offset using fx_dot_value.
1114 * expr.c (expr): Update dot_value.
1116 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1118 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1119 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1120 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1122 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1123 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1124 BFD_RELOC_386_TLS_GOTIE.
1126 2002-09-19 Richard Henderson <rth@redhat.com>
1128 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1130 (alpha_force_relocation): Don't special-case branch type relocs.
1132 2002-09-19 Nick Clifton <nickc@redhat.com>
1134 * config/tc-m68k.c (select_control_regs): Handle situation where
1135 architecture has not yet been selected.
1137 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1139 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1140 (IS_SEXT_16BIT_NUM): New macro.
1141 (macro_build_ldst_constoffset): New function, to build a set of
1142 instructions to do a load or store from a constant offset relative
1143 to a given register.
1144 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1145 .cprestore pseudo-op.
1147 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1149 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1151 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1153 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1155 2002-09-17 Stan Cox <scox@redhat.com>
1157 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1158 (macro): Likewise for la. Likewise for ld.
1159 (mips_after_parse_args): Make -xgot optional, not the default.
1160 (md_apply_fix3): Allow composite relocation to set up gp.
1161 (tc_gen_reloc): Allow relaxing for newabi.
1162 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1163 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1165 2002-09-17 Nick Clifton <nickc@redhat.com>
1167 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1168 BFD_RELOC_ARM_IMMEDIATE has been done.
1169 (tc_gen_reloc): Do not issue reloc number of unimplemented
1170 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1171 their name is already in the error message - plus remove them
1172 from the default case.
1174 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1175 behavior of instructions.
1177 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1179 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1180 Convert functions to K&R format.
1182 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1184 * config/tc-mips.c (pdr_seg): Define only for ELF.
1185 (s_change_section): Remove unused variable. Don't use for nonELF.
1187 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1189 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1191 * config/obj-elf.h (obj_elf_change_section): Likewise.
1193 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1195 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1196 (out_debug_info): Likewise.
1198 2002-09-16 Bruno Haible <bruno@clisp.org>
1200 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1201 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1202 * config/tc-i386.c (i386_target_format): Likewise.
1203 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1204 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1206 2002-09-13 Nick Clifton <nickc@redhat.com>
1208 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1209 when deciding if any operands have been skipped.
1211 2002-09-11 Nick Clifton <nickc@redhat.com>
1213 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1215 * po/tr.po: Updated Turkish translation.
1217 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1219 * config/tc-i386.c (md_apply_fix3): Allow addend for
1220 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1221 BFD_RELOC_386_TLS_LE_32.
1223 2002-09-05 Jeff Law <law@redhat.com>
1225 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1226 marker relocations such as ENTRY/EXIT.
1227 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1228 to both OBJ_ELF and OBJ_SOM.
1230 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1232 * doc/internals.texi (md_apply_fix3): Expand.
1233 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1234 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1235 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1236 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1237 EXTERN_FORCE_RELOC): Document.
1238 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1239 * as.h: Don't include struc-symbol.h for arc.
1241 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1242 subtract absolute symbol.
1243 * obj.h (struct format_ops): Add frob_file_before_fix.
1244 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1245 * symbols.c (S_FORCE_RELOC): New function.
1246 * symbols.h (S_FORCE_RELOC): Declare.
1247 * write.c (TC_FORCE_RELOCATION): Change default.
1248 (TC_FORCE_RELOCATION_ABS): Define.
1249 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1250 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1251 (TC_FORCE_RELOCATION_SECTION): Don't define.
1252 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1253 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1254 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1255 (TC_VALIDATE_FIX_SUB): Define.
1256 (TC_FIX_ADJUSTABLE): Don't define.
1257 (MD_APPLY_SYM_VALUE): Define this instead.
1258 (abs_section_sym): New variable.
1259 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1260 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1261 Don't put the absolute section sym on fixups here.
1262 (fix_segment): New function.
1263 (write_relocs): Don't call fixup_segment from here.
1264 (write_object_file): Instead call tc_frob_file_before_fix,
1265 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1266 Don't output the absolute section symbol.
1267 (fixup_segment): Rewrite.
1268 * write.h (abs_section_sym): Declare.
1269 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1271 (aout_format_ops): Adjust to suit.
1272 * config/obj-aout.h (obj_frob_file): Don't define.
1273 (obj_frob_file_before_fix): Define.
1274 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1275 (S_FORCE_RELOC): Define.
1276 * config/obj-bout.h (S_FORCE_RELOC): Define.
1277 * config/obj-coff.c (coff_format_ops): Init new field.
1278 * config/obj-coff.h: Formatting fixes.
1279 (obj_sec_sym_ok_for_reloc): Define.
1280 (S_FORCE_RELOC): Define.
1281 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1282 (ecoff_frob_file): .. from here.
1283 (ecoff_format_ops): Add new function.
1284 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1285 (obj_frob_file_before_fix): Define.
1286 * config/obj-elf.c (elf_format_ops): Init new field.
1287 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1288 * config/obj-ieee.h: Formatting fixes.
1289 (S_FORCE_RELOC): Define.
1290 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1291 * config/obj-vms.h (S_FORCE_RELOC): Define.
1292 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1293 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1294 for BFD_RELOC_32 and BFD_RELOC_64.
1295 (alpha_fix_adjustable): Remove extern and weak tests.
1296 (alpha_before_fix): Rename from alpha_adjust_symtab.
1297 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1298 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1299 (TC_VALIDATE_FIX): Tweak param name.
1300 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1301 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1302 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1303 (MD_APPLY_SYM_VALUE): Define.
1304 (tc_adjust_symtab): Don't define.
1305 (alpha_adjust_symtab): Don't declare.
1306 (tc_frob_file_before_fix): Define.
1307 (alpha_before_fix): Declare.
1308 (TC_INIT_FIX_DATA): Tweak param names.
1309 * config/tc-arc.c: Include "struc-symbol.h".
1310 (md_pcrel_from): Remove undefined sym fudge.
1311 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1312 Don't set fx_addnumber.
1313 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1314 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1315 (EXTERN_FORCE_RELOC): Define.
1316 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1317 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1318 (arm_validate_fix): Return void.
1319 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1320 Add plt and got reloc tests.
1321 (arm_force_relocation): Call S_FORCE_RELOC.
1322 * config/tc-arm.h (struct fix): Forward declare.
1323 (TC_VALIDATE_FIX): No longer set add_symbolP.
1324 (arm_validate_fix): Adjust declaration.
1325 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1326 (TC_FORCE_RELOCATION): Tweak param name.
1327 (TC_INIT_FIX_DATA): Likewise.
1328 (obj_fix_adjustable): Don't define.
1329 (tc_fix_adjustable): Call arm_fix_adjustable.
1330 (TC_FIX_ADJUSTABLE): Don't define.
1331 (MD_APPLY_SYM_VALUE): Define.
1332 (EXTERN_FORCE_RELOC): Define.
1333 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1334 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1335 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1336 Remove *valP fudges and code to subtract abs sym. Don't set
1338 * config/tc-avr.h: Formatting.
1339 (EXTERN_FORCE_RELOC): Define.
1340 (MD_APPLY_SYM_VALUE): Define.
1341 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1342 (md_apply_fix3): Remove code to subtract abs sym.
1343 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1344 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1345 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1346 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1347 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1348 (tc_fix_adjustable): Remove extern, weak tests.
1349 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1350 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1351 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1352 and code to subtract abs sym.
1353 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1354 (d10v_force_relocation): Call S_FORCE_RELOC.
1355 * config/tc-d10v.h: Don't include write.h.
1356 (struct fix): Instead, forward declare.
1357 (MD_PCREL_FROM_SECTION): Tweak param names.
1358 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1359 (d10v_fix_adjustable): Likewise.
1360 (obj_fix_adjustable): Don't define.
1361 (tc_fix_adjustable): Define.
1362 (TC_FORCE_RELOCATION): Tweak param name.
1363 (MD_APPLY_SYM_VALUE): Define.
1364 (EXTERN_FORCE_RELOC): Define.
1365 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1366 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1367 and code to subtract abs sym.
1368 * config/tc-d30v.h: Don't include write.h.
1369 (struct fix): Instead, forward declare.
1370 (MD_PCREL_FROM_SECTION): Tweak param names.
1371 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1372 (MD_APPLY_SYM_VALUE): Define.
1373 (EXTERN_FORCE_RELOC): Define.
1374 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1375 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1376 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1377 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1378 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1379 Don't use fx_addnumber.
1380 * config/tc-dlx.h: Don't include write.h.
1381 (md_convert_frag): We're not alpha twice over.
1382 (EXTERN_FORCE_RELOC): Define.
1383 (obj_fix_adjustable): Don't define.
1384 (tc_fix_adjustable): Define.
1385 (TC_FIX_ADJUSTABLE): Don't define.
1386 (MD_APPLY_SYM_VALUE): Define.
1387 (LOCAL_LABELS_DOLLAR): Undef always.
1388 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1389 (fr30_fix_adjustable): Remove extern, weak tests.
1390 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1391 (obj_fix_adjustable): Don't define.
1392 (tc_fix_adjustable): Define.
1393 (struct fix): Forward declare.
1394 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1395 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1396 (frv_fix_adjustable): Don't do extern, weak tests.
1397 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1398 (TC_FIX_ADJUSTABLE): Don't define.
1399 (obj_fix_adjustable): Don't define.
1400 (tc_fix_adjustable): Define.
1401 (struct fix): Forward declare.
1402 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1403 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1404 * config/tc-h8300.h (struct fix): Forward declare.
1405 (EXTERN_FORCE_RELOC): Define.
1406 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1407 (hppa_fix_adjustable): Don't test extern or weak. Don't
1408 symbol_mark_used_in_reloc.
1409 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1411 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1412 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1413 (TC_FORCE_RELOCATION_SECTION): Don't define.
1414 (MD_APPLY_SYM_VALUE): Define.
1415 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1416 to subtract abs sym.
1417 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1418 (MD_APPLY_SYM_VALUE): Define.
1419 (MD_PCREL_FROM_SECTION): Tweak param name.
1420 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1421 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1422 (i386_force_relocation): New function.
1423 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1424 (TC_VALIDATE_FIX): Likewise.
1425 (TC_FIX_ADJUSTABLE): Don't define.
1426 (MD_APPLY_SYM_VALUE): Define.
1427 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1428 (i386_force_relocation): Declare.
1429 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1430 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1431 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1432 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1433 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1434 (EXTERN_FORCE_RELOC): Define.
1435 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1436 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1437 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1438 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1439 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1440 Remove #if 0 code. Invert return boolean.
1441 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1442 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1443 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1444 (tc_coff_sizemachdep): Prototype.
1445 (i960_handle_align): Likewise.
1446 (i960_validate_fix): Adjust declaration.
1447 (reloc_callj): Likewise.
1448 (EXTERN_FORCE_RELOC): Define.
1449 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1450 (TC_FORCE_RELOCATION_ABS): Define.
1451 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1452 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1453 (TC_FIX_ADJUSTABLE): Don't define.
1454 (MD_APPLY_SYM_VALUE): Define.
1455 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1456 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1457 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1458 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1459 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1460 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1461 (MD_APPLY_SYM_VALUE): Define.
1462 (EXTERN_FORCE_RELOC): Define.
1463 (TC_FORCE_RELOCATION): Tweak param name.
1464 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1465 (m32r_fix_adjustable): Don't test extern, weak.
1466 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1467 (MD_APPLY_SYM_VALUE): Define.
1468 (obj_fix_adjustable): Don't define.
1469 (tc_fix_adjustable): Define.
1470 (tc_frob_file): Don't define.
1471 (tc_frob_file_before_fix): Define.
1472 (EXTERN_FORCE_RELOC): Define.
1473 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1474 BFD_RELOC_VTABLE_ENTRY address.
1475 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1476 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1477 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1478 Remove duplicated fx_done code.
1479 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1480 (EXTERN_FORCE_RELOC): Define.
1481 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1483 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1484 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1485 (TC_FIX_ADJUSTABLE): Don't define.
1486 (EXTERN_FORCE_RELOC): Define.
1487 (MD_APPLY_SYM_VALUE): Define.
1488 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1489 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1490 Remove fx_addsy tests.
1491 (mcore_force_relocation): Call S_FORCE_RELOC.
1492 (mcore_fix_adjustable): Don't test fx_addsy.
1493 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1494 (EXTERN_FORCE_RELOC): Define.
1495 (obj_fix_adjustable): Don't define.
1496 (tc_fix_adjustable): Define.
1497 (MD_APPLY_SYM_VALUE): Define.
1498 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1499 (mips_pic): No longer static.
1500 (mips_force_relocation): Call S_FORCE_RELOC.
1501 (mips_fix_adjustable): Remove extern, weak tests.
1502 * config/tc-mips.h (enum mips_pic_level): Declare.
1503 (mips_pic): Declare.
1504 (tc_frob_file): Don't define.
1505 (tc_frob_file_before_fix): Define this instead.
1506 (EXTERN_FORCE_RELOC): Define.
1507 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1508 with reg_section tests. Set fx_done instead of calling
1509 symbol_clear_used_in_reloc on bad relocs.
1510 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1511 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1512 (mmix_adjust_symtab): Simplify list handling. Abort on any
1514 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1515 BFD_RELOC_MMIX_LOCAL.
1516 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1517 (EXTERN_FORCE_RELOC): Define.
1518 (MD_PCREL_FROM_SECTION): Tweak param name.
1519 (tc_frob_file): Don't define.
1520 (tc_frob_file_before_fix): Define this instead.
1521 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1522 Remove SEC_CODE checks.
1523 (mn10300_fix_adjustable): Remove extern and weak tests.
1524 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1525 (TC_FORCE_RELOCATION): Tweak param name.
1526 (obj_fix_adjustable): Don't define.
1527 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1528 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1529 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1530 (openrisc_fix_adjustable): Don't test fx_addsy.
1531 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1532 (obj_fix_adjustable): Don't define.
1533 (tc_fix_adjustable): Define this instead.
1534 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1535 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1536 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1537 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1538 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1539 (MD_APPLY_SYM_VALUE): Define.
1540 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1541 Don't subtract symbol value.
1542 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1543 (EXTERN_FORCE_RELOC): Define.
1544 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1545 (MD_APPLY_SYM_VALUE): Define.
1546 (obj_fix_adjustable): Don't define.
1547 (tc_fix_adjustable): Define this instead.
1548 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1550 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1551 (ppc_force_relocation <elf version>): New.
1552 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1553 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1554 comments. Don't subtract fx_subsy as that is already done.
1555 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1556 (MD_PCREL_FROM_SECTION): Likewise.
1557 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1558 ppc_force_relocation.
1559 (TC_FORCE_RELOCATION_SECTION): Delete.
1560 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1561 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1562 (MD_APPLY_SYM_VALUE): Define.
1563 * config/tc-s390.c: #include "dwarf2dbg.h".
1564 (s390_insn): Remove excess parens.
1565 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1566 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1567 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1568 non-NULL. Don't subtract off fx_addsy value.
1569 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1570 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1571 (TC_FIX_ADJUSTABLE): Don't define.
1572 (MD_APPLY_SYM_VALUE): Define.
1573 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1574 (SWITCH_TABLE): Likewise.
1575 (sh_force_relocation): Call S_FORCE_RELOC.
1576 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1577 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1578 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1579 fx_addnumber is zero on entry. Save val in fx_addnumber.
1580 (tc_gen_reloc): Don't subtract fx_subsy.
1581 * config/tc-sh.h (struct fix): Move.
1582 (obj_fix_adjustable): Don't define.
1583 (tc_fix_adjustable): Define this instead.
1584 (TC_FIX_ADJUSTABLE): Don't define.
1585 (MD_APPLY_SYM_VALUE): Define.
1586 (SWITCH_TABLE_CONS): Define.
1587 (SWITCH_TABLE): Define.
1588 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1589 (TC_VALIDATE_FIX_SUB): Define.
1590 (MD_PCREL_FROM_SECTION): Tweak param name.
1591 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1592 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1593 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1594 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1595 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1596 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1597 (TC_VALIDATE_FIX_SUB): Define.
1598 (MD_PCREL_FROM_SECTION): Tweak param name.
1599 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1600 (tc_gen_reloc): Use S_FORCE_RELOC.
1601 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1602 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1603 (TC_FORCE_RELOCATION_ABS): Define this instead.
1604 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1605 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1606 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1607 (MD_APPLY_SYM_VALUE): Define.
1608 (TC_FIX_DATA_PRINT): Tweak param name.
1609 * config/tc-tic30.c (USE_STDOUT): Don't define.
1610 (md_parse_option): Remove stupid debug code.
1611 (tc_gen_reloc): Don't use fx_addnumber.
1612 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1613 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1614 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1615 (tc_fix_adjustable): Define this instead.
1616 (TC_FIX_ADJUSTABLE): Don't define.
1617 (MD_APPLY_SYM_VALUE): Define this instead.
1618 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1619 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1620 (TC_FIX_ADJUSTABLE): Don't define.
1621 (MD_APPLY_SYM_VALUE): Define this instead.
1622 (tc_fix_adjustable): Remove extern and weak tests.
1623 * config/tc-w65.h (struct fix): Forward declare.
1624 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1626 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1627 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1628 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1630 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1631 (MD_APPLY_SYM_VALUE): Define.
1632 (obj_fix_adjustable): Don't define.
1633 (tc_fix_adjustable): Define this instead.
1634 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1636 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1638 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1639 (ppc_fix_adjustable <coff version>): Cleanup.
1641 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1642 (md_parse_option): No -a64 without BFD64.
1643 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1644 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1646 2002-09-04 Nick Clifton <nickc@redhat.com>
1648 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1649 instructions into the hash table if the target cpu is the BookE32.
1651 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1653 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1656 2000-08-28 Catherine Moore <clm@redhat.com>
1658 * tc-v850.c (v850_relax): Declare.
1659 (v850_longcode): New routine.
1660 (v850_handle_align): New routine.
1661 (md_pseudo_table): Add longcall and longjump.
1662 (md_parse_option): Check for relax option.
1663 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1664 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1665 (md_apply_fix3): Likewise.
1666 (v850_force_relocation): Likewise.
1667 (v850_comm): Change the current section.
1668 (md_assemble): Ensure that the correct value is put in the
1670 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1671 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1672 Remove redundant v850ea support.
1673 * tc-v850.h (HANDLE_ALIGN): Define.
1674 (v850_handle_align): Declare.
1675 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1677 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1679 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1680 * configure: Regenerate.
1681 * NEWS: Mention new port.
1683 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1685 * config/obj-coff.c: Add sdef definition.
1686 * config/obj-coff.h: Add tic4x include file and set
1688 * config/tc-tic4x.c: New file.
1689 * config/tc-tic4x.h: New file.
1691 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1693 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1694 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1695 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1696 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1697 (RELOC_ENUM): Define.
1698 (fix_new_internal): Use RELOC_ENUM.
1699 (fix_new, fix_new_exp): Likewise.
1700 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1701 Replace gotos with continue.
1702 (write_relocs): Formatting. Avoid symbol loops in
1703 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1704 errors, and error number in other cases.
1705 (fixup_segment): Remove param names from prototype. Rename
1706 "this_segment_type" to "this_segment". Update linkrelax comment.
1707 Remove "size, "place" and "where" local vars. Formatting. Update
1708 "no symbol" comment. Remove #if 0 and #if 1.
1710 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1712 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1714 * dwarf2dbg.c: Always include dwarf2dbg.h.
1715 (dwarf2_directive_file): Adjust dummy version args.
1716 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1717 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1718 when symbol values differ.
1719 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1720 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1721 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1723 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1725 * config/tc-w65.c (md_section_align): Fix typo.
1726 (md_parse_option): Return 0, not 1.
1728 2002-08-22 Nick Clifton <nickc@redhat.com>
1730 * doc/as.texinfo (Section): Note that if '@' is a comment
1731 character then another symbol is used to prefix the section's
1734 2002-08-22 Christian Groessler <chris@groessler.org>
1736 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1739 2002-08-12 Graeme Peterson <gp@qnx.com>
1741 * configure.in: Add support for sh-**-nto* target.
1742 * configure: Regenerate.
1744 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1746 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1748 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1750 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1752 (ppc_apuinfo_section_add): Define only if format is ELF.
1753 (md_assemble): Emit APUinfo section only if format is ELF.
1756 2002-08-21 Alan Modra <amodra@bigpond.net.au>
1758 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1759 * config/tc-frv.c: Likewise.
1760 * config/tc-hppa.c: Likewise.
1761 * config/tc-ia64.c: Likewise.
1762 * config/tc-ip2k.c: Likewise.
1763 * config/tc-m68hc11.c: Likewise.
1764 * config/tc-m68k.c: Likewise.
1765 * config/tc-mmix.c: Likewise.
1766 * config/tc-mn10300.c: Likewise.
1767 * config/tc-sh.c: Likewise.
1768 * config/tc-sparc.c: Likewise.
1769 * config/tc-v850.c: Likewise.
1771 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
1773 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1776 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1778 From matthew green <mrg@redhat.com>
1780 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1781 PPC_OPCODE_PPC is, except for BookE architectures.
1782 (md_parse_option): Add support for -mspe.
1783 (md_show_usage): Add -mspe.
1784 (md_parse_option): Add support for -me500 and
1785 -me500x2 to generate code for Motorola e500 core complex.
1786 (md_show_usage): Add -me500 and -me500x2.
1788 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1789 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1790 PPC_APUINFO_BRLOCK): New macros.
1792 (ppc_cleanup): New function.
1793 (ppc_apuinfo_section_add): New function.
1795 (md_assemble): Collect info and write the APUinfo section.
1797 * config/tc-ppc.h (md_cleanup): Define.
1798 (ppc_cleanup): Export.
1799 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1801 2002-08-17 Stan Cox <scox@redhat.com>
1803 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1804 config/tc-mips.c (s_change_section): New function to support
1805 IRIX .section pseudo-op.
1807 2002-08-16 Nick Clifton <nickc@redhat.com>
1809 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1811 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1813 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1814 the fix-up against on the right frag.
1815 (s_cpsetup): Likewise. Parse third argument as expression, to
1816 handle global symbols and forward/backward labels correctly.
1818 2002-08-14 Nick Clifton <nickc@redhat.com>
1820 * read.c (stringer): Catch attempts to create strings in the abs
1823 * config/tc-alpha.c: Fix compiling for COFF targets.
1824 Some minor formatting tidyups.
1826 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1828 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1829 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1830 according to the reloc.
1831 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1832 (TC_FORCE_RELOCATION): Define.
1833 (tc_m68hc11_force_relocation): Declare.
1835 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1836 (s_m68hc11_relax): New function for relax group.
1837 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1838 beginning of jump instruction.
1839 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1840 address computation.
1841 (tc-gen_reloc): Update.
1842 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1844 (tc_m68hc11_force_relocation): New function, handle new relocs.
1845 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1846 reloc for the linker relax pass.
1847 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1850 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1852 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1853 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1854 (s_m68hc11_mode): New function for .mode pseudo op.
1855 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1857 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1858 (m68hc11_elf_final_processing): Declare.
1860 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1862 * config/tc-m68hc11.c (md_begin): Take into account additional
1863 page operand for call instruction.
1864 (print_opcode_format): Likewise.
1865 (check_range): Likewise for page range checking.
1866 (get_operand): Don't skip a possible comma in operands.
1867 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1868 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1869 (fixup24): New to handle call reloc.
1870 (build_insn): Handle missing page operand for call instruction.
1872 (md_apply_fix3): Take into account new relocs.
1873 (get_operand): Fix the mode for indexed indirect addressing.
1874 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1876 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1878 * config/tc-mips.c (mips_ip): Don't work out the value of
1879 constant %hi()s here.
1881 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1883 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1884 for ELF, and don't bother checking ELF relocs when non-ELF.
1885 (i386_immediate): Allow absolute_section expressions for aout.
1886 (i386_displacement): Likewise. Also test bfd_is_com_section.
1887 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1888 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1889 not when fx_addsy. Remove dead code.
1891 2002-08-09 Graeme Peterson <gp@qnx.com>
1893 * configure.in: Add support for ppc-*-nto* target.
1894 * configure: Regenerate.
1896 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1898 * config/tc-i386.h: Reorganize.
1900 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1902 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1903 immediate offset in "dla" and "la" expansions.
1905 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1907 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1908 Remove "bfd_gas=yes" from target table when covered later.
1909 Consolidate some entries.
1910 * configure: Regenerate
1912 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1914 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1915 at start of insn, pass it to output_disp and output_imm.
1916 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1917 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1919 (output_imm): Added arguments. Compute properly addend for
1921 (md_apply_fix3): Remove R_386_GOTPC handling.
1923 2002-08-06 George France <france@handhelds.org>
1925 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1926 and m21264b processor names and cpu types.
1927 * doc/c-alpha.texi: Documented new types.
1929 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1931 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1933 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1935 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1936 handling to BFD_RELOC_MIPS16_GPREL.
1938 2002-08-01 Nick Clifton <nickc@redhat.com>
1940 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1941 pool is computed using signed arithmetic so that proper sign
1942 extension is performed if X_add_number is a 64-bit integer.
1944 2002-08-01 H.J. Lu <hjl@gnu.org>
1945 Daniel Jacobowitz <drow@mvista.com>
1947 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1948 .debug_line section unless it has line information.
1950 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1952 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1953 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1954 Allow default displacement size to be an option "--disp-size-default".
1955 (md_number_to_disp): Make error messages include value. Use %d to
1956 print integers, not %s.
1957 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1958 get duplicate messages sometimes.
1959 (convert_iif): Grow frag to max possible instruction size. Avoid
1960 creating unnecessary fixes.
1961 (md_number_to_field) Add prototype.
1962 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1963 prototypes and make static.
1964 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1965 (evaluate_expr): Use resultP argument instead of exprP global.
1966 (get_addr_mode): Quiten compiler warnings.
1967 (encode_operand): eliminate unused variables. Quiten compiler
1968 warnings. Eliminate nul character in format strings.
1969 (parse): argc is unsigned.
1970 (reloc): Type cast index to quieten compiler.
1971 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1972 (md_convert_frag): Note unused parameters. Remove unused
1974 (md_create_long_jump, md_create_short_jump,
1975 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1978 2002-07-31 Nick Clifton <nickc@redhat.com>
1980 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1981 of the PDP-11 and 2.11BSD a.out support.
1983 2002-07-31 Momchil Velikov <velco@fadata.bg>
1985 * config/tc-v850.c (md_assemble): Fix range check for immediate
1988 2002-07-30 Chris Demetriou <cgd@broadcom.com>
1990 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1991 to Broadcom SB-1 core support.
1993 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1995 * config/tc-mips.c (mips_target_format): Fix formatting.
1996 Add recognition of n32 ABI formats.
1998 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2000 * tc-mips.c (load_address): Don't clobber $at when loading a
2001 64-bit address in non-PIC code if noat is in effect.
2004 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2006 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2007 used in division/multiply macro expansions similarly to how they
2008 are used in the variants with break instructions.
2011 2002-07-30 Graeme Peterson <gp@qnx.com>
2013 * configure.in: Add support for arm-*-nto target.
2014 * configure: Regenerate.
2016 2002-07-30 Nick Clifton <nickc@redhat.com>
2018 * config/tc-arm.c (struct literal_pool): Add fields to allow
2019 multiple literal pools to be maintained.
2020 (find_literal_pool): New function.
2021 (find_or_make_literal_pool): New function.
2022 (add_to_literal_pool): Use find_or_make_literal_pool.
2023 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2025 (s_ltorg): Use find_literal_pool.
2026 (arm_cleanup): Dump all literal pools.
2027 * doc/c-arm.texi: Document new behaviour of only dumping literal
2030 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2032 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2033 rather than PPC_OPCODE_32 for powerpc64*.
2035 2002-07-25 Nick Clifton <nickc@redhat.com>
2037 * po/es.po: Updated Spanish translation.
2038 * po/fr.po: Updated French translation.
2040 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2042 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2043 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2044 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2045 * configure, config.in: Regenerate.
2046 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2047 (mips_set_options): Remove "abi" field.
2048 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2051 (mips_arch_string, mips_arch_info): New vars.
2052 (mips_tune_string, mips_tune_info): New vars.
2053 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2054 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2055 (mips_isa_to_str, mips_cpu_to_str): Remove.
2056 (mips_ip): If the selected architecture is a generic ISA rather
2057 than a processor, only mention the ISA level in error messages.
2058 (OPTION_MCPU): Remove.
2060 (md_longopts): Add -mfp64, remove -mcpu.
2061 (mips_set_option_string): New fn.
2062 (md_parse_option): Make -mipsN update file_mips_isa rather than
2063 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2064 Don't let -mgp32 and -mfp32 change the ABI.
2065 (show): Move to end of file. Constify string argument.
2066 (md_show_usage): Move to the end of the file. Read available
2067 architectures from mips_cpu_info_table.
2068 (mips_set_architecture): New fn.
2069 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2070 is an alias for -march=mipsN. Don't change the ABI based on other
2071 flags. Infer the register size from the ABI as well as the
2072 architecture. Complain about more conflicting arguments.
2073 Unify logic with GCC.
2074 (s_mipsset): Don't change the ABI.
2075 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2076 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2077 "mipsN"-type entries. Remove entries that vary only in the
2078 manufacturer's prefix, or that have "000" replaced by "k".
2079 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2080 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2081 (mips_parse_cpu): New fn.
2082 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2083 (mips_cpu_info_from_isa): Minor formatting tweak.
2085 2002-07-24 Nick Clifton <nickc@redhat.com>
2087 * po/sv.po: Updated Swedish translation.
2088 * po/es.po: Updated Spanish translation.
2090 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2092 * Makefile.am: Run "make dep-am".
2093 * Makefile.in: Regenerate.
2094 * doc/Makefile.in: Regenerate.
2095 * config.in: Regenerate.
2096 * po/POTFILES.in: Regenerate.
2098 2002-07-23 Nick Clifton <nickc@redhat.com>
2100 * po/fr.po: Updated French translation.
2102 2002-07-23 Nick Clifton <nickc@redhat.com>
2104 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2107 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2109 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2110 instead of S_IS_EXTERN.
2111 (md_estimate_size_before_relax): Likewise.
2112 (mips_fix_adjustable): Likewise.
2114 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2116 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2118 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2119 Nick Clifton <nickc@redhat.com>
2121 * cond.c (s_ifdef): Treat a referenced but not yet defined
2122 symbol as if it were undefined, in exactly the same way as
2125 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2126 consider referenced bug not yet defined symbols to be
2129 2002-07-18 Denis Chertykov <denisc@overta.ru>
2130 Frank Ch. Eigler <fche@redhat.com>
2131 Alan Lehotsky <alehotsky@cygnus.com>
2132 John Healy <jhealy@redhat.com>
2133 Jeff Johnston <jjohnstn@redhat.com>
2135 * configure.in: Add ip2k configuraton.
2136 * configure: Regenerate.
2137 * Makefile.am: Add ip2k configuraton.
2138 * Makefile.in: Regenerate.
2139 * configure: Regenerate.
2140 * Makefile.in: Regenerate.
2141 * config/tc-ip2k.c: New file.
2142 * config/tc-ip2k.h: New files.
2143 * NEWS: Mention new support.
2144 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2145 * doc/Makefile.in: Regenerate.
2146 * doc/all.texi: Set IP2K
2147 * doc/as.texinfo: Add IP2K description.
2148 * doc/c-ip2k.texi: New file.
2150 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2152 * NEWS: Reformat to match style of other NEWS files.
2154 2002-07-17 Jan Hubicka <jh@suse.cz>
2156 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2158 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2160 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2162 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2164 * NEWS: Add 'Changes in 2.13'.
2166 2002-07-15 Matt Fredette <fredette@netbsd.org>
2168 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2170 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2172 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2173 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2176 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2178 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2179 (ppc_frob_file_before_adjust): New function.
2180 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2181 (ppc_elf_frob_symbol): Don't declare.
2182 (tc_frob_file_before_adjust): Define.
2183 (ppc_frob_file_before_adjust): Declare.
2185 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2186 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2189 (ppc_xcoff64): Rename to ppc_obj64.
2190 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2191 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2192 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2194 (ppc_target_format): Use ppc_obj64 to select format.
2195 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2196 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2197 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2198 (tc_frob_symbol): Likewise.
2199 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2200 BFD_DEFAULT_TARGET_SIZE.
2202 (ppc_is_toc_sym): Likewise.
2203 (md_apply_fix3): Likewise.
2204 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2205 BFD_DEFAULT_TARGET_SIZE.
2206 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2207 (tc_frob_symbol): Likewise.
2209 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2211 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2212 (mips_ip): Likewise.
2214 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2216 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2217 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2218 (md_apply_fix3): Formatting. Remove redundant test.
2219 (tc_gen_reloc): Remove redundant code.
2220 (tc_i386_force_relocation): Delete. Movy body of function to..
2221 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2223 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2225 * configure.in: Add hppa-*-openbsd* target, change
2226 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2228 * configure: Regenerate.
2230 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2232 * config/tc-mips.c (macro): Shift the 32-bit address range
2233 accessible with a lone "lui" down by 32768.
2235 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2237 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2238 instead of "dadd" in address calculations.
2241 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2243 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2245 (md_assemble): Instead, zap the suffix here.
2247 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2249 * NEWS: Remove next release number until the release is actually
2252 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2254 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2256 * Makefile.in: Regenerate.
2258 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2260 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2261 to symbols in merge sections, even non pc-relative ones.
2263 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2265 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2267 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2269 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2270 .softregs and .eeprom.
2272 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2274 * NEWS: Note the next release is 2.13.
2276 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2278 * po/tr.po: New translation imported.
2280 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2282 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2283 (ecoff_directive_def): Likewise.
2284 (ecoff_directive_tag): Likewise.
2285 * listing.c (file_info): Likewise.
2286 * hash.c (what): Likewise.
2288 2002-06-25 H.J. Lu <hjl@gnu.org>
2290 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2291 * Makefile.in: Regenerated.
2293 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2295 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2296 (assemble_ppi): Generate warning if the same register is used
2297 twice as destination in the same padd / pmuls instruction.
2299 2002-06-18 Dave Brolley <brolley@redhat.com>
2301 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2302 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2303 * configure.in: Support frv-*-*.
2304 * Makefile.am (CPU_TYPES): Add frv.
2305 (TARGET_CPU_CFILES): Add tc-frv.c.
2306 (TARGET_CPU_HFILES): Add tc-frv.h.
2307 (DEPTC_frv_coff): New variable.
2308 (DEPTC_frv_elf): New variable.
2309 (DEPOBJ_frv_coff): New variable.
2310 (DEPOBJ_frv_elf): New variable.
2311 (DEP_frv_coff): New variable.
2312 (DEP_frv_elf): New variable.
2313 * tc-frv.c: New file.
2314 * tc-frv.h: New file.
2316 2002-06-17 Catherine Moore <clm@redhat.com>
2318 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2320 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2322 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2324 2002-06-17 Tom Rix <trix@redhat.com>
2326 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2328 2002-06-14 H.J. Lu <hjl@gnu.org>
2329 Daniel Jacobowitz <drow@mvista.com>
2331 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2332 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2333 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2334 and new_logical_line for the first .file directive.
2335 * read.c (s_app_file_string): New function.
2336 (s_app_file): Call it.
2337 * read.h (s_app_file_string): Add declaration.
2339 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2341 * configure.in: Remove MIPS_STABS_ELF.
2342 * configure: Regenerated.
2343 * config.in: Regenerated.
2344 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2346 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2348 (pdr_seg): Declare unconditionally.
2349 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2350 (s_mips_end): Likewise. Generate stabs function markers.
2351 (s_mips_ent): Generate stabs function markers.
2352 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2354 (s_mips_mask): Likewise.
2355 (mips_flag_mdebug): New.
2356 (md_longopts): Add "mdebug" and "no-mdebug".
2357 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2358 (mips_after_parse_args): Set mips_flag_mdebug.
2359 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2361 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2363 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2364 value twice for RELA relocations.
2366 2002-06-12 Ben Elliston <bje@redhat.com>
2368 * symbols.c (resolve_symbol_value): Initialise final_val.
2370 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2372 2002-06-11 Tom Rix <trix@redhat.com>
2374 * config/tc-ppc.c (ppc_subseg_align): Delete.
2375 (ppc_change_csect): Default csect align is 2.
2376 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2378 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2380 * config/tc-avr.c (mcu_types): Update.
2382 2002-06-08 Matt Thomas <matt@3am-software.com>
2384 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2385 (vax-*-netbsd*): New targets.
2386 * configure: Regenerate.
2387 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2388 * config/tc-vax.c: Add support for ELF and PIC.
2389 (flag_want_pic): New flag.
2390 (float_cons): Fix prototype.
2391 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2392 (md_assemble): Introduce a new is_absolute local, and use it
2393 rather than repeating the test. Make fatal errors actually
2394 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2395 Add support for ELF. Add support for PIC.
2396 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2397 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2399 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2400 optional for a.out, and not allowed for VMS. Adjust all callers.
2401 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2402 (md_create_long_jump): Likewise.
2403 (md_undefined_symbol): Likewise.
2404 (md_section_align): Likewise.
2405 (md_shortopts): Allow -k and -K for ELF.
2406 (md_parse_option): Set flag_want_pic if -k or -K.
2407 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2408 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2409 * config/tc-vax.h (tc_headers_hook): Remove.
2410 (TARGET_FORMAT): Set according to object format and target
2412 (BFD_ARCH, TARGET_ARCH): Define.
2413 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2414 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2415 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2416 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2418 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2420 * Makefile.am: Run "make dep-am".
2421 * Makefile.in: Regenerate.
2423 * as.c: Replace CONST with const.
2424 * write.c: Likewise.
2425 * config/obj-coff.c: Likewise.
2426 * config/tc-a29k.c: Likewise.
2427 * config/tc-arm.c: Likewise.
2428 * config/tc-dlx.c: Likewise.
2429 * config/tc-h8300.c: Likewise.
2430 * config/tc-h8500.c: Likewise.
2431 * config/tc-i370.c: Likewise.
2432 * config/tc-i860.c: Likewise.
2433 * config/tc-i960.c: Likewise.
2434 * config/tc-m68hc11.c: Likewise.
2435 * config/tc-m68k.c: Likewise.
2436 * config/tc-m88k.c: Likewise.
2437 * config/tc-mcore.c: Likewise.
2438 * config/tc-mips.c: Likewise.
2439 * config/tc-ns32k.c: Likewise.
2440 * config/tc-pdp11.c: Likewise.
2441 * config/tc-pj.c: Likewise.
2442 * config/tc-s390.c: Likewise.
2443 * config/tc-sh.c: Likewise.
2444 * config/tc-sparc.c: Likewise.
2445 * config/tc-tahoe.c: Likewise.
2446 * config/tc-tic80.c: Likewise.
2447 * config/tc-v850.c: Likewise.
2448 * config/tc-vax.c: Likewise.
2449 * config/tc-w65.c: Likewise.
2450 * config/tc-z8k.c: Likewise.
2452 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2454 Based on patch from Matt Green:
2455 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2456 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2457 (s_mips_loc): New function.
2458 (mips_nonecoff_pseudo_table): Call them.
2459 (append_insn): Call dwarf2_emit_insn.
2461 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2463 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2465 (file_ase_mips16): New veriable.
2466 (mips_eabi64): Remove.
2467 (CPU_HAS_MIPS16): New define.
2468 (CPU_HAS_MDMX): Fix data type.
2469 (md_begin): Code cleanup. Use file_ase_mips16.
2470 (mips_elf_final_processing): Handle mips16 header flag.
2471 Handle EABI flag without intermediate variable.
2473 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2475 * doc/as.texinfo: Update MIPS documentation.
2477 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2479 * config/tc-mips.c: Add define for $zero register.
2480 (md_begin): Add $zero as alias name for $0.
2481 (insn_uses_reg): Use ZERO define.
2482 (mips_ip): Add $zero as alias name for $0.
2483 (mips16_ip): Likewise.
2484 (s_cplocal): Demand empty rest of input line.
2485 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2486 names. Use ZERO define. Fix input_line_pointer progress.
2488 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2490 * symbols.c: Replace CONST by const throughout.
2491 (symbol_find_exact): Split out from..
2492 (symbol_find_base): ..here.
2493 * symbols.h: Replace CONST by const throughout.
2494 (symbol_find_exact): Declare.
2495 * config/obj-elf.c: #include "struc-symbol.h".
2496 (elf_frob_file): If group name matches an exported symbol, use that
2497 symbol for the signature and ".group" as the section name.
2499 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2501 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2504 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2506 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2507 and mips_opts.ase_mdmx if they are uninitialized.
2509 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2511 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2512 (hppa_force_relocation): Check if a stub just before the start symbol
2513 of the last call_info is reachable before forcing relocation. Fix
2516 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2518 * config/tc-mips.c (mips_after_parse_args): New function.
2519 (md_begin): Move processing of defaults to mips_after_parse_args.
2520 config/tc-mips.h (md_after_parse_args): Define.
2522 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2524 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2525 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2526 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2527 * configure: Regenerate.
2528 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2531 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2533 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2535 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2537 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2538 linkonce flag. Print all warnings.
2539 (obj_elf_section): Parse ",comdat" for groups.
2540 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2541 consistency of comdat flag.
2543 2002-06-02 Richard Henderson <rth@redhat.com>
2545 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2546 with LITERALs without sequence numbers.
2548 2002-06-01 Richard Henderson <rth@redhat.com>
2550 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2551 Rename them LITUSE_ALPHA_*.
2553 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2555 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2556 accept parentheses enclosed register lists.
2558 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2560 * Makefile.am: Run "make dep-am".
2561 * Makefile.in: Regenerate.
2562 * po/POTFILES.in: Regenerate.
2564 2002-05-31 Graeme Peterson <gp@qnx.com>
2566 * configure.in: Add i386-*-nto-qnx*.
2567 * configure: Regenerate.
2569 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2571 * config/tc-mips.c (mips_ip): Use unsigned long values for
2574 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2576 * config/tc-mips.c (s_cpsetup): Fix initialization of
2577 mips_cpreturn_register and mips_cpreturn_offset.
2579 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2581 * config/tc-mips.c (s_cpsetup): Fix comment.
2583 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2585 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2586 (mips_ip): Likewise.
2587 (mips16_ip): Likewise.
2588 (tc_get_register): Likewise.
2590 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2591 Ed Satterthwaite <ehs@broadcom.com>
2593 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2594 (mips_opts): Initialize "ase_mdmx" member.
2595 (file_ase_mdmx): New variable.
2596 (CPU_HAS_MDMX): New macro.
2597 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2598 based on command line options and configuration defaults.
2599 (macro_build): Note in comment that use of MDMX in macros is
2600 not currently allowed.
2601 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2602 "Z" MDMX operand types.
2603 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2604 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2606 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2607 Add support for "-mdmx" and "-no-mdmx" options.
2608 (OPTION_ELF_BASE): Move to accomodate new options.
2609 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2610 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2611 file_ase_mdmx was set.
2612 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2613 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2616 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2618 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2619 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2620 command line switch conforming to gcc conventions.
2621 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2623 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2625 * config/tc-mips.c (macro_build_jalr): New Function.
2626 (md_begin): NewABI uses big GOTs.
2627 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2628 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2629 (load_address): Add some NewABI PIC support.
2631 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2632 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2634 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2636 * config/tc-mips.c (load_address): Use mips_gp_register instead
2637 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2639 (macro): Use mips_gp_register instead of hardcoded value.
2641 2002-05-30 Richard Henderson <rth@redhat.com>
2643 * expr.h (operatorT): Add O_md17..O_md32.
2644 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2645 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2646 O_tprelhi, O_tprello, O_tprel): New.
2647 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2648 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2649 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2650 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2651 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2652 (md_apply_fix3): Handle TLS relocations.
2653 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2654 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2655 associated TLS reloc. Check lituse_tls relocs match up.
2656 (emit_insn): Handle TLS relocations.
2659 * doc/c-alpha.texi: Add docs for tls relocations.
2661 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2663 * config/tc-mips.c (mips_gprel_offset): New variable.
2664 (s_gpvalue): Use it.
2666 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2668 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2669 write-write conflicts.
2670 (md_assemble): Reformat introductory comment.
2671 (parallel_ok): Prevent packing only if the first
2672 instruction cannot be packed.
2674 2002-05-30 Jason Eckhardt <jle@redhat.com>
2675 Tom Rix <trix@redhat.com>
2677 * config/tc-d10v.c (build_insn): Check for immediates.
2679 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2681 * config/tc-mips.c: Replace GP in comments by $gp.
2682 (mips_big_got): Initialize.
2683 (mips_trap): Initialize.
2684 (load_address): Use mips_gp_register instead of hardcoded value.
2685 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2686 (macro): Use mips_gp_register instead of hardcoded value.
2687 (macro2): Change load_address calls.
2688 (md_pcrel_from): Comment formatting.
2689 (s_cpload): Use mips_gp_register instead of hardcoded value.
2690 (s_cprestore): Likewise. Comment formatting.
2691 (s_gpword): Fix data type.
2692 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2693 (nopic_need_relax): Replace GP in comments by $gp.
2694 (mips_elf_final_processing): Better comment.
2696 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2698 * configure.in: Add DLX configuraton
2699 * Makefile.am: Add DLX configuraton
2700 * configure: Regenerate.
2701 * Makefile.in: Regenerate.
2702 * config/tc-dlx.c: New file.
2703 * config/tc-dlx.h: New files.
2704 * NEWS: Mention new support.
2706 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2708 * config/obj-coff.c (write_object_file): Add missing semicolon.
2710 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2712 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2713 by the define. Remove superfluous check of mips_opts.mips16.
2714 (append_insn): Likewise. Canonicalize variable increments.
2715 (macro_build): Canonicalize variable increments.
2716 (macro_build_lui): Likewise.
2717 (load_register): Likewise.
2718 (load_address): Move pointer initialization.
2719 (macro): Move pointer to a more local scope. Canonicalize variable
2720 increments. Better comments. Replace magic constant for RA by the
2722 (macro2): Replace magic constant for RA by the define. Canonicalize
2723 variable increments.
2724 (mips_ip): Canonicalize variable increments.
2725 (mips16_ip): Replace magic constant for RA by the define.
2726 (my_getSmallParser): Canonicalize variable increments/decrements.
2727 (my_getPercentOp): Likewise.
2728 (my_getSmallExpression): Likewise.
2729 (s_align): Likewise.
2730 (s_mipsset): Likewise.
2731 (s_cpsetup): Likewise.
2732 (s_insn): Remove superfluous check of mips_opts.mips16.
2733 (s_mips_stab): Likewise.
2734 (mips_handle_align): Canonicalize variable increments.
2735 (s_mips_ent): Likewise.
2736 (s_mips_end): Add comment.
2738 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2740 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2741 * configure: Regenerate.
2743 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2745 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2746 * Makefile.in: Regenerate.
2747 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2748 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2749 * configure: Regenerate.
2750 * as.h: Use #include "" instead of <> for local header files.
2751 * flonum-konst.c: Likewise.
2752 * flonum-mult.c: Likewise.
2754 * listing.c: Likewise.
2755 * config/tc-ia64.h: Likewise.
2756 * config/tc-v850.h: Likewise.
2758 2002-05-24 TAMURA Kent <kent@netbsd.org>
2760 * configure.in: Add a target for i386-netbsdpe.
2761 * configure: Regenerate.
2763 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2765 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2766 (obj_elf_common): Call elf_common.
2767 (obj_elf_tls_common): New function.
2768 (elf_pseudo_tab): Support .tls_common.
2769 (special_sections): Add .tdata and .tbss.
2770 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2772 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2773 (obj_elf_parse_section_letters): Include T in error message.
2774 * config/tc-ppc.c (ppc_section_letter): Likewise.
2775 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2776 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2778 * config/tc-sparc.c (md_apply_fix3): Likewise.
2779 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2780 Define them if not BFD_ASSEMBLER.
2781 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2783 (md_apply_fix3): Add TLS relocs.
2784 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2785 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2786 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2787 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2788 (ia64_elf_section_letter): Include T in error message.
2789 (md_begin): Support TLS operators.
2790 (md_operand): Likewise.
2791 (ia64_gen_real_reloc_type): Support TLS relocs.
2792 * write.c (adjust_reloc_syms): Don't change symbols in
2793 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2795 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2797 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2798 round the relocation up rather than down.
2800 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2802 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2804 * doc/as.texinfo: Document that the COFF version of .section
2805 ignores the 'a' flag.
2807 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2809 * config/tc-alpha.c (assemble_tokens): Protect use of
2810 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2812 * write.c (size_seg): Check adjustment to last frag.
2813 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2815 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2816 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2817 (write_object_file): Invoke md_do_align if available, and use
2818 frag_align_code on text sections.
2819 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2820 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2821 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2822 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2823 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2826 2002-05-22 H.J. Lu <hjl@gnu.org>
2828 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2831 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2833 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2836 2002-05-22 H.J. Lu <hjl@gnu.org>
2838 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2839 for one .loc for compiler.
2841 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2843 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2846 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2848 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2849 Optimize the rotate by zero case.
2851 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2853 * configure.in: Remove accidental enabling of bfd_gas=yes for
2855 * configure: Regenerate.
2857 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2859 * app.c: Fix formatting.
2861 * ehopt.c: Likewise.
2863 * input-file.c: Likewise.
2864 * listing.c: Likewise.
2865 * macro.h: Likewise.
2866 * stabs.c: Likewise.
2867 * symbols.c: Likewise.
2869 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2871 * config/obj-generic.c: Delete file.
2872 * config/obj-generic.h: Likewise.
2874 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2876 * config/tc-avr.c (mcu_types): Update for new devices.
2878 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2880 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2882 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2884 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2885 worked sometimes by accident. Fix copy&paste comment.
2887 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2889 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2890 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2891 (mips_elf_final_processing): Let n32 use .reginfo.
2893 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2895 * config/tc-mips.c (append_insn): Fix too small range of variable.
2897 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2899 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2900 listing_prev_line().
2902 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2904 * config/tc-arm.c (md_assemble): Remove redundant call to
2907 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2910 * stabs.c (s_stab_generic): Fix grammatical error in warning
2913 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2915 * write.c (subsegs_finish): Don't specially align last subseg.
2917 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2919 * stabs.c (s_stab_generic): Warn about a description field that is
2922 * config/obj-coff.c: Fix compile time warnings when compiling
2923 without BFD_ASSEMBLER defined.
2926 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2928 (md_pcrel_from_section): Use md_pcrel_from().
2930 2002-05-11 Bruno Haible <bruno@clisp.org>
2932 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2933 by dwarf2_directive_loc, instead of calling dwarf2_where.
2935 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2937 * config/obj-coff.h: Fix formatting.
2938 * config/tc-mcore.c: Likewise.
2939 * config/tc-mn10300.c: Likewise.
2940 * config/tc-openrisc.c: Likewise.
2941 * config/tc-or32.c: Likewise.
2942 * config/tc-pdp11.c: Likewise.
2943 * config/tc-ppc.c: Likewise.
2944 * config/tc-ppc.h: Likewise.
2945 * config/tc-sh64.c: Likewise.
2946 * config/tc-sh.c: Likewise.
2947 * config/tc-tic54x.c: Likewise.
2948 * config/tc-xstormy16.c: Likewise.
2949 * config/tc-xstormy16.h: Likewise.
2951 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2953 * config/obj-coff.c: Fix formatting.
2954 * config/obj-elf.c: Likewise.
2955 * config/tc-alpha.c: Likewise.
2956 * config/tc-arm.c: Likewise.
2957 * config/tc-d10v.c: Likewise.
2958 * config/tc-d30v.c: Likewise.
2959 * config/tc-h8300.c: Likewise.
2960 * config/tc-hppa.c: Likewise.
2962 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2964 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2965 reloc when no_cond_jump_promotion.
2967 2002-05-08 Jim Wilson <wilson@redhat.com>
2969 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2970 current variable part of frag.
2972 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2974 * config/tc-mmix.c: Fix formatting.
2975 * config/tc-mmix.h: Likewise.
2977 2002-05-08 Alan Modra <amodra@bigpond.net.au>
2979 * configure: Regenerate.
2981 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2983 * config/tc-m68k.c: Fix formatting.
2985 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2987 * Makefile.am: Honour DESTDIR.
2988 * Makefile.in: Regenerate.
2990 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2992 * config/tc-ia64.c: Fix formatting.
2993 * config/tc-ia64.h: Likewise.
2995 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2997 * config/tc-mips.c: Fix formatting.
2998 * config/tc-s390.c: Likewise.
2999 * config/tc-s390.h: Likewise.
3001 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3003 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3004 information for instructions.
3006 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3008 * as.h: Fix formatting.
3011 * dwarf2dbg.c: Likewise.
3012 * frags.h: Likewise.
3014 * macro.c: Likewise.
3016 * stabs.c: Likewise.
3017 * symbols.c: Likewise.
3019 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3021 * app.c (mri_pseudo): Only declare for TC_M68K.
3023 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3024 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3025 BFD_RELOC_16_BASEREL.
3026 (md_assemble): Likewise.
3027 (md_apply_fix3): Likewise.
3029 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3031 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3032 zero into an add of zero - it is not the same.
3034 2002-05-01 Arati Dikey <aratid@kpit.com>
3036 * tc-sh.c (get_specific): Generate warning if the same
3037 destination register is used in parallel instructions.
3039 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3041 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3043 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3045 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3046 backwards to prevent cascading errors.
3048 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3050 * configure.in: Add support for powerpc-*-windiss.
3051 * configure: Regenerated.
3053 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3055 * config/tc-s390.c (md_parse_option): Formatting.
3057 * config/tc-i386.c: Formatting fixes, add missing space in error
3060 2002-04-24 Christian Groessler <chris@groessler.org>
3062 * config/tc-z8k.c (build_bytes): Add support for new cases:
3063 CLASS_IGNORE and ARG_NIM4.
3064 (md_assemble): Prevent destruction of input_line_pointer if
3065 get_operands returns failure.
3067 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3069 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3070 instructions to be generated by macros.
3072 2002-04-24 Andreas Schwab <schwab@suse.de>
3074 * config/tc-i386.c (output_jump, output_disp)
3075 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3077 (md_apply_fix3): Remember addend value for rela relocations.
3078 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3080 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3082 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3083 from previous change.
3085 2002-04-22 Eric Christopher <echristo@redhat.com>
3087 * config/tc-mips.c (macro_build): Add warning if macro instructions
3088 are expanded into a branch delay slot.
3090 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3092 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3093 numbers, gdb relies on them to detect the start of the prologue.
3095 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3097 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3098 symbols in merge sections.
3100 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3102 * as.c (main): Don't reference _bfd_chunksize.
3104 2002-04-15 Tom Rix <trix@redhat.com>
3106 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3107 symbols in merge sections.
3109 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3111 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3112 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3113 argument for the precision.
3114 (gen_to_words): Update accordingly.
3116 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3118 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3119 BFD_VERSION_STRING unavailable.
3120 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3122 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3124 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3125 symbol_used_in_reloc_p is true.
3127 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3130 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3132 * dep-in.sed: Cope with absolute paths.
3133 * Makefile.am (dep.sed): Subst TOPDIR.
3135 * Makefile.in: Regenerate.
3137 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3139 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3140 (mips_ip): Remove unused variable.
3141 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3142 unsigned char with bfd_byte.
3143 (s_file): Remove unused variable.
3144 (s_mips_ent): Likewise.
3146 2002-04-03 Tom Rix <trix@redhat.com>
3148 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3150 (find_opcode): Fix warning in as_warn.
3151 * config/tc-d10v.h: Update Copyright.
3153 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3154 Tom Rix <trix@redhat.com>
3156 From Jeff Knaggs <jknaggs@redhat.com>
3157 * config/tc-d10v.c (check_resource_conflict): New function to
3158 check for resource conflicts.
3160 From Jason Eckhardt <jle@redhat.com>
3161 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3163 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3164 reserved control registers is used.
3165 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3168 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3169 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3170 instruction cannot be packed.
3172 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3173 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3174 write-write conflicts.
3175 (md_assemble): Reformat introductory comment.
3176 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3179 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3181 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3182 O_logical_not>): Derive final_seg from add_symbol.
3183 <O_multiply..O_logical_or>: More final_seg twiddles.
3185 2002-04-01 Jessica Han <jessica@cup.hp.com>
3187 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3190 2002-03-27 Andreas Schwab <schwab@suse.de>
3192 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3193 field for pc-relative fixups.
3194 (output_disp): Likewise.
3195 (md_estimate_size_before_relax): Likewise.
3196 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3197 pc-relative fixups in 64bit mode.
3199 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3201 * config/te-aix5.h: Typo fix.
3203 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3205 * Makefile.am: Run "make dep-am".
3206 * Makefile.in: Regenerate.
3207 * doc/Makefile.in: Regenerate.
3209 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3211 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3212 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3214 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3216 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3217 the EXTENDED bit here; report the estimate according to the
3220 2002-03-18 Tom Rix <trix@redhat.com>
3222 * configure.in: Add AIX 5 support.
3223 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3224 * config/te-aix5.h: New file. AIX 5 support.
3225 * configure: Regenerate.
3227 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3229 * po/fr.po: Updated version.
3231 2002-03-16 Andreas Jaeger <aj@suse.de>
3233 * doc/c-mips.texi (Machine Dependencies): Add new node.
3235 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3237 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3238 (mips_opts): Initialize "ase_mips3d" member.
3239 (file_ase_mips3d): New variable.
3240 (CPU_HAS_MIPS3D): New macro.
3241 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3242 based on command line options and configuration defaults.
3243 (macro_build, mips_ip): Accept MIPS-3D instructions if
3244 mips_opts.ase_mips3d is set.
3245 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3246 Add support for "-mips3d" and "-no-mips3d" options.
3247 (OPTION_ELF_BASE): Move to accomodate new options.
3248 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3249 (mips_elf_final_processing): Add a comment indicating that a
3250 MIPS-3D ASE ELF header flag should be set, when one exists.
3251 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3252 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3253 nomips3d" directives.
3255 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3257 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3258 a weak symbol in same section to be within reach.
3260 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3262 * po/fr.po: Updated version.
3264 2002-03-12 Andreas Schwab <schwab@suse.de>
3266 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3267 body record so that an error is given for misplaced .save
3270 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3272 * config/tc-i386.h (REX_OPCODE): Define.
3273 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3274 (rex_byte): typedef to int.
3275 * config/tc-i386.c: Group prototypes and vars together.
3276 Formatting fixes. Remove occurrences of "register" keyword.
3279 (mode_from_disp_size): Add INLINE keyword to prototype.
3280 (fits_in_signed_byte): Likewise.
3281 (fits_in_unsigned_byte): Likewise.
3282 (fits_in_unsigned_word): Likewise.
3283 (fits_in_signed_word): Likewise.
3284 (fits_in_unsigned_long): Likewise.
3285 (fits_in_signed_long): Likewise.
3286 (type_names): Constify.
3287 (intel_float_operand): Constify param.
3288 (add_prefix): Use REX_OPCODE.
3289 (md_assemble): Likewise. Modify for changed rex_byte.
3290 (parse_insn): Split out of md_assemble.
3291 (parse_operands): Likewise.
3292 (swap_operands): Likewise.
3293 (optimize_imm): Likewise.
3294 (optimize_disp): Likewise.
3295 (match_template): Likewise.
3296 (check_string): Likewise.
3297 (process_suffix): Likewise.
3298 (check_byte_reg): Likewise.
3299 (check_long_reg): Likewise.
3300 (check_qword_reg): Likewise.
3301 (check_word_reg): Likewise.
3302 (finalize_imm): Likewise.
3303 (process_operands): Likewise.
3304 (build_modrm_byte): Likewise.
3305 (output_insn): Likewise.
3306 (output_branch): Likewise.
3307 (output_jump): Likewise.
3308 (output_interseg_jump): Likewise.
3309 (output_disp): Likewise.
3310 (output_imm): Likewise.
3312 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3314 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3316 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3318 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3319 relocs except when BFD64.
3321 * write.c (number_to_chars_bigendian): Don't abort when N is
3322 larger than sizeof (VAL).
3323 (number_to_chars_littleendian): Likewise.
3325 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3327 * config/tc-hppa.c (md_apply_fix3): Add cast.
3328 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3331 2002-03-05 Paul Koning <pkoning@equallogic.com>
3333 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3334 (parse_ac5): New function for parsing float regs in float operand.
3335 (parse_expression): Remove attempt to make literals be octal.
3336 (parse_op_no_deferred): Support float literals.
3337 (parse_op): Reject attempts to refer to float regs.
3338 (parse_fop): New function, like parse_op but for float operand.
3339 (md_assemble): Add cases to parse float operands. Also fix
3340 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3342 2002-03-04 H.J. Lu <hjl@gnu.org>
3344 * config/obj-elf.c (special_section): Add .init_array,
3345 .fini_array and .preinit_array.
3347 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3348 .init_array and .fini_array.
3350 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3352 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3354 (obj_frob_symbol): Copy visibility.
3356 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3358 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3360 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3362 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3364 * po/es.po: Updated.
3366 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3368 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3369 only, undo the changes made on 2001-06-08, with the
3370 effect being that common or extern symbols are
3371 adjusted for embedded-PIC, but weak symbols are not.
3372 (md_estimate_size_before_relax: Likewise, with the effect
3373 that extern symbols are treated the same as weak symbols
3374 only if not embedded-PIC.
3375 (mips_fix_adjustable) Likewise, with the effect that
3376 weak or extern symbols are not adjusted for embedded-PIC.
3377 (md_apply_fix3): Tweak so that the case where value is zero
3378 is handled more correctly for embedded-PIC code.
3380 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3382 * doc/as.texinfo (Overview): Add missing @ifset IA64
3384 * configure.in (LINGUAS): Add es.po.
3385 * configure: Regenerate.
3386 * po/es.po: New file.
3388 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3390 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3391 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3392 and NO_PIC cases. Code cleanup.
3393 (macro2): Fix handling of 64bit register loads.
3395 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3397 * doc/as.texinfo: Add entry for IA64.
3398 * doc/c-ia64.texi: New file.
3400 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3402 * config/tc-hppa.c: Update copyright date.
3404 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3405 Remove references to chip manufacturers.
3406 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3408 (md_show_usage): Remove references to chip manufacturers. Mention
3410 (md_begin): Test power4 opcode flag bits.
3412 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3414 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3415 count exceeds prologue count.
3416 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3417 (unwind.label_prologue_count): New member.
3419 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3421 (get_saved_prologue_count): New function.
3422 (save_prologue_count): New function.
3423 (free_saved_prologue_count): New function.
3424 (dot_label_state): Record state label by calling save_prologue_count().
3425 (dot_copy_state): Restore prologue count by calling
3426 get_saved_prologue_count().
3427 (generate_unwind_image): Free up list of saved prologue
3428 counts by calling free_saved_prologue_counts().
3430 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3432 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3433 function declarations.
3435 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3437 * NEWS: Note that GASP is now deprecated.
3438 * Makefile.am: Do not build gasp-new by default.
3439 * Makefile.in: Regenerate.
3440 * doc/Makefile.am: Do not install gasp.info.
3441 * doc/Makefile.in: Regenerate.
3442 * gas/gasp.texi: Note that gasp is now deprecated.
3444 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3446 * NEWS: Mark 2.12 branch.
3448 2002-02-19 Tom Tromey <tromey@redhat.com>
3450 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3452 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3454 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3457 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3459 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3460 Make bit size independent of architecture switch.
3461 (md_begin): Add warning for -m64 with -Aesa.
3462 (s390_md_end): Use renamed architecture defines.
3464 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3466 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3468 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3470 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3473 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3475 * config/tc-mips.c (md_estimate_size_before_relax): Really
3476 make sure we treat weak like extern only for ELF. (Fixes
3477 patch from 2001-07-25.)
3479 2002-02-15 Ben Elliston <bje@redhat.com>
3481 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3484 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3486 * NEWS: Mention support for MMIX.
3488 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3490 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3491 a sequence of indpendent 'if' statements for easier debugging
3492 and future modification.
3494 2002-02-13 Matt Fredette <fredette@netbsd.org>
3496 * config/tc-m68k.c (md_show_usage): No longer display a
3497 hard-coded "68020" for the default CPU, instead display the
3498 canonical name of the true, configured default CPU.
3499 (m68k_elf_final_processing): Mark objects for sub-68020
3500 CPUs with the new EF_M68000 flag.
3502 2002-02-13 Andreas Schwab <schwab@suse.de>
3504 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3505 pc-relative relocations to merge sections in 64-bit mode.
3507 2002-02-13 Ben Elliston <bje@redhat.com>
3509 * NEWS: Document floating point number handling in gasp.
3510 * gasp.c: Include <assert.h> and "xregex.h".
3511 (is_flonum): New function.
3512 (chew_flownum): Likewise.
3513 (change_base): Consume flonums from the input, where possible.
3514 * doc/gasp.texi (Constants): Document floating point numbers.
3516 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3518 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3519 that implicitly use LR and RR selectors.
3521 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3523 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3524 and `epsw' as available on AM33 and above only.
3525 (other_register_name): Add logic to handle machine type encoded in
3528 2002-02-11 Tom Rix <trix@redhat.com>
3530 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3533 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3535 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3538 2002-02-11 Jan Hubicka <jh@suse.cz>
3540 * i386.c (md_assemble): Support 32bit address prefix.
3541 (i386_displacement): Likewise.
3542 (i386_index_check): Accept 32bit addressing in 64bit mode.
3544 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3546 * config/tc-sh.c (dot): Removed unused function.
3548 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3550 * Makefile.am: "make dep-am".
3551 * Makefile.in: Regenerate.
3552 * aclocal.m4: Regenerate.
3553 * config.in: Regenerate.
3554 * configure: Regenerate.
3555 * doc/Makefile.in: Regenerate.
3557 2002-02-10 Richard Henderson <rth@redhat.com>
3559 * doc/c-alpha.texi: New file.
3560 * doc/Makefile.am (CPU_DOCS): Add it.
3561 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3563 2002-02-09 Richard Henderson <rth@redhat.com>
3565 * config/tc-alpha.c (O_samegp): New.
3566 (USER_RELOC_P): Include it.
3567 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3568 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3569 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3570 (alpha_validate_fix): New.
3571 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3573 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3575 * doc/c-cris.texi: New.
3576 * doc/all.texi: @set CRIS.
3577 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3578 Include c-cris.texi.
3579 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3580 * doc/Makefile.in: Regenerate.
3582 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3584 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3585 determine if a number is a sign-extended 32-bit number.
3586 (load_register): Use IS_SEXT_32BIT_NUM.
3587 (macro): Check if load/store macro handling is using a
3588 constant 32-bit address on 64-bit address systems, and if
3589 so optimize the generation of that address.
3591 2002-02-08 Richard Henderson <rth@redhat.com>
3593 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3594 we've eliminated all foreign relocation types yet.
3595 (alpha_fix_adjustable): Likewise.
3597 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3599 Contribute sh64-elf.
3600 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3601 Stephen Clarke <Stephen.Clarke@st.com>
3602 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3603 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3604 * config/tc-sh.c (md_relax_table): Added default sizes for
3605 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3606 MOVI_16, MOVI_32 and MOVI_48.
3607 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3608 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3610 (shmedia_md_estimate_size_before_relax): Remove redundant
3611 blocks. Set fragP->fr_var even if relaxation type unchanged.
3612 Retain UNDEF_MOVI until expression decays to number.
3613 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3614 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3615 relocation types. Take fixP->fx_addnumber into account too.
3616 (shmedia_md_apply_fix): Likewise.
3617 (shmedia_md_convert_frag): Likewise.
3618 (shmedia_build_Mytes): Likewise.
3619 (sh64_consume_datalabel): Complain about nested datalabel.
3620 Support PIC relocs. Call sh_parse_name.
3621 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3622 in tc-sh.h to SHmedia reloc types.
3623 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3624 MOVI_GOTPC): New relaxation constants.
3625 (md_relax_table): Introduce relaxation directives for PIC-related
3627 (sh_PIC_related_p): Handle datalabel.
3628 (sh_check_fixup): Choose SH5 PIC relocations.
3629 (sh_cons_fix_new): Added BDF_RELOC_64.
3630 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3631 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3632 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3633 current ISA is SHmedia, get 7 bytes.
3634 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3635 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3637 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3638 shmedia_apply_fix3 and make void.
3639 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3640 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3642 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3643 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3644 2001-03-14 DJ Delorie <dj@redhat.com>
3645 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3646 * doc/Makefile.in(CPU_DOCS): Ditto.
3647 * doc/c-sh64.texi: New file.
3648 * doc/as.texinfo: Add SH64 support.
3649 2001-03-13 DJ Delorie <dj@redhat.com>
3650 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3651 A_REUSE_PREV so that its purpose is more obvious.
3652 (shmedia_build_Mytes): Ditto.
3653 2001-03-07 DJ Delorie <dj@redhat.com>
3654 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3656 (sh64_vtable_inherit): Ditto.
3657 (strip_datalabels): New, strip "datalabel" from given line.
3658 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3660 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3661 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3663 (shmedia_build_Mytes): ... to here.
3664 2001-03-06 DJ Delorie <dj@redhat.com>
3665 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3667 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3668 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3669 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3670 address by one in call to dwarf2_emit_insn.
3671 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3672 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3673 alignment handling broken by imported changes.
3674 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3675 (sh64_handle_align): Declare.
3676 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3677 (sh64_max_mem_for_rs_align_code): Declare.
3678 (enum sh64_isa_values): Moved here from tc-sh64.c.
3679 (md_do_align): Define.
3680 (sh64_do_align): Declare.
3681 (struct sh64_tc_frag_data): New.
3682 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3684 (TC_FRAG_INIT): Change to set new datatype.
3685 (struct sh64_segment_info_type): Rename member
3686 last_flushed_location to last_contents_mark. All users changed.
3687 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3688 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3689 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3690 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3691 of unsetting seen_insn.
3692 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3693 call sh64_update_contents_mark.
3694 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3695 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3696 enum sh64_isa_values.
3697 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3698 (emitting_crange): Boolean guard moved to file scope from function
3699 scope in sh64_set_contents_type.
3701 (sh64_update_contents_mark): New; most split out from
3702 sh64_flush_pending_output.
3703 (shmedia_md_end): Call sh64_update_contents_mark. Set
3704 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3705 (sh64_do_align): New function.
3706 (sh64_max_mem_for_rs_align_code): New function.
3707 (sh64_handle_align): Rename from shmedia_do_align. Make
3708 non-static. Add head comment. Emit zero bytes for n bytes modulo
3709 four. Change return-type to void.
3710 (shmedia_elf_new_section): Remove.
3711 (shmedia_md_assemble): Call sh64_update_contents_mark.
3712 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3713 new frag. Call sh64_update_contents_mark after making the new
3715 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3716 and sh_flush_pending_output.
3717 (sh64_flag_output): Also call md_flush_pending_output, but add
3718 condition on not emitting_crange.
3719 (sh64_tc_cons_fix_new): Remove.
3720 2001-01-12 Nick Clifton <nickc@redhat.com>
3721 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3722 alignment handling scheme imported from sourceware.
3723 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3724 * config/tc-sh64.h (TARGET_FORMAT): Define.
3725 (sh64_target_format): Prototype.
3726 * config/tc-sh64.c (sh64_target_mach): New function.
3727 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3728 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3729 zero_address_frag instead of copying the frag of the symbol.
3730 (shmedia_frob_file_before_adjust): Ditto.
3731 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3732 to valueT to remove signedness.
3733 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3734 headers to output_bfd. Do not evaluate symbols if final is false;
3736 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3737 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3738 to the current frag, call shmedia_md_convert_frag to emit fixups
3739 and make frag_wane neutralize the frag. Update comments.
3740 * config/tc-sh.c (md_convert_frag): Change caller of
3741 shmedia_md_convert_frag.
3742 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3743 * config/tc-sh64.h: Tweak comments and correct formatting.
3744 * config/tc-sh64.c: Ditto.
3745 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3746 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3747 for the no-relocation case.
3748 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3749 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3751 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
3753 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3754 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3756 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3758 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3759 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3760 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3761 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3762 al>: Set lowest bit of field to relocate to 1 and rest to empty,
3763 if reloc is emitted.
3764 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3765 New options plus bugfixes.
3766 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3768 (md_parse_option): Handle new options.
3769 (md_show_usage): Add blurb for new options.
3770 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3771 (sh64_expand, sh64_pt32): New variables.
3772 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3773 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3774 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
3775 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3776 <resolved previously-pc-relative relocs>: Handle
3777 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3778 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3779 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3780 points to SHcompact code.
3781 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3782 SH64PCREL16)>: Check that ISA of what operand points at and
3783 PTA/PTB matches, or emit error.
3784 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3785 SHMEDIA_BFD_RELOC_PT.
3786 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3788 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3789 condition for MOVI expansion.
3790 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3791 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3793 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3795 (sh64_target_format): Error-check setting of sh64_pt32 and
3796 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3797 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3798 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3799 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3800 * config/tc-sh64.c: Improve comments.
3801 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3802 not say the linker will check correctness of PTA/PTB expansion.
3803 (shmedia_md_end): Make non-static.
3804 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3806 * config/tc-sh.c (sh_finalize): Remove.
3807 * config/tc-sh.h (md_end): Do not define.
3808 Remove prototype for sh_finalize.
3809 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3810 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3811 sh64_section_data container when storing section type in tdata
3812 field in elf_section_data.
3813 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3815 * Makefile.am: Update dependencies.
3816 * Makefile.in: Regenerate.
3817 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3818 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3819 dwarf2_emit_insn call with test on debug_type.
3820 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3821 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3822 CRT_SH5_ISA32 sticky for 64-bit.
3823 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3824 Generate .crange sections when switching ISA mode or emitting
3825 constants in same section as code.
3826 * config/tc-sh64.c: Reformat structure definitions.
3827 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3829 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3830 to emit a .cranges descriptor when contents type changes. Only
3831 emit error if changing contents type and -no-mix is in effect.
3832 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3833 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3834 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3835 sh64_flush_last_crange over sections.
3836 When checking main symbol of datalabel symbol, check for
3837 STO_SH5_ISA32, not ISA type of section in definition.
3838 (shmedia_frob_file_before_adjust): Check main symbol for
3839 STO_SH5_ISA32; don't check ISA type of section in definition.
3840 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3841 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3842 .cranges entries have been output.
3843 (shmedia_elf_new_section): Just call md_flush_pending_output.
3844 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3845 fix. Do not set tc_segment_info_data.in_code for section. Call
3846 sh64_set_contents_type for SHmedia code.
3847 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3848 false. Call md_flush_pending_output.
3849 (sh64_target_format): Check that -no-mix and
3850 -shcompact-const-crange are used in sane combination with other
3852 (shmedia_md_pcrel_from_section): Check type of fix for how to
3854 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3855 not ISA type of section in definition.
3856 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3857 hold contents-type state.
3858 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3859 (sh64_flush_pending_output): Declare.
3860 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3861 (sh64_tc_cons_fix_new): Declare.
3862 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3863 call sh64_flag_output.
3864 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3865 call sh64_set_contents_type to mark SHcompact code and set
3867 (md_longopts): New options "-no-mix" and
3868 "-shcompact-const-crange".
3869 (md_parse_option): Handle new options.
3870 (md_show_usage): Add blurb for new options.
3871 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3872 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3873 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3874 (sh64_last_insn_frag): New.
3875 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3876 to get frag for insn opcode for generating fixups; do not assume it
3878 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3880 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3882 (TC_FRAG_TYPE): Define as fragS *.
3883 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3884 (sh64_last_insn_frag): Declare.
3885 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3886 not == NULL before dereferencing.
3887 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3888 Get rid of BFD section flag and EF_SH64_ABI64.
3889 * config/tc-sh64.c (shmedia_frob_section_type): Use
3890 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3891 communicate the section as containing SHmedia code. Describe why.
3892 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3893 EF_SH64 regardless of ABI.
3894 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3895 in error message. Handle resolved expressions for
3896 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3897 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3898 (shmedia_check_limits): Handle BFD_RELOC_64.
3899 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3900 a STO_SH5_ISA32 symbol, only the BFD value.
3901 2000-12-11 Ben Elliston <bje@redhat.com>
3902 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3903 dwarf2_generate_asm_lineno.
3904 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3905 Handle PC-relative MOVI expansions with assembler relaxation.
3906 Generate PC-relative relocs from 16-bit PC-relative expressions.
3907 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3908 (shmedia_md_pcrel_from_section): ...here.
3909 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3910 turned completely resolved. Adjust relocation type for 16-bit
3911 immediate operands that has turned PC-relative. Adjust back for
3912 MD_PCREL_FROM_SECTION being applied twice.
3913 (shmedia_md_convert_frag): Always emit reloc for expression with
3914 global or weak symbol. Handle relaxation result for PC-relative
3916 (shmedia_md_estimate_size_before_relax): An expression with a weak
3917 or global symbol can not be relaxed. Break out tests for
3918 relaxable symbol into variable sym_relaxable.
3919 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3920 UNDEF_MOVI)>: Break out any PC-relative expression and change
3922 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3924 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3925 MOVI expansion. If X_op_symbol of the immediate expression is
3926 set, make an expression symbol for the argument to frag_var.
3927 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3929 (END): Adjust for new relaxations.
3930 (md_relax_table): Add entries for new relaxations.
3931 2000-12-07 Ben Elliston <bje@redhat.com>
3932 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3933 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3934 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3935 SHORI operand offsets in PT/PTA/PTB expansions.
3936 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3937 Implement DataLabel semantics.
3938 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3939 shmedia_frob_file_before_adjust.
3940 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3941 (DATALABEL_SUFFIX): Define.
3942 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3943 symbol list to update "datalabel" symbols to their main symbol
3945 (shmedia_frob_file_before_adjust): New.
3946 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3947 undefined and set STT_DATALABEL.
3948 (sh64_frob_label): Initialize TC symbol field.
3949 (sh64_consume_datalabel): Actually implement semantics. New
3950 parameter operandf, call it instead of expression.
3951 (sh64_exclude_symbol): New.
3952 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3953 to sh64_consume_datalabel.
3954 (tc_symbol_new_hook): Define to tc_frob_symbol.
3955 (TC_SYMFIELD_TYPE): Define to symbolS *.
3956 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3957 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3958 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3960 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3961 generating dwarf2 debug information.
3962 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3963 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3964 elf64-sh64 for the 64-bit ABI.
3965 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3967 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3968 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3970 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3971 * config/tc-sh64.c: Tweak comments, formatting and error messages.
3972 (enum sh64_abi_values): New type.
3973 (enum sh64_isa_values): New type.
3974 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
3975 (seen_shcompact_mode, seen_shmedia_mode): Delete.
3976 (sh64_abi): Replace shmedia_64.
3977 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3978 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3979 (s_sh64_mode): Check validity for this target.
3980 (sh64_target_format): Initialize defaults for ISA and ABI.
3981 Fallback to old object format if no SH64 ISA or ABI has been
3983 * config/tc-sh.c (md_parse_option): Check combinations for errors.
3984 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3985 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3986 * config/tc-sh64.h: Fix typo in comment.
3987 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
3988 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3989 <PT fixups for absolute values>: Size will be longest, not
3991 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
3992 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3993 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3994 and l1 to hold lowercase of two first characters. Change all
3995 remaining TO_LOWER to tolower.
3996 * config/tc-sh64.c (TO_LOWER): Delete.
3997 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3998 (md_parse_name): Define.
3999 (sh64_consume_datalabel): Declare.
4000 (DOLLAR_DOT): Define.
4001 * config/tc-sh64.c (shmedia_parse_exp): New.
4002 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4003 (shmedia_parse_reg): Remove const from src
4005 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4006 (shmedia_md_assemble): Ditto for op_end variable.
4007 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4008 Use shmedia_parse_exp, not parse_exp.
4009 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4010 parameter. All callers changed.
4011 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4013 (shmedia_parse_reg): Put first two character in local variables.
4014 Use tolower, not TO_LOWER. If no register is found and argtype
4015 indicates a control register, scan shmedia_creg_table
4017 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4018 * Makefile.am (CPU_TYPES): Add sh64.
4019 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4020 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4021 Regenerate dependencies.
4022 * Makefile.in: Regenerate.
4023 * configure.in: Add support for sh64-*-elf*.
4024 * configure: Regenerate.
4025 * config/tc-sh64.h: New.
4026 * config/tc-sh64.c: New.
4027 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4028 .mode, .isa and .uaquad.
4029 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4030 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4031 [HAVE_SH64] (END): Define as 10.
4032 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4033 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4035 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4036 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4037 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4038 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4040 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4041 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4042 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4043 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4044 SHmedia instructions. Handle state-change after switching to
4046 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4047 (md_parse_option) [HAVE_SH64]: Parse new options.
4048 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4049 (md_convert_frag) [HAVE_SH64] <default>: Call
4050 shmedia_md_convert_frag instead of abort.
4051 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4052 BFD_RELOC_SH_SHMEDIA_CODE.
4053 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4054 SHcompact or SHmedia code.
4055 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4056 shmedia_md_apply_fix instead of abort.
4057 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4058 result from calling shmedia_md_estimate_size_before_relax instead
4060 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4062 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4063 shmedia_init_reloc and do nothing more if it returns non-zero.
4064 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4065 * po/POTFILES.in: Regenerate.
4066 * po/gas.pot: Regenerate.
4068 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4070 * config/tc-sh.c (parse_at): Install the correct version of
4073 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4074 assume fixP->fx_subsy is non-NULL.
4076 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4078 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4079 A_DISP_PC_ABS, and adjust it by -4.
4080 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4082 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4083 the operand type is not A_DISP_PC_ABS.
4085 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4087 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4088 common and weak symbols. Handle common and weak symbols as
4089 undefined symbols with regards to GREG handling and merging.
4090 (mmix_frob_file): Ditto.
4092 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4094 * configure.in (hppa-*-netbsd*): New target.
4095 * configure: Regenerate.
4096 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4098 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4100 * config/tc-v850.c: Add missing prototypes amd use old-style
4101 function definitions.
4102 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4103 (sdata_section tdata_section, zdata_section, sbss_section,
4104 tbss_section, zbss_section, rosdata_section, rozdata_section,
4105 scommon_section, tcommon_section, zcommon_section,
4106 call_table_data_section, call_table_text_section): Delete.
4107 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4108 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4109 v850_call_table_data, v850_call_table_text): Delete.
4110 (struct v850_seg_entry): New.
4111 (v850_seg_table): New.
4112 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4113 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4114 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4115 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4118 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4119 recording of alignment.
4120 (md_pseudo_table): Use v850_seg.
4121 (md_begin): Don't init .call_table_data and .call_table_text here.
4122 Set v850_seg_table bss entry.
4124 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4126 Support on-demand global register allocation by passing on
4127 base-plus-offset relocs to the linker.
4128 * config/tc-mmix.c: Tweak and fix typos in comments.
4129 (allocate_undefined_gregs_in_linker): New variable.
4130 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4131 (md_longopts): Add --linker-allocated-gregs.
4132 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4133 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4134 (md_show_usage): Update text for -x. Add text for
4135 --linker-allocated-gregs.
4136 (tc_gen_reloc): Derive default value for addend from val and
4137 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4138 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4139 GREG if allocate_undefined_gregs_in_linker.
4140 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4141 --linker-allocated-gregs.
4142 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4143 --linker-allocated-gregs. Mention that it's implied by -x.
4144 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4145 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4147 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4149 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4151 * Makefile.am: Run "make dep-am"
4152 * Makefile.in: Regenerate.
4154 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4156 * config/tc-or32.c: New file.
4157 * config/tc-or32.h: New file.
4158 * configure.in: Add support for or32 targets.
4159 * configure: Regenerate.
4160 * config/obj-coff.c: Add support for or32 targets.
4161 * config/obj-coff.h: Add support for or32 targets.
4162 * Makefile.am: Add support for or32 targets.
4163 * Makefile.in: Regenerate.
4164 * NEWS: Mention support for OpenRISC.
4165 * doc/Makefile.in: Regenerate.
4166 * po/POTFILES.in: Regenerate.
4167 * po/gas.pot: Regenerate.
4169 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4171 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4174 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4176 * config/tc-mips.c (tc_gen_reloc): Arrange for
4177 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4178 their LO16 parts, even for ELF.
4180 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4182 * config/tc-i386.c: Protect definitions of true and false
4185 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4187 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4188 made because of .weak, if they are neither defined nor used in any
4191 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4193 * configure: Regenerated.
4195 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4197 * doc/Makefile.am (install): Depend on install-info.
4198 * doc/Makefile.in: Regenerate.
4200 2002-01-26 Nick Clifton <nick@redhat.com>
4202 * po/fr.po: Updated version
4204 2002-01-24 Kazu Hirata <kazu@hxi.com>
4206 * config/tc-h8300.c (check_operand): Don't print a warning
4207 when a valid 24-bit address is given to a 16-bit address
4210 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4212 * config/tc-sh.c (sh_elf_suffix): Removed.
4213 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4214 sh_end_of_match, sh_parse_name): New functions.
4215 (sh_elf_cons): Simplify.
4216 (parse_exp): Reject misplaced PIC operands.
4217 (md_undefined_symbol): Simplify.
4218 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4219 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4220 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4221 Complain if subsy remains at the end.
4222 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4223 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4225 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4227 * config/tc-mn10300.c (xr_registers): Move `pc'...
4228 (other_registers): ... here.
4230 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4232 * Makefile.am: Run "make dep-am".
4233 * Makefile.in: Regenerate.
4234 * gas/po/POTFILES.in: Regenerate.
4236 2002-01-21 DJ Delorie <dj@redhat.com>
4238 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4239 stabstr_name allocation permanent, as it will be referenced from
4242 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4244 * configure.in (ia64-*-netbsd*): New target.
4245 * configure: Regenerate.
4247 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4249 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4251 <Detailed description, ARM options>: Ditto.
4252 * doc/c-arm.texi (ARM Options): Ditto.
4254 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4256 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4257 do_mia, do_mar and do_mra respectively.
4258 (do_mav_*): Renamed from do_c_*.
4259 (mav_reg_required_here, mav_parse_offset): Renamed from
4260 cirrus_reg_required_here and cirrus_parse_offset respectively.
4261 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4263 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4264 Keith Walker <keith.walker@arm.com>
4266 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4267 (insns): Add pattern for bxj instruction.
4268 (do_bxj): New function.
4269 (arm_cpus): Add arm926ej.
4270 (arm_archs): Add armv5tej.
4272 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4274 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4276 2002-01-19 Keith Walker <keith.walker@arm.com>
4278 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4280 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4282 * NEWS: Mention new ARM command-line options and VFP support.
4284 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4286 (ARM_CEXT_MAVERICK): Similarly.
4287 (ARM_ANY): Now means any core instruction.
4288 (CPU_DEFAULT): Default to ARM_ANY.
4289 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4290 (pic_code): Declare for all object types. Make type int.
4291 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4292 (march_fpu_opt, mfpu_opt): Declare.
4293 (md_longopts): Tidy up conditional definitions.
4294 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4295 (arm_long_opts): New tables.
4296 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4297 (arm_parse_extension): New function.
4298 (md_parse_option): Rewrite using new table-driven system.
4299 (md_show_usage): Use new table-driven system.
4300 (md_begin): Calculate cpu_variant from command line option data.
4301 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4302 command-line options.
4303 * doc/c-arm.texi: Likewise.
4305 2002-01-18 Andreas Jaeger <aj@suse.de>
4307 * as.c (parse_args): Update year.
4309 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4311 * config/tc-tic54x.c (encode_address): Add a more informative
4312 warning about incorrect syntax.
4314 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4316 * po/gas.pot: Regenerate.
4318 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4320 * macro.c (get_any_string): Add no-c-format comment to prevent
4321 confusion when translating string.
4322 * gasp.c (get_any_string): Add no-c-format comment to prevent
4323 confusion when translating string.
4325 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4326 Johannes Stezenbach <js@convergence.de>
4327 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4328 matched before the shorter ones.
4329 (my_getSmallParser): Fix handling of nested parentheses in
4330 percent_op's. Code cleanup.
4331 (my_getPercentOp): New function, code from my_getSmallParser.
4332 (my_getSmallExpression): Fix handling of closing parentheses.
4333 Code cleanup. Better comments.
4335 2002-01-16 Nick Clifton <nickc@redhat.com>
4337 po/tr.po: New file: Turkish translation.
4338 configure.in (LINGUAS): Add "tr".
4339 configure: Regenerate.
4341 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4343 Support for VFP instructions
4344 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4345 (cp_address_required_here): New argument wb_ok. When false, do not
4346 accept write-back forms of addressing. Change all callers.
4347 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4348 (FPU_VFP_EXT_V2): Define.
4349 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4350 Define in terms of above.
4351 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4352 (vfp_reg): New struct.
4353 (vfp_regs): New array of registers.
4354 (insns): Add VFP instructions.
4355 (sn_table): New array of VFP single-precision register names.
4356 (dn_table): New array of VFP double-precision register names.
4357 (all_reg_maps): Add the new register tables.
4358 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4359 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4360 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4361 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4362 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4363 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4364 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4365 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4366 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4367 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4368 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4369 (do_vfp_sp_dp_cvt): New functions.
4370 (md_begin): Set soft-float flag for appropriate VFP work.
4371 (md_atof): Handle VFP-format doubles.
4372 (md_parse_option): Handle VFP command-line options.
4373 (md_show_usage): Display VFP command-line options.
4375 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4377 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4378 various command line options.
4380 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4382 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4384 (xstormy16_md_apply_fix3): Do not return a value.
4386 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4388 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4389 the -EL/-EB option that matches the target's endianness.
4390 (md_parse_option): Likewise.
4392 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4394 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4395 is not dependent on ARM_BI_ENDIAN.
4397 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4399 * tc-arm.c (all error messages): Normalize capitalization of messages.
4401 * tc-arm.h (md_operand): Delete define.
4402 * tc-arm.c (in_my_get_expression): New static variable.
4403 (my_get_expression): Set and clear it.
4404 (md_operand): New function. If called from my_get_expression
4405 put the error in inst.error.
4406 (output_inst): Now takes argument of instruction being assembled.
4407 Print it out with any error message.
4408 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4410 (end_of_line): Don't update inst.error if it is already set.
4412 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4414 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4415 op that can be translated into a mvn instruction.
4417 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4419 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4420 setting default md.flags.
4421 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4422 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4423 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4424 for 32 bit unwind info blocks.
4425 (generate_unwind_image): Add support for different types
4426 of unwind images (32 bits and/or big-endian).
4427 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4428 (ia64_target_format): Add support for hpux target formats.
4429 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4430 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4431 SHT_FINI_ARRAY elf section types.
4433 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4435 * tc-arm.c (struct reg_entry): Move before prototypes.
4436 (int_register, cp_register, fp_register): Delete.
4437 (reg_table): Delete. Replaced with ...
4438 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4439 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4440 (mav_dspsc_table): ... one table per register set.
4441 (arm_reg_hsh): Delete.
4442 (struct reg_map): New structure.
4443 (all_reg_maps): New array.
4444 (enum arm_reg_type): New enums.
4445 (build_reg_hsh): New function.
4446 (insert_reg_alias): Use hash table passed by caller. Adjust all
4448 (create_register_alias): New function, split out from ...
4449 (md_assemble): ... here.
4450 (md_begin): Build new register hash tables.
4451 (arm_reg_parse): New argument for the hash table to search. Adjust all
4453 (arm_reg_parse_any): New function.
4454 (co_proc_number): Look up the processor number in the processor hash
4456 (cirrus_regtype): Delete.
4457 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4458 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4459 (ARM_EXT_MAVERICKsc_register): Delete.
4460 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4461 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4463 (do_c_triple_4, do_c_triple_5): Delete.
4464 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4465 (do_c_quad_6): Delete.
4466 (do_c_quad_6[ab]): New functions.
4467 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4468 arguments to use new register parsing methods.
4469 (cirrus_reg_required_here): Likewise.
4470 (insns): Reclassify cirrus maverick worker functions.
4471 (cirrus_valid_reg): Delete.
4473 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4475 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4476 (sh*-*-netbsdelf*): New target.
4477 * configure: Regenerate.
4478 * tc-sh.h: Update copyright years.
4479 (TARGET_FORMAT): Add version for TE_NetBSD.
4481 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4483 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4486 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4488 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4489 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4491 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4493 * tc-mips.c (mips_cprestore_valid): New flag.
4494 (mips_frame_reg_valid): New flag.
4495 (macro) [M_JAL_2]: Check both flags.
4496 [M_JAL_A]: Likewise.
4497 (s_cprestore): Set mips_cprestore_valid.
4498 (tc_get_register): If setting mips_frame_reg, set
4499 mips_frame_reg_valid and clear mips_cprestore_valid.
4500 (s_mips_ent): Clear both flags.
4501 (s_mips_end): Clear both flags.
4503 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4505 * write.c (write_object_file): Make use of bfd_section_list_remove.
4506 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4507 * config/tc-mmix.c (mmix_frob_file): Likewise.
4509 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4511 * configure.in (i386-*-netbsdelf*): Collapse target into...
4512 (i386-*-netbsd*): ...this. Add support for x86-64.
4513 * configure: Regenerated.
4515 2002-01-03 matthew green <mrg@redhat.com>
4517 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4519 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4521 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4524 For older changes see ChangeLog-0001
4530 version-control: never