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