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