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