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