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