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