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