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