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