1 2002-12-20 DJ Delorie <dj@redhat.com>
3 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
4 BFD_RELOC_XSTORMY16_12.
6 2002-12-19 Alan Modra <amodra@bigpond.net.au>
8 * doc/as.texinfo (Invoking): Typo fix.
9 * config/tc-tic54x.c (encode_operand): Comment typo fix.
11 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
13 * doc/c-alpha.texi: Fix typos.
14 * doc/c-arm.texi: Likewise.
15 * doc/c-d10v.texi: Likewise.
16 * doc/c-i370.texi: Likewise.
17 * doc/c-i960.texi: Likewise.
18 * doc/c-ia64.texi: Likewise.
19 * doc/c-mmix.texi: Likewise.
20 * doc/c-ns32k.texi: Likewise.
21 * doc/c-pdp11.texi: Likewise.
22 * doc/c-pj.texi: Likewise.
23 * doc/c-sh64.texi: Likewise.
24 * doc/c-sparc.texi: Likewise.
25 * doc/c-tic54x.texi: Likewise.
26 * doc/c-v850.texi: Likewise.
27 * doc/c-vax.texi: Likewise.
28 * doc/internals.texi: Likewise.
30 2002-12-18 Chris Demetriou <cgd@broadcom.com>
32 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
33 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
34 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
35 arrange not to issue warnings about use of AT when AT is not
38 2002-12-17 Nick Clifton <nickc@redhat.com>
40 * as.c (std_longopts): Duplicate --keep-locals entry in order to
41 prevent it being confused with -k.
43 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
45 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
46 has already been set up, use it.
48 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
50 * ChangeLog-9295: Fix a typo.
52 * config/tc-d10v.c: Fix a comment typo.
53 * config/tc-dlx.c: Likewise.
54 * config/tc-h8300.h: Likewise.
55 * config/tc-h8500.h: Likewise.
56 * config/tc-mips.c: Likewise.
57 * config/tc-s390.c: Likewise.
58 * config/tc-sh.h: Likewise.
59 * config/tc-tic80.h: Likewise.
60 * config/tc-w65.h: Likewise.
61 * config/tc-z8k.c: Likewise.
62 * config/tc-z8k.h: Likewise.
63 * testsuite/gas/h8300/cmpsi2.s: Likewise.
65 2002-12-16 Alan Modra <amodra@bigpond.net.au>
67 * config/tc-d30v.c (check_range): Warning fixes, formatting.
68 Simplify sign extension. Remove redundant unsigned < 0 test.
69 * config/tc-i960.c (md_ri_to_chars): Prototype.
70 * config/tc-mcore.c (md_pseudo_table): Fix typo.
71 (dump_literals): Init brarsym, and test later instead of isforce.
73 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
74 (parse): Constify line and lineptr.
75 (md_begin): Calculate endop here.
77 2002-12-13 Alan Modra <amodra@bigpond.net.au>
79 * config/obj-vms.c: Formatting. Include fnctl.h.
80 (Create_VMS_Object_File): Fix creat call for sane unix systems.
81 (Object_Record_Offset): Make it a size_t.
82 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
83 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
84 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
85 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
86 (vms_fixup_data_section <data_size>): Add here instead.
87 * config/e-criself.c: Fix typo in last change.
89 2002-12-13 Alan Modra <amodra@bigpond.net.au>
91 * write.c (write_object_file): Fix signed/unsigned warning.
92 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
93 * config/e-criself.c (criself_bfd_name): Prototype.
94 * config/obj-aout.c (s_sect): Remove unused function.
95 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
96 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
97 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
98 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
99 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
100 (VMS_RSYM_Parse <Current_Routine>): Likewise.
101 (vms_fixup_text_section <text_siz>): Likewise.
102 (synthesize_data_segment <data_size>): Likewise.
103 (vms_fixup_xtors_section <sect_no>): Likewise.
104 (structure_count): Don't use implicit int type.
105 * config/tc-a29k.c (insert_sreg): Prototype.
106 (define_some_regs): Prototype, make static.
107 (parse_operand): Likewise.
108 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
109 (md_show_usage <stream>): Likewise.
110 (md_section_align <segment>): Likewise.
111 (md_convert_frag <all args>): Likewise.
112 (md_estimate_size_before_relax <all args>): Likewise.
113 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
114 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
115 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
116 (md_undefined_symbol <name>): Likewise.
117 (md_convert_frag <all args>): Likewise.
118 (write_long <opcode>): Likewise.
119 (tc_gen_reloc <seg>): Likewise.
120 (md_estimate_size_before_relax <all args>): Likewise.
121 (md_apply_fix3 <seg>): Likewise.
122 (s_d30v_align <ignore>): Likewise.
123 (build_insn): Correct format string.
124 (md_apply_fix3): Likewise.
125 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
126 (md_undefined_symbol <name>): Likewise.
127 (md_convert_frag <all args>): Likewise.
128 (md_cgen_lookup_reloc <insn>): Likewise.
129 (md_begin): Delete unused vars.
130 (md_assemble): Likewise.
131 (md_estimate_size_before_relax): Likewise.
132 (fr30_relax_frag): #if 0 out, seems unused.
133 (md_atof): Remove declaration of atof_ieee.
134 (restore_colon): Prototype.
135 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
136 (frv_find_in_vliw): Likewise.
137 (frv_debug_tomcat): Likewise.
138 (frv_adjust_vliw_count): Likewise.
139 (frv_tomcat_shuffle): Likewise.
140 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
141 frv_find_in_vliw call.
142 (md_atof): Remove declaration of atof_ieee.
143 * config/tc-h8500.c (cons): Delete declaration.
144 (md_begin <opcode>): Constify.
145 (displacement_size, immediate_size, absolute_size): Remove.
146 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
147 (tc_crawl_symbol_chain <headers>): Likewise.
148 (md_undefined_symbol <name>): Likewise.
149 (tc_headers_hook <headers>): Likewise.
150 (md_parse_option <c,arg>): Likewise.
151 (md_show_usage <stream>): Likewise.
152 (md_convert_frag <headers, seg>): Likewise.
153 (tc_coff_symbol_emit_hook <ignore>): Likewise.
154 (md_atof): Remove declaration of atof_ieee.
155 (tc_aout_fix_to_chars): Remove unused function.
156 (parse_reg): Prototype.
157 (parse_exp): Prototype.
158 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
159 (parse_reglist): Prototype.
160 (get_operand): Prototype.
161 (get_operands): Prototype.
162 (get_specific): Prototype. Make "this_index" signed.
163 (check): Prototype, make static.
165 (build_relaxable_instruction): Prototype, make static.
166 (build_bytes): Prototype.
167 (wordify_scb): Prototype.
168 * config/tc-h8500.h (start_label): Declare.
169 (tc_coff_sizemachdep): Declare.
170 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
171 (i370_rmode <unused>): Likewise.
172 (i370_csect <unused>): Likewise.
173 (i370_dc <unused>): Likewise.
174 (i370_ds <unused>): Likewise.
175 (i370_elf_lcomm <unused>): Likewise.
176 (i370_ltorg <ignore>): Likewise.
177 (i370_using <ignore>): Likewise.
178 (i370_drop <ignore>): Likewise.
179 (i370_byte <ignore>): Likewise.
180 (i370_tc <ignore>): Likewise.
181 (md_estimate_size_before_relax <fragp, seg>): Likewise.
182 (md_convert_frag <all args>): Likewise.
183 (md_undefined_symbol <name>): Likewise.
184 (md_pcrel_from_section <sec>): Likewise.
185 (tc_gen_reloc <seg>): Likewise.
186 (i370_section_letter): #if 0 unused functions.
187 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
188 (symbol_locate): Prototype.
189 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
190 (md_number_to_disp, md_number_to_field): Remove.
191 (md_apply_fix3): Correct format string and cast "fup".
192 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
193 (s_endian <ignore>): Likewise.
194 (md_undefined_symbol <name>): Likewise.
195 (tc_crawl_symbol_chain <headers>): Likewise.
196 (tc_set_bal_of_call): Likewise.
197 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
198 (i960_handle_align <fragp>): Likewise.
199 (i960_validate_fix <this_segment_type>): Likewise
200 (tc_gen_reloc <section>): Likewise.
201 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
202 (struct memS, struct regop): Forward declare.
203 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
204 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
205 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
206 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
207 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
208 (md_chars_to_number, md_number_to_imm): Make static, prototype.
209 (md_number_to_field): Likewise.
210 (md_number_to_disp): Remove unused function.
211 (md_atof): Remove declaration of atof_ieee.
212 (md_apply_fix3): Correct md_number_to_imm call.
213 * config/tc-ip2k.c (md_assemble): Warning fix.
214 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
215 (fill_insn <ignore>): Likewise.
216 (debug_sym <ignore>): Likewise.
217 (md_undefined_symbol <name>): Likewise.
218 (m32r_scomm <ignore>): Likewise.
219 (md_convert_frag <abfd>): Likewise.
220 (md_cgen_lookup_reloc <insn>): Likewise.
221 (m32r_record_hi16 <seg>): Likewise.
222 (md_estimate_size_before_relax): #if 0 old_fr_fix.
223 (allow_m32rx): Prototype.
224 (first_writes_to_seconds_operands): Prototype.
225 (writes_to_pc): Prototype.
226 (can_make_parallel): Prototype.
227 (make_parallel): Prototype.
228 (target_make_parallel): Prototype.
229 (assemble_two_insns): Prototype.
230 (m32r_record_hi16): Prototype.
231 (md_atof): Remove declaration of atof_ieee.
232 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
233 (m32r_force_relocation): Prototype.
234 (m32r_elf_section_change_hook): Prototype.
235 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
236 (md_show_usage): Fix signed/unsigned warning.
237 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
238 (calcop): Ditto for reg_prefix var.
239 (hexval): Add cast to fix signed/unsigned warning.
240 (md_number_to_disp): Delete unused function.
241 (md_number_to_field): Likewise.
242 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
243 (match_name): Prototype.
244 (get_bf2): Prototype.
245 (get_bf_offset_expression): Prototype.
246 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
247 (md_undefined_symbol <ignore>): Likewise.
248 (md_create_short_jump <all args>): Likewise.
249 (md_create_long_jump <all args>): Likewise.
250 (md_convert_frag <abfd, sec>): Likewise.
251 (md_apply_fix3 <segment>): Likewise.
252 (md_section_align <segment>): Likewise.
253 (md_pcrel_from_section <sec>): Likewise.
254 (tc_gen_reloc <section>): Likewise.
255 (reg_m, reg_n, immediate): Delete unused vars.
256 (dump_literals): Fix signed/unsigned warning.
257 (enter_literal): Likewise.
258 (parse_imm): Likewise. Also fix format string.
259 (parse_mem): Remove unused var.
260 (md_assemble <LS>): Abort on unexpected inst.
261 (md_atof): Remove declaration of atof_ieee.
262 (md_parse_option): Remove unused vars.
263 (md_apply_fix3): Fix format strings, cast args.
264 (tc_gen_reloc): Delete unused var.
265 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
266 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
267 (md_undefined_symbol <name>): Likewise.
268 (md_convert_frag <abfd>): Likewise.
269 (tc_gen_reloc <seg>): Likewise.
270 (check_operand <insn>): Likewise.
271 (md_convert_frag): Fix format strings.
272 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
273 * config/tc-openrisc.c (ignore_pseudo): Prototype.
274 (md_atof): Remove declaration of atof_ieee.
275 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
276 (md_apply_fix3): Fix bogus >>='s.
277 (md_undefined_symbol): Delete unused var.
278 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
279 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
280 (fake_opcode): Adjust for pj_opc_int_t change.
281 (md_begin): Likewise.
282 (md_assemble): Likewise.
283 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
284 instead of non-existent third arg of parse_exp_save_ilp.
285 (md_parse_option): Correct "little" and "big" calls.
286 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
287 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
288 (tc_gen_reloc <section>): Likewise.
289 * config/tc-tic30.c: #include stdarg.h or varargs.h.
290 (debug): Rewrite using VA_* macros.
291 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
292 (md_convert_frag): Likewise.
293 (md_parse_option): Likewise.
294 (md_show_usage): Likewise.
295 (md_undefined_symbol): Likewise.
296 (tc_gen_reloc): Likewise.
297 (md_operand): Likewise.
298 (tc_aout_pre_write_hook): Delete.
299 (struct tic30_insn): Make "operands" unsigned.
300 (struct tic30_par_insn): Likewise.
301 (md_assemble): Likewise for "count", "i" and "numops".
302 (tic30_parallel_insn): Likewise for vars here.
303 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
304 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
305 * config/tc-tic80.c (obj_coff_section): Delete declaration.
306 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
307 (md_undefined_symbol): Likewise.
308 (md_parse_option): Likewise.
309 (md_convert_frag): Likewise.
310 (tc_coff_symbol_emit_hook): Likewise.
311 (md_atof): Remove declaration of atof_ieee.
312 (const_overflow): Warning fixes, tidy.
313 (get_operands): Delete unused vars.
314 (internal_error_a): Adjust format string to expect a long for arg.
315 (find_opcode): Warning fixes, simplify.
316 (build_insn): Cast internal_error_a arg.
317 (md_begin): Likewise.
318 (md_apply_fix3): Likewise.
319 (md_assemble): Delete unused var.
320 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
321 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
322 (whatreg, parse_reg, parse_exp): Make static, prototype.
323 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
324 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
325 (get_operand, get_operands, get_specific, newfix): Likewise.
326 (apply_fix, build_bytes): Likewise.
327 (md_atof): Remove declaration of atof_ieee.
328 (tc_aout_fix_to_chars): Delete.
329 (md_begin): Constify "opcode". Don't try to init opcode->idx.
331 (md_parse_option): Fix s_segm and s_unseg calls.
333 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
335 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
337 (RELAX_BRANCH_RELOC_S2): Delete.
338 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
339 Do not handle BFD_RELOC_16_PCREL.
340 (macro_build, mips_ip): Likewise.
341 (md_pcrel_from): Return 4 for undefined symbols regardless of
343 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
344 Don't dereference howto if no such relocation is available.
345 Do not apply hack for in-place zero addend in NEWABI.
346 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
348 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
349 Alan Modra <amodra@bigpond.net.au>
351 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
352 (TC_LINKRELAX_FIXUP): Add comments.
354 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
356 * config/tc-mn10300.c (set_arch_mach): Change argument type to
358 (r_register_name, xr_register_name): Add prototype declarations.
360 2002-12-08 H.J. Lu <hjl@gnu.org>
362 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
363 copied from tc-i386.c.
365 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
367 Fix Bug savannah/1825:
368 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
369 (md_relax_table): Define specific relax for PC-rel offsets.
370 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
371 (m68hc11_relax_frag): Handle the new relax code.
372 (md_convert_frag): Likewise.
373 (md_estimate_size_before_relax): Likewise.
375 2002-12-08 Alan Modra <amodra@bigpond.net.au>
377 * subsegs.c (section_symbol): Use the symbol, not the section, name.
379 2002-12-05 Richard Henderson <rth@redhat.com>
381 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
382 (ia64_gen_real_reloc_type): Handle it.
383 (pseudo_func): Add @ltoffx.
384 (md_begin): Build .<ltoffx>.
385 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
387 2002-12-05 Alan Modra <amodra@bigpond.net.au>
389 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
390 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
391 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
392 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
393 COFF to call arm_force_relocation.
395 2002-12-04 David Mosberger <davidm@hpl.hp.com>
397 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
399 (emit_one_bundle): Handle "hint" instruction.
400 (operand_match): Match IA64_OPND_AR_CSD.
402 2002-12-04 Alan Modra <amodra@bigpond.net.au>
404 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
407 2002-12-03 Nick Clifton <nickc@redhat.com>
409 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
410 .PPC.EMB.apuinfo sections.
412 2002-12-03 Richard Henderson <rth@redhat.com>
414 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
416 2002-12-03 Alan Modra <amodra@bigpond.net.au>
418 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
419 (cons, s_align_bytes): Delete declaration.
421 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
423 (dot): Delete unused function.
424 (w65_expression): Remove unused arg.
425 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
427 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
429 (get_specific): Prototype. Constify "struct opinfo *" arg and return
431 (check): Remove unused function.
432 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
433 on unhandled switch case.
434 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
436 (tc_crawl_symbol_chain): Delete unused function.
437 (tc_headers_hook): Likewise.
438 (tc_Nout_fix_to_chars): Likewise.
439 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
440 (md_parse_option): Likewise.
441 (md_convert_frag): Likewise.
442 (tc_coff_symbol_emit_hook): Likewise.
443 (md_show_usage): Likewise.
444 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
445 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
446 (w65_expression): Declare.
448 * po/POTFILES.in: Regenerate.
450 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
451 and ARM_ADRL_IMMEDIATE.
453 2002-12-02 Nick Clifton <nickc@redhat.com>
455 * gasp.c: Delete. It has been deprecated.
456 * NEWS: Mention that gasp has been removed.
457 * Makefile.am: Remove references to gasp.
458 * makefile.vms: Likewise.
459 * mpw-make.sed: Likewise.
460 * Makeile.in: Regenerate.
461 * doc/gasp.texi: Delete.
462 * doc/Makefile.am: Remove references to gasp.texi.
463 * doc/Makefile.in: Regenerate.
464 * macro.c: Delete references to gasp.
465 Remove use of comment_char function parameter as it is no longer
467 * macro.h: Update prototypes to remove comment_char parameter.
469 * read.c (read_a_source_file, s_irp): Remove comment_char
470 parameter from invocation of functions in macro.c
472 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
474 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
476 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
478 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
479 (tc_gen_reloc): Mark section param as not used.
481 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
483 Fix Bug savannah/1825:
484 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
485 that are not pc-relative.
486 (m68hc11_relax_frag): Declare.
488 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
489 the offsetable indexed addressing modes (n,r).
490 (build_insn): Cleanup some locals.
491 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
492 relaxation of difference between two symbols of same section.
493 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
494 only when this is a PC-relative operand and the offset is not absolute.
495 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
496 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
497 be handled by m68hc11_relax_frag.
499 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
501 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
502 (32-bit int, 64-bit double).
503 (md_longopts): New options -mshort, -mlong, -mshort-double and
504 -mlong-double to control the ABI.
505 (md_show_usage): Update.
506 (md_parse_option): Handle new options.
507 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
509 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
511 * symbols.c (report_op_error): New function, broken out of ...
512 (resolve_symbol_value): ... here. Use for both monadic and dyadic
515 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
517 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
518 for BFD_RELOC_32_PLT_PCREL.
520 2002-11-30 Alan Modra <amodra@bigpond.net.au>
522 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
523 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
524 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
525 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
526 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
527 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
528 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
529 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
530 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
531 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
532 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
533 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
534 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
535 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
536 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
537 TRUE/FALSE. Formatting.
539 2002-11-29 Nick Clifton <nickc@redhat.com>
541 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
542 assume a value of zero.
545 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
547 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
550 2002-11-29 Jakub Jelinek <jakub@redhat.com>
552 * config/tc-ia64.c (md_apply_fix3): Add default case.
554 2002-11-28 Jakub Jelinek <jakub@redhat.com>
556 * symbols.c (S_SET_THREAD_LOCAL): New function.
557 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
558 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
560 * config/tc-ia64.c (md_apply_fix3): Likewise.
561 * config/tc-alpha.c (md_apply_fix3): Likewise.
563 2002-11-28 Jakub Jelinek <jakub@redhat.com>
565 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
568 2002-11-26 DJ Delorie <dj@redhat.com.
570 * dwarf2dbg.c (scale_addr_delta): New.
571 (size_inc_line_addr): Use it.
572 (emit_inc_line_addr): Use it.
574 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
576 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
577 (md_assemble): Don't pass on branches to constants as relaxable.
580 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
582 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
584 2002-11-21 Randolph Chung <randolph@tausq.org>
586 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
587 only if they have default visibility.
589 2002-11-21 Richard Henderson <rth@redhat.com>
591 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
594 2002-11-21 Alan Modra <amodra@bigpond.net.au>
596 * config/tc-mcore.c (mcore_pool_count): New function.
597 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
599 2002-11-20 Klee Dienes <kdienes@apple.com>
601 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
602 coalesce the name fields to use the same pointer.
604 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
605 the name fields to use the same pointer.
606 (get_specific): Check for opcodes with the same name using strcmp
607 as well as comparing the pointer.
609 2002-11-20 Alan Modra <amodra@bigpond.net.au>
611 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
614 2002-11-19 Richard Henderson <rth@redhat.com>
616 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
617 visibility portion of st_other.
619 2002-11-19 Klee Dienes <kdienes@apple.com>
621 * config/tc-h8300.c (struct h8_instruction): New type, used to
622 wrap h8_opcodes with length, noperands, idx, and size fields
623 (computed at run-time).
624 (h8_instructions): New variable.
625 (md_begin): Allocate the storage for h8_instructions. Fill
626 h8_instructions with pointers to the appropriate opcode and the
627 correct value for the additional fields.
628 (clever_message): Update to use h8_instructions instead of
630 (build_bytes): Ditto.
631 (get_specific): Ditto.
632 (md_assemble): Ditto.
634 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
636 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
637 adjustments to symbols in merge sections.
639 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
641 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
643 2002-11-18 Kevin Buettner <kevinb@redhat.com>
645 * dwarf2dbg.h (dwarf2_format): New enum.
646 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
647 (out_debug_line, out_debug_info): Add code for handling 64-bit
649 * config/tc-mips.h (mips_dwarf2_format): Declare.
650 * config/tc-mips.c (mips_dwarf2_format): New function.
651 * doc/internals.texi (DWARF2_FORMAT): Document.
653 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
655 * config/tc-mips.c (s_change_section): Make sure input buffer
656 is not accessed past the end. Don't hand
657 obj_elf_change_section a pointer into the input buffer.
659 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
661 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
664 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
666 * config/tc-tic4x.c: Fixed proper commandline
667 parameters. Added support for new opcode-list format. General
668 error message fixups.
669 (c4x_inst_add): Reject insn not for our CPU
670 (md_begin): Added matrix for setting the proper opcode-level &
671 device-flags according to cpu type and revision. Rewrite the
673 (c4x_operand_parse): Fix opcode bug
674 (c4x_operands_match): New function argument. Added dry-run
675 mechanism, that is optional error generation. Added constraint 'i'
677 (c4x_insn_check): Added new function for post-verification of the
679 (md_assemble): Check all opcodes before croaking because of an
680 argument mismatch. Need this to be able to fully support
681 ortogonally arguments.
682 (md_parse_options): Revised commandprompt swicthes and added new
684 (md_show_usage): Complete rewrite of printout.
686 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
688 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
689 (c4x_operands_match): Added check for 8-bits LDF insn. Give
690 warning when using constant direct bigger than 2^16. Add the new
693 2002-11-11 Christopher Faylor <cgf@redhat.com>
695 * configure.in: Use .gdbinit under Cygwin.
696 * configure: Regenerate.
698 2002-11-11 Christopher Faylor <cgf@redhat.com>
700 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
703 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
705 * config/tc-tic4x.c: Declare as many functions as possible as
706 static. Maintenance on the general indenting. Removed unnecessary
707 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
708 function. Add support for new DSP, TMS320VC33. Fix bug for
709 converting flonum constants.
710 (c4x_do_align): Add proper align handling. Setup align to insert
712 (c4x_gen_to_words): Support for extended TI type floats.
713 (md_atof): Proper dumping of multiple-word littlenums.
714 (c4x_atof): Added support for extended TI type floats.
715 (c4x_stringer): Added new function to handle compact strings.
716 (c4x_emit_char): Added new function argument to handle custom
717 length inserts, like single-byte strings.
718 * config/tc-tic4x.h: Add proper align handling with NOP's.
719 * Makefile.am: Added tic4x dependecy
720 * Makefile.in: Regenerate
722 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
724 * macro.c (get_any_string): Correct logic for not going beyond end
727 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
729 * config/tc-mmix.c (get_putget_operands): Mark both possible
730 operands as invalid at beginning.
732 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
733 Initialize target of fixup to zero.
735 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
737 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
738 NEWABI, but we should still emit HI16_S for non-PIC n32.
740 2002-11-06 Richard Henderson <rth@redhat.com>
742 * config/tc-alpha.c (alpha_validate_fix): Move code ...
743 (alpha_fix_adjustable): ... here.
744 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
746 2002-11-07 Eric Kohl <ekohl@rz-online.de>
748 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
751 2002-11-05 H.J. Lu <hjl@gnu.org>
753 * config/tc-mips.c (support_64bit_objects): Check *l before it
756 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
758 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
759 SEC_LOAD flags for sections marked as 's'.
761 2002-11-01 Alan Modra <amodra@bigpond.net.au>
763 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
764 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
765 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
768 * dep-in.sed: Fix typo.
770 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
772 * configure.in: Update ARM CPU patterns.
773 * configure: Regenerated.
775 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
777 * itbl-lex.l: Use #include <> for generated headers.
778 * itbl-ops.c: Likewise.
780 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
782 * doc/gasp.texi: Fix typo in deprecation note.
784 2002-10-23 Nick Clifton <nickc@redhat.com>
786 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
787 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
789 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
791 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
792 (tc_frob_file_before_adjust): Don't define.
793 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
795 (mmix_frob_file_before_adjust): Remove ineffective function.
797 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
799 * config/tc-cris.c (SIMPLE_EXPR): New macro.
800 (cris_relax_frag): New function.
801 (md_estimate_size_before_relax) <case ENCODE_RELAX
802 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
803 expressions that will become absolute expressions to relaxation.
804 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
805 STATE_WORD)>: Expect only absolute expressions. Use the symbol
806 value, not distance to symbol.
807 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
808 Ditto. Correct placement of fixup.
809 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
811 * config/tc-cris.h (cris_relax_frag): Declare.
812 (md_relax_frag): Define.
814 2002-10-22 Alan Modra <amodra@bigpond.net.au>
816 * config/obj-elf.c (special_sections): Use correct types for init
818 (obj_elf_change_section): Don't mess with init array section type.
820 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
822 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
823 for relocs against symbols in a merged section.
825 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
827 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
828 table as register names.
830 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
832 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
835 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
837 * expr.c (operand): Add support for n.nn flonums.
839 2002-10-17 Johannes Stezenbach <js@convergence.de>
841 * itbl-parse.y (entry): Provide empty action.
843 2002-10-16 Alan Modra <amodra@bigpond.net.au>
845 * configure.in (BFDVER_H): Set and subst.
846 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
847 * Makefile.am: Run "make dep-am".
849 * configure: Regenerate.
850 * Makefile.in: Regenerate.
851 * doc/Makefile.in: Regenerate.
853 2002-10-15 Alan Modra <amodra@bigpond.net.au>
855 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
856 (MD_APPLY_SYM_VALUE): Define for PE too.
858 2002-10-14 Alan Modra <amodra@bigpond.net.au>
860 * Makefile.am: Run "make dep-am".
861 (CPU_OBJ_VALID): sh64 coff is invalid.
862 * as.c: #include "bfdver.h".
863 * Makefile.in: Regenerate.
864 * config.in: Regenerate.
866 2002-10-14 Momchil Velikov <velco@fadata.bg>
868 * config/tc-v850.c (CHECK_): Remove token pasting operator.
870 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
872 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
873 * configure: Regenerate.
875 2002-10-13 Eric Christopher <echristo@redhat.com>
876 Alexandre Oliva <aoliva@redhat.com>
878 * config/tc-mips.c (s_gpdword): New function.
879 (mips_pseudo_table): Add .gpdword.
880 (mips_need_elf_addend_fixup): never for NEWABI.
881 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
883 (s_cpadd): Generate .cpadd on NEWABI.
885 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
887 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
889 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
891 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
892 (md_relax_frag): Adjust macro.
893 * config/tc-mips.c (mips_relax_branch): New variable.
894 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
895 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
896 (RELAX_MIPS16_P): Adjust.
897 (append_insn): Emit branch to non-constant in a frag_var if
898 branch-relaxation is desirable and possible.
899 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
900 (OPTION_ELF_BASE): Adjust.
901 (md_parse_option): Handle new options.
902 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
904 (relaxed_branch_length): New function.
905 (md_estimate_size_before_relax): Handle branch frags.
906 (mips_relax_frag): Likewise.
907 (md_convert_frag): Handle branch frags. Warn if branch is
910 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
912 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
914 (md_apply_fix3): Add TLS relocs.
915 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
918 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
919 Alan Modra <amodra@bigpond.net.au>
921 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
922 (md_estimate_size_before_relax): Likewise for 8 bit branches.
924 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
926 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
929 2002-10-09 Richard Shann <richard.shann@superh.com>
930 Stephen Clarke <stephen.clarke@superh.com>
932 * config/tc-sh64.c (sh64_target_format): Add support for sh64
935 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
937 * contig/tc-sh.c (sh_local_pcrel): New.
938 (sh_force_relocation): Use sh_local_pcrel.
939 (md_pcrel_from_section): Check the relocation type whether it
940 should be resolved locally. Use S_FORCE_RELOC.
942 2002-10-01 Alan Modra <amodra@bigpond.net.au>
944 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
945 (TC_FORCE_RELOCATION): Tidy arg.
947 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
948 Ken Raeburn <raeburn@cygnus.com>
949 Aldy Hernandez <aldyh@redhat.com>
950 DJ Delorie <dj@redhat.com>
951 Michael Meissner <meissner@redhat.com>
952 Eric Christopher <echristo@redhat.com>
953 Richard Sandiford <rsandifo@redhat.com>
955 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
956 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
957 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
958 (hilo_interlocks): True for CPU_VR5500.
959 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
960 (mips_fix_vr4122_bugs): New.
961 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
962 (mips_emit_delays): Likewise.
963 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
964 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
965 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
966 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
967 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
968 (OPTION_ELF_BASE): Bump.
969 (md_parse_option): Handle the new options.
970 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
973 2002-09-29 H.J. Lu <hjl@gnu.org>
975 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
976 twice if howto->pcrel_offset is true.
978 2002-09-28 Matt Thomas <matt@3am-software.com>
979 Jason Thorpe <thorpej@wasabisystems.com>
981 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
982 convert undefined references to GOT32/PLT32 if PIC code is
983 requested. Fix comment.
985 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
987 * config/tc-sh.c (sh_force_relocation): Return 0 for
988 some PC relative relocations when not relaxing.
990 2002-09-26 Jakub Jelinek <jakub@redhat.com>
992 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
993 Define them if not BFD_ASSEMBLER.
994 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
996 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
997 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
998 (tc_gen_reloc): Handle x86-64 TLS relocs.
1000 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1002 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1003 fixups to current or absolute section.
1005 2002-09-26 Jim Wilson <wilson@redhat.com>
1007 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1010 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1012 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1013 capable configuration.
1014 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1016 (mips_ip): Likewise.
1018 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1020 * config/tc-mips.c (append_insn): Fix jump overflow check.
1022 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1024 * config/tc-i386.c (process_operands): Warn about "lea" segment
1027 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1029 * write.c: Delete set_segment_vma and prototype. Update all callers.
1031 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1033 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1034 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1035 Rename "fseg" to "sym_seg".
1036 * Makefile.am: Run "make dep-am".
1037 * Makefile.in: Regenerate.
1038 * doc/Makefile.in: Regenerate.
1040 2002-09-20 Nick Clifton <nickc@redhat.com>
1042 * symbols.c (colon): Do not allow symbols to be created in the
1043 absolute section if WORKING_DOT_WORD is not defined and
1044 new_broken_words would require a new frag to be created.
1046 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1048 * expr.c (expr): Simplify foo-foo here.
1049 (clean_up_expression): Remove O_subtract code.
1051 * write.h (struct fix): Add fx_dot_value.
1052 (dot_value): Declare.
1053 * write.c (dot_value): New var.
1054 (fix_new_internal): Save dot_value as fx_dot_value.
1055 (fixup_segment): Adjust fx_offset using fx_dot_value.
1056 * expr.c (expr): Update dot_value.
1058 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1060 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1061 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1062 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1064 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1065 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1066 BFD_RELOC_386_TLS_GOTIE.
1068 2002-09-19 Richard Henderson <rth@redhat.com>
1070 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1072 (alpha_force_relocation): Don't special-case branch type relocs.
1074 2002-09-19 Nick Clifton <nickc@redhat.com>
1076 * config/tc-m68k.c (select_control_regs): Handle situation where
1077 architecture has not yet been selected.
1079 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1081 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1082 (IS_SEXT_16BIT_NUM): New macro.
1083 (macro_build_ldst_constoffset): New function, to build a set of
1084 instructions to do a load or store from a constant offset relative
1085 to a given register.
1086 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1087 .cprestore pseudo-op.
1089 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1091 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1093 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1095 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1097 2002-09-17 Stan Cox <scox@redhat.com>
1099 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1100 (macro): Likewise for la. Likewise for ld.
1101 (mips_after_parse_args): Make -xgot optional, not the default.
1102 (md_apply_fix3): Allow composite relocation to set up gp.
1103 (tc_gen_reloc): Allow relaxing for newabi.
1104 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1105 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1107 2002-09-17 Nick Clifton <nickc@redhat.com>
1109 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1110 BFD_RELOC_ARM_IMMEDIATE has been done.
1111 (tc_gen_reloc): Do not issue reloc number of unimplemented
1112 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1113 their name is already in the error message - plus remove them
1114 from the default case.
1116 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1117 behavior of instructions.
1119 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1121 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1122 Convert functions to K&R format.
1124 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1126 * config/tc-mips.c (pdr_seg): Define only for ELF.
1127 (s_change_section): Remove unused variable. Don't use for nonELF.
1129 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1131 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1133 * config/obj-elf.h (obj_elf_change_section): Likewise.
1135 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1137 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1138 (out_debug_info): Likewise.
1140 2002-09-16 Bruno Haible <bruno@clisp.org>
1142 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1143 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1144 * config/tc-i386.c (i386_target_format): Likewise.
1145 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1146 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1148 2002-09-13 Nick Clifton <nickc@redhat.com>
1150 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1151 when deciding if any operands have been skipped.
1153 2002-09-11 Nick Clifton <nickc@redhat.com>
1155 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1157 * po/tr.po: Updated Turkish translation.
1159 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1161 * config/tc-i386.c (md_apply_fix3): Allow addend for
1162 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1163 BFD_RELOC_386_TLS_LE_32.
1165 2002-09-05 Jeff Law <law@redhat.com>
1167 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1168 marker relocations such as ENTRY/EXIT.
1169 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1170 to both OBJ_ELF and OBJ_SOM.
1172 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1174 * doc/internals.texi (md_apply_fix3): Expand.
1175 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1176 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1177 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1178 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1179 EXTERN_FORCE_RELOC): Document.
1180 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1181 * as.h: Don't include struc-symbol.h for arc.
1183 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1184 subtract absolute symbol.
1185 * obj.h (struct format_ops): Add frob_file_before_fix.
1186 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1187 * symbols.c (S_FORCE_RELOC): New function.
1188 * symbols.h (S_FORCE_RELOC): Declare.
1189 * write.c (TC_FORCE_RELOCATION): Change default.
1190 (TC_FORCE_RELOCATION_ABS): Define.
1191 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1192 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1193 (TC_FORCE_RELOCATION_SECTION): Don't define.
1194 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1195 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1196 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1197 (TC_VALIDATE_FIX_SUB): Define.
1198 (TC_FIX_ADJUSTABLE): Don't define.
1199 (MD_APPLY_SYM_VALUE): Define this instead.
1200 (abs_section_sym): New variable.
1201 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1202 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1203 Don't put the absolute section sym on fixups here.
1204 (fix_segment): New function.
1205 (write_relocs): Don't call fixup_segment from here.
1206 (write_object_file): Instead call tc_frob_file_before_fix,
1207 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1208 Don't output the absolute section symbol.
1209 (fixup_segment): Rewrite.
1210 * write.h (abs_section_sym): Declare.
1211 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1213 (aout_format_ops): Adjust to suit.
1214 * config/obj-aout.h (obj_frob_file): Don't define.
1215 (obj_frob_file_before_fix): Define.
1216 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1217 (S_FORCE_RELOC): Define.
1218 * config/obj-bout.h (S_FORCE_RELOC): Define.
1219 * config/obj-coff.c (coff_format_ops): Init new field.
1220 * config/obj-coff.h: Formatting fixes.
1221 (obj_sec_sym_ok_for_reloc): Define.
1222 (S_FORCE_RELOC): Define.
1223 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1224 (ecoff_frob_file): .. from here.
1225 (ecoff_format_ops): Add new function.
1226 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1227 (obj_frob_file_before_fix): Define.
1228 * config/obj-elf.c (elf_format_ops): Init new field.
1229 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1230 * config/obj-ieee.h: Formatting fixes.
1231 (S_FORCE_RELOC): Define.
1232 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1233 * config/obj-vms.h (S_FORCE_RELOC): Define.
1234 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1235 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1236 for BFD_RELOC_32 and BFD_RELOC_64.
1237 (alpha_fix_adjustable): Remove extern and weak tests.
1238 (alpha_before_fix): Rename from alpha_adjust_symtab.
1239 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1240 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1241 (TC_VALIDATE_FIX): Tweak param name.
1242 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1243 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1244 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1245 (MD_APPLY_SYM_VALUE): Define.
1246 (tc_adjust_symtab): Don't define.
1247 (alpha_adjust_symtab): Don't declare.
1248 (tc_frob_file_before_fix): Define.
1249 (alpha_before_fix): Declare.
1250 (TC_INIT_FIX_DATA): Tweak param names.
1251 * config/tc-arc.c: Include "struc-symbol.h".
1252 (md_pcrel_from): Remove undefined sym fudge.
1253 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1254 Don't set fx_addnumber.
1255 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1256 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1257 (EXTERN_FORCE_RELOC): Define.
1258 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1259 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1260 (arm_validate_fix): Return void.
1261 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1262 Add plt and got reloc tests.
1263 (arm_force_relocation): Call S_FORCE_RELOC.
1264 * config/tc-arm.h (struct fix): Forward declare.
1265 (TC_VALIDATE_FIX): No longer set add_symbolP.
1266 (arm_validate_fix): Adjust declaration.
1267 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1268 (TC_FORCE_RELOCATION): Tweak param name.
1269 (TC_INIT_FIX_DATA): Likewise.
1270 (obj_fix_adjustable): Don't define.
1271 (tc_fix_adjustable): Call arm_fix_adjustable.
1272 (TC_FIX_ADJUSTABLE): Don't define.
1273 (MD_APPLY_SYM_VALUE): Define.
1274 (EXTERN_FORCE_RELOC): Define.
1275 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1276 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1277 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1278 Remove *valP fudges and code to subtract abs sym. Don't set
1280 * config/tc-avr.h: Formatting.
1281 (EXTERN_FORCE_RELOC): Define.
1282 (MD_APPLY_SYM_VALUE): Define.
1283 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1284 (md_apply_fix3): Remove code to subtract abs sym.
1285 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1286 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1287 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1288 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1289 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1290 (tc_fix_adjustable): Remove extern, weak tests.
1291 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1292 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1293 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1294 and code to subtract abs sym.
1295 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1296 (d10v_force_relocation): Call S_FORCE_RELOC.
1297 * config/tc-d10v.h: Don't include write.h.
1298 (struct fix): Instead, forward declare.
1299 (MD_PCREL_FROM_SECTION): Tweak param names.
1300 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1301 (d10v_fix_adjustable): Likewise.
1302 (obj_fix_adjustable): Don't define.
1303 (tc_fix_adjustable): Define.
1304 (TC_FORCE_RELOCATION): Tweak param name.
1305 (MD_APPLY_SYM_VALUE): Define.
1306 (EXTERN_FORCE_RELOC): Define.
1307 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1308 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1309 and code to subtract abs sym.
1310 * config/tc-d30v.h: Don't include write.h.
1311 (struct fix): Instead, forward declare.
1312 (MD_PCREL_FROM_SECTION): Tweak param names.
1313 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1314 (MD_APPLY_SYM_VALUE): Define.
1315 (EXTERN_FORCE_RELOC): Define.
1316 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1317 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1318 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1319 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1320 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1321 Don't use fx_addnumber.
1322 * config/tc-dlx.h: Don't include write.h.
1323 (md_convert_frag): We're not alpha twice over.
1324 (EXTERN_FORCE_RELOC): Define.
1325 (obj_fix_adjustable): Don't define.
1326 (tc_fix_adjustable): Define.
1327 (TC_FIX_ADJUSTABLE): Don't define.
1328 (MD_APPLY_SYM_VALUE): Define.
1329 (LOCAL_LABELS_DOLLAR): Undef always.
1330 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1331 (fr30_fix_adjustable): Remove extern, weak tests.
1332 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1333 (obj_fix_adjustable): Don't define.
1334 (tc_fix_adjustable): Define.
1335 (struct fix): Forward declare.
1336 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1337 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1338 (frv_fix_adjustable): Don't do extern, weak tests.
1339 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1340 (TC_FIX_ADJUSTABLE): Don't define.
1341 (obj_fix_adjustable): Don't define.
1342 (tc_fix_adjustable): Define.
1343 (struct fix): Forward declare.
1344 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1345 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1346 * config/tc-h8300.h (struct fix): Forward declare.
1347 (EXTERN_FORCE_RELOC): Define.
1348 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1349 (hppa_fix_adjustable): Don't test extern or weak. Don't
1350 symbol_mark_used_in_reloc.
1351 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1353 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1354 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1355 (TC_FORCE_RELOCATION_SECTION): Don't define.
1356 (MD_APPLY_SYM_VALUE): Define.
1357 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1358 to subtract abs sym.
1359 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1360 (MD_APPLY_SYM_VALUE): Define.
1361 (MD_PCREL_FROM_SECTION): Tweak param name.
1362 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1363 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1364 (i386_force_relocation): New function.
1365 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1366 (TC_VALIDATE_FIX): Likewise.
1367 (TC_FIX_ADJUSTABLE): Don't define.
1368 (MD_APPLY_SYM_VALUE): Define.
1369 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1370 (i386_force_relocation): Declare.
1371 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1372 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1373 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1374 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1375 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1376 (EXTERN_FORCE_RELOC): Define.
1377 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1378 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1379 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1380 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1381 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1382 Remove #if 0 code. Invert return boolean.
1383 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1384 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1385 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1386 (tc_coff_sizemachdep): Prototype.
1387 (i960_handle_align): Likewise.
1388 (i960_validate_fix): Adjust declaration.
1389 (reloc_callj): Likewise.
1390 (EXTERN_FORCE_RELOC): Define.
1391 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1392 (TC_FORCE_RELOCATION_ABS): Define.
1393 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1394 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1395 (TC_FIX_ADJUSTABLE): Don't define.
1396 (MD_APPLY_SYM_VALUE): Define.
1397 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1398 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1399 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1400 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1401 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1402 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1403 (MD_APPLY_SYM_VALUE): Define.
1404 (EXTERN_FORCE_RELOC): Define.
1405 (TC_FORCE_RELOCATION): Tweak param name.
1406 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1407 (m32r_fix_adjustable): Don't test extern, weak.
1408 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1409 (MD_APPLY_SYM_VALUE): Define.
1410 (obj_fix_adjustable): Don't define.
1411 (tc_fix_adjustable): Define.
1412 (tc_frob_file): Don't define.
1413 (tc_frob_file_before_fix): Define.
1414 (EXTERN_FORCE_RELOC): Define.
1415 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1416 BFD_RELOC_VTABLE_ENTRY address.
1417 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1418 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1419 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1420 Remove duplicated fx_done code.
1421 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1422 (EXTERN_FORCE_RELOC): Define.
1423 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1425 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1426 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1427 (TC_FIX_ADJUSTABLE): Don't define.
1428 (EXTERN_FORCE_RELOC): Define.
1429 (MD_APPLY_SYM_VALUE): Define.
1430 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1431 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1432 Remove fx_addsy tests.
1433 (mcore_force_relocation): Call S_FORCE_RELOC.
1434 (mcore_fix_adjustable): Don't test fx_addsy.
1435 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1436 (EXTERN_FORCE_RELOC): Define.
1437 (obj_fix_adjustable): Don't define.
1438 (tc_fix_adjustable): Define.
1439 (MD_APPLY_SYM_VALUE): Define.
1440 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1441 (mips_pic): No longer static.
1442 (mips_force_relocation): Call S_FORCE_RELOC.
1443 (mips_fix_adjustable): Remove extern, weak tests.
1444 * config/tc-mips.h (enum mips_pic_level): Declare.
1445 (mips_pic): Declare.
1446 (tc_frob_file): Don't define.
1447 (tc_frob_file_before_fix): Define this instead.
1448 (EXTERN_FORCE_RELOC): Define.
1449 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1450 with reg_section tests. Set fx_done instead of calling
1451 symbol_clear_used_in_reloc on bad relocs.
1452 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1453 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1454 (mmix_adjust_symtab): Simplify list handling. Abort on any
1456 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1457 BFD_RELOC_MMIX_LOCAL.
1458 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1459 (EXTERN_FORCE_RELOC): Define.
1460 (MD_PCREL_FROM_SECTION): Tweak param name.
1461 (tc_frob_file): Don't define.
1462 (tc_frob_file_before_fix): Define this instead.
1463 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1464 Remove SEC_CODE checks.
1465 (mn10300_fix_adjustable): Remove extern and weak tests.
1466 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1467 (TC_FORCE_RELOCATION): Tweak param name.
1468 (obj_fix_adjustable): Don't define.
1469 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1470 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1471 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1472 (openrisc_fix_adjustable): Don't test fx_addsy.
1473 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1474 (obj_fix_adjustable): Don't define.
1475 (tc_fix_adjustable): Define this instead.
1476 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1477 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1478 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1479 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1480 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1481 (MD_APPLY_SYM_VALUE): Define.
1482 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1483 Don't subtract symbol value.
1484 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1485 (EXTERN_FORCE_RELOC): Define.
1486 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1487 (MD_APPLY_SYM_VALUE): Define.
1488 (obj_fix_adjustable): Don't define.
1489 (tc_fix_adjustable): Define this instead.
1490 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1492 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1493 (ppc_force_relocation <elf version>): New.
1494 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1495 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1496 comments. Don't subtract fx_subsy as that is already done.
1497 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1498 (MD_PCREL_FROM_SECTION): Likewise.
1499 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1500 ppc_force_relocation.
1501 (TC_FORCE_RELOCATION_SECTION): Delete.
1502 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1503 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1504 (MD_APPLY_SYM_VALUE): Define.
1505 * config/tc-s390.c: #include "dwarf2dbg.h".
1506 (s390_insn): Remove excess parens.
1507 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1508 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1509 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1510 non-NULL. Don't subtract off fx_addsy value.
1511 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1512 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1513 (TC_FIX_ADJUSTABLE): Don't define.
1514 (MD_APPLY_SYM_VALUE): Define.
1515 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1516 (SWITCH_TABLE): Likewise.
1517 (sh_force_relocation): Call S_FORCE_RELOC.
1518 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1519 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1520 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1521 fx_addnumber is zero on entry. Save val in fx_addnumber.
1522 (tc_gen_reloc): Don't subtract fx_subsy.
1523 * config/tc-sh.h (struct fix): Move.
1524 (obj_fix_adjustable): Don't define.
1525 (tc_fix_adjustable): Define this instead.
1526 (TC_FIX_ADJUSTABLE): Don't define.
1527 (MD_APPLY_SYM_VALUE): Define.
1528 (SWITCH_TABLE_CONS): Define.
1529 (SWITCH_TABLE): Define.
1530 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1531 (TC_VALIDATE_FIX_SUB): Define.
1532 (MD_PCREL_FROM_SECTION): Tweak param name.
1533 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1534 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1535 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1536 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1537 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1538 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1539 (TC_VALIDATE_FIX_SUB): Define.
1540 (MD_PCREL_FROM_SECTION): Tweak param name.
1541 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1542 (tc_gen_reloc): Use S_FORCE_RELOC.
1543 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1544 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1545 (TC_FORCE_RELOCATION_ABS): Define this instead.
1546 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1547 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1548 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1549 (MD_APPLY_SYM_VALUE): Define.
1550 (TC_FIX_DATA_PRINT): Tweak param name.
1551 * config/tc-tic30.c (USE_STDOUT): Don't define.
1552 (md_parse_option): Remove stupid debug code.
1553 (tc_gen_reloc): Don't use fx_addnumber.
1554 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1555 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1556 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1557 (tc_fix_adjustable): Define this instead.
1558 (TC_FIX_ADJUSTABLE): Don't define.
1559 (MD_APPLY_SYM_VALUE): Define this instead.
1560 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1561 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1562 (TC_FIX_ADJUSTABLE): Don't define.
1563 (MD_APPLY_SYM_VALUE): Define this instead.
1564 (tc_fix_adjustable): Remove extern and weak tests.
1565 * config/tc-w65.h (struct fix): Forward declare.
1566 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1568 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1569 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1570 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1572 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1573 (MD_APPLY_SYM_VALUE): Define.
1574 (obj_fix_adjustable): Don't define.
1575 (tc_fix_adjustable): Define this instead.
1576 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1578 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1580 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1581 (ppc_fix_adjustable <coff version>): Cleanup.
1583 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1584 (md_parse_option): No -a64 without BFD64.
1585 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1586 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1588 2002-09-04 Nick Clifton <nickc@redhat.com>
1590 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1591 instructions into the hash table if the target cpu is the BookE32.
1593 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1595 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1598 2000-08-28 Catherine Moore <clm@redhat.com>
1600 * tc-v850.c (v850_relax): Declare.
1601 (v850_longcode): New routine.
1602 (v850_handle_align): New routine.
1603 (md_pseudo_table): Add longcall and longjump.
1604 (md_parse_option): Check for relax option.
1605 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1606 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1607 (md_apply_fix3): Likewise.
1608 (v850_force_relocation): Likewise.
1609 (v850_comm): Change the current section.
1610 (md_assemble): Ensure that the correct value is put in the
1612 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1613 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1614 Remove redundant v850ea support.
1615 * tc-v850.h (HANDLE_ALIGN): Define.
1616 (v850_handle_align): Declare.
1617 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1619 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1621 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1622 * configure: Regenerate.
1623 * NEWS: Mention new port.
1625 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1627 * config/obj-coff.c: Add sdef definition.
1628 * config/obj-coff.h: Add tic4x include file and set
1630 * config/tc-tic4x.c: New file.
1631 * config/tc-tic4x.h: New file.
1633 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1635 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1636 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1637 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1638 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1639 (RELOC_ENUM): Define.
1640 (fix_new_internal): Use RELOC_ENUM.
1641 (fix_new, fix_new_exp): Likewise.
1642 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1643 Replace gotos with continue.
1644 (write_relocs): Formatting. Avoid symbol loops in
1645 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1646 errors, and error number in other cases.
1647 (fixup_segment): Remove param names from prototype. Rename
1648 "this_segment_type" to "this_segment". Update linkrelax comment.
1649 Remove "size, "place" and "where" local vars. Formatting. Update
1650 "no symbol" comment. Remove #if 0 and #if 1.
1652 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1654 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1656 * dwarf2dbg.c: Always include dwarf2dbg.h.
1657 (dwarf2_directive_file): Adjust dummy version args.
1658 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1659 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1660 when symbol values differ.
1661 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1662 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1663 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1665 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1667 * config/tc-w65.c (md_section_align): Fix typo.
1668 (md_parse_option): Return 0, not 1.
1670 2002-08-22 Nick Clifton <nickc@redhat.com>
1672 * doc/as.texinfo (Section): Note that if '@' is a comment
1673 character then another symbol is used to prefix the section's
1676 2002-08-22 Christian Groessler <chris@groessler.org>
1678 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1681 2002-08-12 Graeme Peterson <gp@qnx.com>
1683 * configure.in: Add support for sh-**-nto* target.
1684 * configure: Regenerate.
1686 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1688 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1690 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1692 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1694 (ppc_apuinfo_section_add): Define only if format is ELF.
1695 (md_assemble): Emit APUinfo section only if format is ELF.
1698 2002-08-21 Alan Modra <amodra@bigpond.net.au>
1700 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1701 * config/tc-frv.c: Likewise.
1702 * config/tc-hppa.c: Likewise.
1703 * config/tc-ia64.c: Likewise.
1704 * config/tc-ip2k.c: Likewise.
1705 * config/tc-m68hc11.c: Likewise.
1706 * config/tc-m68k.c: Likewise.
1707 * config/tc-mmix.c: Likewise.
1708 * config/tc-mn10300.c: Likewise.
1709 * config/tc-sh.c: Likewise.
1710 * config/tc-sparc.c: Likewise.
1711 * config/tc-v850.c: Likewise.
1713 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
1715 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1718 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1720 From matthew green <mrg@redhat.com>
1722 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1723 PPC_OPCODE_PPC is, except for BookE architectures.
1724 (md_parse_option): Add support for -mspe.
1725 (md_show_usage): Add -mspe.
1726 (md_parse_option): Add support for -me500 and
1727 -me500x2 to generate code for Motorola e500 core complex.
1728 (md_show_usage): Add -me500 and -me500x2.
1730 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1731 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1732 PPC_APUINFO_BRLOCK): New macros.
1734 (ppc_cleanup): New function.
1735 (ppc_apuinfo_section_add): New function.
1737 (md_assemble): Collect info and write the APUinfo section.
1739 * config/tc-ppc.h (md_cleanup): Define.
1740 (ppc_cleanup): Export.
1741 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1743 2002-08-17 Stan Cox <scox@redhat.com>
1745 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1746 config/tc-mips.c (s_change_section): New function to support
1747 IRIX .section pseudo-op.
1749 2002-08-16 Nick Clifton <nickc@redhat.com>
1751 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1753 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1755 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1756 the fix-up against on the right frag.
1757 (s_cpsetup): Likewise. Parse third argument as expression, to
1758 handle global symbols and forward/backward labels correctly.
1760 2002-08-14 Nick Clifton <nickc@redhat.com>
1762 * read.c (stringer): Catch attempts to create strings in the abs
1765 * config/tc-alpha.c: Fix compiling for COFF targets.
1766 Some minor formatting tidyups.
1768 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1770 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1771 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1772 according to the reloc.
1773 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1774 (TC_FORCE_RELOCATION): Define.
1775 (tc_m68hc11_force_relocation): Declare.
1777 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1778 (s_m68hc11_relax): New function for relax group.
1779 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1780 beginning of jump instruction.
1781 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1782 address computation.
1783 (tc-gen_reloc): Update.
1784 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1786 (tc_m68hc11_force_relocation): New function, handle new relocs.
1787 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1788 reloc for the linker relax pass.
1789 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1792 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1794 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1795 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1796 (s_m68hc11_mode): New function for .mode pseudo op.
1797 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1799 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1800 (m68hc11_elf_final_processing): Declare.
1802 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1804 * config/tc-m68hc11.c (md_begin): Take into account additional
1805 page operand for call instruction.
1806 (print_opcode_format): Likewise.
1807 (check_range): Likewise for page range checking.
1808 (get_operand): Don't skip a possible comma in operands.
1809 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1810 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1811 (fixup24): New to handle call reloc.
1812 (build_insn): Handle missing page operand for call instruction.
1814 (md_apply_fix3): Take into account new relocs.
1815 (get_operand): Fix the mode for indexed indirect addressing.
1816 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1818 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1820 * config/tc-mips.c (mips_ip): Don't work out the value of
1821 constant %hi()s here.
1823 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1825 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1826 for ELF, and don't bother checking ELF relocs when non-ELF.
1827 (i386_immediate): Allow absolute_section expressions for aout.
1828 (i386_displacement): Likewise. Also test bfd_is_com_section.
1829 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1830 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1831 not when fx_addsy. Remove dead code.
1833 2002-08-09 Graeme Peterson <gp@qnx.com>
1835 * configure.in: Add support for ppc-*-nto* target.
1836 * configure: Regenerate.
1838 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1840 * config/tc-i386.h: Reorganize.
1842 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1844 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1845 immediate offset in "dla" and "la" expansions.
1847 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1849 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1850 Remove "bfd_gas=yes" from target table when covered later.
1851 Consolidate some entries.
1852 * configure: Regenerate
1854 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1856 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1857 at start of insn, pass it to output_disp and output_imm.
1858 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1859 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1861 (output_imm): Added arguments. Compute properly addend for
1863 (md_apply_fix3): Remove R_386_GOTPC handling.
1865 2002-08-06 George France <france@handhelds.org>
1867 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1868 and m21264b processor names and cpu types.
1869 * doc/c-alpha.texi: Documented new types.
1871 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1873 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1875 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1877 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1878 handling to BFD_RELOC_MIPS16_GPREL.
1880 2002-08-01 Nick Clifton <nickc@redhat.com>
1882 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1883 pool is computed using signed arithmetic so that proper sign
1884 extension is performed if X_add_number is a 64-bit integer.
1886 2002-08-01 H.J. Lu <hjl@gnu.org>
1887 Daniel Jacobowitz <drow@mvista.com>
1889 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1890 .debug_line section unless it has line information.
1892 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1894 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1895 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1896 Allow default displacement size to be an option "--disp-size-default".
1897 (md_number_to_disp): Make error messages include value. Use %d to
1898 print integers, not %s.
1899 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1900 get duplicate messages sometimes.
1901 (convert_iif): Grow frag to max possible instruction size. Avoid
1902 creating unnecessary fixes.
1903 (md_number_to_field) Add prototype.
1904 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1905 prototypes and make static.
1906 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1907 (evaluate_expr): Use resultP argument instead of exprP global.
1908 (get_addr_mode): Quiten compiler warnings.
1909 (encode_operand): eliminate unused variables. Quiten compiler
1910 warnings. Eliminate nul character in format strings.
1911 (parse): argc is unsigned.
1912 (reloc): Type cast index to quieten compiler.
1913 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1914 (md_convert_frag): Note unused parameters. Remove unused
1916 (md_create_long_jump, md_create_short_jump,
1917 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1920 2002-07-31 Nick Clifton <nickc@redhat.com>
1922 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1923 of the PDP-11 and 2.11BSD a.out support.
1925 2002-07-31 Momchil Velikov <velco@fadata.bg>
1927 * config/tc-v850.c (md_assemble): Fix range check for immediate
1930 2002-07-30 Chris Demetriou <cgd@broadcom.com>
1932 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1933 to Broadcom SB-1 core support.
1935 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1937 * config/tc-mips.c (mips_target_format): Fix formatting.
1938 Add recognition of n32 ABI formats.
1940 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1942 * tc-mips.c (load_address): Don't clobber $at when loading a
1943 64-bit address in non-PIC code if noat is in effect.
1946 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1948 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1949 used in division/multiply macro expansions similarly to how they
1950 are used in the variants with break instructions.
1953 2002-07-30 Graeme Peterson <gp@qnx.com>
1955 * configure.in: Add support for arm-*-nto target.
1956 * configure: Regenerate.
1958 2002-07-30 Nick Clifton <nickc@redhat.com>
1960 * config/tc-arm.c (struct literal_pool): Add fields to allow
1961 multiple literal pools to be maintained.
1962 (find_literal_pool): New function.
1963 (find_or_make_literal_pool): New function.
1964 (add_to_literal_pool): Use find_or_make_literal_pool.
1965 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1967 (s_ltorg): Use find_literal_pool.
1968 (arm_cleanup): Dump all literal pools.
1969 * doc/c-arm.texi: Document new behaviour of only dumping literal
1972 2002-07-26 Alan Modra <amodra@bigpond.net.au>
1974 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1975 rather than PPC_OPCODE_32 for powerpc64*.
1977 2002-07-25 Nick Clifton <nickc@redhat.com>
1979 * po/es.po: Updated Spanish translation.
1980 * po/fr.po: Updated French translation.
1982 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
1984 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
1985 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1986 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1987 * configure, config.in: Regenerate.
1988 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1989 (mips_set_options): Remove "abi" field.
1990 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
1993 (mips_arch_string, mips_arch_info): New vars.
1994 (mips_tune_string, mips_tune_info): New vars.
1995 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1996 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1997 (mips_isa_to_str, mips_cpu_to_str): Remove.
1998 (mips_ip): If the selected architecture is a generic ISA rather
1999 than a processor, only mention the ISA level in error messages.
2000 (OPTION_MCPU): Remove.
2002 (md_longopts): Add -mfp64, remove -mcpu.
2003 (mips_set_option_string): New fn.
2004 (md_parse_option): Make -mipsN update file_mips_isa rather than
2005 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2006 Don't let -mgp32 and -mfp32 change the ABI.
2007 (show): Move to end of file. Constify string argument.
2008 (md_show_usage): Move to the end of the file. Read available
2009 architectures from mips_cpu_info_table.
2010 (mips_set_architecture): New fn.
2011 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2012 is an alias for -march=mipsN. Don't change the ABI based on other
2013 flags. Infer the register size from the ABI as well as the
2014 architecture. Complain about more conflicting arguments.
2015 Unify logic with GCC.
2016 (s_mipsset): Don't change the ABI.
2017 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2018 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2019 "mipsN"-type entries. Remove entries that vary only in the
2020 manufacturer's prefix, or that have "000" replaced by "k".
2021 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2022 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2023 (mips_parse_cpu): New fn.
2024 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2025 (mips_cpu_info_from_isa): Minor formatting tweak.
2027 2002-07-24 Nick Clifton <nickc@redhat.com>
2029 * po/sv.po: Updated Swedish translation.
2030 * po/es.po: Updated Spanish translation.
2032 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2034 * Makefile.am: Run "make dep-am".
2035 * Makefile.in: Regenerate.
2036 * doc/Makefile.in: Regenerate.
2037 * config.in: Regenerate.
2038 * po/POTFILES.in: Regenerate.
2040 2002-07-23 Nick Clifton <nickc@redhat.com>
2042 * po/fr.po: Updated French translation.
2044 2002-07-23 Nick Clifton <nickc@redhat.com>
2046 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2049 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2051 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2052 instead of S_IS_EXTERN.
2053 (md_estimate_size_before_relax): Likewise.
2054 (mips_fix_adjustable): Likewise.
2056 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2058 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2060 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2061 Nick Clifton <nickc@redhat.com>
2063 * cond.c (s_ifdef): Treat a referenced but not yet defined
2064 symbol as if it were undefined, in exactly the same way as
2067 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2068 consider referenced bug not yet defined symbols to be
2071 2002-07-18 Denis Chertykov <denisc@overta.ru>
2072 Frank Ch. Eigler <fche@redhat.com>
2073 Alan Lehotsky <alehotsky@cygnus.com>
2074 John Healy <jhealy@redhat.com>
2075 Jeff Johnston <jjohnstn@redhat.com>
2077 * configure.in: Add ip2k configuraton.
2078 * configure: Regenerate.
2079 * Makefile.am: Add ip2k configuraton.
2080 * Makefile.in: Regenerate.
2081 * configure: Regenerate.
2082 * Makefile.in: Regenerate.
2083 * config/tc-ip2k.c: New file.
2084 * config/tc-ip2k.h: New files.
2085 * NEWS: Mention new support.
2086 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2087 * doc/Makefile.in: Regenerate.
2088 * doc/all.texi: Set IP2K
2089 * doc/as.texinfo: Add IP2K description.
2090 * doc/c-ip2k.texi: New file.
2092 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2094 * NEWS: Reformat to match style of other NEWS files.
2096 2002-07-17 Jan Hubicka <jh@suse.cz>
2098 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2100 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2102 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2104 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2106 * NEWS: Add 'Changes in 2.13'.
2108 2002-07-15 Matt Fredette <fredette@netbsd.org>
2110 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2112 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2114 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2115 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2118 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2120 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2121 (ppc_frob_file_before_adjust): New function.
2122 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2123 (ppc_elf_frob_symbol): Don't declare.
2124 (tc_frob_file_before_adjust): Define.
2125 (ppc_frob_file_before_adjust): Declare.
2127 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2128 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2131 (ppc_xcoff64): Rename to ppc_obj64.
2132 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2133 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2134 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2136 (ppc_target_format): Use ppc_obj64 to select format.
2137 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2138 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2139 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2140 (tc_frob_symbol): Likewise.
2141 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2142 BFD_DEFAULT_TARGET_SIZE.
2144 (ppc_is_toc_sym): Likewise.
2145 (md_apply_fix3): Likewise.
2146 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2147 BFD_DEFAULT_TARGET_SIZE.
2148 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2149 (tc_frob_symbol): Likewise.
2151 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2153 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2154 (mips_ip): Likewise.
2156 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2158 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2159 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2160 (md_apply_fix3): Formatting. Remove redundant test.
2161 (tc_gen_reloc): Remove redundant code.
2162 (tc_i386_force_relocation): Delete. Movy body of function to..
2163 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2165 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2167 * configure.in: Add hppa-*-openbsd* target, change
2168 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2170 * configure: Regenerate.
2172 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2174 * config/tc-mips.c (macro): Shift the 32-bit address range
2175 accessible with a lone "lui" down by 32768.
2177 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2179 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2180 instead of "dadd" in address calculations.
2183 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2185 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2187 (md_assemble): Instead, zap the suffix here.
2189 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2191 * NEWS: Remove next release number until the release is actually
2194 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2196 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2198 * Makefile.in: Regenerate.
2200 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2202 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2203 to symbols in merge sections, even non pc-relative ones.
2205 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2207 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2209 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2211 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2212 .softregs and .eeprom.
2214 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2216 * NEWS: Note the next release is 2.13.
2218 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2220 * po/tr.po: New translation imported.
2222 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2224 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2225 (ecoff_directive_def): Likewise.
2226 (ecoff_directive_tag): Likewise.
2227 * listing.c (file_info): Likewise.
2228 * hash.c (what): Likewise.
2230 2002-06-25 H.J. Lu <hjl@gnu.org>
2232 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2233 * Makefile.in: Regenerated.
2235 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2237 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2238 (assemble_ppi): Generate warning if the same register is used
2239 twice as destination in the same padd / pmuls instruction.
2241 2002-06-18 Dave Brolley <brolley@redhat.com>
2243 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2244 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2245 * configure.in: Support frv-*-*.
2246 * Makefile.am (CPU_TYPES): Add frv.
2247 (TARGET_CPU_CFILES): Add tc-frv.c.
2248 (TARGET_CPU_HFILES): Add tc-frv.h.
2249 (DEPTC_frv_coff): New variable.
2250 (DEPTC_frv_elf): New variable.
2251 (DEPOBJ_frv_coff): New variable.
2252 (DEPOBJ_frv_elf): New variable.
2253 (DEP_frv_coff): New variable.
2254 (DEP_frv_elf): New variable.
2255 * tc-frv.c: New file.
2256 * tc-frv.h: New file.
2258 2002-06-17 Catherine Moore <clm@redhat.com>
2260 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2262 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2264 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2266 2002-06-17 Tom Rix <trix@redhat.com>
2268 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2270 2002-06-14 H.J. Lu <hjl@gnu.org>
2271 Daniel Jacobowitz <drow@mvista.com>
2273 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2274 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2275 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2276 and new_logical_line for the first .file directive.
2277 * read.c (s_app_file_string): New function.
2278 (s_app_file): Call it.
2279 * read.h (s_app_file_string): Add declaration.
2281 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2283 * configure.in: Remove MIPS_STABS_ELF.
2284 * configure: Regenerated.
2285 * config.in: Regenerated.
2286 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2288 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2290 (pdr_seg): Declare unconditionally.
2291 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2292 (s_mips_end): Likewise. Generate stabs function markers.
2293 (s_mips_ent): Generate stabs function markers.
2294 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2296 (s_mips_mask): Likewise.
2297 (mips_flag_mdebug): New.
2298 (md_longopts): Add "mdebug" and "no-mdebug".
2299 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2300 (mips_after_parse_args): Set mips_flag_mdebug.
2301 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2303 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2305 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2306 value twice for RELA relocations.
2308 2002-06-12 Ben Elliston <bje@redhat.com>
2310 * symbols.c (resolve_symbol_value): Initialise final_val.
2312 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2314 2002-06-11 Tom Rix <trix@redhat.com>
2316 * config/tc-ppc.c (ppc_subseg_align): Delete.
2317 (ppc_change_csect): Default csect align is 2.
2318 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2320 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2322 * config/tc-avr.c (mcu_types): Update.
2324 2002-06-08 Matt Thomas <matt@3am-software.com>
2326 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2327 (vax-*-netbsd*): New targets.
2328 * configure: Regenerate.
2329 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2330 * config/tc-vax.c: Add support for ELF and PIC.
2331 (flag_want_pic): New flag.
2332 (float_cons): Fix prototype.
2333 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2334 (md_assemble): Introduce a new is_absolute local, and use it
2335 rather than repeating the test. Make fatal errors actually
2336 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2337 Add support for ELF. Add support for PIC.
2338 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2339 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2341 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2342 optional for a.out, and not allowed for VMS. Adjust all callers.
2343 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2344 (md_create_long_jump): Likewise.
2345 (md_undefined_symbol): Likewise.
2346 (md_section_align): Likewise.
2347 (md_shortopts): Allow -k and -K for ELF.
2348 (md_parse_option): Set flag_want_pic if -k or -K.
2349 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2350 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2351 * config/tc-vax.h (tc_headers_hook): Remove.
2352 (TARGET_FORMAT): Set according to object format and target
2354 (BFD_ARCH, TARGET_ARCH): Define.
2355 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2356 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2357 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2358 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2360 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2362 * Makefile.am: Run "make dep-am".
2363 * Makefile.in: Regenerate.
2365 * as.c: Replace CONST with const.
2366 * write.c: Likewise.
2367 * config/obj-coff.c: Likewise.
2368 * config/tc-a29k.c: Likewise.
2369 * config/tc-arm.c: Likewise.
2370 * config/tc-dlx.c: Likewise.
2371 * config/tc-h8300.c: Likewise.
2372 * config/tc-h8500.c: Likewise.
2373 * config/tc-i370.c: Likewise.
2374 * config/tc-i860.c: Likewise.
2375 * config/tc-i960.c: Likewise.
2376 * config/tc-m68hc11.c: Likewise.
2377 * config/tc-m68k.c: Likewise.
2378 * config/tc-m88k.c: Likewise.
2379 * config/tc-mcore.c: Likewise.
2380 * config/tc-mips.c: Likewise.
2381 * config/tc-ns32k.c: Likewise.
2382 * config/tc-pdp11.c: Likewise.
2383 * config/tc-pj.c: Likewise.
2384 * config/tc-s390.c: Likewise.
2385 * config/tc-sh.c: Likewise.
2386 * config/tc-sparc.c: Likewise.
2387 * config/tc-tahoe.c: Likewise.
2388 * config/tc-tic80.c: Likewise.
2389 * config/tc-v850.c: Likewise.
2390 * config/tc-vax.c: Likewise.
2391 * config/tc-w65.c: Likewise.
2392 * config/tc-z8k.c: Likewise.
2394 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2396 Based on patch from Matt Green:
2397 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2398 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2399 (s_mips_loc): New function.
2400 (mips_nonecoff_pseudo_table): Call them.
2401 (append_insn): Call dwarf2_emit_insn.
2403 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2405 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2407 (file_ase_mips16): New veriable.
2408 (mips_eabi64): Remove.
2409 (CPU_HAS_MIPS16): New define.
2410 (CPU_HAS_MDMX): Fix data type.
2411 (md_begin): Code cleanup. Use file_ase_mips16.
2412 (mips_elf_final_processing): Handle mips16 header flag.
2413 Handle EABI flag without intermediate variable.
2415 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2417 * doc/as.texinfo: Update MIPS documentation.
2419 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2421 * config/tc-mips.c: Add define for $zero register.
2422 (md_begin): Add $zero as alias name for $0.
2423 (insn_uses_reg): Use ZERO define.
2424 (mips_ip): Add $zero as alias name for $0.
2425 (mips16_ip): Likewise.
2426 (s_cplocal): Demand empty rest of input line.
2427 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2428 names. Use ZERO define. Fix input_line_pointer progress.
2430 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2432 * symbols.c: Replace CONST by const throughout.
2433 (symbol_find_exact): Split out from..
2434 (symbol_find_base): ..here.
2435 * symbols.h: Replace CONST by const throughout.
2436 (symbol_find_exact): Declare.
2437 * config/obj-elf.c: #include "struc-symbol.h".
2438 (elf_frob_file): If group name matches an exported symbol, use that
2439 symbol for the signature and ".group" as the section name.
2441 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2443 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2446 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2448 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2449 and mips_opts.ase_mdmx if they are uninitialized.
2451 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2453 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2454 (hppa_force_relocation): Check if a stub just before the start symbol
2455 of the last call_info is reachable before forcing relocation. Fix
2458 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2460 * config/tc-mips.c (mips_after_parse_args): New function.
2461 (md_begin): Move processing of defaults to mips_after_parse_args.
2462 config/tc-mips.h (md_after_parse_args): Define.
2464 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2466 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2467 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2468 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2469 * configure: Regenerate.
2470 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2473 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2475 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2477 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2479 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2480 linkonce flag. Print all warnings.
2481 (obj_elf_section): Parse ",comdat" for groups.
2482 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2483 consistency of comdat flag.
2485 2002-06-02 Richard Henderson <rth@redhat.com>
2487 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2488 with LITERALs without sequence numbers.
2490 2002-06-01 Richard Henderson <rth@redhat.com>
2492 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2493 Rename them LITUSE_ALPHA_*.
2495 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2497 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2498 accept parentheses enclosed register lists.
2500 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2502 * Makefile.am: Run "make dep-am".
2503 * Makefile.in: Regenerate.
2504 * po/POTFILES.in: Regenerate.
2506 2002-05-31 Graeme Peterson <gp@qnx.com>
2508 * configure.in: Add i386-*-nto-qnx*.
2509 * configure: Regenerate.
2511 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2513 * config/tc-mips.c (mips_ip): Use unsigned long values for
2516 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2518 * config/tc-mips.c (s_cpsetup): Fix initialization of
2519 mips_cpreturn_register and mips_cpreturn_offset.
2521 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2523 * config/tc-mips.c (s_cpsetup): Fix comment.
2525 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2527 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2528 (mips_ip): Likewise.
2529 (mips16_ip): Likewise.
2530 (tc_get_register): Likewise.
2532 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2533 Ed Satterthwaite <ehs@broadcom.com>
2535 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2536 (mips_opts): Initialize "ase_mdmx" member.
2537 (file_ase_mdmx): New variable.
2538 (CPU_HAS_MDMX): New macro.
2539 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2540 based on command line options and configuration defaults.
2541 (macro_build): Note in comment that use of MDMX in macros is
2542 not currently allowed.
2543 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2544 "Z" MDMX operand types.
2545 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2546 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2548 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2549 Add support for "-mdmx" and "-no-mdmx" options.
2550 (OPTION_ELF_BASE): Move to accomodate new options.
2551 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2552 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2553 file_ase_mdmx was set.
2554 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2555 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2558 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2560 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2561 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2562 command line switch conforming to gcc conventions.
2563 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2565 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2567 * config/tc-mips.c (macro_build_jalr): New Function.
2568 (md_begin): NewABI uses big GOTs.
2569 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2570 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2571 (load_address): Add some NewABI PIC support.
2573 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2574 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2576 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2578 * config/tc-mips.c (load_address): Use mips_gp_register instead
2579 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2581 (macro): Use mips_gp_register instead of hardcoded value.
2583 2002-05-30 Richard Henderson <rth@redhat.com>
2585 * expr.h (operatorT): Add O_md17..O_md32.
2586 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2587 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2588 O_tprelhi, O_tprello, O_tprel): New.
2589 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2590 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2591 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2592 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2593 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2594 (md_apply_fix3): Handle TLS relocations.
2595 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2596 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2597 associated TLS reloc. Check lituse_tls relocs match up.
2598 (emit_insn): Handle TLS relocations.
2601 * doc/c-alpha.texi: Add docs for tls relocations.
2603 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2605 * config/tc-mips.c (mips_gprel_offset): New variable.
2606 (s_gpvalue): Use it.
2608 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2610 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2611 write-write conflicts.
2612 (md_assemble): Reformat introductory comment.
2613 (parallel_ok): Prevent packing only if the first
2614 instruction cannot be packed.
2616 2002-05-30 Jason Eckhardt <jle@redhat.com>
2617 Tom Rix <trix@redhat.com>
2619 * config/tc-d10v.c (build_insn): Check for immediates.
2621 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2623 * config/tc-mips.c: Replace GP in comments by $gp.
2624 (mips_big_got): Initialize.
2625 (mips_trap): Initialize.
2626 (load_address): Use mips_gp_register instead of hardcoded value.
2627 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2628 (macro): Use mips_gp_register instead of hardcoded value.
2629 (macro2): Change load_address calls.
2630 (md_pcrel_from): Comment formatting.
2631 (s_cpload): Use mips_gp_register instead of hardcoded value.
2632 (s_cprestore): Likewise. Comment formatting.
2633 (s_gpword): Fix data type.
2634 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2635 (nopic_need_relax): Replace GP in comments by $gp.
2636 (mips_elf_final_processing): Better comment.
2638 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2640 * configure.in: Add DLX configuraton
2641 * Makefile.am: Add DLX configuraton
2642 * configure: Regenerate.
2643 * Makefile.in: Regenerate.
2644 * config/tc-dlx.c: New file.
2645 * config/tc-dlx.h: New files.
2646 * NEWS: Mention new support.
2648 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2650 * config/obj-coff.c (write_object_file): Add missing semicolon.
2652 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2654 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2655 by the define. Remove superfluous check of mips_opts.mips16.
2656 (append_insn): Likewise. Canonicalize variable increments.
2657 (macro_build): Canonicalize variable increments.
2658 (macro_build_lui): Likewise.
2659 (load_register): Likewise.
2660 (load_address): Move pointer initialization.
2661 (macro): Move pointer to a more local scope. Canonicalize variable
2662 increments. Better comments. Replace magic constant for RA by the
2664 (macro2): Replace magic constant for RA by the define. Canonicalize
2665 variable increments.
2666 (mips_ip): Canonicalize variable increments.
2667 (mips16_ip): Replace magic constant for RA by the define.
2668 (my_getSmallParser): Canonicalize variable increments/decrements.
2669 (my_getPercentOp): Likewise.
2670 (my_getSmallExpression): Likewise.
2671 (s_align): Likewise.
2672 (s_mipsset): Likewise.
2673 (s_cpsetup): Likewise.
2674 (s_insn): Remove superfluous check of mips_opts.mips16.
2675 (s_mips_stab): Likewise.
2676 (mips_handle_align): Canonicalize variable increments.
2677 (s_mips_ent): Likewise.
2678 (s_mips_end): Add comment.
2680 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2682 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2683 * configure: Regenerate.
2685 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2687 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2688 * Makefile.in: Regenerate.
2689 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2690 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2691 * configure: Regenerate.
2692 * as.h: Use #include "" instead of <> for local header files.
2693 * flonum-konst.c: Likewise.
2694 * flonum-mult.c: Likewise.
2696 * listing.c: Likewise.
2697 * config/tc-ia64.h: Likewise.
2698 * config/tc-v850.h: Likewise.
2700 2002-05-24 TAMURA Kent <kent@netbsd.org>
2702 * configure.in: Add a target for i386-netbsdpe.
2703 * configure: Regenerate.
2705 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2707 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2708 (obj_elf_common): Call elf_common.
2709 (obj_elf_tls_common): New function.
2710 (elf_pseudo_tab): Support .tls_common.
2711 (special_sections): Add .tdata and .tbss.
2712 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2714 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2715 (obj_elf_parse_section_letters): Include T in error message.
2716 * config/tc-ppc.c (ppc_section_letter): Likewise.
2717 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2718 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2720 * config/tc-sparc.c (md_apply_fix3): Likewise.
2721 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2722 Define them if not BFD_ASSEMBLER.
2723 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2725 (md_apply_fix3): Add TLS relocs.
2726 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2727 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2728 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2729 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2730 (ia64_elf_section_letter): Include T in error message.
2731 (md_begin): Support TLS operators.
2732 (md_operand): Likewise.
2733 (ia64_gen_real_reloc_type): Support TLS relocs.
2734 * write.c (adjust_reloc_syms): Don't change symbols in
2735 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2737 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2739 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2740 round the relocation up rather than down.
2742 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2744 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2746 * doc/as.texinfo: Document that the COFF version of .section
2747 ignores the 'a' flag.
2749 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2751 * config/tc-alpha.c (assemble_tokens): Protect use of
2752 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2754 * write.c (size_seg): Check adjustment to last frag.
2755 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2757 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2758 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2759 (write_object_file): Invoke md_do_align if available, and use
2760 frag_align_code on text sections.
2761 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2762 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2763 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2764 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2765 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2768 2002-05-22 H.J. Lu <hjl@gnu.org>
2770 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2773 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2775 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2778 2002-05-22 H.J. Lu <hjl@gnu.org>
2780 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2781 for one .loc for compiler.
2783 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2785 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2788 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2790 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2791 Optimize the rotate by zero case.
2793 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2795 * configure.in: Remove accidental enabling of bfd_gas=yes for
2797 * configure: Regenerate.
2799 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2801 * app.c: Fix formatting.
2803 * ehopt.c: Likewise.
2805 * input-file.c: Likewise.
2806 * listing.c: Likewise.
2807 * macro.h: Likewise.
2808 * stabs.c: Likewise.
2809 * symbols.c: Likewise.
2811 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2813 * config/obj-generic.c: Delete file.
2814 * config/obj-generic.h: Likewise.
2816 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2818 * config/tc-avr.c (mcu_types): Update for new devices.
2820 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2822 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2824 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2826 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2827 worked sometimes by accident. Fix copy&paste comment.
2829 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2831 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2832 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2833 (mips_elf_final_processing): Let n32 use .reginfo.
2835 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2837 * config/tc-mips.c (append_insn): Fix too small range of variable.
2839 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2841 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2842 listing_prev_line().
2844 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2846 * config/tc-arm.c (md_assemble): Remove redundant call to
2849 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2852 * stabs.c (s_stab_generic): Fix grammatical error in warning
2855 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2857 * write.c (subsegs_finish): Don't specially align last subseg.
2859 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2861 * stabs.c (s_stab_generic): Warn about a description field that is
2864 * config/obj-coff.c: Fix compile time warnings when compiling
2865 without BFD_ASSEMBLER defined.
2868 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2870 (md_pcrel_from_section): Use md_pcrel_from().
2872 2002-05-11 Bruno Haible <bruno@clisp.org>
2874 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2875 by dwarf2_directive_loc, instead of calling dwarf2_where.
2877 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2879 * config/obj-coff.h: Fix formatting.
2880 * config/tc-mcore.c: Likewise.
2881 * config/tc-mn10300.c: Likewise.
2882 * config/tc-openrisc.c: Likewise.
2883 * config/tc-or32.c: Likewise.
2884 * config/tc-pdp11.c: Likewise.
2885 * config/tc-ppc.c: Likewise.
2886 * config/tc-ppc.h: Likewise.
2887 * config/tc-sh64.c: Likewise.
2888 * config/tc-sh.c: Likewise.
2889 * config/tc-tic54x.c: Likewise.
2890 * config/tc-xstormy16.c: Likewise.
2891 * config/tc-xstormy16.h: Likewise.
2893 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2895 * config/obj-coff.c: Fix formatting.
2896 * config/obj-elf.c: Likewise.
2897 * config/tc-alpha.c: Likewise.
2898 * config/tc-arm.c: Likewise.
2899 * config/tc-d10v.c: Likewise.
2900 * config/tc-d30v.c: Likewise.
2901 * config/tc-h8300.c: Likewise.
2902 * config/tc-hppa.c: Likewise.
2904 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2906 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2907 reloc when no_cond_jump_promotion.
2909 2002-05-08 Jim Wilson <wilson@redhat.com>
2911 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2912 current variable part of frag.
2914 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2916 * config/tc-mmix.c: Fix formatting.
2917 * config/tc-mmix.h: Likewise.
2919 2002-05-08 Alan Modra <amodra@bigpond.net.au>
2921 * configure: Regenerate.
2923 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2925 * config/tc-m68k.c: Fix formatting.
2927 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2929 * Makefile.am: Honour DESTDIR.
2930 * Makefile.in: Regenerate.
2932 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2934 * config/tc-ia64.c: Fix formatting.
2935 * config/tc-ia64.h: Likewise.
2937 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2939 * config/tc-mips.c: Fix formatting.
2940 * config/tc-s390.c: Likewise.
2941 * config/tc-s390.h: Likewise.
2943 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
2945 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2946 information for instructions.
2948 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2950 * as.h: Fix formatting.
2953 * dwarf2dbg.c: Likewise.
2954 * frags.h: Likewise.
2956 * macro.c: Likewise.
2958 * stabs.c: Likewise.
2959 * symbols.c: Likewise.
2961 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2963 * app.c (mri_pseudo): Only declare for TC_M68K.
2965 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2966 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2967 BFD_RELOC_16_BASEREL.
2968 (md_assemble): Likewise.
2969 (md_apply_fix3): Likewise.
2971 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2973 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2974 zero into an add of zero - it is not the same.
2976 2002-05-01 Arati Dikey <aratid@kpit.com>
2978 * tc-sh.c (get_specific): Generate warning if the same
2979 destination register is used in parallel instructions.
2981 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
2983 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2985 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2987 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2988 backwards to prevent cascading errors.
2990 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2992 * configure.in: Add support for powerpc-*-windiss.
2993 * configure: Regenerated.
2995 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2997 * config/tc-s390.c (md_parse_option): Formatting.
2999 * config/tc-i386.c: Formatting fixes, add missing space in error
3002 2002-04-24 Christian Groessler <chris@groessler.org>
3004 * config/tc-z8k.c (build_bytes): Add support for new cases:
3005 CLASS_IGNORE and ARG_NIM4.
3006 (md_assemble): Prevent destruction of input_line_pointer if
3007 get_operands returns failure.
3009 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3011 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3012 instructions to be generated by macros.
3014 2002-04-24 Andreas Schwab <schwab@suse.de>
3016 * config/tc-i386.c (output_jump, output_disp)
3017 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3019 (md_apply_fix3): Remember addend value for rela relocations.
3020 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3022 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3024 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3025 from previous change.
3027 2002-04-22 Eric Christopher <echristo@redhat.com>
3029 * config/tc-mips.c (macro_build): Add warning if macro instructions
3030 are expanded into a branch delay slot.
3032 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3034 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3035 numbers, gdb relies on them to detect the start of the prologue.
3037 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3039 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3040 symbols in merge sections.
3042 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3044 * as.c (main): Don't reference _bfd_chunksize.
3046 2002-04-15 Tom Rix <trix@redhat.com>
3048 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3049 symbols in merge sections.
3051 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3053 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3054 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3055 argument for the precision.
3056 (gen_to_words): Update accordingly.
3058 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3060 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3061 BFD_VERSION_STRING unavailable.
3062 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3064 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3066 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3067 symbol_used_in_reloc_p is true.
3069 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3072 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3074 * dep-in.sed: Cope with absolute paths.
3075 * Makefile.am (dep.sed): Subst TOPDIR.
3077 * Makefile.in: Regenerate.
3079 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3081 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3082 (mips_ip): Remove unused variable.
3083 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3084 unsigned char with bfd_byte.
3085 (s_file): Remove unused variable.
3086 (s_mips_ent): Likewise.
3088 2002-04-03 Tom Rix <trix@redhat.com>
3090 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3092 (find_opcode): Fix warning in as_warn.
3093 * config/tc-d10v.h: Update Copyright.
3095 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3096 Tom Rix <trix@redhat.com>
3098 From Jeff Knaggs <jknaggs@redhat.com>
3099 * config/tc-d10v.c (check_resource_conflict): New function to
3100 check for resource conflicts.
3102 From Jason Eckhardt <jle@redhat.com>
3103 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3105 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3106 reserved control registers is used.
3107 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3110 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3111 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3112 instruction cannot be packed.
3114 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3115 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3116 write-write conflicts.
3117 (md_assemble): Reformat introductory comment.
3118 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3121 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3123 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3124 O_logical_not>): Derive final_seg from add_symbol.
3125 <O_multiply..O_logical_or>: More final_seg twiddles.
3127 2002-04-01 Jessica Han <jessica@cup.hp.com>
3129 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3132 2002-03-27 Andreas Schwab <schwab@suse.de>
3134 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3135 field for pc-relative fixups.
3136 (output_disp): Likewise.
3137 (md_estimate_size_before_relax): Likewise.
3138 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3139 pc-relative fixups in 64bit mode.
3141 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3143 * config/te-aix5.h: Typo fix.
3145 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3147 * Makefile.am: Run "make dep-am".
3148 * Makefile.in: Regenerate.
3149 * doc/Makefile.in: Regenerate.
3151 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3153 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3154 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3156 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3158 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3159 the EXTENDED bit here; report the estimate according to the
3162 2002-03-18 Tom Rix <trix@redhat.com>
3164 * configure.in: Add AIX 5 support.
3165 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3166 * config/te-aix5.h: New file. AIX 5 support.
3167 * configure: Regenerate.
3169 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3171 * po/fr.po: Updated version.
3173 2002-03-16 Andreas Jaeger <aj@suse.de>
3175 * doc/c-mips.texi (Machine Dependencies): Add new node.
3177 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3179 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3180 (mips_opts): Initialize "ase_mips3d" member.
3181 (file_ase_mips3d): New variable.
3182 (CPU_HAS_MIPS3D): New macro.
3183 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3184 based on command line options and configuration defaults.
3185 (macro_build, mips_ip): Accept MIPS-3D instructions if
3186 mips_opts.ase_mips3d is set.
3187 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3188 Add support for "-mips3d" and "-no-mips3d" options.
3189 (OPTION_ELF_BASE): Move to accomodate new options.
3190 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3191 (mips_elf_final_processing): Add a comment indicating that a
3192 MIPS-3D ASE ELF header flag should be set, when one exists.
3193 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3194 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3195 nomips3d" directives.
3197 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3199 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3200 a weak symbol in same section to be within reach.
3202 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3204 * po/fr.po: Updated version.
3206 2002-03-12 Andreas Schwab <schwab@suse.de>
3208 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3209 body record so that an error is given for misplaced .save
3212 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3214 * config/tc-i386.h (REX_OPCODE): Define.
3215 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3216 (rex_byte): typedef to int.
3217 * config/tc-i386.c: Group prototypes and vars together.
3218 Formatting fixes. Remove occurrences of "register" keyword.
3221 (mode_from_disp_size): Add INLINE keyword to prototype.
3222 (fits_in_signed_byte): Likewise.
3223 (fits_in_unsigned_byte): Likewise.
3224 (fits_in_unsigned_word): Likewise.
3225 (fits_in_signed_word): Likewise.
3226 (fits_in_unsigned_long): Likewise.
3227 (fits_in_signed_long): Likewise.
3228 (type_names): Constify.
3229 (intel_float_operand): Constify param.
3230 (add_prefix): Use REX_OPCODE.
3231 (md_assemble): Likewise. Modify for changed rex_byte.
3232 (parse_insn): Split out of md_assemble.
3233 (parse_operands): Likewise.
3234 (swap_operands): Likewise.
3235 (optimize_imm): Likewise.
3236 (optimize_disp): Likewise.
3237 (match_template): Likewise.
3238 (check_string): Likewise.
3239 (process_suffix): Likewise.
3240 (check_byte_reg): Likewise.
3241 (check_long_reg): Likewise.
3242 (check_qword_reg): Likewise.
3243 (check_word_reg): Likewise.
3244 (finalize_imm): Likewise.
3245 (process_operands): Likewise.
3246 (build_modrm_byte): Likewise.
3247 (output_insn): Likewise.
3248 (output_branch): Likewise.
3249 (output_jump): Likewise.
3250 (output_interseg_jump): Likewise.
3251 (output_disp): Likewise.
3252 (output_imm): Likewise.
3254 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3256 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3258 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3260 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3261 relocs except when BFD64.
3263 * write.c (number_to_chars_bigendian): Don't abort when N is
3264 larger than sizeof (VAL).
3265 (number_to_chars_littleendian): Likewise.
3267 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3269 * config/tc-hppa.c (md_apply_fix3): Add cast.
3270 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3273 2002-03-05 Paul Koning <pkoning@equallogic.com>
3275 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3276 (parse_ac5): New function for parsing float regs in float operand.
3277 (parse_expression): Remove attempt to make literals be octal.
3278 (parse_op_no_deferred): Support float literals.
3279 (parse_op): Reject attempts to refer to float regs.
3280 (parse_fop): New function, like parse_op but for float operand.
3281 (md_assemble): Add cases to parse float operands. Also fix
3282 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3284 2002-03-04 H.J. Lu <hjl@gnu.org>
3286 * config/obj-elf.c (special_section): Add .init_array,
3287 .fini_array and .preinit_array.
3289 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3290 .init_array and .fini_array.
3292 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3294 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3296 (obj_frob_symbol): Copy visibility.
3298 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3300 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3302 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3304 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3306 * po/es.po: Updated.
3308 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3310 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3311 only, undo the changes made on 2001-06-08, with the
3312 effect being that common or extern symbols are
3313 adjusted for embedded-PIC, but weak symbols are not.
3314 (md_estimate_size_before_relax: Likewise, with the effect
3315 that extern symbols are treated the same as weak symbols
3316 only if not embedded-PIC.
3317 (mips_fix_adjustable) Likewise, with the effect that
3318 weak or extern symbols are not adjusted for embedded-PIC.
3319 (md_apply_fix3): Tweak so that the case where value is zero
3320 is handled more correctly for embedded-PIC code.
3322 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3324 * doc/as.texinfo (Overview): Add missing @ifset IA64
3326 * configure.in (LINGUAS): Add es.po.
3327 * configure: Regenerate.
3328 * po/es.po: New file.
3330 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3332 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3333 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3334 and NO_PIC cases. Code cleanup.
3335 (macro2): Fix handling of 64bit register loads.
3337 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3339 * doc/as.texinfo: Add entry for IA64.
3340 * doc/c-ia64.texi: New file.
3342 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3344 * config/tc-hppa.c: Update copyright date.
3346 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3347 Remove references to chip manufacturers.
3348 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3350 (md_show_usage): Remove references to chip manufacturers. Mention
3352 (md_begin): Test power4 opcode flag bits.
3354 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3356 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3357 count exceeds prologue count.
3358 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3359 (unwind.label_prologue_count): New member.
3361 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3363 (get_saved_prologue_count): New function.
3364 (save_prologue_count): New function.
3365 (free_saved_prologue_count): New function.
3366 (dot_label_state): Record state label by calling save_prologue_count().
3367 (dot_copy_state): Restore prologue count by calling
3368 get_saved_prologue_count().
3369 (generate_unwind_image): Free up list of saved prologue
3370 counts by calling free_saved_prologue_counts().
3372 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3374 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3375 function declarations.
3377 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3379 * NEWS: Note that GASP is now deprecated.
3380 * Makefile.am: Do not build gasp-new by default.
3381 * Makefile.in: Regenerate.
3382 * doc/Makefile.am: Do not install gasp.info.
3383 * doc/Makefile.in: Regenerate.
3384 * gas/gasp.texi: Note that gasp is now deprecated.
3386 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3388 * NEWS: Mark 2.12 branch.
3390 2002-02-19 Tom Tromey <tromey@redhat.com>
3392 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3394 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3396 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3399 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3401 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3402 Make bit size independent of architecture switch.
3403 (md_begin): Add warning for -m64 with -Aesa.
3404 (s390_md_end): Use renamed architecture defines.
3406 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3408 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3410 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3412 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3415 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3417 * config/tc-mips.c (md_estimate_size_before_relax): Really
3418 make sure we treat weak like extern only for ELF. (Fixes
3419 patch from 2001-07-25.)
3421 2002-02-15 Ben Elliston <bje@redhat.com>
3423 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3426 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3428 * NEWS: Mention support for MMIX.
3430 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3432 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3433 a sequence of indpendent 'if' statements for easier debugging
3434 and future modification.
3436 2002-02-13 Matt Fredette <fredette@netbsd.org>
3438 * config/tc-m68k.c (md_show_usage): No longer display a
3439 hard-coded "68020" for the default CPU, instead display the
3440 canonical name of the true, configured default CPU.
3441 (m68k_elf_final_processing): Mark objects for sub-68020
3442 CPUs with the new EF_M68000 flag.
3444 2002-02-13 Andreas Schwab <schwab@suse.de>
3446 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3447 pc-relative relocations to merge sections in 64-bit mode.
3449 2002-02-13 Ben Elliston <bje@redhat.com>
3451 * NEWS: Document floating point number handling in gasp.
3452 * gasp.c: Include <assert.h> and "xregex.h".
3453 (is_flonum): New function.
3454 (chew_flownum): Likewise.
3455 (change_base): Consume flonums from the input, where possible.
3456 * doc/gasp.texi (Constants): Document floating point numbers.
3458 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3460 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3461 that implicitly use LR and RR selectors.
3463 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3465 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3466 and `epsw' as available on AM33 and above only.
3467 (other_register_name): Add logic to handle machine type encoded in
3470 2002-02-11 Tom Rix <trix@redhat.com>
3472 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3475 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3477 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3480 2002-02-11 Jan Hubicka <jh@suse.cz>
3482 * i386.c (md_assemble): Support 32bit address prefix.
3483 (i386_displacement): Likewise.
3484 (i386_index_check): Accept 32bit addressing in 64bit mode.
3486 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3488 * config/tc-sh.c (dot): Removed unused function.
3490 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3492 * Makefile.am: "make dep-am".
3493 * Makefile.in: Regenerate.
3494 * aclocal.m4: Regenerate.
3495 * config.in: Regenerate.
3496 * configure: Regenerate.
3497 * doc/Makefile.in: Regenerate.
3499 2002-02-10 Richard Henderson <rth@redhat.com>
3501 * doc/c-alpha.texi: New file.
3502 * doc/Makefile.am (CPU_DOCS): Add it.
3503 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3505 2002-02-09 Richard Henderson <rth@redhat.com>
3507 * config/tc-alpha.c (O_samegp): New.
3508 (USER_RELOC_P): Include it.
3509 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3510 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3511 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3512 (alpha_validate_fix): New.
3513 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3515 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3517 * doc/c-cris.texi: New.
3518 * doc/all.texi: @set CRIS.
3519 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3520 Include c-cris.texi.
3521 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3522 * doc/Makefile.in: Regenerate.
3524 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3526 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3527 determine if a number is a sign-extended 32-bit number.
3528 (load_register): Use IS_SEXT_32BIT_NUM.
3529 (macro): Check if load/store macro handling is using a
3530 constant 32-bit address on 64-bit address systems, and if
3531 so optimize the generation of that address.
3533 2002-02-08 Richard Henderson <rth@redhat.com>
3535 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3536 we've eliminated all foreign relocation types yet.
3537 (alpha_fix_adjustable): Likewise.
3539 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3541 Contribute sh64-elf.
3542 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3543 Stephen Clarke <Stephen.Clarke@st.com>
3544 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3545 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3546 * config/tc-sh.c (md_relax_table): Added default sizes for
3547 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3548 MOVI_16, MOVI_32 and MOVI_48.
3549 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3550 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3552 (shmedia_md_estimate_size_before_relax): Remove redundant
3553 blocks. Set fragP->fr_var even if relaxation type unchanged.
3554 Retain UNDEF_MOVI until expression decays to number.
3555 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3556 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3557 relocation types. Take fixP->fx_addnumber into account too.
3558 (shmedia_md_apply_fix): Likewise.
3559 (shmedia_md_convert_frag): Likewise.
3560 (shmedia_build_Mytes): Likewise.
3561 (sh64_consume_datalabel): Complain about nested datalabel.
3562 Support PIC relocs. Call sh_parse_name.
3563 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3564 in tc-sh.h to SHmedia reloc types.
3565 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3566 MOVI_GOTPC): New relaxation constants.
3567 (md_relax_table): Introduce relaxation directives for PIC-related
3569 (sh_PIC_related_p): Handle datalabel.
3570 (sh_check_fixup): Choose SH5 PIC relocations.
3571 (sh_cons_fix_new): Added BDF_RELOC_64.
3572 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3573 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3574 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3575 current ISA is SHmedia, get 7 bytes.
3576 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3577 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3579 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3580 shmedia_apply_fix3 and make void.
3581 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3582 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3584 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3585 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3586 2001-03-14 DJ Delorie <dj@redhat.com>
3587 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3588 * doc/Makefile.in(CPU_DOCS): Ditto.
3589 * doc/c-sh64.texi: New file.
3590 * doc/as.texinfo: Add SH64 support.
3591 2001-03-13 DJ Delorie <dj@redhat.com>
3592 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3593 A_REUSE_PREV so that its purpose is more obvious.
3594 (shmedia_build_Mytes): Ditto.
3595 2001-03-07 DJ Delorie <dj@redhat.com>
3596 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3598 (sh64_vtable_inherit): Ditto.
3599 (strip_datalabels): New, strip "datalabel" from given line.
3600 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3602 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3603 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3605 (shmedia_build_Mytes): ... to here.
3606 2001-03-06 DJ Delorie <dj@redhat.com>
3607 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3609 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3610 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3611 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3612 address by one in call to dwarf2_emit_insn.
3613 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3614 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3615 alignment handling broken by imported changes.
3616 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3617 (sh64_handle_align): Declare.
3618 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3619 (sh64_max_mem_for_rs_align_code): Declare.
3620 (enum sh64_isa_values): Moved here from tc-sh64.c.
3621 (md_do_align): Define.
3622 (sh64_do_align): Declare.
3623 (struct sh64_tc_frag_data): New.
3624 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3626 (TC_FRAG_INIT): Change to set new datatype.
3627 (struct sh64_segment_info_type): Rename member
3628 last_flushed_location to last_contents_mark. All users changed.
3629 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3630 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3631 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3632 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3633 of unsetting seen_insn.
3634 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3635 call sh64_update_contents_mark.
3636 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3637 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3638 enum sh64_isa_values.
3639 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3640 (emitting_crange): Boolean guard moved to file scope from function
3641 scope in sh64_set_contents_type.
3643 (sh64_update_contents_mark): New; most split out from
3644 sh64_flush_pending_output.
3645 (shmedia_md_end): Call sh64_update_contents_mark. Set
3646 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3647 (sh64_do_align): New function.
3648 (sh64_max_mem_for_rs_align_code): New function.
3649 (sh64_handle_align): Rename from shmedia_do_align. Make
3650 non-static. Add head comment. Emit zero bytes for n bytes modulo
3651 four. Change return-type to void.
3652 (shmedia_elf_new_section): Remove.
3653 (shmedia_md_assemble): Call sh64_update_contents_mark.
3654 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3655 new frag. Call sh64_update_contents_mark after making the new
3657 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3658 and sh_flush_pending_output.
3659 (sh64_flag_output): Also call md_flush_pending_output, but add
3660 condition on not emitting_crange.
3661 (sh64_tc_cons_fix_new): Remove.
3662 2001-01-12 Nick Clifton <nickc@redhat.com>
3663 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3664 alignment handling scheme imported from sourceware.
3665 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3666 * config/tc-sh64.h (TARGET_FORMAT): Define.
3667 (sh64_target_format): Prototype.
3668 * config/tc-sh64.c (sh64_target_mach): New function.
3669 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3670 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3671 zero_address_frag instead of copying the frag of the symbol.
3672 (shmedia_frob_file_before_adjust): Ditto.
3673 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3674 to valueT to remove signedness.
3675 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3676 headers to output_bfd. Do not evaluate symbols if final is false;
3678 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3679 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3680 to the current frag, call shmedia_md_convert_frag to emit fixups
3681 and make frag_wane neutralize the frag. Update comments.
3682 * config/tc-sh.c (md_convert_frag): Change caller of
3683 shmedia_md_convert_frag.
3684 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3685 * config/tc-sh64.h: Tweak comments and correct formatting.
3686 * config/tc-sh64.c: Ditto.
3687 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3688 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3689 for the no-relocation case.
3690 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3691 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3693 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
3695 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3696 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3698 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3700 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3701 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3702 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3703 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3704 al>: Set lowest bit of field to relocate to 1 and rest to empty,
3705 if reloc is emitted.
3706 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3707 New options plus bugfixes.
3708 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3710 (md_parse_option): Handle new options.
3711 (md_show_usage): Add blurb for new options.
3712 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3713 (sh64_expand, sh64_pt32): New variables.
3714 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3715 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3716 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
3717 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3718 <resolved previously-pc-relative relocs>: Handle
3719 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3720 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3721 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3722 points to SHcompact code.
3723 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3724 SH64PCREL16)>: Check that ISA of what operand points at and
3725 PTA/PTB matches, or emit error.
3726 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3727 SHMEDIA_BFD_RELOC_PT.
3728 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3730 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3731 condition for MOVI expansion.
3732 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3733 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3735 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3737 (sh64_target_format): Error-check setting of sh64_pt32 and
3738 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3739 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3740 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3741 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3742 * config/tc-sh64.c: Improve comments.
3743 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3744 not say the linker will check correctness of PTA/PTB expansion.
3745 (shmedia_md_end): Make non-static.
3746 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3748 * config/tc-sh.c (sh_finalize): Remove.
3749 * config/tc-sh.h (md_end): Do not define.
3750 Remove prototype for sh_finalize.
3751 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3752 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3753 sh64_section_data container when storing section type in tdata
3754 field in elf_section_data.
3755 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3757 * Makefile.am: Update dependencies.
3758 * Makefile.in: Regenerate.
3759 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3760 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3761 dwarf2_emit_insn call with test on debug_type.
3762 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3763 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3764 CRT_SH5_ISA32 sticky for 64-bit.
3765 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3766 Generate .crange sections when switching ISA mode or emitting
3767 constants in same section as code.
3768 * config/tc-sh64.c: Reformat structure definitions.
3769 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3771 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3772 to emit a .cranges descriptor when contents type changes. Only
3773 emit error if changing contents type and -no-mix is in effect.
3774 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3775 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3776 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3777 sh64_flush_last_crange over sections.
3778 When checking main symbol of datalabel symbol, check for
3779 STO_SH5_ISA32, not ISA type of section in definition.
3780 (shmedia_frob_file_before_adjust): Check main symbol for
3781 STO_SH5_ISA32; don't check ISA type of section in definition.
3782 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3783 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3784 .cranges entries have been output.
3785 (shmedia_elf_new_section): Just call md_flush_pending_output.
3786 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3787 fix. Do not set tc_segment_info_data.in_code for section. Call
3788 sh64_set_contents_type for SHmedia code.
3789 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3790 false. Call md_flush_pending_output.
3791 (sh64_target_format): Check that -no-mix and
3792 -shcompact-const-crange are used in sane combination with other
3794 (shmedia_md_pcrel_from_section): Check type of fix for how to
3796 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3797 not ISA type of section in definition.
3798 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3799 hold contents-type state.
3800 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3801 (sh64_flush_pending_output): Declare.
3802 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3803 (sh64_tc_cons_fix_new): Declare.
3804 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3805 call sh64_flag_output.
3806 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3807 call sh64_set_contents_type to mark SHcompact code and set
3809 (md_longopts): New options "-no-mix" and
3810 "-shcompact-const-crange".
3811 (md_parse_option): Handle new options.
3812 (md_show_usage): Add blurb for new options.
3813 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3814 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3815 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3816 (sh64_last_insn_frag): New.
3817 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3818 to get frag for insn opcode for generating fixups; do not assume it
3820 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3822 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3824 (TC_FRAG_TYPE): Define as fragS *.
3825 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3826 (sh64_last_insn_frag): Declare.
3827 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3828 not == NULL before dereferencing.
3829 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3830 Get rid of BFD section flag and EF_SH64_ABI64.
3831 * config/tc-sh64.c (shmedia_frob_section_type): Use
3832 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3833 communicate the section as containing SHmedia code. Describe why.
3834 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3835 EF_SH64 regardless of ABI.
3836 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3837 in error message. Handle resolved expressions for
3838 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3839 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3840 (shmedia_check_limits): Handle BFD_RELOC_64.
3841 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3842 a STO_SH5_ISA32 symbol, only the BFD value.
3843 2000-12-11 Ben Elliston <bje@redhat.com>
3844 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3845 dwarf2_generate_asm_lineno.
3846 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3847 Handle PC-relative MOVI expansions with assembler relaxation.
3848 Generate PC-relative relocs from 16-bit PC-relative expressions.
3849 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3850 (shmedia_md_pcrel_from_section): ...here.
3851 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3852 turned completely resolved. Adjust relocation type for 16-bit
3853 immediate operands that has turned PC-relative. Adjust back for
3854 MD_PCREL_FROM_SECTION being applied twice.
3855 (shmedia_md_convert_frag): Always emit reloc for expression with
3856 global or weak symbol. Handle relaxation result for PC-relative
3858 (shmedia_md_estimate_size_before_relax): An expression with a weak
3859 or global symbol can not be relaxed. Break out tests for
3860 relaxable symbol into variable sym_relaxable.
3861 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3862 UNDEF_MOVI)>: Break out any PC-relative expression and change
3864 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3866 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3867 MOVI expansion. If X_op_symbol of the immediate expression is
3868 set, make an expression symbol for the argument to frag_var.
3869 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3871 (END): Adjust for new relaxations.
3872 (md_relax_table): Add entries for new relaxations.
3873 2000-12-07 Ben Elliston <bje@redhat.com>
3874 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3875 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3876 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3877 SHORI operand offsets in PT/PTA/PTB expansions.
3878 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3879 Implement DataLabel semantics.
3880 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3881 shmedia_frob_file_before_adjust.
3882 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3883 (DATALABEL_SUFFIX): Define.
3884 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3885 symbol list to update "datalabel" symbols to their main symbol
3887 (shmedia_frob_file_before_adjust): New.
3888 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3889 undefined and set STT_DATALABEL.
3890 (sh64_frob_label): Initialize TC symbol field.
3891 (sh64_consume_datalabel): Actually implement semantics. New
3892 parameter operandf, call it instead of expression.
3893 (sh64_exclude_symbol): New.
3894 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3895 to sh64_consume_datalabel.
3896 (tc_symbol_new_hook): Define to tc_frob_symbol.
3897 (TC_SYMFIELD_TYPE): Define to symbolS *.
3898 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3899 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3900 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3902 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3903 generating dwarf2 debug information.
3904 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3905 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3906 elf64-sh64 for the 64-bit ABI.
3907 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3909 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3910 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3912 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3913 * config/tc-sh64.c: Tweak comments, formatting and error messages.
3914 (enum sh64_abi_values): New type.
3915 (enum sh64_isa_values): New type.
3916 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
3917 (seen_shcompact_mode, seen_shmedia_mode): Delete.
3918 (sh64_abi): Replace shmedia_64.
3919 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3920 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3921 (s_sh64_mode): Check validity for this target.
3922 (sh64_target_format): Initialize defaults for ISA and ABI.
3923 Fallback to old object format if no SH64 ISA or ABI has been
3925 * config/tc-sh.c (md_parse_option): Check combinations for errors.
3926 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3927 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3928 * config/tc-sh64.h: Fix typo in comment.
3929 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
3930 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3931 <PT fixups for absolute values>: Size will be longest, not
3933 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
3934 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3935 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3936 and l1 to hold lowercase of two first characters. Change all
3937 remaining TO_LOWER to tolower.
3938 * config/tc-sh64.c (TO_LOWER): Delete.
3939 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3940 (md_parse_name): Define.
3941 (sh64_consume_datalabel): Declare.
3942 (DOLLAR_DOT): Define.
3943 * config/tc-sh64.c (shmedia_parse_exp): New.
3944 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3945 (shmedia_parse_reg): Remove const from src
3947 (shmedia_get_operands): Ditto for args parameter and ptr variable.
3948 (shmedia_md_assemble): Ditto for op_end variable.
3949 (shmedia_get_operand): Ditto for ptr parameter and src variable.
3950 Use shmedia_parse_exp, not parse_exp.
3951 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3952 parameter. All callers changed.
3953 (shmedia_get_operand): Add shmedia_arg_type parameter. All
3955 (shmedia_parse_reg): Put first two character in local variables.
3956 Use tolower, not TO_LOWER. If no register is found and argtype
3957 indicates a control register, scan shmedia_creg_table
3959 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3960 * Makefile.am (CPU_TYPES): Add sh64.
3961 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3962 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3963 Regenerate dependencies.
3964 * Makefile.in: Regenerate.
3965 * configure.in: Add support for sh64-*-elf*.
3966 * configure: Regenerate.
3967 * config/tc-sh64.h: New.
3968 * config/tc-sh64.c: New.
3969 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3970 .mode, .isa and .uaquad.
3971 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3972 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3973 [HAVE_SH64] (END): Define as 10.
3974 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3975 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3977 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3978 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3979 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3980 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3982 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3983 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3984 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3985 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3986 SHmedia instructions. Handle state-change after switching to
3988 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3989 (md_parse_option) [HAVE_SH64]: Parse new options.
3990 (md_show_usage) [HAVE_SH64]: Show usage of new options.
3991 (md_convert_frag) [HAVE_SH64] <default>: Call
3992 shmedia_md_convert_frag instead of abort.
3993 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3994 BFD_RELOC_SH_SHMEDIA_CODE.
3995 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3996 SHcompact or SHmedia code.
3997 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3998 shmedia_md_apply_fix instead of abort.
3999 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4000 result from calling shmedia_md_estimate_size_before_relax instead
4002 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4004 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4005 shmedia_init_reloc and do nothing more if it returns non-zero.
4006 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4007 * po/POTFILES.in: Regenerate.
4008 * po/gas.pot: Regenerate.
4010 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4012 * config/tc-sh.c (parse_at): Install the correct version of
4015 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4016 assume fixP->fx_subsy is non-NULL.
4018 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4020 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4021 A_DISP_PC_ABS, and adjust it by -4.
4022 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4024 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4025 the operand type is not A_DISP_PC_ABS.
4027 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4029 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4030 common and weak symbols. Handle common and weak symbols as
4031 undefined symbols with regards to GREG handling and merging.
4032 (mmix_frob_file): Ditto.
4034 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4036 * configure.in (hppa-*-netbsd*): New target.
4037 * configure: Regenerate.
4038 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4040 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4042 * config/tc-v850.c: Add missing prototypes amd use old-style
4043 function definitions.
4044 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4045 (sdata_section tdata_section, zdata_section, sbss_section,
4046 tbss_section, zbss_section, rosdata_section, rozdata_section,
4047 scommon_section, tcommon_section, zcommon_section,
4048 call_table_data_section, call_table_text_section): Delete.
4049 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4050 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4051 v850_call_table_data, v850_call_table_text): Delete.
4052 (struct v850_seg_entry): New.
4053 (v850_seg_table): New.
4054 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4055 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4056 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4057 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4060 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4061 recording of alignment.
4062 (md_pseudo_table): Use v850_seg.
4063 (md_begin): Don't init .call_table_data and .call_table_text here.
4064 Set v850_seg_table bss entry.
4066 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4068 Support on-demand global register allocation by passing on
4069 base-plus-offset relocs to the linker.
4070 * config/tc-mmix.c: Tweak and fix typos in comments.
4071 (allocate_undefined_gregs_in_linker): New variable.
4072 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4073 (md_longopts): Add --linker-allocated-gregs.
4074 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4075 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4076 (md_show_usage): Update text for -x. Add text for
4077 --linker-allocated-gregs.
4078 (tc_gen_reloc): Derive default value for addend from val and
4079 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4080 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4081 GREG if allocate_undefined_gregs_in_linker.
4082 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4083 --linker-allocated-gregs.
4084 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4085 --linker-allocated-gregs. Mention that it's implied by -x.
4086 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4087 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4089 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4091 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4093 * Makefile.am: Run "make dep-am"
4094 * Makefile.in: Regenerate.
4096 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4098 * config/tc-or32.c: New file.
4099 * config/tc-or32.h: New file.
4100 * configure.in: Add support for or32 targets.
4101 * configure: Regenerate.
4102 * config/obj-coff.c: Add support for or32 targets.
4103 * config/obj-coff.h: Add support for or32 targets.
4104 * Makefile.am: Add support for or32 targets.
4105 * Makefile.in: Regenerate.
4106 * NEWS: Mention support for OpenRISC.
4107 * doc/Makefile.in: Regenerate.
4108 * po/POTFILES.in: Regenerate.
4109 * po/gas.pot: Regenerate.
4111 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4113 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4116 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4118 * config/tc-mips.c (tc_gen_reloc): Arrange for
4119 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4120 their LO16 parts, even for ELF.
4122 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4124 * config/tc-i386.c: Protect definitions of true and false
4127 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4129 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4130 made because of .weak, if they are neither defined nor used in any
4133 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4135 * configure: Regenerated.
4137 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4139 * doc/Makefile.am (install): Depend on install-info.
4140 * doc/Makefile.in: Regenerate.
4142 2002-01-26 Nick Clifton <nick@redhat.com>
4144 * po/fr.po: Updated version
4146 2002-01-24 Kazu Hirata <kazu@hxi.com>
4148 * config/tc-h8300.c (check_operand): Don't print a warning
4149 when a valid 24-bit address is given to a 16-bit address
4152 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4154 * config/tc-sh.c (sh_elf_suffix): Removed.
4155 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4156 sh_end_of_match, sh_parse_name): New functions.
4157 (sh_elf_cons): Simplify.
4158 (parse_exp): Reject misplaced PIC operands.
4159 (md_undefined_symbol): Simplify.
4160 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4161 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4162 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4163 Complain if subsy remains at the end.
4164 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4165 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4167 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4169 * config/tc-mn10300.c (xr_registers): Move `pc'...
4170 (other_registers): ... here.
4172 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4174 * Makefile.am: Run "make dep-am".
4175 * Makefile.in: Regenerate.
4176 * gas/po/POTFILES.in: Regenerate.
4178 2002-01-21 DJ Delorie <dj@redhat.com>
4180 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4181 stabstr_name allocation permanent, as it will be referenced from
4184 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4186 * configure.in (ia64-*-netbsd*): New target.
4187 * configure: Regenerate.
4189 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4191 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4193 <Detailed description, ARM options>: Ditto.
4194 * doc/c-arm.texi (ARM Options): Ditto.
4196 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4198 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4199 do_mia, do_mar and do_mra respectively.
4200 (do_mav_*): Renamed from do_c_*.
4201 (mav_reg_required_here, mav_parse_offset): Renamed from
4202 cirrus_reg_required_here and cirrus_parse_offset respectively.
4203 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4205 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4206 Keith Walker <keith.walker@arm.com>
4208 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4209 (insns): Add pattern for bxj instruction.
4210 (do_bxj): New function.
4211 (arm_cpus): Add arm926ej.
4212 (arm_archs): Add armv5tej.
4214 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4216 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4218 2002-01-19 Keith Walker <keith.walker@arm.com>
4220 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4222 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4224 * NEWS: Mention new ARM command-line options and VFP support.
4226 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4228 (ARM_CEXT_MAVERICK): Similarly.
4229 (ARM_ANY): Now means any core instruction.
4230 (CPU_DEFAULT): Default to ARM_ANY.
4231 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4232 (pic_code): Declare for all object types. Make type int.
4233 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4234 (march_fpu_opt, mfpu_opt): Declare.
4235 (md_longopts): Tidy up conditional definitions.
4236 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4237 (arm_long_opts): New tables.
4238 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4239 (arm_parse_extension): New function.
4240 (md_parse_option): Rewrite using new table-driven system.
4241 (md_show_usage): Use new table-driven system.
4242 (md_begin): Calculate cpu_variant from command line option data.
4243 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4244 command-line options.
4245 * doc/c-arm.texi: Likewise.
4247 2002-01-18 Andreas Jaeger <aj@suse.de>
4249 * as.c (parse_args): Update year.
4251 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4253 * config/tc-tic54x.c (encode_address): Add a more informative
4254 warning about incorrect syntax.
4256 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4258 * po/gas.pot: Regenerate.
4260 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4262 * macro.c (get_any_string): Add no-c-format comment to prevent
4263 confusion when translating string.
4264 * gasp.c (get_any_string): Add no-c-format comment to prevent
4265 confusion when translating string.
4267 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4268 Johannes Stezenbach <js@convergence.de>
4269 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4270 matched before the shorter ones.
4271 (my_getSmallParser): Fix handling of nested parentheses in
4272 percent_op's. Code cleanup.
4273 (my_getPercentOp): New function, code from my_getSmallParser.
4274 (my_getSmallExpression): Fix handling of closing parentheses.
4275 Code cleanup. Better comments.
4277 2002-01-16 Nick Clifton <nickc@redhat.com>
4279 po/tr.po: New file: Turkish translation.
4280 configure.in (LINGUAS): Add "tr".
4281 configure: Regenerate.
4283 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4285 Support for VFP instructions
4286 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4287 (cp_address_required_here): New argument wb_ok. When false, do not
4288 accept write-back forms of addressing. Change all callers.
4289 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4290 (FPU_VFP_EXT_V2): Define.
4291 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4292 Define in terms of above.
4293 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4294 (vfp_reg): New struct.
4295 (vfp_regs): New array of registers.
4296 (insns): Add VFP instructions.
4297 (sn_table): New array of VFP single-precision register names.
4298 (dn_table): New array of VFP double-precision register names.
4299 (all_reg_maps): Add the new register tables.
4300 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4301 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4302 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4303 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4304 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4305 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4306 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4307 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4308 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4309 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4310 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4311 (do_vfp_sp_dp_cvt): New functions.
4312 (md_begin): Set soft-float flag for appropriate VFP work.
4313 (md_atof): Handle VFP-format doubles.
4314 (md_parse_option): Handle VFP command-line options.
4315 (md_show_usage): Display VFP command-line options.
4317 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4319 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4320 various command line options.
4322 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4324 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4326 (xstormy16_md_apply_fix3): Do not return a value.
4328 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4330 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4331 the -EL/-EB option that matches the target's endianness.
4332 (md_parse_option): Likewise.
4334 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4336 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4337 is not dependent on ARM_BI_ENDIAN.
4339 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4341 * tc-arm.c (all error messages): Normalize capitalization of messages.
4343 * tc-arm.h (md_operand): Delete define.
4344 * tc-arm.c (in_my_get_expression): New static variable.
4345 (my_get_expression): Set and clear it.
4346 (md_operand): New function. If called from my_get_expression
4347 put the error in inst.error.
4348 (output_inst): Now takes argument of instruction being assembled.
4349 Print it out with any error message.
4350 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4352 (end_of_line): Don't update inst.error if it is already set.
4354 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4356 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4357 op that can be translated into a mvn instruction.
4359 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4361 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4362 setting default md.flags.
4363 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4364 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4365 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4366 for 32 bit unwind info blocks.
4367 (generate_unwind_image): Add support for different types
4368 of unwind images (32 bits and/or big-endian).
4369 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4370 (ia64_target_format): Add support for hpux target formats.
4371 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4372 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4373 SHT_FINI_ARRAY elf section types.
4375 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4377 * tc-arm.c (struct reg_entry): Move before prototypes.
4378 (int_register, cp_register, fp_register): Delete.
4379 (reg_table): Delete. Replaced with ...
4380 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4381 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4382 (mav_dspsc_table): ... one table per register set.
4383 (arm_reg_hsh): Delete.
4384 (struct reg_map): New structure.
4385 (all_reg_maps): New array.
4386 (enum arm_reg_type): New enums.
4387 (build_reg_hsh): New function.
4388 (insert_reg_alias): Use hash table passed by caller. Adjust all
4390 (create_register_alias): New function, split out from ...
4391 (md_assemble): ... here.
4392 (md_begin): Build new register hash tables.
4393 (arm_reg_parse): New argument for the hash table to search. Adjust all
4395 (arm_reg_parse_any): New function.
4396 (co_proc_number): Look up the processor number in the processor hash
4398 (cirrus_regtype): Delete.
4399 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4400 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4401 (ARM_EXT_MAVERICKsc_register): Delete.
4402 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4403 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4405 (do_c_triple_4, do_c_triple_5): Delete.
4406 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4407 (do_c_quad_6): Delete.
4408 (do_c_quad_6[ab]): New functions.
4409 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4410 arguments to use new register parsing methods.
4411 (cirrus_reg_required_here): Likewise.
4412 (insns): Reclassify cirrus maverick worker functions.
4413 (cirrus_valid_reg): Delete.
4415 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4417 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4418 (sh*-*-netbsdelf*): New target.
4419 * configure: Regenerate.
4420 * tc-sh.h: Update copyright years.
4421 (TARGET_FORMAT): Add version for TE_NetBSD.
4423 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4425 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4428 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4430 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4431 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4433 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4435 * tc-mips.c (mips_cprestore_valid): New flag.
4436 (mips_frame_reg_valid): New flag.
4437 (macro) [M_JAL_2]: Check both flags.
4438 [M_JAL_A]: Likewise.
4439 (s_cprestore): Set mips_cprestore_valid.
4440 (tc_get_register): If setting mips_frame_reg, set
4441 mips_frame_reg_valid and clear mips_cprestore_valid.
4442 (s_mips_ent): Clear both flags.
4443 (s_mips_end): Clear both flags.
4445 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4447 * write.c (write_object_file): Make use of bfd_section_list_remove.
4448 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4449 * config/tc-mmix.c (mmix_frob_file): Likewise.
4451 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4453 * configure.in (i386-*-netbsdelf*): Collapse target into...
4454 (i386-*-netbsd*): ...this. Add support for x86-64.
4455 * configure: Regenerated.
4457 2002-01-03 matthew green <mrg@redhat.com>
4459 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4461 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4463 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4466 For older changes see ChangeLog-0001
4472 version-control: never