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