1 2003-01-07 DJ Delorie <dj@redhat.com>
3 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
5 (xstormy16_md_apply_fix3): Use adjustment.
7 2003-01-02 Ben Elliston <bje@redhat.com>
9 * configure.in: Add iq2000-elf target.
10 * configure: Regenerate.
11 * config/tc-iq2000.c: New file.
12 * config/tc-iq2000.h: Likewise.
13 * po/gas.pot: Regenerate.
15 2003-01-02 Chris Demetriou <cgd@broadcom.com>
17 * config/tc-mips.c: Update copyright years to include 2003.
18 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
19 Additionally, clean up their code slightly and clean up their
22 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
24 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
26 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
28 * doc/Makefile.in: Regenerate.
30 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
32 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
33 of .init and .fini sections for array initializers and finalizers.
35 2002-12-31 Chris Demetriou <cgd@broadcom.com>
37 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
38 the "+D" operand, which will be used only by the disassembler.
40 2002-12-30 Chris Demetriou <cgd@broadcom.com>
42 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
44 * configure: Regenerate.
45 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
46 (macro_build): Handle "K" operand.
47 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
48 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
49 (mips_ip): New variable "lastpos", and implement "+A", "+B",
50 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
51 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
52 (validate_mips_insn): Implement "+" as a way to extend the
53 allowed operands, and implement "K", "+A", "+B", and "+C"
55 (OPTION_MIPS32R2): New define.
56 (md_longopts): Add entry for OPTION_MIPS32R2.
57 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
58 (md_parse_option): Handle OPTION_MIPS32R2.
59 (s_mipsset): Reimplement handling of ".set mipsN" options
60 and add support for ".set mips32r2".
61 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
62 (md_show_usage): Document "-mips32r2" option.
63 * doc/as.texinfo: Document "-mips32r2" option.
64 * doc/c-mips.texi: Likewise.
66 2002-12-30 Dmitry Diky <diwil@mail.ru>
68 * configure.in: Add msp430 target.
69 * configure: Regenerate.
70 * Makefile.am: Add msp430 target.
71 * Makefile.in: Regenerate.
72 * config/tc-msp430.c: New file: msp430 assembler.
73 * config/tc-msp430.h: New file: target macros for msp430.
74 * doc/Makefile.am: Add msp430 target.
75 * doc/Makefile.in: Regenerate.
76 * doc/as.texinfo: Include msp430 documenation.
77 * doc/all.texi: Enable msp430 documentation.
78 * doc/c-msp430.texi: New file: document msp430 specific features
81 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
83 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
84 (dwarf2_finish): Use it.
85 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
86 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
88 2002-12-20 DJ Delorie <dj@redhat.com>
90 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
91 BFD_RELOC_XSTORMY16_12.
93 2002-12-19 Alan Modra <amodra@bigpond.net.au>
95 * doc/as.texinfo (Invoking): Typo fix.
96 * config/tc-tic54x.c (encode_operand): Comment typo fix.
98 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
100 * doc/c-alpha.texi: Fix typos.
101 * doc/c-arm.texi: Likewise.
102 * doc/c-d10v.texi: Likewise.
103 * doc/c-i370.texi: Likewise.
104 * doc/c-i960.texi: Likewise.
105 * doc/c-ia64.texi: Likewise.
106 * doc/c-mmix.texi: Likewise.
107 * doc/c-ns32k.texi: Likewise.
108 * doc/c-pdp11.texi: Likewise.
109 * doc/c-pj.texi: Likewise.
110 * doc/c-sh64.texi: Likewise.
111 * doc/c-sparc.texi: Likewise.
112 * doc/c-tic54x.texi: Likewise.
113 * doc/c-v850.texi: Likewise.
114 * doc/c-vax.texi: Likewise.
115 * doc/internals.texi: Likewise.
117 2002-12-18 Chris Demetriou <cgd@broadcom.com>
119 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
120 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
121 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
122 arrange not to issue warnings about use of AT when AT is not
125 2002-12-17 Nick Clifton <nickc@redhat.com>
127 * as.c (std_longopts): Duplicate --keep-locals entry in order to
128 prevent it being confused with -k.
130 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
132 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
133 has already been set up, use it.
135 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
137 * ChangeLog-9295: Fix a typo.
139 * config/tc-d10v.c: Fix a comment typo.
140 * config/tc-dlx.c: Likewise.
141 * config/tc-h8300.h: Likewise.
142 * config/tc-h8500.h: Likewise.
143 * config/tc-mips.c: Likewise.
144 * config/tc-s390.c: Likewise.
145 * config/tc-sh.h: Likewise.
146 * config/tc-tic80.h: Likewise.
147 * config/tc-w65.h: Likewise.
148 * config/tc-z8k.c: Likewise.
149 * config/tc-z8k.h: Likewise.
150 * testsuite/gas/h8300/cmpsi2.s: Likewise.
152 2002-12-16 Alan Modra <amodra@bigpond.net.au>
154 * config/tc-d30v.c (check_range): Warning fixes, formatting.
155 Simplify sign extension. Remove redundant unsigned < 0 test.
156 * config/tc-i960.c (md_ri_to_chars): Prototype.
157 * config/tc-mcore.c (md_pseudo_table): Fix typo.
158 (dump_literals): Init brarsym, and test later instead of isforce.
160 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
161 (parse): Constify line and lineptr.
162 (md_begin): Calculate endop here.
164 2002-12-13 Alan Modra <amodra@bigpond.net.au>
166 * config/obj-vms.c: Formatting. Include fnctl.h.
167 (Create_VMS_Object_File): Fix creat call for sane unix systems.
168 (Object_Record_Offset): Make it a size_t.
169 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
170 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
171 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
172 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
173 (vms_fixup_data_section <data_size>): Add here instead.
174 * config/e-criself.c: Fix typo in last change.
176 2002-12-13 Alan Modra <amodra@bigpond.net.au>
178 * write.c (write_object_file): Fix signed/unsigned warning.
179 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
180 * config/e-criself.c (criself_bfd_name): Prototype.
181 * config/obj-aout.c (s_sect): Remove unused function.
182 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
183 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
184 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
185 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
186 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
187 (VMS_RSYM_Parse <Current_Routine>): Likewise.
188 (vms_fixup_text_section <text_siz>): Likewise.
189 (synthesize_data_segment <data_size>): Likewise.
190 (vms_fixup_xtors_section <sect_no>): Likewise.
191 (structure_count): Don't use implicit int type.
192 * config/tc-a29k.c (insert_sreg): Prototype.
193 (define_some_regs): Prototype, make static.
194 (parse_operand): Likewise.
195 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
196 (md_show_usage <stream>): Likewise.
197 (md_section_align <segment>): Likewise.
198 (md_convert_frag <all args>): Likewise.
199 (md_estimate_size_before_relax <all args>): Likewise.
200 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
201 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
202 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
203 (md_undefined_symbol <name>): Likewise.
204 (md_convert_frag <all args>): Likewise.
205 (write_long <opcode>): Likewise.
206 (tc_gen_reloc <seg>): Likewise.
207 (md_estimate_size_before_relax <all args>): Likewise.
208 (md_apply_fix3 <seg>): Likewise.
209 (s_d30v_align <ignore>): Likewise.
210 (build_insn): Correct format string.
211 (md_apply_fix3): Likewise.
212 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
213 (md_undefined_symbol <name>): Likewise.
214 (md_convert_frag <all args>): Likewise.
215 (md_cgen_lookup_reloc <insn>): Likewise.
216 (md_begin): Delete unused vars.
217 (md_assemble): Likewise.
218 (md_estimate_size_before_relax): Likewise.
219 (fr30_relax_frag): #if 0 out, seems unused.
220 (md_atof): Remove declaration of atof_ieee.
221 (restore_colon): Prototype.
222 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
223 (frv_find_in_vliw): Likewise.
224 (frv_debug_tomcat): Likewise.
225 (frv_adjust_vliw_count): Likewise.
226 (frv_tomcat_shuffle): Likewise.
227 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
228 frv_find_in_vliw call.
229 (md_atof): Remove declaration of atof_ieee.
230 * config/tc-h8500.c (cons): Delete declaration.
231 (md_begin <opcode>): Constify.
232 (displacement_size, immediate_size, absolute_size): Remove.
233 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
234 (tc_crawl_symbol_chain <headers>): Likewise.
235 (md_undefined_symbol <name>): Likewise.
236 (tc_headers_hook <headers>): Likewise.
237 (md_parse_option <c,arg>): Likewise.
238 (md_show_usage <stream>): Likewise.
239 (md_convert_frag <headers, seg>): Likewise.
240 (tc_coff_symbol_emit_hook <ignore>): Likewise.
241 (md_atof): Remove declaration of atof_ieee.
242 (tc_aout_fix_to_chars): Remove unused function.
243 (parse_reg): Prototype.
244 (parse_exp): Prototype.
245 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
246 (parse_reglist): Prototype.
247 (get_operand): Prototype.
248 (get_operands): Prototype.
249 (get_specific): Prototype. Make "this_index" signed.
250 (check): Prototype, make static.
252 (build_relaxable_instruction): Prototype, make static.
253 (build_bytes): Prototype.
254 (wordify_scb): Prototype.
255 * config/tc-h8500.h (start_label): Declare.
256 (tc_coff_sizemachdep): Declare.
257 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
258 (i370_rmode <unused>): Likewise.
259 (i370_csect <unused>): Likewise.
260 (i370_dc <unused>): Likewise.
261 (i370_ds <unused>): Likewise.
262 (i370_elf_lcomm <unused>): Likewise.
263 (i370_ltorg <ignore>): Likewise.
264 (i370_using <ignore>): Likewise.
265 (i370_drop <ignore>): Likewise.
266 (i370_byte <ignore>): Likewise.
267 (i370_tc <ignore>): Likewise.
268 (md_estimate_size_before_relax <fragp, seg>): Likewise.
269 (md_convert_frag <all args>): Likewise.
270 (md_undefined_symbol <name>): Likewise.
271 (md_pcrel_from_section <sec>): Likewise.
272 (tc_gen_reloc <seg>): Likewise.
273 (i370_section_letter): #if 0 unused functions.
274 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
275 (symbol_locate): Prototype.
276 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
277 (md_number_to_disp, md_number_to_field): Remove.
278 (md_apply_fix3): Correct format string and cast "fup".
279 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
280 (s_endian <ignore>): Likewise.
281 (md_undefined_symbol <name>): Likewise.
282 (tc_crawl_symbol_chain <headers>): Likewise.
283 (tc_set_bal_of_call): Likewise.
284 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
285 (i960_handle_align <fragp>): Likewise.
286 (i960_validate_fix <this_segment_type>): Likewise
287 (tc_gen_reloc <section>): Likewise.
288 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
289 (struct memS, struct regop): Forward declare.
290 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
291 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
292 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
293 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
294 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
295 (md_chars_to_number, md_number_to_imm): Make static, prototype.
296 (md_number_to_field): Likewise.
297 (md_number_to_disp): Remove unused function.
298 (md_atof): Remove declaration of atof_ieee.
299 (md_apply_fix3): Correct md_number_to_imm call.
300 * config/tc-ip2k.c (md_assemble): Warning fix.
301 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
302 (fill_insn <ignore>): Likewise.
303 (debug_sym <ignore>): Likewise.
304 (md_undefined_symbol <name>): Likewise.
305 (m32r_scomm <ignore>): Likewise.
306 (md_convert_frag <abfd>): Likewise.
307 (md_cgen_lookup_reloc <insn>): Likewise.
308 (m32r_record_hi16 <seg>): Likewise.
309 (md_estimate_size_before_relax): #if 0 old_fr_fix.
310 (allow_m32rx): Prototype.
311 (first_writes_to_seconds_operands): Prototype.
312 (writes_to_pc): Prototype.
313 (can_make_parallel): Prototype.
314 (make_parallel): Prototype.
315 (target_make_parallel): Prototype.
316 (assemble_two_insns): Prototype.
317 (m32r_record_hi16): Prototype.
318 (md_atof): Remove declaration of atof_ieee.
319 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
320 (m32r_force_relocation): Prototype.
321 (m32r_elf_section_change_hook): Prototype.
322 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
323 (md_show_usage): Fix signed/unsigned warning.
324 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
325 (calcop): Ditto for reg_prefix var.
326 (hexval): Add cast to fix signed/unsigned warning.
327 (md_number_to_disp): Delete unused function.
328 (md_number_to_field): Likewise.
329 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
330 (match_name): Prototype.
331 (get_bf2): Prototype.
332 (get_bf_offset_expression): Prototype.
333 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
334 (md_undefined_symbol <ignore>): Likewise.
335 (md_create_short_jump <all args>): Likewise.
336 (md_create_long_jump <all args>): Likewise.
337 (md_convert_frag <abfd, sec>): Likewise.
338 (md_apply_fix3 <segment>): Likewise.
339 (md_section_align <segment>): Likewise.
340 (md_pcrel_from_section <sec>): Likewise.
341 (tc_gen_reloc <section>): Likewise.
342 (reg_m, reg_n, immediate): Delete unused vars.
343 (dump_literals): Fix signed/unsigned warning.
344 (enter_literal): Likewise.
345 (parse_imm): Likewise. Also fix format string.
346 (parse_mem): Remove unused var.
347 (md_assemble <LS>): Abort on unexpected inst.
348 (md_atof): Remove declaration of atof_ieee.
349 (md_parse_option): Remove unused vars.
350 (md_apply_fix3): Fix format strings, cast args.
351 (tc_gen_reloc): Delete unused var.
352 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
353 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
354 (md_undefined_symbol <name>): Likewise.
355 (md_convert_frag <abfd>): Likewise.
356 (tc_gen_reloc <seg>): Likewise.
357 (check_operand <insn>): Likewise.
358 (md_convert_frag): Fix format strings.
359 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
360 * config/tc-openrisc.c (ignore_pseudo): Prototype.
361 (md_atof): Remove declaration of atof_ieee.
362 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
363 (md_apply_fix3): Fix bogus >>='s.
364 (md_undefined_symbol): Delete unused var.
365 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
366 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
367 (fake_opcode): Adjust for pj_opc_int_t change.
368 (md_begin): Likewise.
369 (md_assemble): Likewise.
370 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
371 instead of non-existent third arg of parse_exp_save_ilp.
372 (md_parse_option): Correct "little" and "big" calls.
373 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
374 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
375 (tc_gen_reloc <section>): Likewise.
376 * config/tc-tic30.c: #include stdarg.h or varargs.h.
377 (debug): Rewrite using VA_* macros.
378 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
379 (md_convert_frag): Likewise.
380 (md_parse_option): Likewise.
381 (md_show_usage): Likewise.
382 (md_undefined_symbol): Likewise.
383 (tc_gen_reloc): Likewise.
384 (md_operand): Likewise.
385 (tc_aout_pre_write_hook): Delete.
386 (struct tic30_insn): Make "operands" unsigned.
387 (struct tic30_par_insn): Likewise.
388 (md_assemble): Likewise for "count", "i" and "numops".
389 (tic30_parallel_insn): Likewise for vars here.
390 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
391 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
392 * config/tc-tic80.c (obj_coff_section): Delete declaration.
393 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
394 (md_undefined_symbol): Likewise.
395 (md_parse_option): Likewise.
396 (md_convert_frag): Likewise.
397 (tc_coff_symbol_emit_hook): Likewise.
398 (md_atof): Remove declaration of atof_ieee.
399 (const_overflow): Warning fixes, tidy.
400 (get_operands): Delete unused vars.
401 (internal_error_a): Adjust format string to expect a long for arg.
402 (find_opcode): Warning fixes, simplify.
403 (build_insn): Cast internal_error_a arg.
404 (md_begin): Likewise.
405 (md_apply_fix3): Likewise.
406 (md_assemble): Delete unused var.
407 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
408 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
409 (whatreg, parse_reg, parse_exp): Make static, prototype.
410 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
411 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
412 (get_operand, get_operands, get_specific, newfix): Likewise.
413 (apply_fix, build_bytes): Likewise.
414 (md_atof): Remove declaration of atof_ieee.
415 (tc_aout_fix_to_chars): Delete.
416 (md_begin): Constify "opcode". Don't try to init opcode->idx.
418 (md_parse_option): Fix s_segm and s_unseg calls.
420 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
422 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
424 (RELAX_BRANCH_RELOC_S2): Delete.
425 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
426 Do not handle BFD_RELOC_16_PCREL.
427 (macro_build, mips_ip): Likewise.
428 (md_pcrel_from): Return 4 for undefined symbols regardless of
430 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
431 Don't dereference howto if no such relocation is available.
432 Do not apply hack for in-place zero addend in NEWABI.
433 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
435 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
436 Alan Modra <amodra@bigpond.net.au>
438 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
439 (TC_LINKRELAX_FIXUP): Add comments.
441 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
443 * config/tc-mn10300.c (set_arch_mach): Change argument type to
445 (r_register_name, xr_register_name): Add prototype declarations.
447 2002-12-08 H.J. Lu <hjl@gnu.org>
449 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
450 copied from tc-i386.c.
452 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
454 Fix Bug savannah/1825:
455 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
456 (md_relax_table): Define specific relax for PC-rel offsets.
457 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
458 (m68hc11_relax_frag): Handle the new relax code.
459 (md_convert_frag): Likewise.
460 (md_estimate_size_before_relax): Likewise.
462 2002-12-08 Alan Modra <amodra@bigpond.net.au>
464 * subsegs.c (section_symbol): Use the symbol, not the section, name.
466 2002-12-05 Richard Henderson <rth@redhat.com>
468 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
469 (ia64_gen_real_reloc_type): Handle it.
470 (pseudo_func): Add @ltoffx.
471 (md_begin): Build .<ltoffx>.
472 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
474 2002-12-05 Alan Modra <amodra@bigpond.net.au>
476 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
477 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
478 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
479 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
480 COFF to call arm_force_relocation.
482 2002-12-04 David Mosberger <davidm@hpl.hp.com>
484 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
486 (emit_one_bundle): Handle "hint" instruction.
487 (operand_match): Match IA64_OPND_AR_CSD.
489 2002-12-04 Alan Modra <amodra@bigpond.net.au>
491 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
494 2002-12-03 Nick Clifton <nickc@redhat.com>
496 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
497 .PPC.EMB.apuinfo sections.
499 2002-12-03 Richard Henderson <rth@redhat.com>
501 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
503 2002-12-03 Alan Modra <amodra@bigpond.net.au>
505 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
506 (cons, s_align_bytes): Delete declaration.
508 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
510 (dot): Delete unused function.
511 (w65_expression): Remove unused arg.
512 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
514 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
516 (get_specific): Prototype. Constify "struct opinfo *" arg and return
518 (check): Remove unused function.
519 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
520 on unhandled switch case.
521 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
523 (tc_crawl_symbol_chain): Delete unused function.
524 (tc_headers_hook): Likewise.
525 (tc_Nout_fix_to_chars): Likewise.
526 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
527 (md_parse_option): Likewise.
528 (md_convert_frag): Likewise.
529 (tc_coff_symbol_emit_hook): Likewise.
530 (md_show_usage): Likewise.
531 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
532 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
533 (w65_expression): Declare.
535 * po/POTFILES.in: Regenerate.
537 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
538 and ARM_ADRL_IMMEDIATE.
540 2002-12-02 Nick Clifton <nickc@redhat.com>
542 * gasp.c: Delete. It has been deprecated.
543 * NEWS: Mention that gasp has been removed.
544 * Makefile.am: Remove references to gasp.
545 * makefile.vms: Likewise.
546 * mpw-make.sed: Likewise.
547 * Makeile.in: Regenerate.
548 * doc/gasp.texi: Delete.
549 * doc/Makefile.am: Remove references to gasp.texi.
550 * doc/Makefile.in: Regenerate.
551 * macro.c: Delete references to gasp.
552 Remove use of comment_char function parameter as it is no longer
554 * macro.h: Update prototypes to remove comment_char parameter.
556 * read.c (read_a_source_file, s_irp): Remove comment_char
557 parameter from invocation of functions in macro.c
559 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
561 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
563 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
565 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
566 (tc_gen_reloc): Mark section param as not used.
568 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
570 Fix Bug savannah/1825:
571 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
572 that are not pc-relative.
573 (m68hc11_relax_frag): Declare.
575 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
576 the offsetable indexed addressing modes (n,r).
577 (build_insn): Cleanup some locals.
578 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
579 relaxation of difference between two symbols of same section.
580 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
581 only when this is a PC-relative operand and the offset is not absolute.
582 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
583 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
584 be handled by m68hc11_relax_frag.
586 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
588 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
589 (32-bit int, 64-bit double).
590 (md_longopts): New options -mshort, -mlong, -mshort-double and
591 -mlong-double to control the ABI.
592 (md_show_usage): Update.
593 (md_parse_option): Handle new options.
594 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
596 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
598 * symbols.c (report_op_error): New function, broken out of ...
599 (resolve_symbol_value): ... here. Use for both monadic and dyadic
602 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
604 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
605 for BFD_RELOC_32_PLT_PCREL.
607 2002-11-30 Alan Modra <amodra@bigpond.net.au>
609 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
610 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
611 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
612 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
613 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
614 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
615 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
616 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
617 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
618 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
619 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
620 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
621 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
622 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
623 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
624 TRUE/FALSE. Formatting.
626 2002-11-29 Nick Clifton <nickc@redhat.com>
628 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
629 assume a value of zero.
632 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
634 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
637 2002-11-29 Jakub Jelinek <jakub@redhat.com>
639 * config/tc-ia64.c (md_apply_fix3): Add default case.
641 2002-11-28 Jakub Jelinek <jakub@redhat.com>
643 * symbols.c (S_SET_THREAD_LOCAL): New function.
644 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
645 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
647 * config/tc-ia64.c (md_apply_fix3): Likewise.
648 * config/tc-alpha.c (md_apply_fix3): Likewise.
650 2002-11-28 Jakub Jelinek <jakub@redhat.com>
652 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
655 2002-11-26 DJ Delorie <dj@redhat.com.
657 * dwarf2dbg.c (scale_addr_delta): New.
658 (size_inc_line_addr): Use it.
659 (emit_inc_line_addr): Use it.
661 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
663 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
664 (md_assemble): Don't pass on branches to constants as relaxable.
667 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
669 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
671 2002-11-21 Randolph Chung <randolph@tausq.org>
673 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
674 only if they have default visibility.
676 2002-11-21 Richard Henderson <rth@redhat.com>
678 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
681 2002-11-21 Alan Modra <amodra@bigpond.net.au>
683 * config/tc-mcore.c (mcore_pool_count): New function.
684 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
686 2002-11-20 Klee Dienes <kdienes@apple.com>
688 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
689 coalesce the name fields to use the same pointer.
691 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
692 the name fields to use the same pointer.
693 (get_specific): Check for opcodes with the same name using strcmp
694 as well as comparing the pointer.
696 2002-11-20 Alan Modra <amodra@bigpond.net.au>
698 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
701 2002-11-19 Richard Henderson <rth@redhat.com>
703 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
704 visibility portion of st_other.
706 2002-11-19 Klee Dienes <kdienes@apple.com>
708 * config/tc-h8300.c (struct h8_instruction): New type, used to
709 wrap h8_opcodes with length, noperands, idx, and size fields
710 (computed at run-time).
711 (h8_instructions): New variable.
712 (md_begin): Allocate the storage for h8_instructions. Fill
713 h8_instructions with pointers to the appropriate opcode and the
714 correct value for the additional fields.
715 (clever_message): Update to use h8_instructions instead of
717 (build_bytes): Ditto.
718 (get_specific): Ditto.
719 (md_assemble): Ditto.
721 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
723 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
724 adjustments to symbols in merge sections.
726 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
728 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
730 2002-11-18 Kevin Buettner <kevinb@redhat.com>
732 * dwarf2dbg.h (dwarf2_format): New enum.
733 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
734 (out_debug_line, out_debug_info): Add code for handling 64-bit
736 * config/tc-mips.h (mips_dwarf2_format): Declare.
737 * config/tc-mips.c (mips_dwarf2_format): New function.
738 * doc/internals.texi (DWARF2_FORMAT): Document.
740 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
742 * config/tc-mips.c (s_change_section): Make sure input buffer
743 is not accessed past the end. Don't hand
744 obj_elf_change_section a pointer into the input buffer.
746 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
748 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
751 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
753 * config/tc-tic4x.c: Fixed proper commandline
754 parameters. Added support for new opcode-list format. General
755 error message fixups.
756 (c4x_inst_add): Reject insn not for our CPU
757 (md_begin): Added matrix for setting the proper opcode-level &
758 device-flags according to cpu type and revision. Rewrite the
760 (c4x_operand_parse): Fix opcode bug
761 (c4x_operands_match): New function argument. Added dry-run
762 mechanism, that is optional error generation. Added constraint 'i'
764 (c4x_insn_check): Added new function for post-verification of the
766 (md_assemble): Check all opcodes before croaking because of an
767 argument mismatch. Need this to be able to fully support
768 ortogonally arguments.
769 (md_parse_options): Revised commandprompt swicthes and added new
771 (md_show_usage): Complete rewrite of printout.
773 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
775 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
776 (c4x_operands_match): Added check for 8-bits LDF insn. Give
777 warning when using constant direct bigger than 2^16. Add the new
780 2002-11-11 Christopher Faylor <cgf@redhat.com>
782 * configure.in: Use .gdbinit under Cygwin.
783 * configure: Regenerate.
785 2002-11-11 Christopher Faylor <cgf@redhat.com>
787 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
790 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
792 * config/tc-tic4x.c: Declare as many functions as possible as
793 static. Maintenance on the general indenting. Removed unnecessary
794 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
795 function. Add support for new DSP, TMS320VC33. Fix bug for
796 converting flonum constants.
797 (c4x_do_align): Add proper align handling. Setup align to insert
799 (c4x_gen_to_words): Support for extended TI type floats.
800 (md_atof): Proper dumping of multiple-word littlenums.
801 (c4x_atof): Added support for extended TI type floats.
802 (c4x_stringer): Added new function to handle compact strings.
803 (c4x_emit_char): Added new function argument to handle custom
804 length inserts, like single-byte strings.
805 * config/tc-tic4x.h: Add proper align handling with NOP's.
806 * Makefile.am: Added tic4x dependecy
807 * Makefile.in: Regenerate
809 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
811 * macro.c (get_any_string): Correct logic for not going beyond end
814 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
816 * config/tc-mmix.c (get_putget_operands): Mark both possible
817 operands as invalid at beginning.
819 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
820 Initialize target of fixup to zero.
822 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
824 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
825 NEWABI, but we should still emit HI16_S for non-PIC n32.
827 2002-11-06 Richard Henderson <rth@redhat.com>
829 * config/tc-alpha.c (alpha_validate_fix): Move code ...
830 (alpha_fix_adjustable): ... here.
831 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
833 2002-11-07 Eric Kohl <ekohl@rz-online.de>
835 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
838 2002-11-05 H.J. Lu <hjl@gnu.org>
840 * config/tc-mips.c (support_64bit_objects): Check *l before it
843 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
845 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
846 SEC_LOAD flags for sections marked as 's'.
848 2002-11-01 Alan Modra <amodra@bigpond.net.au>
850 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
851 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
852 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
855 * dep-in.sed: Fix typo.
857 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
859 * configure.in: Update ARM CPU patterns.
860 * configure: Regenerated.
862 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
864 * itbl-lex.l: Use #include <> for generated headers.
865 * itbl-ops.c: Likewise.
867 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
869 * doc/gasp.texi: Fix typo in deprecation note.
871 2002-10-23 Nick Clifton <nickc@redhat.com>
873 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
874 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
876 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
878 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
879 (tc_frob_file_before_adjust): Don't define.
880 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
882 (mmix_frob_file_before_adjust): Remove ineffective function.
884 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
886 * config/tc-cris.c (SIMPLE_EXPR): New macro.
887 (cris_relax_frag): New function.
888 (md_estimate_size_before_relax) <case ENCODE_RELAX
889 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
890 expressions that will become absolute expressions to relaxation.
891 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
892 STATE_WORD)>: Expect only absolute expressions. Use the symbol
893 value, not distance to symbol.
894 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
895 Ditto. Correct placement of fixup.
896 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
898 * config/tc-cris.h (cris_relax_frag): Declare.
899 (md_relax_frag): Define.
901 2002-10-22 Alan Modra <amodra@bigpond.net.au>
903 * config/obj-elf.c (special_sections): Use correct types for init
905 (obj_elf_change_section): Don't mess with init array section type.
907 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
909 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
910 for relocs against symbols in a merged section.
912 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
914 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
915 table as register names.
917 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
919 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
922 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
924 * expr.c (operand): Add support for n.nn flonums.
926 2002-10-17 Johannes Stezenbach <js@convergence.de>
928 * itbl-parse.y (entry): Provide empty action.
930 2002-10-16 Alan Modra <amodra@bigpond.net.au>
932 * configure.in (BFDVER_H): Set and subst.
933 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
934 * Makefile.am: Run "make dep-am".
936 * configure: Regenerate.
937 * Makefile.in: Regenerate.
938 * doc/Makefile.in: Regenerate.
940 2002-10-15 Alan Modra <amodra@bigpond.net.au>
942 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
943 (MD_APPLY_SYM_VALUE): Define for PE too.
945 2002-10-14 Alan Modra <amodra@bigpond.net.au>
947 * Makefile.am: Run "make dep-am".
948 (CPU_OBJ_VALID): sh64 coff is invalid.
949 * as.c: #include "bfdver.h".
950 * Makefile.in: Regenerate.
951 * config.in: Regenerate.
953 2002-10-14 Momchil Velikov <velco@fadata.bg>
955 * config/tc-v850.c (CHECK_): Remove token pasting operator.
957 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
959 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
960 * configure: Regenerate.
962 2002-10-13 Eric Christopher <echristo@redhat.com>
963 Alexandre Oliva <aoliva@redhat.com>
965 * config/tc-mips.c (s_gpdword): New function.
966 (mips_pseudo_table): Add .gpdword.
967 (mips_need_elf_addend_fixup): never for NEWABI.
968 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
970 (s_cpadd): Generate .cpadd on NEWABI.
972 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
974 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
976 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
978 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
979 (md_relax_frag): Adjust macro.
980 * config/tc-mips.c (mips_relax_branch): New variable.
981 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
982 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
983 (RELAX_MIPS16_P): Adjust.
984 (append_insn): Emit branch to non-constant in a frag_var if
985 branch-relaxation is desirable and possible.
986 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
987 (OPTION_ELF_BASE): Adjust.
988 (md_parse_option): Handle new options.
989 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
991 (relaxed_branch_length): New function.
992 (md_estimate_size_before_relax): Handle branch frags.
993 (mips_relax_frag): Likewise.
994 (md_convert_frag): Handle branch frags. Warn if branch is
997 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
999 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1001 (md_apply_fix3): Add TLS relocs.
1002 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1005 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1006 Alan Modra <amodra@bigpond.net.au>
1008 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1009 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1011 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1013 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1016 2002-10-09 Richard Shann <richard.shann@superh.com>
1017 Stephen Clarke <stephen.clarke@superh.com>
1019 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1022 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1024 * contig/tc-sh.c (sh_local_pcrel): New.
1025 (sh_force_relocation): Use sh_local_pcrel.
1026 (md_pcrel_from_section): Check the relocation type whether it
1027 should be resolved locally. Use S_FORCE_RELOC.
1029 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1031 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1032 (TC_FORCE_RELOCATION): Tidy arg.
1034 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1035 Ken Raeburn <raeburn@cygnus.com>
1036 Aldy Hernandez <aldyh@redhat.com>
1037 DJ Delorie <dj@redhat.com>
1038 Michael Meissner <meissner@redhat.com>
1039 Eric Christopher <echristo@redhat.com>
1040 Richard Sandiford <rsandifo@redhat.com>
1042 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1043 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1044 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1045 (hilo_interlocks): True for CPU_VR5500.
1046 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1047 (mips_fix_vr4122_bugs): New.
1048 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1049 (mips_emit_delays): Likewise.
1050 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1051 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1052 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1053 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1054 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1055 (OPTION_ELF_BASE): Bump.
1056 (md_parse_option): Handle the new options.
1057 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1060 2002-09-29 H.J. Lu <hjl@gnu.org>
1062 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1063 twice if howto->pcrel_offset is true.
1065 2002-09-28 Matt Thomas <matt@3am-software.com>
1066 Jason Thorpe <thorpej@wasabisystems.com>
1068 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1069 convert undefined references to GOT32/PLT32 if PIC code is
1070 requested. Fix comment.
1072 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1074 * config/tc-sh.c (sh_force_relocation): Return 0 for
1075 some PC relative relocations when not relaxing.
1077 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1079 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1080 Define them if not BFD_ASSEMBLER.
1081 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1083 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1084 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1085 (tc_gen_reloc): Handle x86-64 TLS relocs.
1087 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1089 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1090 fixups to current or absolute section.
1092 2002-09-26 Jim Wilson <wilson@redhat.com>
1094 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1097 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1099 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1100 capable configuration.
1101 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1103 (mips_ip): Likewise.
1105 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1107 * config/tc-mips.c (append_insn): Fix jump overflow check.
1109 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1111 * config/tc-i386.c (process_operands): Warn about "lea" segment
1114 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1116 * write.c: Delete set_segment_vma and prototype. Update all callers.
1118 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1120 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1121 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1122 Rename "fseg" to "sym_seg".
1123 * Makefile.am: Run "make dep-am".
1124 * Makefile.in: Regenerate.
1125 * doc/Makefile.in: Regenerate.
1127 2002-09-20 Nick Clifton <nickc@redhat.com>
1129 * symbols.c (colon): Do not allow symbols to be created in the
1130 absolute section if WORKING_DOT_WORD is not defined and
1131 new_broken_words would require a new frag to be created.
1133 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1135 * expr.c (expr): Simplify foo-foo here.
1136 (clean_up_expression): Remove O_subtract code.
1138 * write.h (struct fix): Add fx_dot_value.
1139 (dot_value): Declare.
1140 * write.c (dot_value): New var.
1141 (fix_new_internal): Save dot_value as fx_dot_value.
1142 (fixup_segment): Adjust fx_offset using fx_dot_value.
1143 * expr.c (expr): Update dot_value.
1145 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1147 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1148 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1149 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1151 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1152 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1153 BFD_RELOC_386_TLS_GOTIE.
1155 2002-09-19 Richard Henderson <rth@redhat.com>
1157 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1159 (alpha_force_relocation): Don't special-case branch type relocs.
1161 2002-09-19 Nick Clifton <nickc@redhat.com>
1163 * config/tc-m68k.c (select_control_regs): Handle situation where
1164 architecture has not yet been selected.
1166 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1168 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1169 (IS_SEXT_16BIT_NUM): New macro.
1170 (macro_build_ldst_constoffset): New function, to build a set of
1171 instructions to do a load or store from a constant offset relative
1172 to a given register.
1173 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1174 .cprestore pseudo-op.
1176 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1178 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1180 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1182 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1184 2002-09-17 Stan Cox <scox@redhat.com>
1186 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1187 (macro): Likewise for la. Likewise for ld.
1188 (mips_after_parse_args): Make -xgot optional, not the default.
1189 (md_apply_fix3): Allow composite relocation to set up gp.
1190 (tc_gen_reloc): Allow relaxing for newabi.
1191 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1192 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1194 2002-09-17 Nick Clifton <nickc@redhat.com>
1196 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1197 BFD_RELOC_ARM_IMMEDIATE has been done.
1198 (tc_gen_reloc): Do not issue reloc number of unimplemented
1199 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1200 their name is already in the error message - plus remove them
1201 from the default case.
1203 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1204 behavior of instructions.
1206 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1208 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1209 Convert functions to K&R format.
1211 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1213 * config/tc-mips.c (pdr_seg): Define only for ELF.
1214 (s_change_section): Remove unused variable. Don't use for nonELF.
1216 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1218 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1220 * config/obj-elf.h (obj_elf_change_section): Likewise.
1222 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1224 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1225 (out_debug_info): Likewise.
1227 2002-09-16 Bruno Haible <bruno@clisp.org>
1229 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1230 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1231 * config/tc-i386.c (i386_target_format): Likewise.
1232 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1233 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1235 2002-09-13 Nick Clifton <nickc@redhat.com>
1237 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1238 when deciding if any operands have been skipped.
1240 2002-09-11 Nick Clifton <nickc@redhat.com>
1242 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1244 * po/tr.po: Updated Turkish translation.
1246 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1248 * config/tc-i386.c (md_apply_fix3): Allow addend for
1249 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1250 BFD_RELOC_386_TLS_LE_32.
1252 2002-09-05 Jeff Law <law@redhat.com>
1254 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1255 marker relocations such as ENTRY/EXIT.
1256 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1257 to both OBJ_ELF and OBJ_SOM.
1259 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1261 * doc/internals.texi (md_apply_fix3): Expand.
1262 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1263 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1264 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1265 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1266 EXTERN_FORCE_RELOC): Document.
1267 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1268 * as.h: Don't include struc-symbol.h for arc.
1270 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1271 subtract absolute symbol.
1272 * obj.h (struct format_ops): Add frob_file_before_fix.
1273 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1274 * symbols.c (S_FORCE_RELOC): New function.
1275 * symbols.h (S_FORCE_RELOC): Declare.
1276 * write.c (TC_FORCE_RELOCATION): Change default.
1277 (TC_FORCE_RELOCATION_ABS): Define.
1278 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1279 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1280 (TC_FORCE_RELOCATION_SECTION): Don't define.
1281 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1282 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1283 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1284 (TC_VALIDATE_FIX_SUB): Define.
1285 (TC_FIX_ADJUSTABLE): Don't define.
1286 (MD_APPLY_SYM_VALUE): Define this instead.
1287 (abs_section_sym): New variable.
1288 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1289 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1290 Don't put the absolute section sym on fixups here.
1291 (fix_segment): New function.
1292 (write_relocs): Don't call fixup_segment from here.
1293 (write_object_file): Instead call tc_frob_file_before_fix,
1294 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1295 Don't output the absolute section symbol.
1296 (fixup_segment): Rewrite.
1297 * write.h (abs_section_sym): Declare.
1298 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1300 (aout_format_ops): Adjust to suit.
1301 * config/obj-aout.h (obj_frob_file): Don't define.
1302 (obj_frob_file_before_fix): Define.
1303 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1304 (S_FORCE_RELOC): Define.
1305 * config/obj-bout.h (S_FORCE_RELOC): Define.
1306 * config/obj-coff.c (coff_format_ops): Init new field.
1307 * config/obj-coff.h: Formatting fixes.
1308 (obj_sec_sym_ok_for_reloc): Define.
1309 (S_FORCE_RELOC): Define.
1310 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1311 (ecoff_frob_file): .. from here.
1312 (ecoff_format_ops): Add new function.
1313 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1314 (obj_frob_file_before_fix): Define.
1315 * config/obj-elf.c (elf_format_ops): Init new field.
1316 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1317 * config/obj-ieee.h: Formatting fixes.
1318 (S_FORCE_RELOC): Define.
1319 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1320 * config/obj-vms.h (S_FORCE_RELOC): Define.
1321 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1322 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1323 for BFD_RELOC_32 and BFD_RELOC_64.
1324 (alpha_fix_adjustable): Remove extern and weak tests.
1325 (alpha_before_fix): Rename from alpha_adjust_symtab.
1326 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1327 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1328 (TC_VALIDATE_FIX): Tweak param name.
1329 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1330 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1331 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1332 (MD_APPLY_SYM_VALUE): Define.
1333 (tc_adjust_symtab): Don't define.
1334 (alpha_adjust_symtab): Don't declare.
1335 (tc_frob_file_before_fix): Define.
1336 (alpha_before_fix): Declare.
1337 (TC_INIT_FIX_DATA): Tweak param names.
1338 * config/tc-arc.c: Include "struc-symbol.h".
1339 (md_pcrel_from): Remove undefined sym fudge.
1340 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1341 Don't set fx_addnumber.
1342 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1343 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1344 (EXTERN_FORCE_RELOC): Define.
1345 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1346 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1347 (arm_validate_fix): Return void.
1348 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1349 Add plt and got reloc tests.
1350 (arm_force_relocation): Call S_FORCE_RELOC.
1351 * config/tc-arm.h (struct fix): Forward declare.
1352 (TC_VALIDATE_FIX): No longer set add_symbolP.
1353 (arm_validate_fix): Adjust declaration.
1354 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1355 (TC_FORCE_RELOCATION): Tweak param name.
1356 (TC_INIT_FIX_DATA): Likewise.
1357 (obj_fix_adjustable): Don't define.
1358 (tc_fix_adjustable): Call arm_fix_adjustable.
1359 (TC_FIX_ADJUSTABLE): Don't define.
1360 (MD_APPLY_SYM_VALUE): Define.
1361 (EXTERN_FORCE_RELOC): Define.
1362 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1363 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1364 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1365 Remove *valP fudges and code to subtract abs sym. Don't set
1367 * config/tc-avr.h: Formatting.
1368 (EXTERN_FORCE_RELOC): Define.
1369 (MD_APPLY_SYM_VALUE): Define.
1370 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1371 (md_apply_fix3): Remove code to subtract abs sym.
1372 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1373 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1374 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1375 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1376 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1377 (tc_fix_adjustable): Remove extern, weak tests.
1378 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1379 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1380 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1381 and code to subtract abs sym.
1382 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1383 (d10v_force_relocation): Call S_FORCE_RELOC.
1384 * config/tc-d10v.h: Don't include write.h.
1385 (struct fix): Instead, forward declare.
1386 (MD_PCREL_FROM_SECTION): Tweak param names.
1387 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1388 (d10v_fix_adjustable): Likewise.
1389 (obj_fix_adjustable): Don't define.
1390 (tc_fix_adjustable): Define.
1391 (TC_FORCE_RELOCATION): Tweak param name.
1392 (MD_APPLY_SYM_VALUE): Define.
1393 (EXTERN_FORCE_RELOC): Define.
1394 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1395 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1396 and code to subtract abs sym.
1397 * config/tc-d30v.h: Don't include write.h.
1398 (struct fix): Instead, forward declare.
1399 (MD_PCREL_FROM_SECTION): Tweak param names.
1400 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1401 (MD_APPLY_SYM_VALUE): Define.
1402 (EXTERN_FORCE_RELOC): Define.
1403 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1404 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1405 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1406 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1407 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1408 Don't use fx_addnumber.
1409 * config/tc-dlx.h: Don't include write.h.
1410 (md_convert_frag): We're not alpha twice over.
1411 (EXTERN_FORCE_RELOC): Define.
1412 (obj_fix_adjustable): Don't define.
1413 (tc_fix_adjustable): Define.
1414 (TC_FIX_ADJUSTABLE): Don't define.
1415 (MD_APPLY_SYM_VALUE): Define.
1416 (LOCAL_LABELS_DOLLAR): Undef always.
1417 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1418 (fr30_fix_adjustable): Remove extern, weak tests.
1419 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1420 (obj_fix_adjustable): Don't define.
1421 (tc_fix_adjustable): Define.
1422 (struct fix): Forward declare.
1423 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1424 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1425 (frv_fix_adjustable): Don't do extern, weak tests.
1426 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1427 (TC_FIX_ADJUSTABLE): Don't define.
1428 (obj_fix_adjustable): Don't define.
1429 (tc_fix_adjustable): Define.
1430 (struct fix): Forward declare.
1431 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1432 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1433 * config/tc-h8300.h (struct fix): Forward declare.
1434 (EXTERN_FORCE_RELOC): Define.
1435 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1436 (hppa_fix_adjustable): Don't test extern or weak. Don't
1437 symbol_mark_used_in_reloc.
1438 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1440 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1441 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1442 (TC_FORCE_RELOCATION_SECTION): Don't define.
1443 (MD_APPLY_SYM_VALUE): Define.
1444 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1445 to subtract abs sym.
1446 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1447 (MD_APPLY_SYM_VALUE): Define.
1448 (MD_PCREL_FROM_SECTION): Tweak param name.
1449 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1450 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1451 (i386_force_relocation): New function.
1452 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1453 (TC_VALIDATE_FIX): Likewise.
1454 (TC_FIX_ADJUSTABLE): Don't define.
1455 (MD_APPLY_SYM_VALUE): Define.
1456 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1457 (i386_force_relocation): Declare.
1458 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1459 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1460 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1461 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1462 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1463 (EXTERN_FORCE_RELOC): Define.
1464 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1465 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1466 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1467 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1468 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1469 Remove #if 0 code. Invert return boolean.
1470 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1471 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1472 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1473 (tc_coff_sizemachdep): Prototype.
1474 (i960_handle_align): Likewise.
1475 (i960_validate_fix): Adjust declaration.
1476 (reloc_callj): Likewise.
1477 (EXTERN_FORCE_RELOC): Define.
1478 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1479 (TC_FORCE_RELOCATION_ABS): Define.
1480 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1481 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1482 (TC_FIX_ADJUSTABLE): Don't define.
1483 (MD_APPLY_SYM_VALUE): Define.
1484 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1485 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1486 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1487 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1488 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1489 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1490 (MD_APPLY_SYM_VALUE): Define.
1491 (EXTERN_FORCE_RELOC): Define.
1492 (TC_FORCE_RELOCATION): Tweak param name.
1493 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1494 (m32r_fix_adjustable): Don't test extern, weak.
1495 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1496 (MD_APPLY_SYM_VALUE): Define.
1497 (obj_fix_adjustable): Don't define.
1498 (tc_fix_adjustable): Define.
1499 (tc_frob_file): Don't define.
1500 (tc_frob_file_before_fix): Define.
1501 (EXTERN_FORCE_RELOC): Define.
1502 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1503 BFD_RELOC_VTABLE_ENTRY address.
1504 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1505 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1506 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1507 Remove duplicated fx_done code.
1508 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1509 (EXTERN_FORCE_RELOC): Define.
1510 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1512 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1513 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1514 (TC_FIX_ADJUSTABLE): Don't define.
1515 (EXTERN_FORCE_RELOC): Define.
1516 (MD_APPLY_SYM_VALUE): Define.
1517 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1518 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1519 Remove fx_addsy tests.
1520 (mcore_force_relocation): Call S_FORCE_RELOC.
1521 (mcore_fix_adjustable): Don't test fx_addsy.
1522 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1523 (EXTERN_FORCE_RELOC): Define.
1524 (obj_fix_adjustable): Don't define.
1525 (tc_fix_adjustable): Define.
1526 (MD_APPLY_SYM_VALUE): Define.
1527 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1528 (mips_pic): No longer static.
1529 (mips_force_relocation): Call S_FORCE_RELOC.
1530 (mips_fix_adjustable): Remove extern, weak tests.
1531 * config/tc-mips.h (enum mips_pic_level): Declare.
1532 (mips_pic): Declare.
1533 (tc_frob_file): Don't define.
1534 (tc_frob_file_before_fix): Define this instead.
1535 (EXTERN_FORCE_RELOC): Define.
1536 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1537 with reg_section tests. Set fx_done instead of calling
1538 symbol_clear_used_in_reloc on bad relocs.
1539 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1540 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1541 (mmix_adjust_symtab): Simplify list handling. Abort on any
1543 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1544 BFD_RELOC_MMIX_LOCAL.
1545 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1546 (EXTERN_FORCE_RELOC): Define.
1547 (MD_PCREL_FROM_SECTION): Tweak param name.
1548 (tc_frob_file): Don't define.
1549 (tc_frob_file_before_fix): Define this instead.
1550 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1551 Remove SEC_CODE checks.
1552 (mn10300_fix_adjustable): Remove extern and weak tests.
1553 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1554 (TC_FORCE_RELOCATION): Tweak param name.
1555 (obj_fix_adjustable): Don't define.
1556 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1557 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1558 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1559 (openrisc_fix_adjustable): Don't test fx_addsy.
1560 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1561 (obj_fix_adjustable): Don't define.
1562 (tc_fix_adjustable): Define this instead.
1563 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1564 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1565 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1566 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1567 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1568 (MD_APPLY_SYM_VALUE): Define.
1569 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1570 Don't subtract symbol value.
1571 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1572 (EXTERN_FORCE_RELOC): Define.
1573 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1574 (MD_APPLY_SYM_VALUE): Define.
1575 (obj_fix_adjustable): Don't define.
1576 (tc_fix_adjustable): Define this instead.
1577 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1579 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1580 (ppc_force_relocation <elf version>): New.
1581 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1582 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1583 comments. Don't subtract fx_subsy as that is already done.
1584 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1585 (MD_PCREL_FROM_SECTION): Likewise.
1586 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1587 ppc_force_relocation.
1588 (TC_FORCE_RELOCATION_SECTION): Delete.
1589 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1590 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1591 (MD_APPLY_SYM_VALUE): Define.
1592 * config/tc-s390.c: #include "dwarf2dbg.h".
1593 (s390_insn): Remove excess parens.
1594 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1595 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1596 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1597 non-NULL. Don't subtract off fx_addsy value.
1598 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1599 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1600 (TC_FIX_ADJUSTABLE): Don't define.
1601 (MD_APPLY_SYM_VALUE): Define.
1602 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1603 (SWITCH_TABLE): Likewise.
1604 (sh_force_relocation): Call S_FORCE_RELOC.
1605 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1606 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1607 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1608 fx_addnumber is zero on entry. Save val in fx_addnumber.
1609 (tc_gen_reloc): Don't subtract fx_subsy.
1610 * config/tc-sh.h (struct fix): Move.
1611 (obj_fix_adjustable): Don't define.
1612 (tc_fix_adjustable): Define this instead.
1613 (TC_FIX_ADJUSTABLE): Don't define.
1614 (MD_APPLY_SYM_VALUE): Define.
1615 (SWITCH_TABLE_CONS): Define.
1616 (SWITCH_TABLE): Define.
1617 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1618 (TC_VALIDATE_FIX_SUB): Define.
1619 (MD_PCREL_FROM_SECTION): Tweak param name.
1620 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1621 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1622 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1623 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1624 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1625 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1626 (TC_VALIDATE_FIX_SUB): Define.
1627 (MD_PCREL_FROM_SECTION): Tweak param name.
1628 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1629 (tc_gen_reloc): Use S_FORCE_RELOC.
1630 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1631 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1632 (TC_FORCE_RELOCATION_ABS): Define this instead.
1633 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1634 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1635 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1636 (MD_APPLY_SYM_VALUE): Define.
1637 (TC_FIX_DATA_PRINT): Tweak param name.
1638 * config/tc-tic30.c (USE_STDOUT): Don't define.
1639 (md_parse_option): Remove stupid debug code.
1640 (tc_gen_reloc): Don't use fx_addnumber.
1641 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1642 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1643 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1644 (tc_fix_adjustable): Define this instead.
1645 (TC_FIX_ADJUSTABLE): Don't define.
1646 (MD_APPLY_SYM_VALUE): Define this instead.
1647 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1648 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1649 (TC_FIX_ADJUSTABLE): Don't define.
1650 (MD_APPLY_SYM_VALUE): Define this instead.
1651 (tc_fix_adjustable): Remove extern and weak tests.
1652 * config/tc-w65.h (struct fix): Forward declare.
1653 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1655 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1656 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1657 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1659 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1660 (MD_APPLY_SYM_VALUE): Define.
1661 (obj_fix_adjustable): Don't define.
1662 (tc_fix_adjustable): Define this instead.
1663 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1665 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1667 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1668 (ppc_fix_adjustable <coff version>): Cleanup.
1670 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1671 (md_parse_option): No -a64 without BFD64.
1672 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1673 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1675 2002-09-04 Nick Clifton <nickc@redhat.com>
1677 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1678 instructions into the hash table if the target cpu is the BookE32.
1680 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1682 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1685 2000-08-28 Catherine Moore <clm@redhat.com>
1687 * tc-v850.c (v850_relax): Declare.
1688 (v850_longcode): New routine.
1689 (v850_handle_align): New routine.
1690 (md_pseudo_table): Add longcall and longjump.
1691 (md_parse_option): Check for relax option.
1692 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1693 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1694 (md_apply_fix3): Likewise.
1695 (v850_force_relocation): Likewise.
1696 (v850_comm): Change the current section.
1697 (md_assemble): Ensure that the correct value is put in the
1699 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1700 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1701 Remove redundant v850ea support.
1702 * tc-v850.h (HANDLE_ALIGN): Define.
1703 (v850_handle_align): Declare.
1704 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1706 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1708 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1709 * configure: Regenerate.
1710 * NEWS: Mention new port.
1712 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1714 * config/obj-coff.c: Add sdef definition.
1715 * config/obj-coff.h: Add tic4x include file and set
1717 * config/tc-tic4x.c: New file.
1718 * config/tc-tic4x.h: New file.
1720 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1722 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1723 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1724 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1725 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1726 (RELOC_ENUM): Define.
1727 (fix_new_internal): Use RELOC_ENUM.
1728 (fix_new, fix_new_exp): Likewise.
1729 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1730 Replace gotos with continue.
1731 (write_relocs): Formatting. Avoid symbol loops in
1732 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1733 errors, and error number in other cases.
1734 (fixup_segment): Remove param names from prototype. Rename
1735 "this_segment_type" to "this_segment". Update linkrelax comment.
1736 Remove "size, "place" and "where" local vars. Formatting. Update
1737 "no symbol" comment. Remove #if 0 and #if 1.
1739 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1741 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1743 * dwarf2dbg.c: Always include dwarf2dbg.h.
1744 (dwarf2_directive_file): Adjust dummy version args.
1745 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1746 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1747 when symbol values differ.
1748 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1749 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1750 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1752 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1754 * config/tc-w65.c (md_section_align): Fix typo.
1755 (md_parse_option): Return 0, not 1.
1757 2002-08-22 Nick Clifton <nickc@redhat.com>
1759 * doc/as.texinfo (Section): Note that if '@' is a comment
1760 character then another symbol is used to prefix the section's
1763 2002-08-22 Christian Groessler <chris@groessler.org>
1765 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1768 2002-08-12 Graeme Peterson <gp@qnx.com>
1770 * configure.in: Add support for sh-**-nto* target.
1771 * configure: Regenerate.
1773 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1775 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1777 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1779 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1781 (ppc_apuinfo_section_add): Define only if format is ELF.
1782 (md_assemble): Emit APUinfo section only if format is ELF.
1785 2002-08-21 Alan Modra <amodra@bigpond.net.au>
1787 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1788 * config/tc-frv.c: Likewise.
1789 * config/tc-hppa.c: Likewise.
1790 * config/tc-ia64.c: Likewise.
1791 * config/tc-ip2k.c: Likewise.
1792 * config/tc-m68hc11.c: Likewise.
1793 * config/tc-m68k.c: Likewise.
1794 * config/tc-mmix.c: Likewise.
1795 * config/tc-mn10300.c: Likewise.
1796 * config/tc-sh.c: Likewise.
1797 * config/tc-sparc.c: Likewise.
1798 * config/tc-v850.c: Likewise.
1800 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
1802 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1805 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1807 From matthew green <mrg@redhat.com>
1809 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1810 PPC_OPCODE_PPC is, except for BookE architectures.
1811 (md_parse_option): Add support for -mspe.
1812 (md_show_usage): Add -mspe.
1813 (md_parse_option): Add support for -me500 and
1814 -me500x2 to generate code for Motorola e500 core complex.
1815 (md_show_usage): Add -me500 and -me500x2.
1817 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1818 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1819 PPC_APUINFO_BRLOCK): New macros.
1821 (ppc_cleanup): New function.
1822 (ppc_apuinfo_section_add): New function.
1824 (md_assemble): Collect info and write the APUinfo section.
1826 * config/tc-ppc.h (md_cleanup): Define.
1827 (ppc_cleanup): Export.
1828 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1830 2002-08-17 Stan Cox <scox@redhat.com>
1832 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1833 config/tc-mips.c (s_change_section): New function to support
1834 IRIX .section pseudo-op.
1836 2002-08-16 Nick Clifton <nickc@redhat.com>
1838 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1840 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1842 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1843 the fix-up against on the right frag.
1844 (s_cpsetup): Likewise. Parse third argument as expression, to
1845 handle global symbols and forward/backward labels correctly.
1847 2002-08-14 Nick Clifton <nickc@redhat.com>
1849 * read.c (stringer): Catch attempts to create strings in the abs
1852 * config/tc-alpha.c: Fix compiling for COFF targets.
1853 Some minor formatting tidyups.
1855 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1857 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1858 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1859 according to the reloc.
1860 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1861 (TC_FORCE_RELOCATION): Define.
1862 (tc_m68hc11_force_relocation): Declare.
1864 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1865 (s_m68hc11_relax): New function for relax group.
1866 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1867 beginning of jump instruction.
1868 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1869 address computation.
1870 (tc-gen_reloc): Update.
1871 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1873 (tc_m68hc11_force_relocation): New function, handle new relocs.
1874 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1875 reloc for the linker relax pass.
1876 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1879 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1881 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1882 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1883 (s_m68hc11_mode): New function for .mode pseudo op.
1884 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1886 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1887 (m68hc11_elf_final_processing): Declare.
1889 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1891 * config/tc-m68hc11.c (md_begin): Take into account additional
1892 page operand for call instruction.
1893 (print_opcode_format): Likewise.
1894 (check_range): Likewise for page range checking.
1895 (get_operand): Don't skip a possible comma in operands.
1896 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1897 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1898 (fixup24): New to handle call reloc.
1899 (build_insn): Handle missing page operand for call instruction.
1901 (md_apply_fix3): Take into account new relocs.
1902 (get_operand): Fix the mode for indexed indirect addressing.
1903 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1905 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1907 * config/tc-mips.c (mips_ip): Don't work out the value of
1908 constant %hi()s here.
1910 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1912 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1913 for ELF, and don't bother checking ELF relocs when non-ELF.
1914 (i386_immediate): Allow absolute_section expressions for aout.
1915 (i386_displacement): Likewise. Also test bfd_is_com_section.
1916 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1917 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1918 not when fx_addsy. Remove dead code.
1920 2002-08-09 Graeme Peterson <gp@qnx.com>
1922 * configure.in: Add support for ppc-*-nto* target.
1923 * configure: Regenerate.
1925 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1927 * config/tc-i386.h: Reorganize.
1929 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1931 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1932 immediate offset in "dla" and "la" expansions.
1934 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1936 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1937 Remove "bfd_gas=yes" from target table when covered later.
1938 Consolidate some entries.
1939 * configure: Regenerate
1941 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1943 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1944 at start of insn, pass it to output_disp and output_imm.
1945 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1946 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1948 (output_imm): Added arguments. Compute properly addend for
1950 (md_apply_fix3): Remove R_386_GOTPC handling.
1952 2002-08-06 George France <france@handhelds.org>
1954 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1955 and m21264b processor names and cpu types.
1956 * doc/c-alpha.texi: Documented new types.
1958 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1960 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1962 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1964 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1965 handling to BFD_RELOC_MIPS16_GPREL.
1967 2002-08-01 Nick Clifton <nickc@redhat.com>
1969 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1970 pool is computed using signed arithmetic so that proper sign
1971 extension is performed if X_add_number is a 64-bit integer.
1973 2002-08-01 H.J. Lu <hjl@gnu.org>
1974 Daniel Jacobowitz <drow@mvista.com>
1976 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1977 .debug_line section unless it has line information.
1979 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1981 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1982 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1983 Allow default displacement size to be an option "--disp-size-default".
1984 (md_number_to_disp): Make error messages include value. Use %d to
1985 print integers, not %s.
1986 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1987 get duplicate messages sometimes.
1988 (convert_iif): Grow frag to max possible instruction size. Avoid
1989 creating unnecessary fixes.
1990 (md_number_to_field) Add prototype.
1991 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1992 prototypes and make static.
1993 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1994 (evaluate_expr): Use resultP argument instead of exprP global.
1995 (get_addr_mode): Quiten compiler warnings.
1996 (encode_operand): eliminate unused variables. Quiten compiler
1997 warnings. Eliminate nul character in format strings.
1998 (parse): argc is unsigned.
1999 (reloc): Type cast index to quieten compiler.
2000 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2001 (md_convert_frag): Note unused parameters. Remove unused
2003 (md_create_long_jump, md_create_short_jump,
2004 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2007 2002-07-31 Nick Clifton <nickc@redhat.com>
2009 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2010 of the PDP-11 and 2.11BSD a.out support.
2012 2002-07-31 Momchil Velikov <velco@fadata.bg>
2014 * config/tc-v850.c (md_assemble): Fix range check for immediate
2017 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2019 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2020 to Broadcom SB-1 core support.
2022 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2024 * config/tc-mips.c (mips_target_format): Fix formatting.
2025 Add recognition of n32 ABI formats.
2027 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2029 * tc-mips.c (load_address): Don't clobber $at when loading a
2030 64-bit address in non-PIC code if noat is in effect.
2033 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2035 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2036 used in division/multiply macro expansions similarly to how they
2037 are used in the variants with break instructions.
2040 2002-07-30 Graeme Peterson <gp@qnx.com>
2042 * configure.in: Add support for arm-*-nto target.
2043 * configure: Regenerate.
2045 2002-07-30 Nick Clifton <nickc@redhat.com>
2047 * config/tc-arm.c (struct literal_pool): Add fields to allow
2048 multiple literal pools to be maintained.
2049 (find_literal_pool): New function.
2050 (find_or_make_literal_pool): New function.
2051 (add_to_literal_pool): Use find_or_make_literal_pool.
2052 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2054 (s_ltorg): Use find_literal_pool.
2055 (arm_cleanup): Dump all literal pools.
2056 * doc/c-arm.texi: Document new behaviour of only dumping literal
2059 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2061 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2062 rather than PPC_OPCODE_32 for powerpc64*.
2064 2002-07-25 Nick Clifton <nickc@redhat.com>
2066 * po/es.po: Updated Spanish translation.
2067 * po/fr.po: Updated French translation.
2069 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2071 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2072 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2073 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2074 * configure, config.in: Regenerate.
2075 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2076 (mips_set_options): Remove "abi" field.
2077 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2080 (mips_arch_string, mips_arch_info): New vars.
2081 (mips_tune_string, mips_tune_info): New vars.
2082 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2083 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2084 (mips_isa_to_str, mips_cpu_to_str): Remove.
2085 (mips_ip): If the selected architecture is a generic ISA rather
2086 than a processor, only mention the ISA level in error messages.
2087 (OPTION_MCPU): Remove.
2089 (md_longopts): Add -mfp64, remove -mcpu.
2090 (mips_set_option_string): New fn.
2091 (md_parse_option): Make -mipsN update file_mips_isa rather than
2092 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2093 Don't let -mgp32 and -mfp32 change the ABI.
2094 (show): Move to end of file. Constify string argument.
2095 (md_show_usage): Move to the end of the file. Read available
2096 architectures from mips_cpu_info_table.
2097 (mips_set_architecture): New fn.
2098 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2099 is an alias for -march=mipsN. Don't change the ABI based on other
2100 flags. Infer the register size from the ABI as well as the
2101 architecture. Complain about more conflicting arguments.
2102 Unify logic with GCC.
2103 (s_mipsset): Don't change the ABI.
2104 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2105 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2106 "mipsN"-type entries. Remove entries that vary only in the
2107 manufacturer's prefix, or that have "000" replaced by "k".
2108 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2109 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2110 (mips_parse_cpu): New fn.
2111 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2112 (mips_cpu_info_from_isa): Minor formatting tweak.
2114 2002-07-24 Nick Clifton <nickc@redhat.com>
2116 * po/sv.po: Updated Swedish translation.
2117 * po/es.po: Updated Spanish translation.
2119 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2121 * Makefile.am: Run "make dep-am".
2122 * Makefile.in: Regenerate.
2123 * doc/Makefile.in: Regenerate.
2124 * config.in: Regenerate.
2125 * po/POTFILES.in: Regenerate.
2127 2002-07-23 Nick Clifton <nickc@redhat.com>
2129 * po/fr.po: Updated French translation.
2131 2002-07-23 Nick Clifton <nickc@redhat.com>
2133 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2136 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2138 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2139 instead of S_IS_EXTERN.
2140 (md_estimate_size_before_relax): Likewise.
2141 (mips_fix_adjustable): Likewise.
2143 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2145 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2147 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2148 Nick Clifton <nickc@redhat.com>
2150 * cond.c (s_ifdef): Treat a referenced but not yet defined
2151 symbol as if it were undefined, in exactly the same way as
2154 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2155 consider referenced bug not yet defined symbols to be
2158 2002-07-18 Denis Chertykov <denisc@overta.ru>
2159 Frank Ch. Eigler <fche@redhat.com>
2160 Alan Lehotsky <alehotsky@cygnus.com>
2161 John Healy <jhealy@redhat.com>
2162 Jeff Johnston <jjohnstn@redhat.com>
2164 * configure.in: Add ip2k configuraton.
2165 * configure: Regenerate.
2166 * Makefile.am: Add ip2k configuraton.
2167 * Makefile.in: Regenerate.
2168 * configure: Regenerate.
2169 * Makefile.in: Regenerate.
2170 * config/tc-ip2k.c: New file.
2171 * config/tc-ip2k.h: New files.
2172 * NEWS: Mention new support.
2173 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2174 * doc/Makefile.in: Regenerate.
2175 * doc/all.texi: Set IP2K
2176 * doc/as.texinfo: Add IP2K description.
2177 * doc/c-ip2k.texi: New file.
2179 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2181 * NEWS: Reformat to match style of other NEWS files.
2183 2002-07-17 Jan Hubicka <jh@suse.cz>
2185 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2187 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2189 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2191 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2193 * NEWS: Add 'Changes in 2.13'.
2195 2002-07-15 Matt Fredette <fredette@netbsd.org>
2197 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2199 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2201 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2202 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2205 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2207 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2208 (ppc_frob_file_before_adjust): New function.
2209 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2210 (ppc_elf_frob_symbol): Don't declare.
2211 (tc_frob_file_before_adjust): Define.
2212 (ppc_frob_file_before_adjust): Declare.
2214 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2215 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2218 (ppc_xcoff64): Rename to ppc_obj64.
2219 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2220 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2221 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2223 (ppc_target_format): Use ppc_obj64 to select format.
2224 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2225 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2226 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2227 (tc_frob_symbol): Likewise.
2228 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2229 BFD_DEFAULT_TARGET_SIZE.
2231 (ppc_is_toc_sym): Likewise.
2232 (md_apply_fix3): Likewise.
2233 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2234 BFD_DEFAULT_TARGET_SIZE.
2235 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2236 (tc_frob_symbol): Likewise.
2238 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2240 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2241 (mips_ip): Likewise.
2243 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2245 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2246 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2247 (md_apply_fix3): Formatting. Remove redundant test.
2248 (tc_gen_reloc): Remove redundant code.
2249 (tc_i386_force_relocation): Delete. Movy body of function to..
2250 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2252 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2254 * configure.in: Add hppa-*-openbsd* target, change
2255 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2257 * configure: Regenerate.
2259 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2261 * config/tc-mips.c (macro): Shift the 32-bit address range
2262 accessible with a lone "lui" down by 32768.
2264 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2266 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2267 instead of "dadd" in address calculations.
2270 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2272 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2274 (md_assemble): Instead, zap the suffix here.
2276 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2278 * NEWS: Remove next release number until the release is actually
2281 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2283 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2285 * Makefile.in: Regenerate.
2287 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2289 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2290 to symbols in merge sections, even non pc-relative ones.
2292 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2294 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2296 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2298 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2299 .softregs and .eeprom.
2301 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2303 * NEWS: Note the next release is 2.13.
2305 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2307 * po/tr.po: New translation imported.
2309 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2311 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2312 (ecoff_directive_def): Likewise.
2313 (ecoff_directive_tag): Likewise.
2314 * listing.c (file_info): Likewise.
2315 * hash.c (what): Likewise.
2317 2002-06-25 H.J. Lu <hjl@gnu.org>
2319 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2320 * Makefile.in: Regenerated.
2322 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2324 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2325 (assemble_ppi): Generate warning if the same register is used
2326 twice as destination in the same padd / pmuls instruction.
2328 2002-06-18 Dave Brolley <brolley@redhat.com>
2330 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2331 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2332 * configure.in: Support frv-*-*.
2333 * Makefile.am (CPU_TYPES): Add frv.
2334 (TARGET_CPU_CFILES): Add tc-frv.c.
2335 (TARGET_CPU_HFILES): Add tc-frv.h.
2336 (DEPTC_frv_coff): New variable.
2337 (DEPTC_frv_elf): New variable.
2338 (DEPOBJ_frv_coff): New variable.
2339 (DEPOBJ_frv_elf): New variable.
2340 (DEP_frv_coff): New variable.
2341 (DEP_frv_elf): New variable.
2342 * tc-frv.c: New file.
2343 * tc-frv.h: New file.
2345 2002-06-17 Catherine Moore <clm@redhat.com>
2347 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2349 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2351 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2353 2002-06-17 Tom Rix <trix@redhat.com>
2355 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2357 2002-06-14 H.J. Lu <hjl@gnu.org>
2358 Daniel Jacobowitz <drow@mvista.com>
2360 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2361 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2362 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2363 and new_logical_line for the first .file directive.
2364 * read.c (s_app_file_string): New function.
2365 (s_app_file): Call it.
2366 * read.h (s_app_file_string): Add declaration.
2368 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2370 * configure.in: Remove MIPS_STABS_ELF.
2371 * configure: Regenerated.
2372 * config.in: Regenerated.
2373 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2375 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2377 (pdr_seg): Declare unconditionally.
2378 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2379 (s_mips_end): Likewise. Generate stabs function markers.
2380 (s_mips_ent): Generate stabs function markers.
2381 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2383 (s_mips_mask): Likewise.
2384 (mips_flag_mdebug): New.
2385 (md_longopts): Add "mdebug" and "no-mdebug".
2386 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2387 (mips_after_parse_args): Set mips_flag_mdebug.
2388 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2390 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2392 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2393 value twice for RELA relocations.
2395 2002-06-12 Ben Elliston <bje@redhat.com>
2397 * symbols.c (resolve_symbol_value): Initialise final_val.
2399 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2401 2002-06-11 Tom Rix <trix@redhat.com>
2403 * config/tc-ppc.c (ppc_subseg_align): Delete.
2404 (ppc_change_csect): Default csect align is 2.
2405 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2407 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2409 * config/tc-avr.c (mcu_types): Update.
2411 2002-06-08 Matt Thomas <matt@3am-software.com>
2413 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2414 (vax-*-netbsd*): New targets.
2415 * configure: Regenerate.
2416 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2417 * config/tc-vax.c: Add support for ELF and PIC.
2418 (flag_want_pic): New flag.
2419 (float_cons): Fix prototype.
2420 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2421 (md_assemble): Introduce a new is_absolute local, and use it
2422 rather than repeating the test. Make fatal errors actually
2423 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2424 Add support for ELF. Add support for PIC.
2425 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2426 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2428 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2429 optional for a.out, and not allowed for VMS. Adjust all callers.
2430 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2431 (md_create_long_jump): Likewise.
2432 (md_undefined_symbol): Likewise.
2433 (md_section_align): Likewise.
2434 (md_shortopts): Allow -k and -K for ELF.
2435 (md_parse_option): Set flag_want_pic if -k or -K.
2436 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2437 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2438 * config/tc-vax.h (tc_headers_hook): Remove.
2439 (TARGET_FORMAT): Set according to object format and target
2441 (BFD_ARCH, TARGET_ARCH): Define.
2442 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2443 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2444 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2445 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2447 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2449 * Makefile.am: Run "make dep-am".
2450 * Makefile.in: Regenerate.
2452 * as.c: Replace CONST with const.
2453 * write.c: Likewise.
2454 * config/obj-coff.c: Likewise.
2455 * config/tc-a29k.c: Likewise.
2456 * config/tc-arm.c: Likewise.
2457 * config/tc-dlx.c: Likewise.
2458 * config/tc-h8300.c: Likewise.
2459 * config/tc-h8500.c: Likewise.
2460 * config/tc-i370.c: Likewise.
2461 * config/tc-i860.c: Likewise.
2462 * config/tc-i960.c: Likewise.
2463 * config/tc-m68hc11.c: Likewise.
2464 * config/tc-m68k.c: Likewise.
2465 * config/tc-m88k.c: Likewise.
2466 * config/tc-mcore.c: Likewise.
2467 * config/tc-mips.c: Likewise.
2468 * config/tc-ns32k.c: Likewise.
2469 * config/tc-pdp11.c: Likewise.
2470 * config/tc-pj.c: Likewise.
2471 * config/tc-s390.c: Likewise.
2472 * config/tc-sh.c: Likewise.
2473 * config/tc-sparc.c: Likewise.
2474 * config/tc-tahoe.c: Likewise.
2475 * config/tc-tic80.c: Likewise.
2476 * config/tc-v850.c: Likewise.
2477 * config/tc-vax.c: Likewise.
2478 * config/tc-w65.c: Likewise.
2479 * config/tc-z8k.c: Likewise.
2481 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2483 Based on patch from Matt Green:
2484 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2485 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2486 (s_mips_loc): New function.
2487 (mips_nonecoff_pseudo_table): Call them.
2488 (append_insn): Call dwarf2_emit_insn.
2490 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2492 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2494 (file_ase_mips16): New veriable.
2495 (mips_eabi64): Remove.
2496 (CPU_HAS_MIPS16): New define.
2497 (CPU_HAS_MDMX): Fix data type.
2498 (md_begin): Code cleanup. Use file_ase_mips16.
2499 (mips_elf_final_processing): Handle mips16 header flag.
2500 Handle EABI flag without intermediate variable.
2502 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2504 * doc/as.texinfo: Update MIPS documentation.
2506 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2508 * config/tc-mips.c: Add define for $zero register.
2509 (md_begin): Add $zero as alias name for $0.
2510 (insn_uses_reg): Use ZERO define.
2511 (mips_ip): Add $zero as alias name for $0.
2512 (mips16_ip): Likewise.
2513 (s_cplocal): Demand empty rest of input line.
2514 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2515 names. Use ZERO define. Fix input_line_pointer progress.
2517 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2519 * symbols.c: Replace CONST by const throughout.
2520 (symbol_find_exact): Split out from..
2521 (symbol_find_base): ..here.
2522 * symbols.h: Replace CONST by const throughout.
2523 (symbol_find_exact): Declare.
2524 * config/obj-elf.c: #include "struc-symbol.h".
2525 (elf_frob_file): If group name matches an exported symbol, use that
2526 symbol for the signature and ".group" as the section name.
2528 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2530 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2533 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2535 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2536 and mips_opts.ase_mdmx if they are uninitialized.
2538 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2540 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2541 (hppa_force_relocation): Check if a stub just before the start symbol
2542 of the last call_info is reachable before forcing relocation. Fix
2545 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2547 * config/tc-mips.c (mips_after_parse_args): New function.
2548 (md_begin): Move processing of defaults to mips_after_parse_args.
2549 config/tc-mips.h (md_after_parse_args): Define.
2551 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2553 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2554 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2555 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2556 * configure: Regenerate.
2557 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2560 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2562 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2564 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2566 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2567 linkonce flag. Print all warnings.
2568 (obj_elf_section): Parse ",comdat" for groups.
2569 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2570 consistency of comdat flag.
2572 2002-06-02 Richard Henderson <rth@redhat.com>
2574 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2575 with LITERALs without sequence numbers.
2577 2002-06-01 Richard Henderson <rth@redhat.com>
2579 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2580 Rename them LITUSE_ALPHA_*.
2582 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2584 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2585 accept parentheses enclosed register lists.
2587 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2589 * Makefile.am: Run "make dep-am".
2590 * Makefile.in: Regenerate.
2591 * po/POTFILES.in: Regenerate.
2593 2002-05-31 Graeme Peterson <gp@qnx.com>
2595 * configure.in: Add i386-*-nto-qnx*.
2596 * configure: Regenerate.
2598 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2600 * config/tc-mips.c (mips_ip): Use unsigned long values for
2603 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2605 * config/tc-mips.c (s_cpsetup): Fix initialization of
2606 mips_cpreturn_register and mips_cpreturn_offset.
2608 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2610 * config/tc-mips.c (s_cpsetup): Fix comment.
2612 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2614 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2615 (mips_ip): Likewise.
2616 (mips16_ip): Likewise.
2617 (tc_get_register): Likewise.
2619 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2620 Ed Satterthwaite <ehs@broadcom.com>
2622 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2623 (mips_opts): Initialize "ase_mdmx" member.
2624 (file_ase_mdmx): New variable.
2625 (CPU_HAS_MDMX): New macro.
2626 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2627 based on command line options and configuration defaults.
2628 (macro_build): Note in comment that use of MDMX in macros is
2629 not currently allowed.
2630 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2631 "Z" MDMX operand types.
2632 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2633 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2635 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2636 Add support for "-mdmx" and "-no-mdmx" options.
2637 (OPTION_ELF_BASE): Move to accomodate new options.
2638 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2639 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2640 file_ase_mdmx was set.
2641 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2642 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2645 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2647 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2648 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2649 command line switch conforming to gcc conventions.
2650 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2652 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2654 * config/tc-mips.c (macro_build_jalr): New Function.
2655 (md_begin): NewABI uses big GOTs.
2656 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2657 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2658 (load_address): Add some NewABI PIC support.
2660 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2661 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2663 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2665 * config/tc-mips.c (load_address): Use mips_gp_register instead
2666 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2668 (macro): Use mips_gp_register instead of hardcoded value.
2670 2002-05-30 Richard Henderson <rth@redhat.com>
2672 * expr.h (operatorT): Add O_md17..O_md32.
2673 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2674 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2675 O_tprelhi, O_tprello, O_tprel): New.
2676 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2677 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2678 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2679 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2680 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2681 (md_apply_fix3): Handle TLS relocations.
2682 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2683 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2684 associated TLS reloc. Check lituse_tls relocs match up.
2685 (emit_insn): Handle TLS relocations.
2688 * doc/c-alpha.texi: Add docs for tls relocations.
2690 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2692 * config/tc-mips.c (mips_gprel_offset): New variable.
2693 (s_gpvalue): Use it.
2695 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2697 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2698 write-write conflicts.
2699 (md_assemble): Reformat introductory comment.
2700 (parallel_ok): Prevent packing only if the first
2701 instruction cannot be packed.
2703 2002-05-30 Jason Eckhardt <jle@redhat.com>
2704 Tom Rix <trix@redhat.com>
2706 * config/tc-d10v.c (build_insn): Check for immediates.
2708 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2710 * config/tc-mips.c: Replace GP in comments by $gp.
2711 (mips_big_got): Initialize.
2712 (mips_trap): Initialize.
2713 (load_address): Use mips_gp_register instead of hardcoded value.
2714 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2715 (macro): Use mips_gp_register instead of hardcoded value.
2716 (macro2): Change load_address calls.
2717 (md_pcrel_from): Comment formatting.
2718 (s_cpload): Use mips_gp_register instead of hardcoded value.
2719 (s_cprestore): Likewise. Comment formatting.
2720 (s_gpword): Fix data type.
2721 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2722 (nopic_need_relax): Replace GP in comments by $gp.
2723 (mips_elf_final_processing): Better comment.
2725 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2727 * configure.in: Add DLX configuraton
2728 * Makefile.am: Add DLX configuraton
2729 * configure: Regenerate.
2730 * Makefile.in: Regenerate.
2731 * config/tc-dlx.c: New file.
2732 * config/tc-dlx.h: New files.
2733 * NEWS: Mention new support.
2735 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2737 * config/obj-coff.c (write_object_file): Add missing semicolon.
2739 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2741 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2742 by the define. Remove superfluous check of mips_opts.mips16.
2743 (append_insn): Likewise. Canonicalize variable increments.
2744 (macro_build): Canonicalize variable increments.
2745 (macro_build_lui): Likewise.
2746 (load_register): Likewise.
2747 (load_address): Move pointer initialization.
2748 (macro): Move pointer to a more local scope. Canonicalize variable
2749 increments. Better comments. Replace magic constant for RA by the
2751 (macro2): Replace magic constant for RA by the define. Canonicalize
2752 variable increments.
2753 (mips_ip): Canonicalize variable increments.
2754 (mips16_ip): Replace magic constant for RA by the define.
2755 (my_getSmallParser): Canonicalize variable increments/decrements.
2756 (my_getPercentOp): Likewise.
2757 (my_getSmallExpression): Likewise.
2758 (s_align): Likewise.
2759 (s_mipsset): Likewise.
2760 (s_cpsetup): Likewise.
2761 (s_insn): Remove superfluous check of mips_opts.mips16.
2762 (s_mips_stab): Likewise.
2763 (mips_handle_align): Canonicalize variable increments.
2764 (s_mips_ent): Likewise.
2765 (s_mips_end): Add comment.
2767 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2769 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2770 * configure: Regenerate.
2772 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2774 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2775 * Makefile.in: Regenerate.
2776 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2777 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2778 * configure: Regenerate.
2779 * as.h: Use #include "" instead of <> for local header files.
2780 * flonum-konst.c: Likewise.
2781 * flonum-mult.c: Likewise.
2783 * listing.c: Likewise.
2784 * config/tc-ia64.h: Likewise.
2785 * config/tc-v850.h: Likewise.
2787 2002-05-24 TAMURA Kent <kent@netbsd.org>
2789 * configure.in: Add a target for i386-netbsdpe.
2790 * configure: Regenerate.
2792 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2794 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2795 (obj_elf_common): Call elf_common.
2796 (obj_elf_tls_common): New function.
2797 (elf_pseudo_tab): Support .tls_common.
2798 (special_sections): Add .tdata and .tbss.
2799 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2801 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2802 (obj_elf_parse_section_letters): Include T in error message.
2803 * config/tc-ppc.c (ppc_section_letter): Likewise.
2804 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2805 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2807 * config/tc-sparc.c (md_apply_fix3): Likewise.
2808 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2809 Define them if not BFD_ASSEMBLER.
2810 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2812 (md_apply_fix3): Add TLS relocs.
2813 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2814 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2815 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2816 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2817 (ia64_elf_section_letter): Include T in error message.
2818 (md_begin): Support TLS operators.
2819 (md_operand): Likewise.
2820 (ia64_gen_real_reloc_type): Support TLS relocs.
2821 * write.c (adjust_reloc_syms): Don't change symbols in
2822 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2824 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2826 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2827 round the relocation up rather than down.
2829 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2831 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2833 * doc/as.texinfo: Document that the COFF version of .section
2834 ignores the 'a' flag.
2836 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2838 * config/tc-alpha.c (assemble_tokens): Protect use of
2839 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2841 * write.c (size_seg): Check adjustment to last frag.
2842 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2844 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2845 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2846 (write_object_file): Invoke md_do_align if available, and use
2847 frag_align_code on text sections.
2848 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2849 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2850 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2851 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2852 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2855 2002-05-22 H.J. Lu <hjl@gnu.org>
2857 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2860 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2862 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2865 2002-05-22 H.J. Lu <hjl@gnu.org>
2867 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2868 for one .loc for compiler.
2870 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2872 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2875 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2877 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2878 Optimize the rotate by zero case.
2880 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2882 * configure.in: Remove accidental enabling of bfd_gas=yes for
2884 * configure: Regenerate.
2886 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2888 * app.c: Fix formatting.
2890 * ehopt.c: Likewise.
2892 * input-file.c: Likewise.
2893 * listing.c: Likewise.
2894 * macro.h: Likewise.
2895 * stabs.c: Likewise.
2896 * symbols.c: Likewise.
2898 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2900 * config/obj-generic.c: Delete file.
2901 * config/obj-generic.h: Likewise.
2903 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2905 * config/tc-avr.c (mcu_types): Update for new devices.
2907 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2909 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2911 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2913 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2914 worked sometimes by accident. Fix copy&paste comment.
2916 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2918 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2919 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2920 (mips_elf_final_processing): Let n32 use .reginfo.
2922 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2924 * config/tc-mips.c (append_insn): Fix too small range of variable.
2926 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2928 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2929 listing_prev_line().
2931 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2933 * config/tc-arm.c (md_assemble): Remove redundant call to
2936 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2939 * stabs.c (s_stab_generic): Fix grammatical error in warning
2942 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2944 * write.c (subsegs_finish): Don't specially align last subseg.
2946 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2948 * stabs.c (s_stab_generic): Warn about a description field that is
2951 * config/obj-coff.c: Fix compile time warnings when compiling
2952 without BFD_ASSEMBLER defined.
2955 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2957 (md_pcrel_from_section): Use md_pcrel_from().
2959 2002-05-11 Bruno Haible <bruno@clisp.org>
2961 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2962 by dwarf2_directive_loc, instead of calling dwarf2_where.
2964 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2966 * config/obj-coff.h: Fix formatting.
2967 * config/tc-mcore.c: Likewise.
2968 * config/tc-mn10300.c: Likewise.
2969 * config/tc-openrisc.c: Likewise.
2970 * config/tc-or32.c: Likewise.
2971 * config/tc-pdp11.c: Likewise.
2972 * config/tc-ppc.c: Likewise.
2973 * config/tc-ppc.h: Likewise.
2974 * config/tc-sh64.c: Likewise.
2975 * config/tc-sh.c: Likewise.
2976 * config/tc-tic54x.c: Likewise.
2977 * config/tc-xstormy16.c: Likewise.
2978 * config/tc-xstormy16.h: Likewise.
2980 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2982 * config/obj-coff.c: Fix formatting.
2983 * config/obj-elf.c: Likewise.
2984 * config/tc-alpha.c: Likewise.
2985 * config/tc-arm.c: Likewise.
2986 * config/tc-d10v.c: Likewise.
2987 * config/tc-d30v.c: Likewise.
2988 * config/tc-h8300.c: Likewise.
2989 * config/tc-hppa.c: Likewise.
2991 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2993 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2994 reloc when no_cond_jump_promotion.
2996 2002-05-08 Jim Wilson <wilson@redhat.com>
2998 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2999 current variable part of frag.
3001 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3003 * config/tc-mmix.c: Fix formatting.
3004 * config/tc-mmix.h: Likewise.
3006 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3008 * configure: Regenerate.
3010 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3012 * config/tc-m68k.c: Fix formatting.
3014 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3016 * Makefile.am: Honour DESTDIR.
3017 * Makefile.in: Regenerate.
3019 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3021 * config/tc-ia64.c: Fix formatting.
3022 * config/tc-ia64.h: Likewise.
3024 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3026 * config/tc-mips.c: Fix formatting.
3027 * config/tc-s390.c: Likewise.
3028 * config/tc-s390.h: Likewise.
3030 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3032 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3033 information for instructions.
3035 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3037 * as.h: Fix formatting.
3040 * dwarf2dbg.c: Likewise.
3041 * frags.h: Likewise.
3043 * macro.c: Likewise.
3045 * stabs.c: Likewise.
3046 * symbols.c: Likewise.
3048 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3050 * app.c (mri_pseudo): Only declare for TC_M68K.
3052 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3053 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3054 BFD_RELOC_16_BASEREL.
3055 (md_assemble): Likewise.
3056 (md_apply_fix3): Likewise.
3058 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3060 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3061 zero into an add of zero - it is not the same.
3063 2002-05-01 Arati Dikey <aratid@kpit.com>
3065 * tc-sh.c (get_specific): Generate warning if the same
3066 destination register is used in parallel instructions.
3068 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3070 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3072 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3074 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3075 backwards to prevent cascading errors.
3077 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3079 * configure.in: Add support for powerpc-*-windiss.
3080 * configure: Regenerated.
3082 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3084 * config/tc-s390.c (md_parse_option): Formatting.
3086 * config/tc-i386.c: Formatting fixes, add missing space in error
3089 2002-04-24 Christian Groessler <chris@groessler.org>
3091 * config/tc-z8k.c (build_bytes): Add support for new cases:
3092 CLASS_IGNORE and ARG_NIM4.
3093 (md_assemble): Prevent destruction of input_line_pointer if
3094 get_operands returns failure.
3096 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3098 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3099 instructions to be generated by macros.
3101 2002-04-24 Andreas Schwab <schwab@suse.de>
3103 * config/tc-i386.c (output_jump, output_disp)
3104 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3106 (md_apply_fix3): Remember addend value for rela relocations.
3107 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3109 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3111 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3112 from previous change.
3114 2002-04-22 Eric Christopher <echristo@redhat.com>
3116 * config/tc-mips.c (macro_build): Add warning if macro instructions
3117 are expanded into a branch delay slot.
3119 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3121 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3122 numbers, gdb relies on them to detect the start of the prologue.
3124 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3126 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3127 symbols in merge sections.
3129 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3131 * as.c (main): Don't reference _bfd_chunksize.
3133 2002-04-15 Tom Rix <trix@redhat.com>
3135 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3136 symbols in merge sections.
3138 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3140 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3141 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3142 argument for the precision.
3143 (gen_to_words): Update accordingly.
3145 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3147 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3148 BFD_VERSION_STRING unavailable.
3149 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3151 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3153 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3154 symbol_used_in_reloc_p is true.
3156 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3159 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3161 * dep-in.sed: Cope with absolute paths.
3162 * Makefile.am (dep.sed): Subst TOPDIR.
3164 * Makefile.in: Regenerate.
3166 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3168 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3169 (mips_ip): Remove unused variable.
3170 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3171 unsigned char with bfd_byte.
3172 (s_file): Remove unused variable.
3173 (s_mips_ent): Likewise.
3175 2002-04-03 Tom Rix <trix@redhat.com>
3177 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3179 (find_opcode): Fix warning in as_warn.
3180 * config/tc-d10v.h: Update Copyright.
3182 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3183 Tom Rix <trix@redhat.com>
3185 From Jeff Knaggs <jknaggs@redhat.com>
3186 * config/tc-d10v.c (check_resource_conflict): New function to
3187 check for resource conflicts.
3189 From Jason Eckhardt <jle@redhat.com>
3190 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3192 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3193 reserved control registers is used.
3194 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3197 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3198 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3199 instruction cannot be packed.
3201 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3202 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3203 write-write conflicts.
3204 (md_assemble): Reformat introductory comment.
3205 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3208 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3210 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3211 O_logical_not>): Derive final_seg from add_symbol.
3212 <O_multiply..O_logical_or>: More final_seg twiddles.
3214 2002-04-01 Jessica Han <jessica@cup.hp.com>
3216 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3219 2002-03-27 Andreas Schwab <schwab@suse.de>
3221 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3222 field for pc-relative fixups.
3223 (output_disp): Likewise.
3224 (md_estimate_size_before_relax): Likewise.
3225 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3226 pc-relative fixups in 64bit mode.
3228 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3230 * config/te-aix5.h: Typo fix.
3232 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3234 * Makefile.am: Run "make dep-am".
3235 * Makefile.in: Regenerate.
3236 * doc/Makefile.in: Regenerate.
3238 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3240 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3241 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3243 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3245 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3246 the EXTENDED bit here; report the estimate according to the
3249 2002-03-18 Tom Rix <trix@redhat.com>
3251 * configure.in: Add AIX 5 support.
3252 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3253 * config/te-aix5.h: New file. AIX 5 support.
3254 * configure: Regenerate.
3256 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3258 * po/fr.po: Updated version.
3260 2002-03-16 Andreas Jaeger <aj@suse.de>
3262 * doc/c-mips.texi (Machine Dependencies): Add new node.
3264 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3266 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3267 (mips_opts): Initialize "ase_mips3d" member.
3268 (file_ase_mips3d): New variable.
3269 (CPU_HAS_MIPS3D): New macro.
3270 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3271 based on command line options and configuration defaults.
3272 (macro_build, mips_ip): Accept MIPS-3D instructions if
3273 mips_opts.ase_mips3d is set.
3274 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3275 Add support for "-mips3d" and "-no-mips3d" options.
3276 (OPTION_ELF_BASE): Move to accomodate new options.
3277 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3278 (mips_elf_final_processing): Add a comment indicating that a
3279 MIPS-3D ASE ELF header flag should be set, when one exists.
3280 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3281 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3282 nomips3d" directives.
3284 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3286 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3287 a weak symbol in same section to be within reach.
3289 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3291 * po/fr.po: Updated version.
3293 2002-03-12 Andreas Schwab <schwab@suse.de>
3295 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3296 body record so that an error is given for misplaced .save
3299 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3301 * config/tc-i386.h (REX_OPCODE): Define.
3302 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3303 (rex_byte): typedef to int.
3304 * config/tc-i386.c: Group prototypes and vars together.
3305 Formatting fixes. Remove occurrences of "register" keyword.
3308 (mode_from_disp_size): Add INLINE keyword to prototype.
3309 (fits_in_signed_byte): Likewise.
3310 (fits_in_unsigned_byte): Likewise.
3311 (fits_in_unsigned_word): Likewise.
3312 (fits_in_signed_word): Likewise.
3313 (fits_in_unsigned_long): Likewise.
3314 (fits_in_signed_long): Likewise.
3315 (type_names): Constify.
3316 (intel_float_operand): Constify param.
3317 (add_prefix): Use REX_OPCODE.
3318 (md_assemble): Likewise. Modify for changed rex_byte.
3319 (parse_insn): Split out of md_assemble.
3320 (parse_operands): Likewise.
3321 (swap_operands): Likewise.
3322 (optimize_imm): Likewise.
3323 (optimize_disp): Likewise.
3324 (match_template): Likewise.
3325 (check_string): Likewise.
3326 (process_suffix): Likewise.
3327 (check_byte_reg): Likewise.
3328 (check_long_reg): Likewise.
3329 (check_qword_reg): Likewise.
3330 (check_word_reg): Likewise.
3331 (finalize_imm): Likewise.
3332 (process_operands): Likewise.
3333 (build_modrm_byte): Likewise.
3334 (output_insn): Likewise.
3335 (output_branch): Likewise.
3336 (output_jump): Likewise.
3337 (output_interseg_jump): Likewise.
3338 (output_disp): Likewise.
3339 (output_imm): Likewise.
3341 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3343 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3345 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3347 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3348 relocs except when BFD64.
3350 * write.c (number_to_chars_bigendian): Don't abort when N is
3351 larger than sizeof (VAL).
3352 (number_to_chars_littleendian): Likewise.
3354 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3356 * config/tc-hppa.c (md_apply_fix3): Add cast.
3357 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3360 2002-03-05 Paul Koning <pkoning@equallogic.com>
3362 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3363 (parse_ac5): New function for parsing float regs in float operand.
3364 (parse_expression): Remove attempt to make literals be octal.
3365 (parse_op_no_deferred): Support float literals.
3366 (parse_op): Reject attempts to refer to float regs.
3367 (parse_fop): New function, like parse_op but for float operand.
3368 (md_assemble): Add cases to parse float operands. Also fix
3369 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3371 2002-03-04 H.J. Lu <hjl@gnu.org>
3373 * config/obj-elf.c (special_section): Add .init_array,
3374 .fini_array and .preinit_array.
3376 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3377 .init_array and .fini_array.
3379 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3381 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3383 (obj_frob_symbol): Copy visibility.
3385 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3387 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3389 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3391 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3393 * po/es.po: Updated.
3395 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3397 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3398 only, undo the changes made on 2001-06-08, with the
3399 effect being that common or extern symbols are
3400 adjusted for embedded-PIC, but weak symbols are not.
3401 (md_estimate_size_before_relax: Likewise, with the effect
3402 that extern symbols are treated the same as weak symbols
3403 only if not embedded-PIC.
3404 (mips_fix_adjustable) Likewise, with the effect that
3405 weak or extern symbols are not adjusted for embedded-PIC.
3406 (md_apply_fix3): Tweak so that the case where value is zero
3407 is handled more correctly for embedded-PIC code.
3409 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3411 * doc/as.texinfo (Overview): Add missing @ifset IA64
3413 * configure.in (LINGUAS): Add es.po.
3414 * configure: Regenerate.
3415 * po/es.po: New file.
3417 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3419 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3420 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3421 and NO_PIC cases. Code cleanup.
3422 (macro2): Fix handling of 64bit register loads.
3424 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3426 * doc/as.texinfo: Add entry for IA64.
3427 * doc/c-ia64.texi: New file.
3429 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3431 * config/tc-hppa.c: Update copyright date.
3433 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3434 Remove references to chip manufacturers.
3435 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3437 (md_show_usage): Remove references to chip manufacturers. Mention
3439 (md_begin): Test power4 opcode flag bits.
3441 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3443 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3444 count exceeds prologue count.
3445 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3446 (unwind.label_prologue_count): New member.
3448 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3450 (get_saved_prologue_count): New function.
3451 (save_prologue_count): New function.
3452 (free_saved_prologue_count): New function.
3453 (dot_label_state): Record state label by calling save_prologue_count().
3454 (dot_copy_state): Restore prologue count by calling
3455 get_saved_prologue_count().
3456 (generate_unwind_image): Free up list of saved prologue
3457 counts by calling free_saved_prologue_counts().
3459 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3461 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3462 function declarations.
3464 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3466 * NEWS: Note that GASP is now deprecated.
3467 * Makefile.am: Do not build gasp-new by default.
3468 * Makefile.in: Regenerate.
3469 * doc/Makefile.am: Do not install gasp.info.
3470 * doc/Makefile.in: Regenerate.
3471 * gas/gasp.texi: Note that gasp is now deprecated.
3473 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3475 * NEWS: Mark 2.12 branch.
3477 2002-02-19 Tom Tromey <tromey@redhat.com>
3479 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3481 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3483 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3486 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3488 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3489 Make bit size independent of architecture switch.
3490 (md_begin): Add warning for -m64 with -Aesa.
3491 (s390_md_end): Use renamed architecture defines.
3493 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3495 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3497 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3499 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3502 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3504 * config/tc-mips.c (md_estimate_size_before_relax): Really
3505 make sure we treat weak like extern only for ELF. (Fixes
3506 patch from 2001-07-25.)
3508 2002-02-15 Ben Elliston <bje@redhat.com>
3510 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3513 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3515 * NEWS: Mention support for MMIX.
3517 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3519 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3520 a sequence of indpendent 'if' statements for easier debugging
3521 and future modification.
3523 2002-02-13 Matt Fredette <fredette@netbsd.org>
3525 * config/tc-m68k.c (md_show_usage): No longer display a
3526 hard-coded "68020" for the default CPU, instead display the
3527 canonical name of the true, configured default CPU.
3528 (m68k_elf_final_processing): Mark objects for sub-68020
3529 CPUs with the new EF_M68000 flag.
3531 2002-02-13 Andreas Schwab <schwab@suse.de>
3533 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3534 pc-relative relocations to merge sections in 64-bit mode.
3536 2002-02-13 Ben Elliston <bje@redhat.com>
3538 * NEWS: Document floating point number handling in gasp.
3539 * gasp.c: Include <assert.h> and "xregex.h".
3540 (is_flonum): New function.
3541 (chew_flownum): Likewise.
3542 (change_base): Consume flonums from the input, where possible.
3543 * doc/gasp.texi (Constants): Document floating point numbers.
3545 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3547 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3548 that implicitly use LR and RR selectors.
3550 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3552 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3553 and `epsw' as available on AM33 and above only.
3554 (other_register_name): Add logic to handle machine type encoded in
3557 2002-02-11 Tom Rix <trix@redhat.com>
3559 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3562 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3564 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3567 2002-02-11 Jan Hubicka <jh@suse.cz>
3569 * i386.c (md_assemble): Support 32bit address prefix.
3570 (i386_displacement): Likewise.
3571 (i386_index_check): Accept 32bit addressing in 64bit mode.
3573 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3575 * config/tc-sh.c (dot): Removed unused function.
3577 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3579 * Makefile.am: "make dep-am".
3580 * Makefile.in: Regenerate.
3581 * aclocal.m4: Regenerate.
3582 * config.in: Regenerate.
3583 * configure: Regenerate.
3584 * doc/Makefile.in: Regenerate.
3586 2002-02-10 Richard Henderson <rth@redhat.com>
3588 * doc/c-alpha.texi: New file.
3589 * doc/Makefile.am (CPU_DOCS): Add it.
3590 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3592 2002-02-09 Richard Henderson <rth@redhat.com>
3594 * config/tc-alpha.c (O_samegp): New.
3595 (USER_RELOC_P): Include it.
3596 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3597 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3598 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3599 (alpha_validate_fix): New.
3600 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3602 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3604 * doc/c-cris.texi: New.
3605 * doc/all.texi: @set CRIS.
3606 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3607 Include c-cris.texi.
3608 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3609 * doc/Makefile.in: Regenerate.
3611 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3613 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3614 determine if a number is a sign-extended 32-bit number.
3615 (load_register): Use IS_SEXT_32BIT_NUM.
3616 (macro): Check if load/store macro handling is using a
3617 constant 32-bit address on 64-bit address systems, and if
3618 so optimize the generation of that address.
3620 2002-02-08 Richard Henderson <rth@redhat.com>
3622 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3623 we've eliminated all foreign relocation types yet.
3624 (alpha_fix_adjustable): Likewise.
3626 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3628 Contribute sh64-elf.
3629 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3630 Stephen Clarke <Stephen.Clarke@st.com>
3631 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3632 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3633 * config/tc-sh.c (md_relax_table): Added default sizes for
3634 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3635 MOVI_16, MOVI_32 and MOVI_48.
3636 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3637 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3639 (shmedia_md_estimate_size_before_relax): Remove redundant
3640 blocks. Set fragP->fr_var even if relaxation type unchanged.
3641 Retain UNDEF_MOVI until expression decays to number.
3642 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3643 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3644 relocation types. Take fixP->fx_addnumber into account too.
3645 (shmedia_md_apply_fix): Likewise.
3646 (shmedia_md_convert_frag): Likewise.
3647 (shmedia_build_Mytes): Likewise.
3648 (sh64_consume_datalabel): Complain about nested datalabel.
3649 Support PIC relocs. Call sh_parse_name.
3650 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3651 in tc-sh.h to SHmedia reloc types.
3652 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3653 MOVI_GOTPC): New relaxation constants.
3654 (md_relax_table): Introduce relaxation directives for PIC-related
3656 (sh_PIC_related_p): Handle datalabel.
3657 (sh_check_fixup): Choose SH5 PIC relocations.
3658 (sh_cons_fix_new): Added BDF_RELOC_64.
3659 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3660 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3661 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3662 current ISA is SHmedia, get 7 bytes.
3663 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3664 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3666 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3667 shmedia_apply_fix3 and make void.
3668 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3669 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3671 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3672 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3673 2001-03-14 DJ Delorie <dj@redhat.com>
3674 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3675 * doc/Makefile.in(CPU_DOCS): Ditto.
3676 * doc/c-sh64.texi: New file.
3677 * doc/as.texinfo: Add SH64 support.
3678 2001-03-13 DJ Delorie <dj@redhat.com>
3679 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3680 A_REUSE_PREV so that its purpose is more obvious.
3681 (shmedia_build_Mytes): Ditto.
3682 2001-03-07 DJ Delorie <dj@redhat.com>
3683 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3685 (sh64_vtable_inherit): Ditto.
3686 (strip_datalabels): New, strip "datalabel" from given line.
3687 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3689 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3690 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3692 (shmedia_build_Mytes): ... to here.
3693 2001-03-06 DJ Delorie <dj@redhat.com>
3694 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3696 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3697 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3698 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3699 address by one in call to dwarf2_emit_insn.
3700 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3701 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3702 alignment handling broken by imported changes.
3703 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3704 (sh64_handle_align): Declare.
3705 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3706 (sh64_max_mem_for_rs_align_code): Declare.
3707 (enum sh64_isa_values): Moved here from tc-sh64.c.
3708 (md_do_align): Define.
3709 (sh64_do_align): Declare.
3710 (struct sh64_tc_frag_data): New.
3711 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3713 (TC_FRAG_INIT): Change to set new datatype.
3714 (struct sh64_segment_info_type): Rename member
3715 last_flushed_location to last_contents_mark. All users changed.
3716 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3717 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3718 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3719 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3720 of unsetting seen_insn.
3721 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3722 call sh64_update_contents_mark.
3723 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3724 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3725 enum sh64_isa_values.
3726 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3727 (emitting_crange): Boolean guard moved to file scope from function
3728 scope in sh64_set_contents_type.
3730 (sh64_update_contents_mark): New; most split out from
3731 sh64_flush_pending_output.
3732 (shmedia_md_end): Call sh64_update_contents_mark. Set
3733 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3734 (sh64_do_align): New function.
3735 (sh64_max_mem_for_rs_align_code): New function.
3736 (sh64_handle_align): Rename from shmedia_do_align. Make
3737 non-static. Add head comment. Emit zero bytes for n bytes modulo
3738 four. Change return-type to void.
3739 (shmedia_elf_new_section): Remove.
3740 (shmedia_md_assemble): Call sh64_update_contents_mark.
3741 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3742 new frag. Call sh64_update_contents_mark after making the new
3744 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3745 and sh_flush_pending_output.
3746 (sh64_flag_output): Also call md_flush_pending_output, but add
3747 condition on not emitting_crange.
3748 (sh64_tc_cons_fix_new): Remove.
3749 2001-01-12 Nick Clifton <nickc@redhat.com>
3750 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3751 alignment handling scheme imported from sourceware.
3752 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3753 * config/tc-sh64.h (TARGET_FORMAT): Define.
3754 (sh64_target_format): Prototype.
3755 * config/tc-sh64.c (sh64_target_mach): New function.
3756 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3757 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3758 zero_address_frag instead of copying the frag of the symbol.
3759 (shmedia_frob_file_before_adjust): Ditto.
3760 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3761 to valueT to remove signedness.
3762 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3763 headers to output_bfd. Do not evaluate symbols if final is false;
3765 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3766 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3767 to the current frag, call shmedia_md_convert_frag to emit fixups
3768 and make frag_wane neutralize the frag. Update comments.
3769 * config/tc-sh.c (md_convert_frag): Change caller of
3770 shmedia_md_convert_frag.
3771 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3772 * config/tc-sh64.h: Tweak comments and correct formatting.
3773 * config/tc-sh64.c: Ditto.
3774 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3775 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3776 for the no-relocation case.
3777 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3778 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3780 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
3782 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3783 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3785 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3787 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3788 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3789 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3790 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3791 al>: Set lowest bit of field to relocate to 1 and rest to empty,
3792 if reloc is emitted.
3793 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3794 New options plus bugfixes.
3795 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3797 (md_parse_option): Handle new options.
3798 (md_show_usage): Add blurb for new options.
3799 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3800 (sh64_expand, sh64_pt32): New variables.
3801 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3802 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3803 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
3804 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3805 <resolved previously-pc-relative relocs>: Handle
3806 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3807 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3808 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3809 points to SHcompact code.
3810 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3811 SH64PCREL16)>: Check that ISA of what operand points at and
3812 PTA/PTB matches, or emit error.
3813 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3814 SHMEDIA_BFD_RELOC_PT.
3815 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3817 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3818 condition for MOVI expansion.
3819 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3820 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3822 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3824 (sh64_target_format): Error-check setting of sh64_pt32 and
3825 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3826 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3827 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3828 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3829 * config/tc-sh64.c: Improve comments.
3830 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3831 not say the linker will check correctness of PTA/PTB expansion.
3832 (shmedia_md_end): Make non-static.
3833 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3835 * config/tc-sh.c (sh_finalize): Remove.
3836 * config/tc-sh.h (md_end): Do not define.
3837 Remove prototype for sh_finalize.
3838 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3839 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3840 sh64_section_data container when storing section type in tdata
3841 field in elf_section_data.
3842 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3844 * Makefile.am: Update dependencies.
3845 * Makefile.in: Regenerate.
3846 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3847 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3848 dwarf2_emit_insn call with test on debug_type.
3849 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3850 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3851 CRT_SH5_ISA32 sticky for 64-bit.
3852 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3853 Generate .crange sections when switching ISA mode or emitting
3854 constants in same section as code.
3855 * config/tc-sh64.c: Reformat structure definitions.
3856 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3858 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3859 to emit a .cranges descriptor when contents type changes. Only
3860 emit error if changing contents type and -no-mix is in effect.
3861 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3862 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3863 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3864 sh64_flush_last_crange over sections.
3865 When checking main symbol of datalabel symbol, check for
3866 STO_SH5_ISA32, not ISA type of section in definition.
3867 (shmedia_frob_file_before_adjust): Check main symbol for
3868 STO_SH5_ISA32; don't check ISA type of section in definition.
3869 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3870 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3871 .cranges entries have been output.
3872 (shmedia_elf_new_section): Just call md_flush_pending_output.
3873 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3874 fix. Do not set tc_segment_info_data.in_code for section. Call
3875 sh64_set_contents_type for SHmedia code.
3876 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3877 false. Call md_flush_pending_output.
3878 (sh64_target_format): Check that -no-mix and
3879 -shcompact-const-crange are used in sane combination with other
3881 (shmedia_md_pcrel_from_section): Check type of fix for how to
3883 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3884 not ISA type of section in definition.
3885 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3886 hold contents-type state.
3887 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3888 (sh64_flush_pending_output): Declare.
3889 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3890 (sh64_tc_cons_fix_new): Declare.
3891 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3892 call sh64_flag_output.
3893 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3894 call sh64_set_contents_type to mark SHcompact code and set
3896 (md_longopts): New options "-no-mix" and
3897 "-shcompact-const-crange".
3898 (md_parse_option): Handle new options.
3899 (md_show_usage): Add blurb for new options.
3900 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3901 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3902 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3903 (sh64_last_insn_frag): New.
3904 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3905 to get frag for insn opcode for generating fixups; do not assume it
3907 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3909 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3911 (TC_FRAG_TYPE): Define as fragS *.
3912 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3913 (sh64_last_insn_frag): Declare.
3914 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3915 not == NULL before dereferencing.
3916 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3917 Get rid of BFD section flag and EF_SH64_ABI64.
3918 * config/tc-sh64.c (shmedia_frob_section_type): Use
3919 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3920 communicate the section as containing SHmedia code. Describe why.
3921 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3922 EF_SH64 regardless of ABI.
3923 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3924 in error message. Handle resolved expressions for
3925 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3926 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3927 (shmedia_check_limits): Handle BFD_RELOC_64.
3928 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3929 a STO_SH5_ISA32 symbol, only the BFD value.
3930 2000-12-11 Ben Elliston <bje@redhat.com>
3931 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3932 dwarf2_generate_asm_lineno.
3933 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3934 Handle PC-relative MOVI expansions with assembler relaxation.
3935 Generate PC-relative relocs from 16-bit PC-relative expressions.
3936 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3937 (shmedia_md_pcrel_from_section): ...here.
3938 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3939 turned completely resolved. Adjust relocation type for 16-bit
3940 immediate operands that has turned PC-relative. Adjust back for
3941 MD_PCREL_FROM_SECTION being applied twice.
3942 (shmedia_md_convert_frag): Always emit reloc for expression with
3943 global or weak symbol. Handle relaxation result for PC-relative
3945 (shmedia_md_estimate_size_before_relax): An expression with a weak
3946 or global symbol can not be relaxed. Break out tests for
3947 relaxable symbol into variable sym_relaxable.
3948 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3949 UNDEF_MOVI)>: Break out any PC-relative expression and change
3951 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3953 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3954 MOVI expansion. If X_op_symbol of the immediate expression is
3955 set, make an expression symbol for the argument to frag_var.
3956 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3958 (END): Adjust for new relaxations.
3959 (md_relax_table): Add entries for new relaxations.
3960 2000-12-07 Ben Elliston <bje@redhat.com>
3961 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3962 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3963 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3964 SHORI operand offsets in PT/PTA/PTB expansions.
3965 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3966 Implement DataLabel semantics.
3967 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3968 shmedia_frob_file_before_adjust.
3969 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3970 (DATALABEL_SUFFIX): Define.
3971 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3972 symbol list to update "datalabel" symbols to their main symbol
3974 (shmedia_frob_file_before_adjust): New.
3975 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3976 undefined and set STT_DATALABEL.
3977 (sh64_frob_label): Initialize TC symbol field.
3978 (sh64_consume_datalabel): Actually implement semantics. New
3979 parameter operandf, call it instead of expression.
3980 (sh64_exclude_symbol): New.
3981 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3982 to sh64_consume_datalabel.
3983 (tc_symbol_new_hook): Define to tc_frob_symbol.
3984 (TC_SYMFIELD_TYPE): Define to symbolS *.
3985 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3986 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3987 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3989 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3990 generating dwarf2 debug information.
3991 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3992 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3993 elf64-sh64 for the 64-bit ABI.
3994 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3996 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3997 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3999 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4000 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4001 (enum sh64_abi_values): New type.
4002 (enum sh64_isa_values): New type.
4003 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4004 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4005 (sh64_abi): Replace shmedia_64.
4006 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4007 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4008 (s_sh64_mode): Check validity for this target.
4009 (sh64_target_format): Initialize defaults for ISA and ABI.
4010 Fallback to old object format if no SH64 ISA or ABI has been
4012 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4013 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4014 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4015 * config/tc-sh64.h: Fix typo in comment.
4016 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4017 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4018 <PT fixups for absolute values>: Size will be longest, not
4020 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4021 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4022 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4023 and l1 to hold lowercase of two first characters. Change all
4024 remaining TO_LOWER to tolower.
4025 * config/tc-sh64.c (TO_LOWER): Delete.
4026 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4027 (md_parse_name): Define.
4028 (sh64_consume_datalabel): Declare.
4029 (DOLLAR_DOT): Define.
4030 * config/tc-sh64.c (shmedia_parse_exp): New.
4031 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4032 (shmedia_parse_reg): Remove const from src
4034 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4035 (shmedia_md_assemble): Ditto for op_end variable.
4036 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4037 Use shmedia_parse_exp, not parse_exp.
4038 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4039 parameter. All callers changed.
4040 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4042 (shmedia_parse_reg): Put first two character in local variables.
4043 Use tolower, not TO_LOWER. If no register is found and argtype
4044 indicates a control register, scan shmedia_creg_table
4046 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4047 * Makefile.am (CPU_TYPES): Add sh64.
4048 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4049 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4050 Regenerate dependencies.
4051 * Makefile.in: Regenerate.
4052 * configure.in: Add support for sh64-*-elf*.
4053 * configure: Regenerate.
4054 * config/tc-sh64.h: New.
4055 * config/tc-sh64.c: New.
4056 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4057 .mode, .isa and .uaquad.
4058 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4059 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4060 [HAVE_SH64] (END): Define as 10.
4061 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4062 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4064 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4065 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4066 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4067 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4069 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4070 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4071 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4072 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4073 SHmedia instructions. Handle state-change after switching to
4075 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4076 (md_parse_option) [HAVE_SH64]: Parse new options.
4077 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4078 (md_convert_frag) [HAVE_SH64] <default>: Call
4079 shmedia_md_convert_frag instead of abort.
4080 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4081 BFD_RELOC_SH_SHMEDIA_CODE.
4082 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4083 SHcompact or SHmedia code.
4084 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4085 shmedia_md_apply_fix instead of abort.
4086 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4087 result from calling shmedia_md_estimate_size_before_relax instead
4089 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4091 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4092 shmedia_init_reloc and do nothing more if it returns non-zero.
4093 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4094 * po/POTFILES.in: Regenerate.
4095 * po/gas.pot: Regenerate.
4097 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4099 * config/tc-sh.c (parse_at): Install the correct version of
4102 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4103 assume fixP->fx_subsy is non-NULL.
4105 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4107 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4108 A_DISP_PC_ABS, and adjust it by -4.
4109 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4111 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4112 the operand type is not A_DISP_PC_ABS.
4114 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4116 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4117 common and weak symbols. Handle common and weak symbols as
4118 undefined symbols with regards to GREG handling and merging.
4119 (mmix_frob_file): Ditto.
4121 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4123 * configure.in (hppa-*-netbsd*): New target.
4124 * configure: Regenerate.
4125 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4127 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4129 * config/tc-v850.c: Add missing prototypes amd use old-style
4130 function definitions.
4131 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4132 (sdata_section tdata_section, zdata_section, sbss_section,
4133 tbss_section, zbss_section, rosdata_section, rozdata_section,
4134 scommon_section, tcommon_section, zcommon_section,
4135 call_table_data_section, call_table_text_section): Delete.
4136 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4137 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4138 v850_call_table_data, v850_call_table_text): Delete.
4139 (struct v850_seg_entry): New.
4140 (v850_seg_table): New.
4141 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4142 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4143 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4144 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4147 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4148 recording of alignment.
4149 (md_pseudo_table): Use v850_seg.
4150 (md_begin): Don't init .call_table_data and .call_table_text here.
4151 Set v850_seg_table bss entry.
4153 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4155 Support on-demand global register allocation by passing on
4156 base-plus-offset relocs to the linker.
4157 * config/tc-mmix.c: Tweak and fix typos in comments.
4158 (allocate_undefined_gregs_in_linker): New variable.
4159 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4160 (md_longopts): Add --linker-allocated-gregs.
4161 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4162 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4163 (md_show_usage): Update text for -x. Add text for
4164 --linker-allocated-gregs.
4165 (tc_gen_reloc): Derive default value for addend from val and
4166 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4167 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4168 GREG if allocate_undefined_gregs_in_linker.
4169 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4170 --linker-allocated-gregs.
4171 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4172 --linker-allocated-gregs. Mention that it's implied by -x.
4173 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4174 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4176 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4178 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4180 * Makefile.am: Run "make dep-am"
4181 * Makefile.in: Regenerate.
4183 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4185 * config/tc-or32.c: New file.
4186 * config/tc-or32.h: New file.
4187 * configure.in: Add support for or32 targets.
4188 * configure: Regenerate.
4189 * config/obj-coff.c: Add support for or32 targets.
4190 * config/obj-coff.h: Add support for or32 targets.
4191 * Makefile.am: Add support for or32 targets.
4192 * Makefile.in: Regenerate.
4193 * NEWS: Mention support for OpenRISC.
4194 * doc/Makefile.in: Regenerate.
4195 * po/POTFILES.in: Regenerate.
4196 * po/gas.pot: Regenerate.
4198 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4200 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4203 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4205 * config/tc-mips.c (tc_gen_reloc): Arrange for
4206 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4207 their LO16 parts, even for ELF.
4209 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4211 * config/tc-i386.c: Protect definitions of true and false
4214 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4216 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4217 made because of .weak, if they are neither defined nor used in any
4220 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4222 * configure: Regenerated.
4224 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4226 * doc/Makefile.am (install): Depend on install-info.
4227 * doc/Makefile.in: Regenerate.
4229 2002-01-26 Nick Clifton <nick@redhat.com>
4231 * po/fr.po: Updated version
4233 2002-01-24 Kazu Hirata <kazu@hxi.com>
4235 * config/tc-h8300.c (check_operand): Don't print a warning
4236 when a valid 24-bit address is given to a 16-bit address
4239 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4241 * config/tc-sh.c (sh_elf_suffix): Removed.
4242 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4243 sh_end_of_match, sh_parse_name): New functions.
4244 (sh_elf_cons): Simplify.
4245 (parse_exp): Reject misplaced PIC operands.
4246 (md_undefined_symbol): Simplify.
4247 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4248 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4249 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4250 Complain if subsy remains at the end.
4251 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4252 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4254 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4256 * config/tc-mn10300.c (xr_registers): Move `pc'...
4257 (other_registers): ... here.
4259 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4261 * Makefile.am: Run "make dep-am".
4262 * Makefile.in: Regenerate.
4263 * gas/po/POTFILES.in: Regenerate.
4265 2002-01-21 DJ Delorie <dj@redhat.com>
4267 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4268 stabstr_name allocation permanent, as it will be referenced from
4271 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4273 * configure.in (ia64-*-netbsd*): New target.
4274 * configure: Regenerate.
4276 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4278 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4280 <Detailed description, ARM options>: Ditto.
4281 * doc/c-arm.texi (ARM Options): Ditto.
4283 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4285 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4286 do_mia, do_mar and do_mra respectively.
4287 (do_mav_*): Renamed from do_c_*.
4288 (mav_reg_required_here, mav_parse_offset): Renamed from
4289 cirrus_reg_required_here and cirrus_parse_offset respectively.
4290 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4292 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4293 Keith Walker <keith.walker@arm.com>
4295 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4296 (insns): Add pattern for bxj instruction.
4297 (do_bxj): New function.
4298 (arm_cpus): Add arm926ej.
4299 (arm_archs): Add armv5tej.
4301 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4303 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4305 2002-01-19 Keith Walker <keith.walker@arm.com>
4307 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4309 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4311 * NEWS: Mention new ARM command-line options and VFP support.
4313 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4315 (ARM_CEXT_MAVERICK): Similarly.
4316 (ARM_ANY): Now means any core instruction.
4317 (CPU_DEFAULT): Default to ARM_ANY.
4318 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4319 (pic_code): Declare for all object types. Make type int.
4320 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4321 (march_fpu_opt, mfpu_opt): Declare.
4322 (md_longopts): Tidy up conditional definitions.
4323 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4324 (arm_long_opts): New tables.
4325 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4326 (arm_parse_extension): New function.
4327 (md_parse_option): Rewrite using new table-driven system.
4328 (md_show_usage): Use new table-driven system.
4329 (md_begin): Calculate cpu_variant from command line option data.
4330 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4331 command-line options.
4332 * doc/c-arm.texi: Likewise.
4334 2002-01-18 Andreas Jaeger <aj@suse.de>
4336 * as.c (parse_args): Update year.
4338 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4340 * config/tc-tic54x.c (encode_address): Add a more informative
4341 warning about incorrect syntax.
4343 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4345 * po/gas.pot: Regenerate.
4347 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4349 * macro.c (get_any_string): Add no-c-format comment to prevent
4350 confusion when translating string.
4351 * gasp.c (get_any_string): Add no-c-format comment to prevent
4352 confusion when translating string.
4354 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4355 Johannes Stezenbach <js@convergence.de>
4356 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4357 matched before the shorter ones.
4358 (my_getSmallParser): Fix handling of nested parentheses in
4359 percent_op's. Code cleanup.
4360 (my_getPercentOp): New function, code from my_getSmallParser.
4361 (my_getSmallExpression): Fix handling of closing parentheses.
4362 Code cleanup. Better comments.
4364 2002-01-16 Nick Clifton <nickc@redhat.com>
4366 po/tr.po: New file: Turkish translation.
4367 configure.in (LINGUAS): Add "tr".
4368 configure: Regenerate.
4370 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4372 Support for VFP instructions
4373 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4374 (cp_address_required_here): New argument wb_ok. When false, do not
4375 accept write-back forms of addressing. Change all callers.
4376 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4377 (FPU_VFP_EXT_V2): Define.
4378 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4379 Define in terms of above.
4380 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4381 (vfp_reg): New struct.
4382 (vfp_regs): New array of registers.
4383 (insns): Add VFP instructions.
4384 (sn_table): New array of VFP single-precision register names.
4385 (dn_table): New array of VFP double-precision register names.
4386 (all_reg_maps): Add the new register tables.
4387 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4388 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4389 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4390 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4391 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4392 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4393 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4394 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4395 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4396 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4397 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4398 (do_vfp_sp_dp_cvt): New functions.
4399 (md_begin): Set soft-float flag for appropriate VFP work.
4400 (md_atof): Handle VFP-format doubles.
4401 (md_parse_option): Handle VFP command-line options.
4402 (md_show_usage): Display VFP command-line options.
4404 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4406 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4407 various command line options.
4409 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4411 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4413 (xstormy16_md_apply_fix3): Do not return a value.
4415 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4417 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4418 the -EL/-EB option that matches the target's endianness.
4419 (md_parse_option): Likewise.
4421 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4423 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4424 is not dependent on ARM_BI_ENDIAN.
4426 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4428 * tc-arm.c (all error messages): Normalize capitalization of messages.
4430 * tc-arm.h (md_operand): Delete define.
4431 * tc-arm.c (in_my_get_expression): New static variable.
4432 (my_get_expression): Set and clear it.
4433 (md_operand): New function. If called from my_get_expression
4434 put the error in inst.error.
4435 (output_inst): Now takes argument of instruction being assembled.
4436 Print it out with any error message.
4437 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4439 (end_of_line): Don't update inst.error if it is already set.
4441 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4443 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4444 op that can be translated into a mvn instruction.
4446 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4448 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4449 setting default md.flags.
4450 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4451 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4452 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4453 for 32 bit unwind info blocks.
4454 (generate_unwind_image): Add support for different types
4455 of unwind images (32 bits and/or big-endian).
4456 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4457 (ia64_target_format): Add support for hpux target formats.
4458 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4459 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4460 SHT_FINI_ARRAY elf section types.
4462 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4464 * tc-arm.c (struct reg_entry): Move before prototypes.
4465 (int_register, cp_register, fp_register): Delete.
4466 (reg_table): Delete. Replaced with ...
4467 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4468 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4469 (mav_dspsc_table): ... one table per register set.
4470 (arm_reg_hsh): Delete.
4471 (struct reg_map): New structure.
4472 (all_reg_maps): New array.
4473 (enum arm_reg_type): New enums.
4474 (build_reg_hsh): New function.
4475 (insert_reg_alias): Use hash table passed by caller. Adjust all
4477 (create_register_alias): New function, split out from ...
4478 (md_assemble): ... here.
4479 (md_begin): Build new register hash tables.
4480 (arm_reg_parse): New argument for the hash table to search. Adjust all
4482 (arm_reg_parse_any): New function.
4483 (co_proc_number): Look up the processor number in the processor hash
4485 (cirrus_regtype): Delete.
4486 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4487 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4488 (ARM_EXT_MAVERICKsc_register): Delete.
4489 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4490 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4492 (do_c_triple_4, do_c_triple_5): Delete.
4493 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4494 (do_c_quad_6): Delete.
4495 (do_c_quad_6[ab]): New functions.
4496 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4497 arguments to use new register parsing methods.
4498 (cirrus_reg_required_here): Likewise.
4499 (insns): Reclassify cirrus maverick worker functions.
4500 (cirrus_valid_reg): Delete.
4502 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4504 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4505 (sh*-*-netbsdelf*): New target.
4506 * configure: Regenerate.
4507 * tc-sh.h: Update copyright years.
4508 (TARGET_FORMAT): Add version for TE_NetBSD.
4510 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4512 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4515 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4517 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4518 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4520 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4522 * tc-mips.c (mips_cprestore_valid): New flag.
4523 (mips_frame_reg_valid): New flag.
4524 (macro) [M_JAL_2]: Check both flags.
4525 [M_JAL_A]: Likewise.
4526 (s_cprestore): Set mips_cprestore_valid.
4527 (tc_get_register): If setting mips_frame_reg, set
4528 mips_frame_reg_valid and clear mips_cprestore_valid.
4529 (s_mips_ent): Clear both flags.
4530 (s_mips_end): Clear both flags.
4532 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4534 * write.c (write_object_file): Make use of bfd_section_list_remove.
4535 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4536 * config/tc-mmix.c (mmix_frob_file): Likewise.
4538 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4540 * configure.in (i386-*-netbsdelf*): Collapse target into...
4541 (i386-*-netbsd*): ...this. Add support for x86-64.
4542 * configure: Regenerated.
4544 2002-01-03 matthew green <mrg@redhat.com>
4546 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4548 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4550 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4553 For older changes see ChangeLog-0001
4559 version-control: never