1 2002-12-16 Alan Modra <amodra@bigpond.net.au>
3 * config/tc-d30v.c (check_range): Warning fixes, formatting.
4 Simplify sign extension. Remove redundant unsigned < 0 test.
5 * config/tc-i960.c (md_ri_to_chars): Prototype.
6 * config/tc-mcore.c (md_pseudo_table): Fix typo.
7 (dump_literals): Init brarsym, and test later instead of isforce.
9 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
10 (parse): Constify line and lineptr.
11 (md_begin): Calculate endop here.
13 2002-12-13 Alan Modra <amodra@bigpond.net.au>
15 * config/obj-vms.c: Formatting. Include fnctl.h.
16 (Create_VMS_Object_File): Fix creat call for sane unix systems.
17 (Object_Record_Offset): Make it a size_t.
18 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
19 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
20 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
21 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
22 (vms_fixup_data_section <data_size>): Add here instead.
23 * config/e-criself.c: Fix typo in last change.
25 2002-12-13 Alan Modra <amodra@bigpond.net.au>
27 * write.c (write_object_file): Fix signed/unsigned warning.
28 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
29 * config/e-criself.c (criself_bfd_name): Prototype.
30 * config/obj-aout.c (s_sect): Remove unused function.
31 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
32 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
33 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
34 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
35 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
36 (VMS_RSYM_Parse <Current_Routine>): Likewise.
37 (vms_fixup_text_section <text_siz>): Likewise.
38 (synthesize_data_segment <data_size>): Likewise.
39 (vms_fixup_xtors_section <sect_no>): Likewise.
40 (structure_count): Don't use implicit int type.
41 * config/tc-a29k.c (insert_sreg): Prototype.
42 (define_some_regs): Prototype, make static.
43 (parse_operand): Likewise.
44 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
45 (md_show_usage <stream>): Likewise.
46 (md_section_align <segment>): Likewise.
47 (md_convert_frag <all args>): Likewise.
48 (md_estimate_size_before_relax <all args>): Likewise.
49 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
50 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
51 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
52 (md_undefined_symbol <name>): Likewise.
53 (md_convert_frag <all args>): Likewise.
54 (write_long <opcode>): Likewise.
55 (tc_gen_reloc <seg>): Likewise.
56 (md_estimate_size_before_relax <all args>): Likewise.
57 (md_apply_fix3 <seg>): Likewise.
58 (s_d30v_align <ignore>): Likewise.
59 (build_insn): Correct format string.
60 (md_apply_fix3): Likewise.
61 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
62 (md_undefined_symbol <name>): Likewise.
63 (md_convert_frag <all args>): Likewise.
64 (md_cgen_lookup_reloc <insn>): Likewise.
65 (md_begin): Delete unused vars.
66 (md_assemble): Likewise.
67 (md_estimate_size_before_relax): Likewise.
68 (fr30_relax_frag): #if 0 out, seems unused.
69 (md_atof): Remove declaration of atof_ieee.
70 (restore_colon): Prototype.
71 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
72 (frv_find_in_vliw): Likewise.
73 (frv_debug_tomcat): Likewise.
74 (frv_adjust_vliw_count): Likewise.
75 (frv_tomcat_shuffle): Likewise.
76 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
77 frv_find_in_vliw call.
78 (md_atof): Remove declaration of atof_ieee.
79 * config/tc-h8500.c (cons): Delete declaration.
80 (md_begin <opcode>): Constify.
81 (displacement_size, immediate_size, absolute_size): Remove.
82 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
83 (tc_crawl_symbol_chain <headers>): Likewise.
84 (md_undefined_symbol <name>): Likewise.
85 (tc_headers_hook <headers>): Likewise.
86 (md_parse_option <c,arg>): Likewise.
87 (md_show_usage <stream>): Likewise.
88 (md_convert_frag <headers, seg>): Likewise.
89 (tc_coff_symbol_emit_hook <ignore>): Likewise.
90 (md_atof): Remove declaration of atof_ieee.
91 (tc_aout_fix_to_chars): Remove unused function.
92 (parse_reg): Prototype.
93 (parse_exp): Prototype.
94 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
95 (parse_reglist): Prototype.
96 (get_operand): Prototype.
97 (get_operands): Prototype.
98 (get_specific): Prototype. Make "this_index" signed.
99 (check): Prototype, make static.
101 (build_relaxable_instruction): Prototype, make static.
102 (build_bytes): Prototype.
103 (wordify_scb): Prototype.
104 * config/tc-h8500.h (start_label): Declare.
105 (tc_coff_sizemachdep): Declare.
106 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
107 (i370_rmode <unused>): Likewise.
108 (i370_csect <unused>): Likewise.
109 (i370_dc <unused>): Likewise.
110 (i370_ds <unused>): Likewise.
111 (i370_elf_lcomm <unused>): Likewise.
112 (i370_ltorg <ignore>): Likewise.
113 (i370_using <ignore>): Likewise.
114 (i370_drop <ignore>): Likewise.
115 (i370_byte <ignore>): Likewise.
116 (i370_tc <ignore>): Likewise.
117 (md_estimate_size_before_relax <fragp, seg>): Likewise.
118 (md_convert_frag <all args>): Likewise.
119 (md_undefined_symbol <name>): Likewise.
120 (md_pcrel_from_section <sec>): Likewise.
121 (tc_gen_reloc <seg>): Likewise.
122 (i370_section_letter): #if 0 unused functions.
123 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
124 (symbol_locate): Prototype.
125 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
126 (md_number_to_disp, md_number_to_field): Remove.
127 (md_apply_fix3): Correct format string and cast "fup".
128 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
129 (s_endian <ignore>): Likewise.
130 (md_undefined_symbol <name>): Likewise.
131 (tc_crawl_symbol_chain <headers>): Likewise.
132 (tc_set_bal_of_call): Likewise.
133 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
134 (i960_handle_align <fragp>): Likewise.
135 (i960_validate_fix <this_segment_type>): Likewise
136 (tc_gen_reloc <section>): Likewise.
137 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
138 (struct memS, struct regop): Forward declare.
139 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
140 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
141 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
142 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
143 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
144 (md_chars_to_number, md_number_to_imm): Make static, prototype.
145 (md_number_to_field): Likewise.
146 (md_number_to_disp): Remove unused function.
147 (md_atof): Remove declaration of atof_ieee.
148 (md_apply_fix3): Correct md_number_to_imm call.
149 * config/tc-ip2k.c (md_assemble): Warning fix.
150 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
151 (fill_insn <ignore>): Likewise.
152 (debug_sym <ignore>): Likewise.
153 (md_undefined_symbol <name>): Likewise.
154 (m32r_scomm <ignore>): Likewise.
155 (md_convert_frag <abfd>): Likewise.
156 (md_cgen_lookup_reloc <insn>): Likewise.
157 (m32r_record_hi16 <seg>): Likewise.
158 (md_estimate_size_before_relax): #if 0 old_fr_fix.
159 (allow_m32rx): Prototype.
160 (first_writes_to_seconds_operands): Prototype.
161 (writes_to_pc): Prototype.
162 (can_make_parallel): Prototype.
163 (make_parallel): Prototype.
164 (target_make_parallel): Prototype.
165 (assemble_two_insns): Prototype.
166 (m32r_record_hi16): Prototype.
167 (md_atof): Remove declaration of atof_ieee.
168 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
169 (m32r_force_relocation): Prototype.
170 (m32r_elf_section_change_hook): Prototype.
171 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
172 (md_show_usage): Fix signed/unsigned warning.
173 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
174 (calcop): Ditto for reg_prefix var.
175 (hexval): Add cast to fix signed/unsigned warning.
176 (md_number_to_disp): Delete unused function.
177 (md_number_to_field): Likewise.
178 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
179 (match_name): Prototype.
180 (get_bf2): Prototype.
181 (get_bf_offset_expression): Prototype.
182 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
183 (md_undefined_symbol <ignore>): Likewise.
184 (md_create_short_jump <all args>): Likewise.
185 (md_create_long_jump <all args>): Likewise.
186 (md_convert_frag <abfd, sec>): Likewise.
187 (md_apply_fix3 <segment>): Likewise.
188 (md_section_align <segment>): Likewise.
189 (md_pcrel_from_section <sec>): Likewise.
190 (tc_gen_reloc <section>): Likewise.
191 (reg_m, reg_n, immediate): Delete unused vars.
192 (dump_literals): Fix signed/unsigned warning.
193 (enter_literal): Likewise.
194 (parse_imm): Likewise. Also fix format string.
195 (parse_mem): Remove unused var.
196 (md_assemble <LS>): Abort on unexpected inst.
197 (md_atof): Remove declaration of atof_ieee.
198 (md_parse_option): Remove unused vars.
199 (md_apply_fix3): Fix format strings, cast args.
200 (tc_gen_reloc): Delete unused var.
201 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
202 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
203 (md_undefined_symbol <name>): Likewise.
204 (md_convert_frag <abfd>): Likewise.
205 (tc_gen_reloc <seg>): Likewise.
206 (check_operand <insn>): Likewise.
207 (md_convert_frag): Fix format strings.
208 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
209 * config/tc-openrisc.c (ignore_pseudo): Prototype.
210 (md_atof): Remove declaration of atof_ieee.
211 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
212 (md_apply_fix3): Fix bogus >>='s.
213 (md_undefined_symbol): Delete unused var.
214 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
215 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
216 (fake_opcode): Adjust for pj_opc_int_t change.
217 (md_begin): Likewise.
218 (md_assemble): Likewise.
219 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
220 instead of non-existent third arg of parse_exp_save_ilp.
221 (md_parse_option): Correct "little" and "big" calls.
222 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
223 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
224 (tc_gen_reloc <section>): Likewise.
225 * config/tc-tic30.c: #include stdarg.h or varargs.h.
226 (debug): Rewrite using VA_* macros.
227 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
228 (md_convert_frag): Likewise.
229 (md_parse_option): Likewise.
230 (md_show_usage): Likewise.
231 (md_undefined_symbol): Likewise.
232 (tc_gen_reloc): Likewise.
233 (md_operand): Likewise.
234 (tc_aout_pre_write_hook): Delete.
235 (struct tic30_insn): Make "operands" unsigned.
236 (struct tic30_par_insn): Likewise.
237 (md_assemble): Likewise for "count", "i" and "numops".
238 (tic30_parallel_insn): Likewise for vars here.
239 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
240 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
241 * config/tc-tic80.c (obj_coff_section): Delete declaration.
242 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
243 (md_undefined_symbol): Likewise.
244 (md_parse_option): Likewise.
245 (md_convert_frag): Likewise.
246 (tc_coff_symbol_emit_hook): Likewise.
247 (md_atof): Remove declaration of atof_ieee.
248 (const_overflow): Warning fixes, tidy.
249 (get_operands): Delete unused vars.
250 (internal_error_a): Adjust format string to expect a long for arg.
251 (find_opcode): Warning fixes, simplify.
252 (build_insn): Cast internal_error_a arg.
253 (md_begin): Likewise.
254 (md_apply_fix3): Likewise.
255 (md_assemble): Delete unused var.
256 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
257 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
258 (whatreg, parse_reg, parse_exp): Make static, prototype.
259 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
260 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
261 (get_operand, get_operands, get_specific, newfix): Likewise.
262 (apply_fix, build_bytes): Likewise.
263 (md_atof): Remove declaration of atof_ieee.
264 (tc_aout_fix_to_chars): Delete.
265 (md_begin): Constify "opcode". Don't try to init opcode->idx.
267 (md_parse_option): Fix s_segm and s_unseg calls.
269 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
271 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
273 (RELAX_BRANCH_RELOC_S2): Delete.
274 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
275 Do not handle BFD_RELOC_16_PCREL.
276 (macro_build, mips_ip): Likewise.
277 (md_pcrel_from): Return 4 for undefined symbols regardless of
279 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
280 Don't dereference howto if no such relocation is available.
281 Do not apply hack for in-place zero addend in NEWABI.
282 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
284 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
285 Alan Modra <amodra@bigpond.net.au>
287 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
288 (TC_LINKRELAX_FIXUP): Add comments.
290 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
292 * config/tc-mn10300.c (set_arch_mach): Change argument type to
294 (r_register_name, xr_register_name): Add prototype declarations.
296 2002-12-08 H.J. Lu <hjl@gnu.org>
298 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
299 copied from tc-i386.c.
301 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
303 Fix Bug savannah/1825:
304 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
305 (md_relax_table): Define specific relax for PC-rel offsets.
306 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
307 (m68hc11_relax_frag): Handle the new relax code.
308 (md_convert_frag): Likewise.
309 (md_estimate_size_before_relax): Likewise.
311 2002-12-08 Alan Modra <amodra@bigpond.net.au>
313 * subsegs.c (section_symbol): Use the symbol, not the section, name.
315 2002-12-05 Richard Henderson <rth@redhat.com>
317 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
318 (ia64_gen_real_reloc_type): Handle it.
319 (pseudo_func): Add @ltoffx.
320 (md_begin): Build .<ltoffx>.
321 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
323 2002-12-05 Alan Modra <amodra@bigpond.net.au>
325 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
326 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
327 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
328 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
329 COFF to call arm_force_relocation.
331 2002-12-04 David Mosberger <davidm@hpl.hp.com>
333 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
335 (emit_one_bundle): Handle "hint" instruction.
336 (operand_match): Match IA64_OPND_AR_CSD.
338 2002-12-04 Alan Modra <amodra@bigpond.net.au>
340 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
343 2002-12-03 Nick Clifton <nickc@redhat.com>
345 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
346 .PPC.EMB.apuinfo sections.
348 2002-12-03 Richard Henderson <rth@redhat.com>
350 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
352 2002-12-03 Alan Modra <amodra@bigpond.net.au>
354 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
355 (cons, s_align_bytes): Delete declaration.
357 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
359 (dot): Delete unused function.
360 (w65_expression): Remove unused arg.
361 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
363 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
365 (get_specific): Prototype. Constify "struct opinfo *" arg and return
367 (check): Remove unused function.
368 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
369 on unhandled switch case.
370 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
372 (tc_crawl_symbol_chain): Delete unused function.
373 (tc_headers_hook): Likewise.
374 (tc_Nout_fix_to_chars): Likewise.
375 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
376 (md_parse_option): Likewise.
377 (md_convert_frag): Likewise.
378 (tc_coff_symbol_emit_hook): Likewise.
379 (md_show_usage): Likewise.
380 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
381 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
382 (w65_expression): Declare.
384 * po/POTFILES.in: Regenerate.
386 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
387 and ARM_ADRL_IMMEDIATE.
389 2002-12-02 Nick Clifton <nickc@redhat.com>
391 * gasp.c: Delete. It has been deprecated.
392 * NEWS: Mention that gasp has been removed.
393 * Makefile.am: Remove references to gasp.
394 * makefile.vms: Likewise.
395 * mpw-make.sed: Likewise.
396 * Makeile.in: Regenerate.
397 * doc/gasp.texi: Delete.
398 * doc/Makefile.am: Remove references to gasp.texi.
399 * doc/Makefile.in: Regenerate.
400 * macro.c: Delete references to gasp.
401 Remove use of comment_char function parameter as it is no longer
403 * macro.h: Update prototypes to remove comment_char parameter.
405 * read.c (read_a_source_file, s_irp): Remove comment_char
406 parameter from invocation of functions in macro.c
408 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
410 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
412 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
414 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
415 (tc_gen_reloc): Mark section param as not used.
417 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
419 Fix Bug savannah/1825:
420 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
421 that are not pc-relative.
422 (m68hc11_relax_frag): Declare.
424 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
425 the offsetable indexed addressing modes (n,r).
426 (build_insn): Cleanup some locals.
427 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
428 relaxation of difference between two symbols of same section.
429 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
430 only when this is a PC-relative operand and the offset is not absolute.
431 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
432 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
433 be handled by m68hc11_relax_frag.
435 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
437 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
438 (32-bit int, 64-bit double).
439 (md_longopts): New options -mshort, -mlong, -mshort-double and
440 -mlong-double to control the ABI.
441 (md_show_usage): Update.
442 (md_parse_option): Handle new options.
443 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
445 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
447 * symbols.c (report_op_error): New function, broken out of ...
448 (resolve_symbol_value): ... here. Use for both monadic and dyadic
451 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
453 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
454 for BFD_RELOC_32_PLT_PCREL.
456 2002-11-30 Alan Modra <amodra@bigpond.net.au>
458 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
459 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
460 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
461 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
462 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
463 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
464 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
465 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
466 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
467 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
468 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
469 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
470 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
471 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
472 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
473 TRUE/FALSE. Formatting.
475 2002-11-29 Nick Clifton <nickc@redhat.com>
477 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
478 assume a value of zero.
481 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
483 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
486 2002-11-29 Jakub Jelinek <jakub@redhat.com>
488 * config/tc-ia64.c (md_apply_fix3): Add default case.
490 2002-11-28 Jakub Jelinek <jakub@redhat.com>
492 * symbols.c (S_SET_THREAD_LOCAL): New function.
493 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
494 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
496 * config/tc-ia64.c (md_apply_fix3): Likewise.
497 * config/tc-alpha.c (md_apply_fix3): Likewise.
499 2002-11-28 Jakub Jelinek <jakub@redhat.com>
501 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
504 2002-11-26 DJ Delorie <dj@redhat.com.
506 * dwarf2dbg.c (scale_addr_delta): New.
507 (size_inc_line_addr): Use it.
508 (emit_inc_line_addr): Use it.
510 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
512 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
513 (md_assemble): Don't pass on branches to constants as relaxable.
516 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
518 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
520 2002-11-21 Randolph Chung <randolph@tausq.org>
522 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
523 only if they have default visibility.
525 2002-11-21 Richard Henderson <rth@redhat.com>
527 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
530 2002-11-21 Alan Modra <amodra@bigpond.net.au>
532 * config/tc-mcore.c (mcore_pool_count): New function.
533 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
535 2002-11-20 Klee Dienes <kdienes@apple.com>
537 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
538 coalesce the name fields to use the same pointer.
540 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
541 the name fields to use the same pointer.
542 (get_specific): Check for opcodes with the same name using strcmp
543 as well as comparing the pointer.
545 2002-11-20 Alan Modra <amodra@bigpond.net.au>
547 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
550 2002-11-19 Richard Henderson <rth@redhat.com>
552 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
553 visibility portion of st_other.
555 2002-11-19 Klee Dienes <kdienes@apple.com>
557 * config/tc-h8300.c (struct h8_instruction): New type, used to
558 wrap h8_opcodes with length, noperands, idx, and size fields
559 (computed at run-time).
560 (h8_instructions): New variable.
561 (md_begin): Allocate the storage for h8_instructions. Fill
562 h8_instructions with pointers to the appropriate opcode and the
563 correct value for the additional fields.
564 (clever_message): Update to use h8_instructions instead of
566 (build_bytes): Ditto.
567 (get_specific): Ditto.
568 (md_assemble): Ditto.
570 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
572 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
573 adjustments to symbols in merge sections.
575 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
577 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
579 2002-11-18 Kevin Buettner <kevinb@redhat.com>
581 * dwarf2dbg.h (dwarf2_format): New enum.
582 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
583 (out_debug_line, out_debug_info): Add code for handling 64-bit
585 * config/tc-mips.h (mips_dwarf2_format): Declare.
586 * config/tc-mips.c (mips_dwarf2_format): New function.
587 * doc/internals.texi (DWARF2_FORMAT): Document.
589 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
591 * config/tc-mips.c (s_change_section): Make sure input buffer
592 is not accessed past the end. Don't hand
593 obj_elf_change_section a pointer into the input buffer.
595 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
597 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
600 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
602 * config/tc-tic4x.c: Fixed proper commandline
603 parameters. Added support for new opcode-list format. General
604 error message fixups.
605 (c4x_inst_add): Reject insn not for our CPU
606 (md_begin): Added matrix for setting the proper opcode-level &
607 device-flags according to cpu type and revision. Rewrite the
609 (c4x_operand_parse): Fix opcode bug
610 (c4x_operands_match): New function argument. Added dry-run
611 mechanism, that is optional error generation. Added constraint 'i'
613 (c4x_insn_check): Added new function for post-verification of the
615 (md_assemble): Check all opcodes before croaking because of an
616 argument mismatch. Need this to be able to fully support
617 ortogonally arguments.
618 (md_parse_options): Revised commandprompt swicthes and added new
620 (md_show_usage): Complete rewrite of printout.
622 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
624 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
625 (c4x_operands_match): Added check for 8-bits LDF insn. Give
626 warning when using constant direct bigger than 2^16. Add the new
629 2002-11-11 Christopher Faylor <cgf@redhat.com>
631 * configure.in: Use .gdbinit under Cygwin.
632 * configure: Regenerate.
634 2002-11-11 Christopher Faylor <cgf@redhat.com>
636 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
639 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
641 * config/tc-tic4x.c: Declare as many functions as possible as
642 static. Maintenance on the general indenting. Removed unnecessary
643 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
644 function. Add support for new DSP, TMS320VC33. Fix bug for
645 converting flonum constants.
646 (c4x_do_align): Add proper align handling. Setup align to insert
648 (c4x_gen_to_words): Support for extended TI type floats.
649 (md_atof): Proper dumping of multiple-word littlenums.
650 (c4x_atof): Added support for extended TI type floats.
651 (c4x_stringer): Added new function to handle compact strings.
652 (c4x_emit_char): Added new function argument to handle custom
653 length inserts, like single-byte strings.
654 * config/tc-tic4x.h: Add proper align handling with NOP's.
655 * Makefile.am: Added tic4x dependecy
656 * Makefile.in: Regenerate
658 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
660 * macro.c (get_any_string): Correct logic for not going beyond end
663 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
665 * config/tc-mmix.c (get_putget_operands): Mark both possible
666 operands as invalid at beginning.
668 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
669 Initialize target of fixup to zero.
671 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
673 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
674 NEWABI, but we should still emit HI16_S for non-PIC n32.
676 2002-11-06 Richard Henderson <rth@redhat.com>
678 * config/tc-alpha.c (alpha_validate_fix): Move code ...
679 (alpha_fix_adjustable): ... here.
680 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
682 2002-11-07 Eric Kohl <ekohl@rz-online.de>
684 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
687 2002-11-05 H.J. Lu <hjl@gnu.org>
689 * config/tc-mips.c (support_64bit_objects): Check *l before it
692 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
694 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
695 SEC_LOAD flags for sections marked as 's'.
697 2002-11-01 Alan Modra <amodra@bigpond.net.au>
699 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
700 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
701 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
704 * dep-in.sed: Fix typo.
706 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
708 * configure.in: Update ARM CPU patterns.
709 * configure: Regenerated.
711 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
713 * itbl-lex.l: Use #include <> for generated headers.
714 * itbl-ops.c: Likewise.
716 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
718 * doc/gasp.texi: Fix typo in deprecation note.
720 2002-10-23 Nick Clifton <nickc@redhat.com>
722 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
723 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
725 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
727 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
728 (tc_frob_file_before_adjust): Don't define.
729 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
731 (mmix_frob_file_before_adjust): Remove ineffective function.
733 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
735 * config/tc-cris.c (SIMPLE_EXPR): New macro.
736 (cris_relax_frag): New function.
737 (md_estimate_size_before_relax) <case ENCODE_RELAX
738 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
739 expressions that will become absolute expressions to relaxation.
740 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
741 STATE_WORD)>: Expect only absolute expressions. Use the symbol
742 value, not distance to symbol.
743 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
744 Ditto. Correct placement of fixup.
745 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
747 * config/tc-cris.h (cris_relax_frag): Declare.
748 (md_relax_frag): Define.
750 2002-10-22 Alan Modra <amodra@bigpond.net.au>
752 * config/obj-elf.c (special_sections): Use correct types for init
754 (obj_elf_change_section): Don't mess with init array section type.
756 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
758 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
759 for relocs against symbols in a merged section.
761 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
763 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
764 table as register names.
766 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
768 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
771 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
773 * expr.c (operand): Add support for n.nn flonums.
775 2002-10-17 Johannes Stezenbach <js@convergence.de>
777 * itbl-parse.y (entry): Provide empty action.
779 2002-10-16 Alan Modra <amodra@bigpond.net.au>
781 * configure.in (BFDVER_H): Set and subst.
782 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
783 * Makefile.am: Run "make dep-am".
785 * configure: Regenerate.
786 * Makefile.in: Regenerate.
787 * doc/Makefile.in: Regenerate.
789 2002-10-15 Alan Modra <amodra@bigpond.net.au>
791 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
792 (MD_APPLY_SYM_VALUE): Define for PE too.
794 2002-10-14 Alan Modra <amodra@bigpond.net.au>
796 * Makefile.am: Run "make dep-am".
797 (CPU_OBJ_VALID): sh64 coff is invalid.
798 * as.c: #include "bfdver.h".
799 * Makefile.in: Regenerate.
800 * config.in: Regenerate.
802 2002-10-14 Momchil Velikov <velco@fadata.bg>
804 * config/tc-v850.c (CHECK_): Remove token pasting operator.
806 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
808 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
809 * configure: Regenerate.
811 2002-10-13 Eric Christopher <echristo@redhat.com>
812 Alexandre Oliva <aoliva@redhat.com>
814 * config/tc-mips.c (s_gpdword): New function.
815 (mips_pseudo_table): Add .gpdword.
816 (mips_need_elf_addend_fixup): never for NEWABI.
817 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
819 (s_cpadd): Generate .cpadd on NEWABI.
821 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
823 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
825 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
827 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
828 (md_relax_frag): Adjust macro.
829 * config/tc-mips.c (mips_relax_branch): New variable.
830 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
831 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
832 (RELAX_MIPS16_P): Adjust.
833 (append_insn): Emit branch to non-constant in a frag_var if
834 branch-relaxation is desirable and possible.
835 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
836 (OPTION_ELF_BASE): Adjust.
837 (md_parse_option): Handle new options.
838 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
840 (relaxed_branch_length): New function.
841 (md_estimate_size_before_relax): Handle branch frags.
842 (mips_relax_frag): Likewise.
843 (md_convert_frag): Handle branch frags. Warn if branch is
846 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
848 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
850 (md_apply_fix3): Add TLS relocs.
851 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
854 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
855 Alan Modra <amodra@bigpond.net.au>
857 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
858 (md_estimate_size_before_relax): Likewise for 8 bit branches.
860 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
862 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
865 2002-10-09 Richard Shann <richard.shann@superh.com>
866 Stephen Clarke <stephen.clarke@superh.com>
868 * config/tc-sh64.c (sh64_target_format): Add support for sh64
871 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
873 * contig/tc-sh.c (sh_local_pcrel): New.
874 (sh_force_relocation): Use sh_local_pcrel.
875 (md_pcrel_from_section): Check the relocation type whether it
876 should be resolved locally. Use S_FORCE_RELOC.
878 2002-10-01 Alan Modra <amodra@bigpond.net.au>
880 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
881 (TC_FORCE_RELOCATION): Tidy arg.
883 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
884 Ken Raeburn <raeburn@cygnus.com>
885 Aldy Hernandez <aldyh@redhat.com>
886 DJ Delorie <dj@redhat.com>
887 Michael Meissner <meissner@redhat.com>
888 Eric Christopher <echristo@redhat.com>
889 Richard Sandiford <rsandifo@redhat.com>
891 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
892 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
893 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
894 (hilo_interlocks): True for CPU_VR5500.
895 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
896 (mips_fix_vr4122_bugs): New.
897 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
898 (mips_emit_delays): Likewise.
899 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
900 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
901 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
902 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
903 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
904 (OPTION_ELF_BASE): Bump.
905 (md_parse_option): Handle the new options.
906 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
909 2002-09-29 H.J. Lu <hjl@gnu.org>
911 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
912 twice if howto->pcrel_offset is true.
914 2002-09-28 Matt Thomas <matt@3am-software.com>
915 Jason Thorpe <thorpej@wasabisystems.com>
917 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
918 convert undefined references to GOT32/PLT32 if PIC code is
919 requested. Fix comment.
921 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
923 * config/tc-sh.c (sh_force_relocation): Return 0 for
924 some PC relative relocations when not relaxing.
926 2002-09-26 Jakub Jelinek <jakub@redhat.com>
928 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
929 Define them if not BFD_ASSEMBLER.
930 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
932 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
933 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
934 (tc_gen_reloc): Handle x86-64 TLS relocs.
936 2002-09-27 Alan Modra <amodra@bigpond.net.au>
938 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
939 fixups to current or absolute section.
941 2002-09-26 Jim Wilson <wilson@redhat.com>
943 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
946 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
948 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
949 capable configuration.
950 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
954 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
956 * config/tc-mips.c (append_insn): Fix jump overflow check.
958 2002-09-24 Alan Modra <amodra@bigpond.net.au>
960 * config/tc-i386.c (process_operands): Warn about "lea" segment
963 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
965 * write.c: Delete set_segment_vma and prototype. Update all callers.
967 2002-09-21 Alan Modra <amodra@bigpond.net.au>
969 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
970 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
971 Rename "fseg" to "sym_seg".
972 * Makefile.am: Run "make dep-am".
973 * Makefile.in: Regenerate.
974 * doc/Makefile.in: Regenerate.
976 2002-09-20 Nick Clifton <nickc@redhat.com>
978 * symbols.c (colon): Do not allow symbols to be created in the
979 absolute section if WORKING_DOT_WORD is not defined and
980 new_broken_words would require a new frag to be created.
982 2002-09-20 Alan Modra <amodra@bigpond.net.au>
984 * expr.c (expr): Simplify foo-foo here.
985 (clean_up_expression): Remove O_subtract code.
987 * write.h (struct fix): Add fx_dot_value.
988 (dot_value): Declare.
989 * write.c (dot_value): New var.
990 (fix_new_internal): Save dot_value as fx_dot_value.
991 (fixup_segment): Adjust fx_offset using fx_dot_value.
992 * expr.c (expr): Update dot_value.
994 2002-09-19 Jakub Jelinek <jakub@redhat.com>
996 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
997 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
998 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1000 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1001 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1002 BFD_RELOC_386_TLS_GOTIE.
1004 2002-09-19 Richard Henderson <rth@redhat.com>
1006 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1008 (alpha_force_relocation): Don't special-case branch type relocs.
1010 2002-09-19 Nick Clifton <nickc@redhat.com>
1012 * config/tc-m68k.c (select_control_regs): Handle situation where
1013 architecture has not yet been selected.
1015 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1017 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1018 (IS_SEXT_16BIT_NUM): New macro.
1019 (macro_build_ldst_constoffset): New function, to build a set of
1020 instructions to do a load or store from a constant offset relative
1021 to a given register.
1022 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1023 .cprestore pseudo-op.
1025 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1027 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1029 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1031 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1033 2002-09-17 Stan Cox <scox@redhat.com>
1035 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1036 (macro): Likewise for la. Likewise for ld.
1037 (mips_after_parse_args): Make -xgot optional, not the default.
1038 (md_apply_fix3): Allow composite relocation to set up gp.
1039 (tc_gen_reloc): Allow relaxing for newabi.
1040 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1041 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1043 2002-09-17 Nick Clifton <nickc@redhat.com>
1045 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1046 BFD_RELOC_ARM_IMMEDIATE has been done.
1047 (tc_gen_reloc): Do not issue reloc number of unimplemented
1048 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1049 their name is already in the error message - plus remove them
1050 from the default case.
1052 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1053 behavior of instructions.
1055 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1057 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1058 Convert functions to K&R format.
1060 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1062 * config/tc-mips.c (pdr_seg): Define only for ELF.
1063 (s_change_section): Remove unused variable. Don't use for nonELF.
1065 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1067 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1069 * config/obj-elf.h (obj_elf_change_section): Likewise.
1071 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1073 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1074 (out_debug_info): Likewise.
1076 2002-09-16 Bruno Haible <bruno@clisp.org>
1078 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1079 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1080 * config/tc-i386.c (i386_target_format): Likewise.
1081 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1082 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1084 2002-09-13 Nick Clifton <nickc@redhat.com>
1086 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1087 when deciding if any operands have been skipped.
1089 2002-09-11 Nick Clifton <nickc@redhat.com>
1091 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1093 * po/tr.po: Updated Turkish translation.
1095 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1097 * config/tc-i386.c (md_apply_fix3): Allow addend for
1098 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1099 BFD_RELOC_386_TLS_LE_32.
1101 2002-09-05 Jeff Law <law@redhat.com>
1103 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1104 marker relocations such as ENTRY/EXIT.
1105 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1106 to both OBJ_ELF and OBJ_SOM.
1108 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1110 * doc/internals.texi (md_apply_fix3): Expand.
1111 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1112 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1113 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1114 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1115 EXTERN_FORCE_RELOC): Document.
1116 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1117 * as.h: Don't include struc-symbol.h for arc.
1119 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1120 subtract absolute symbol.
1121 * obj.h (struct format_ops): Add frob_file_before_fix.
1122 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1123 * symbols.c (S_FORCE_RELOC): New function.
1124 * symbols.h (S_FORCE_RELOC): Declare.
1125 * write.c (TC_FORCE_RELOCATION): Change default.
1126 (TC_FORCE_RELOCATION_ABS): Define.
1127 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1128 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1129 (TC_FORCE_RELOCATION_SECTION): Don't define.
1130 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1131 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1132 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1133 (TC_VALIDATE_FIX_SUB): Define.
1134 (TC_FIX_ADJUSTABLE): Don't define.
1135 (MD_APPLY_SYM_VALUE): Define this instead.
1136 (abs_section_sym): New variable.
1137 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1138 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1139 Don't put the absolute section sym on fixups here.
1140 (fix_segment): New function.
1141 (write_relocs): Don't call fixup_segment from here.
1142 (write_object_file): Instead call tc_frob_file_before_fix,
1143 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1144 Don't output the absolute section symbol.
1145 (fixup_segment): Rewrite.
1146 * write.h (abs_section_sym): Declare.
1147 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1149 (aout_format_ops): Adjust to suit.
1150 * config/obj-aout.h (obj_frob_file): Don't define.
1151 (obj_frob_file_before_fix): Define.
1152 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1153 (S_FORCE_RELOC): Define.
1154 * config/obj-bout.h (S_FORCE_RELOC): Define.
1155 * config/obj-coff.c (coff_format_ops): Init new field.
1156 * config/obj-coff.h: Formatting fixes.
1157 (obj_sec_sym_ok_for_reloc): Define.
1158 (S_FORCE_RELOC): Define.
1159 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1160 (ecoff_frob_file): .. from here.
1161 (ecoff_format_ops): Add new function.
1162 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1163 (obj_frob_file_before_fix): Define.
1164 * config/obj-elf.c (elf_format_ops): Init new field.
1165 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1166 * config/obj-ieee.h: Formatting fixes.
1167 (S_FORCE_RELOC): Define.
1168 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1169 * config/obj-vms.h (S_FORCE_RELOC): Define.
1170 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1171 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1172 for BFD_RELOC_32 and BFD_RELOC_64.
1173 (alpha_fix_adjustable): Remove extern and weak tests.
1174 (alpha_before_fix): Rename from alpha_adjust_symtab.
1175 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1176 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1177 (TC_VALIDATE_FIX): Tweak param name.
1178 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1179 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1180 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1181 (MD_APPLY_SYM_VALUE): Define.
1182 (tc_adjust_symtab): Don't define.
1183 (alpha_adjust_symtab): Don't declare.
1184 (tc_frob_file_before_fix): Define.
1185 (alpha_before_fix): Declare.
1186 (TC_INIT_FIX_DATA): Tweak param names.
1187 * config/tc-arc.c: Include "struc-symbol.h".
1188 (md_pcrel_from): Remove undefined sym fudge.
1189 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1190 Don't set fx_addnumber.
1191 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1192 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1193 (EXTERN_FORCE_RELOC): Define.
1194 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1195 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1196 (arm_validate_fix): Return void.
1197 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1198 Add plt and got reloc tests.
1199 (arm_force_relocation): Call S_FORCE_RELOC.
1200 * config/tc-arm.h (struct fix): Forward declare.
1201 (TC_VALIDATE_FIX): No longer set add_symbolP.
1202 (arm_validate_fix): Adjust declaration.
1203 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1204 (TC_FORCE_RELOCATION): Tweak param name.
1205 (TC_INIT_FIX_DATA): Likewise.
1206 (obj_fix_adjustable): Don't define.
1207 (tc_fix_adjustable): Call arm_fix_adjustable.
1208 (TC_FIX_ADJUSTABLE): Don't define.
1209 (MD_APPLY_SYM_VALUE): Define.
1210 (EXTERN_FORCE_RELOC): Define.
1211 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1212 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1213 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1214 Remove *valP fudges and code to subtract abs sym. Don't set
1216 * config/tc-avr.h: Formatting.
1217 (EXTERN_FORCE_RELOC): Define.
1218 (MD_APPLY_SYM_VALUE): Define.
1219 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1220 (md_apply_fix3): Remove code to subtract abs sym.
1221 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1222 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1223 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1224 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1225 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1226 (tc_fix_adjustable): Remove extern, weak tests.
1227 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1228 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1229 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1230 and code to subtract abs sym.
1231 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1232 (d10v_force_relocation): Call S_FORCE_RELOC.
1233 * config/tc-d10v.h: Don't include write.h.
1234 (struct fix): Instead, forward declare.
1235 (MD_PCREL_FROM_SECTION): Tweak param names.
1236 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1237 (d10v_fix_adjustable): Likewise.
1238 (obj_fix_adjustable): Don't define.
1239 (tc_fix_adjustable): Define.
1240 (TC_FORCE_RELOCATION): Tweak param name.
1241 (MD_APPLY_SYM_VALUE): Define.
1242 (EXTERN_FORCE_RELOC): Define.
1243 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1244 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1245 and code to subtract abs sym.
1246 * config/tc-d30v.h: Don't include write.h.
1247 (struct fix): Instead, forward declare.
1248 (MD_PCREL_FROM_SECTION): Tweak param names.
1249 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1250 (MD_APPLY_SYM_VALUE): Define.
1251 (EXTERN_FORCE_RELOC): Define.
1252 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1253 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1254 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1255 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1256 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1257 Don't use fx_addnumber.
1258 * config/tc-dlx.h: Don't include write.h.
1259 (md_convert_frag): We're not alpha twice over.
1260 (EXTERN_FORCE_RELOC): Define.
1261 (obj_fix_adjustable): Don't define.
1262 (tc_fix_adjustable): Define.
1263 (TC_FIX_ADJUSTABLE): Don't define.
1264 (MD_APPLY_SYM_VALUE): Define.
1265 (LOCAL_LABELS_DOLLAR): Undef always.
1266 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1267 (fr30_fix_adjustable): Remove extern, weak tests.
1268 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1269 (obj_fix_adjustable): Don't define.
1270 (tc_fix_adjustable): Define.
1271 (struct fix): Forward declare.
1272 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1273 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1274 (frv_fix_adjustable): Don't do extern, weak tests.
1275 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1276 (TC_FIX_ADJUSTABLE): Don't define.
1277 (obj_fix_adjustable): Don't define.
1278 (tc_fix_adjustable): Define.
1279 (struct fix): Forward declare.
1280 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1281 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1282 * config/tc-h8300.h (struct fix): Forward declare.
1283 (EXTERN_FORCE_RELOC): Define.
1284 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1285 (hppa_fix_adjustable): Don't test extern or weak. Don't
1286 symbol_mark_used_in_reloc.
1287 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1289 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1290 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1291 (TC_FORCE_RELOCATION_SECTION): Don't define.
1292 (MD_APPLY_SYM_VALUE): Define.
1293 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1294 to subtract abs sym.
1295 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1296 (MD_APPLY_SYM_VALUE): Define.
1297 (MD_PCREL_FROM_SECTION): Tweak param name.
1298 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1299 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1300 (i386_force_relocation): New function.
1301 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1302 (TC_VALIDATE_FIX): Likewise.
1303 (TC_FIX_ADJUSTABLE): Don't define.
1304 (MD_APPLY_SYM_VALUE): Define.
1305 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1306 (i386_force_relocation): Declare.
1307 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1308 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1309 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1310 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1311 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1312 (EXTERN_FORCE_RELOC): Define.
1313 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1314 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1315 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1316 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1317 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1318 Remove #if 0 code. Invert return boolean.
1319 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1320 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1321 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1322 (tc_coff_sizemachdep): Prototype.
1323 (i960_handle_align): Likewise.
1324 (i960_validate_fix): Adjust declaration.
1325 (reloc_callj): Likewise.
1326 (EXTERN_FORCE_RELOC): Define.
1327 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1328 (TC_FORCE_RELOCATION_ABS): Define.
1329 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1330 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1331 (TC_FIX_ADJUSTABLE): Don't define.
1332 (MD_APPLY_SYM_VALUE): Define.
1333 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1334 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1335 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1336 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1337 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1338 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1339 (MD_APPLY_SYM_VALUE): Define.
1340 (EXTERN_FORCE_RELOC): Define.
1341 (TC_FORCE_RELOCATION): Tweak param name.
1342 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1343 (m32r_fix_adjustable): Don't test extern, weak.
1344 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1345 (MD_APPLY_SYM_VALUE): Define.
1346 (obj_fix_adjustable): Don't define.
1347 (tc_fix_adjustable): Define.
1348 (tc_frob_file): Don't define.
1349 (tc_frob_file_before_fix): Define.
1350 (EXTERN_FORCE_RELOC): Define.
1351 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1352 BFD_RELOC_VTABLE_ENTRY address.
1353 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1354 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1355 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1356 Remove duplicated fx_done code.
1357 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1358 (EXTERN_FORCE_RELOC): Define.
1359 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1361 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1362 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1363 (TC_FIX_ADJUSTABLE): Don't define.
1364 (EXTERN_FORCE_RELOC): Define.
1365 (MD_APPLY_SYM_VALUE): Define.
1366 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1367 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1368 Remove fx_addsy tests.
1369 (mcore_force_relocation): Call S_FORCE_RELOC.
1370 (mcore_fix_adjustable): Don't test fx_addsy.
1371 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1372 (EXTERN_FORCE_RELOC): Define.
1373 (obj_fix_adjustable): Don't define.
1374 (tc_fix_adjustable): Define.
1375 (MD_APPLY_SYM_VALUE): Define.
1376 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1377 (mips_pic): No longer static.
1378 (mips_force_relocation): Call S_FORCE_RELOC.
1379 (mips_fix_adjustable): Remove extern, weak tests.
1380 * config/tc-mips.h (enum mips_pic_level): Declare.
1381 (mips_pic): Declare.
1382 (tc_frob_file): Don't define.
1383 (tc_frob_file_before_fix): Define this instead.
1384 (EXTERN_FORCE_RELOC): Define.
1385 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1386 with reg_section tests. Set fx_done instead of calling
1387 symbol_clear_used_in_reloc on bad relocs.
1388 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1389 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1390 (mmix_adjust_symtab): Simplify list handling. Abort on any
1392 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1393 BFD_RELOC_MMIX_LOCAL.
1394 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1395 (EXTERN_FORCE_RELOC): Define.
1396 (MD_PCREL_FROM_SECTION): Tweak param name.
1397 (tc_frob_file): Don't define.
1398 (tc_frob_file_before_fix): Define this instead.
1399 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1400 Remove SEC_CODE checks.
1401 (mn10300_fix_adjustable): Remove extern and weak tests.
1402 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1403 (TC_FORCE_RELOCATION): Tweak param name.
1404 (obj_fix_adjustable): Don't define.
1405 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1406 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1407 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1408 (openrisc_fix_adjustable): Don't test fx_addsy.
1409 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1410 (obj_fix_adjustable): Don't define.
1411 (tc_fix_adjustable): Define this instead.
1412 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1413 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1414 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1415 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1416 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1417 (MD_APPLY_SYM_VALUE): Define.
1418 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1419 Don't subtract symbol value.
1420 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1421 (EXTERN_FORCE_RELOC): Define.
1422 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1423 (MD_APPLY_SYM_VALUE): Define.
1424 (obj_fix_adjustable): Don't define.
1425 (tc_fix_adjustable): Define this instead.
1426 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1428 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1429 (ppc_force_relocation <elf version>): New.
1430 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1431 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1432 comments. Don't subtract fx_subsy as that is already done.
1433 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1434 (MD_PCREL_FROM_SECTION): Likewise.
1435 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1436 ppc_force_relocation.
1437 (TC_FORCE_RELOCATION_SECTION): Delete.
1438 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1439 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1440 (MD_APPLY_SYM_VALUE): Define.
1441 * config/tc-s390.c: #include "dwarf2dbg.h".
1442 (s390_insn): Remove excess parens.
1443 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1444 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1445 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1446 non-NULL. Don't subtract off fx_addsy value.
1447 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1448 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1449 (TC_FIX_ADJUSTABLE): Don't define.
1450 (MD_APPLY_SYM_VALUE): Define.
1451 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1452 (SWITCH_TABLE): Likewise.
1453 (sh_force_relocation): Call S_FORCE_RELOC.
1454 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1455 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1456 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1457 fx_addnumber is zero on entry. Save val in fx_addnumber.
1458 (tc_gen_reloc): Don't subtract fx_subsy.
1459 * config/tc-sh.h (struct fix): Move.
1460 (obj_fix_adjustable): Don't define.
1461 (tc_fix_adjustable): Define this instead.
1462 (TC_FIX_ADJUSTABLE): Don't define.
1463 (MD_APPLY_SYM_VALUE): Define.
1464 (SWITCH_TABLE_CONS): Define.
1465 (SWITCH_TABLE): Define.
1466 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1467 (TC_VALIDATE_FIX_SUB): Define.
1468 (MD_PCREL_FROM_SECTION): Tweak param name.
1469 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1470 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1471 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1472 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1473 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1474 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1475 (TC_VALIDATE_FIX_SUB): Define.
1476 (MD_PCREL_FROM_SECTION): Tweak param name.
1477 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1478 (tc_gen_reloc): Use S_FORCE_RELOC.
1479 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1480 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1481 (TC_FORCE_RELOCATION_ABS): Define this instead.
1482 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1483 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1484 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1485 (MD_APPLY_SYM_VALUE): Define.
1486 (TC_FIX_DATA_PRINT): Tweak param name.
1487 * config/tc-tic30.c (USE_STDOUT): Don't define.
1488 (md_parse_option): Remove stupid debug code.
1489 (tc_gen_reloc): Don't use fx_addnumber.
1490 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1491 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1492 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1493 (tc_fix_adjustable): Define this instead.
1494 (TC_FIX_ADJUSTABLE): Don't define.
1495 (MD_APPLY_SYM_VALUE): Define this instead.
1496 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1497 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1498 (TC_FIX_ADJUSTABLE): Don't define.
1499 (MD_APPLY_SYM_VALUE): Define this instead.
1500 (tc_fix_adjustable): Remove extern and weak tests.
1501 * config/tc-w65.h (struct fix): Forward declare.
1502 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1504 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1505 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1506 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1508 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1509 (MD_APPLY_SYM_VALUE): Define.
1510 (obj_fix_adjustable): Don't define.
1511 (tc_fix_adjustable): Define this instead.
1512 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1514 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1516 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1517 (ppc_fix_adjustable <coff version>): Cleanup.
1519 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1520 (md_parse_option): No -a64 without BFD64.
1521 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1522 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1524 2002-09-04 Nick Clifton <nickc@redhat.com>
1526 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1527 instructions into the hash table if the target cpu is the BookE32.
1529 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1531 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1534 2000-08-28 Catherine Moore <clm@redhat.com>
1536 * tc-v850.c (v850_relax): Declare.
1537 (v850_longcode): New routine.
1538 (v850_handle_align): New routine.
1539 (md_pseudo_table): Add longcall and longjump.
1540 (md_parse_option): Check for relax option.
1541 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1542 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1543 (md_apply_fix3): Likewise.
1544 (v850_force_relocation): Likewise.
1545 (v850_comm): Change the current section.
1546 (md_assemble): Ensure that the correct value is put in the
1548 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1549 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1550 Remove redundant v850ea support.
1551 * tc-v850.h (HANDLE_ALIGN): Define.
1552 (v850_handle_align): Declare.
1553 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1555 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1557 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1558 * configure: Regenerate.
1559 * NEWS: Mention new port.
1561 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1563 * config/obj-coff.c: Add sdef definition.
1564 * config/obj-coff.h: Add tic4x include file and set
1566 * config/tc-tic4x.c: New file.
1567 * config/tc-tic4x.h: New file.
1569 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1571 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1572 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1573 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1574 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1575 (RELOC_ENUM): Define.
1576 (fix_new_internal): Use RELOC_ENUM.
1577 (fix_new, fix_new_exp): Likewise.
1578 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1579 Replace gotos with continue.
1580 (write_relocs): Formatting. Avoid symbol loops in
1581 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1582 errors, and error number in other cases.
1583 (fixup_segment): Remove param names from prototype. Rename
1584 "this_segment_type" to "this_segment". Update linkrelax comment.
1585 Remove "size, "place" and "where" local vars. Formatting. Update
1586 "no symbol" comment. Remove #if 0 and #if 1.
1588 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1590 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1592 * dwarf2dbg.c: Always include dwarf2dbg.h.
1593 (dwarf2_directive_file): Adjust dummy version args.
1594 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1595 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1596 when symbol values differ.
1597 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1598 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1599 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1601 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1603 * config/tc-w65.c (md_section_align): Fix typo.
1604 (md_parse_option): Return 0, not 1.
1606 2002-08-22 Nick Clifton <nickc@redhat.com>
1608 * doc/as.texinfo (Section): Note that if '@' is a comment
1609 character then another symbol is used to prefix the section's
1612 2002-08-22 Christian Groessler <chris@groessler.org>
1614 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1617 2002-08-12 Graeme Peterson <gp@qnx.com>
1619 * configure.in: Add support for sh-**-nto* target.
1620 * configure: Regenerate.
1622 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1624 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1626 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1628 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1630 (ppc_apuinfo_section_add): Define only if format is ELF.
1631 (md_assemble): Emit APUinfo section only if format is ELF.
1634 2002-08-21 Alan Modra <amodra@bigpond.net.au>
1636 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1637 * config/tc-frv.c: Likewise.
1638 * config/tc-hppa.c: Likewise.
1639 * config/tc-ia64.c: Likewise.
1640 * config/tc-ip2k.c: Likewise.
1641 * config/tc-m68hc11.c: Likewise.
1642 * config/tc-m68k.c: Likewise.
1643 * config/tc-mmix.c: Likewise.
1644 * config/tc-mn10300.c: Likewise.
1645 * config/tc-sh.c: Likewise.
1646 * config/tc-sparc.c: Likewise.
1647 * config/tc-v850.c: Likewise.
1649 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
1651 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1654 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1656 From matthew green <mrg@redhat.com>
1658 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1659 PPC_OPCODE_PPC is, except for BookE architectures.
1660 (md_parse_option): Add support for -mspe.
1661 (md_show_usage): Add -mspe.
1662 (md_parse_option): Add support for -me500 and
1663 -me500x2 to generate code for Motorola e500 core complex.
1664 (md_show_usage): Add -me500 and -me500x2.
1666 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1667 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1668 PPC_APUINFO_BRLOCK): New macros.
1670 (ppc_cleanup): New function.
1671 (ppc_apuinfo_section_add): New function.
1673 (md_assemble): Collect info and write the APUinfo section.
1675 * config/tc-ppc.h (md_cleanup): Define.
1676 (ppc_cleanup): Export.
1677 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1679 2002-08-17 Stan Cox <scox@redhat.com>
1681 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1682 config/tc-mips.c (s_change_section): New function to support
1683 IRIX .section pseudo-op.
1685 2002-08-16 Nick Clifton <nickc@redhat.com>
1687 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1689 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1691 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1692 the fix-up against on the right frag.
1693 (s_cpsetup): Likewise. Parse third argument as expression, to
1694 handle global symbols and forward/backward labels correctly.
1696 2002-08-14 Nick Clifton <nickc@redhat.com>
1698 * read.c (stringer): Catch attempts to create strings in the abs
1701 * config/tc-alpha.c: Fix compiling for COFF targets.
1702 Some minor formatting tidyups.
1704 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1706 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1707 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1708 according to the reloc.
1709 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1710 (TC_FORCE_RELOCATION): Define.
1711 (tc_m68hc11_force_relocation): Declare.
1713 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1714 (s_m68hc11_relax): New function for relax group.
1715 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1716 beginning of jump instruction.
1717 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1718 address computation.
1719 (tc-gen_reloc): Update.
1720 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1722 (tc_m68hc11_force_relocation): New function, handle new relocs.
1723 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1724 reloc for the linker relax pass.
1725 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1728 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1730 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1731 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1732 (s_m68hc11_mode): New function for .mode pseudo op.
1733 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1735 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1736 (m68hc11_elf_final_processing): Declare.
1738 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1740 * config/tc-m68hc11.c (md_begin): Take into account additional
1741 page operand for call instruction.
1742 (print_opcode_format): Likewise.
1743 (check_range): Likewise for page range checking.
1744 (get_operand): Don't skip a possible comma in operands.
1745 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1746 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1747 (fixup24): New to handle call reloc.
1748 (build_insn): Handle missing page operand for call instruction.
1750 (md_apply_fix3): Take into account new relocs.
1751 (get_operand): Fix the mode for indexed indirect addressing.
1752 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1754 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1756 * config/tc-mips.c (mips_ip): Don't work out the value of
1757 constant %hi()s here.
1759 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1761 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1762 for ELF, and don't bother checking ELF relocs when non-ELF.
1763 (i386_immediate): Allow absolute_section expressions for aout.
1764 (i386_displacement): Likewise. Also test bfd_is_com_section.
1765 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1766 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1767 not when fx_addsy. Remove dead code.
1769 2002-08-09 Graeme Peterson <gp@qnx.com>
1771 * configure.in: Add support for ppc-*-nto* target.
1772 * configure: Regenerate.
1774 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1776 * config/tc-i386.h: Reorganize.
1778 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1780 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1781 immediate offset in "dla" and "la" expansions.
1783 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1785 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1786 Remove "bfd_gas=yes" from target table when covered later.
1787 Consolidate some entries.
1788 * configure: Regenerate
1790 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1792 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1793 at start of insn, pass it to output_disp and output_imm.
1794 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1795 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1797 (output_imm): Added arguments. Compute properly addend for
1799 (md_apply_fix3): Remove R_386_GOTPC handling.
1801 2002-08-06 George France <france@handhelds.org>
1803 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1804 and m21264b processor names and cpu types.
1805 * doc/c-alpha.texi: Documented new types.
1807 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1809 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1811 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1813 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1814 handling to BFD_RELOC_MIPS16_GPREL.
1816 2002-08-01 Nick Clifton <nickc@redhat.com>
1818 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1819 pool is computed using signed arithmetic so that proper sign
1820 extension is performed if X_add_number is a 64-bit integer.
1822 2002-08-01 H.J. Lu <hjl@gnu.org>
1823 Daniel Jacobowitz <drow@mvista.com>
1825 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1826 .debug_line section unless it has line information.
1828 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1830 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1831 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1832 Allow default displacement size to be an option "--disp-size-default".
1833 (md_number_to_disp): Make error messages include value. Use %d to
1834 print integers, not %s.
1835 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1836 get duplicate messages sometimes.
1837 (convert_iif): Grow frag to max possible instruction size. Avoid
1838 creating unnecessary fixes.
1839 (md_number_to_field) Add prototype.
1840 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1841 prototypes and make static.
1842 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1843 (evaluate_expr): Use resultP argument instead of exprP global.
1844 (get_addr_mode): Quiten compiler warnings.
1845 (encode_operand): eliminate unused variables. Quiten compiler
1846 warnings. Eliminate nul character in format strings.
1847 (parse): argc is unsigned.
1848 (reloc): Type cast index to quieten compiler.
1849 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1850 (md_convert_frag): Note unused parameters. Remove unused
1852 (md_create_long_jump, md_create_short_jump,
1853 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1856 2002-07-31 Nick Clifton <nickc@redhat.com>
1858 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1859 of the PDP-11 and 2.11BSD a.out support.
1861 2002-07-31 Momchil Velikov <velco@fadata.bg>
1863 * config/tc-v850.c (md_assemble): Fix range check for immediate
1866 2002-07-30 Chris Demetriou <cgd@broadcom.com>
1868 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1869 to Broadcom SB-1 core support.
1871 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1873 * config/tc-mips.c (mips_target_format): Fix formatting.
1874 Add recognition of n32 ABI formats.
1876 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1878 * tc-mips.c (load_address): Don't clobber $at when loading a
1879 64-bit address in non-PIC code if noat is in effect.
1882 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1884 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1885 used in division/multiply macro expansions similarly to how they
1886 are used in the variants with break instructions.
1889 2002-07-30 Graeme Peterson <gp@qnx.com>
1891 * configure.in: Add support for arm-*-nto target.
1892 * configure: Regenerate.
1894 2002-07-30 Nick Clifton <nickc@redhat.com>
1896 * config/tc-arm.c (struct literal_pool): Add fields to allow
1897 multiple literal pools to be maintained.
1898 (find_literal_pool): New function.
1899 (find_or_make_literal_pool): New function.
1900 (add_to_literal_pool): Use find_or_make_literal_pool.
1901 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1903 (s_ltorg): Use find_literal_pool.
1904 (arm_cleanup): Dump all literal pools.
1905 * doc/c-arm.texi: Document new behaviour of only dumping literal
1908 2002-07-26 Alan Modra <amodra@bigpond.net.au>
1910 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1911 rather than PPC_OPCODE_32 for powerpc64*.
1913 2002-07-25 Nick Clifton <nickc@redhat.com>
1915 * po/es.po: Updated Spanish translation.
1916 * po/fr.po: Updated French translation.
1918 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
1920 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
1921 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1922 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1923 * configure, config.in: Regenerate.
1924 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1925 (mips_set_options): Remove "abi" field.
1926 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
1929 (mips_arch_string, mips_arch_info): New vars.
1930 (mips_tune_string, mips_tune_info): New vars.
1931 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1932 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1933 (mips_isa_to_str, mips_cpu_to_str): Remove.
1934 (mips_ip): If the selected architecture is a generic ISA rather
1935 than a processor, only mention the ISA level in error messages.
1936 (OPTION_MCPU): Remove.
1938 (md_longopts): Add -mfp64, remove -mcpu.
1939 (mips_set_option_string): New fn.
1940 (md_parse_option): Make -mipsN update file_mips_isa rather than
1941 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
1942 Don't let -mgp32 and -mfp32 change the ABI.
1943 (show): Move to end of file. Constify string argument.
1944 (md_show_usage): Move to the end of the file. Read available
1945 architectures from mips_cpu_info_table.
1946 (mips_set_architecture): New fn.
1947 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
1948 is an alias for -march=mipsN. Don't change the ABI based on other
1949 flags. Infer the register size from the ABI as well as the
1950 architecture. Complain about more conflicting arguments.
1951 Unify logic with GCC.
1952 (s_mipsset): Don't change the ABI.
1953 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1954 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1955 "mipsN"-type entries. Remove entries that vary only in the
1956 manufacturer's prefix, or that have "000" replaced by "k".
1957 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
1958 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1959 (mips_parse_cpu): New fn.
1960 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1961 (mips_cpu_info_from_isa): Minor formatting tweak.
1963 2002-07-24 Nick Clifton <nickc@redhat.com>
1965 * po/sv.po: Updated Swedish translation.
1966 * po/es.po: Updated Spanish translation.
1968 2002-07-23 Alan Modra <amodra@bigpond.net.au>
1970 * Makefile.am: Run "make dep-am".
1971 * Makefile.in: Regenerate.
1972 * doc/Makefile.in: Regenerate.
1973 * config.in: Regenerate.
1974 * po/POTFILES.in: Regenerate.
1976 2002-07-23 Nick Clifton <nickc@redhat.com>
1978 * po/fr.po: Updated French translation.
1980 2002-07-23 Nick Clifton <nickc@redhat.com>
1982 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1985 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1987 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1988 instead of S_IS_EXTERN.
1989 (md_estimate_size_before_relax): Likewise.
1990 (mips_fix_adjustable): Likewise.
1992 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1994 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1996 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
1997 Nick Clifton <nickc@redhat.com>
1999 * cond.c (s_ifdef): Treat a referenced but not yet defined
2000 symbol as if it were undefined, in exactly the same way as
2003 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2004 consider referenced bug not yet defined symbols to be
2007 2002-07-18 Denis Chertykov <denisc@overta.ru>
2008 Frank Ch. Eigler <fche@redhat.com>
2009 Alan Lehotsky <alehotsky@cygnus.com>
2010 John Healy <jhealy@redhat.com>
2011 Jeff Johnston <jjohnstn@redhat.com>
2013 * configure.in: Add ip2k configuraton.
2014 * configure: Regenerate.
2015 * Makefile.am: Add ip2k configuraton.
2016 * Makefile.in: Regenerate.
2017 * configure: Regenerate.
2018 * Makefile.in: Regenerate.
2019 * config/tc-ip2k.c: New file.
2020 * config/tc-ip2k.h: New files.
2021 * NEWS: Mention new support.
2022 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2023 * doc/Makefile.in: Regenerate.
2024 * doc/all.texi: Set IP2K
2025 * doc/as.texinfo: Add IP2K description.
2026 * doc/c-ip2k.texi: New file.
2028 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2030 * NEWS: Reformat to match style of other NEWS files.
2032 2002-07-17 Jan Hubicka <jh@suse.cz>
2034 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2036 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2038 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2040 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2042 * NEWS: Add 'Changes in 2.13'.
2044 2002-07-15 Matt Fredette <fredette@netbsd.org>
2046 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2048 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2050 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2051 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2054 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2056 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2057 (ppc_frob_file_before_adjust): New function.
2058 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2059 (ppc_elf_frob_symbol): Don't declare.
2060 (tc_frob_file_before_adjust): Define.
2061 (ppc_frob_file_before_adjust): Declare.
2063 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2064 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2067 (ppc_xcoff64): Rename to ppc_obj64.
2068 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2069 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2070 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2072 (ppc_target_format): Use ppc_obj64 to select format.
2073 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2074 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2075 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2076 (tc_frob_symbol): Likewise.
2077 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2078 BFD_DEFAULT_TARGET_SIZE.
2080 (ppc_is_toc_sym): Likewise.
2081 (md_apply_fix3): Likewise.
2082 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2083 BFD_DEFAULT_TARGET_SIZE.
2084 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2085 (tc_frob_symbol): Likewise.
2087 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2089 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2090 (mips_ip): Likewise.
2092 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2094 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2095 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2096 (md_apply_fix3): Formatting. Remove redundant test.
2097 (tc_gen_reloc): Remove redundant code.
2098 (tc_i386_force_relocation): Delete. Movy body of function to..
2099 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2101 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2103 * configure.in: Add hppa-*-openbsd* target, change
2104 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2106 * configure: Regenerate.
2108 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2110 * config/tc-mips.c (macro): Shift the 32-bit address range
2111 accessible with a lone "lui" down by 32768.
2113 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2115 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2116 instead of "dadd" in address calculations.
2119 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2121 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2123 (md_assemble): Instead, zap the suffix here.
2125 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2127 * NEWS: Remove next release number until the release is actually
2130 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2132 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2134 * Makefile.in: Regenerate.
2136 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2138 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2139 to symbols in merge sections, even non pc-relative ones.
2141 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2143 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2145 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2147 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2148 .softregs and .eeprom.
2150 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2152 * NEWS: Note the next release is 2.13.
2154 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2156 * po/tr.po: New translation imported.
2158 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2160 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2161 (ecoff_directive_def): Likewise.
2162 (ecoff_directive_tag): Likewise.
2163 * listing.c (file_info): Likewise.
2164 * hash.c (what): Likewise.
2166 2002-06-25 H.J. Lu <hjl@gnu.org>
2168 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2169 * Makefile.in: Regenerated.
2171 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2173 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2174 (assemble_ppi): Generate warning if the same register is used
2175 twice as destination in the same padd / pmuls instruction.
2177 2002-06-18 Dave Brolley <brolley@redhat.com>
2179 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2180 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2181 * configure.in: Support frv-*-*.
2182 * Makefile.am (CPU_TYPES): Add frv.
2183 (TARGET_CPU_CFILES): Add tc-frv.c.
2184 (TARGET_CPU_HFILES): Add tc-frv.h.
2185 (DEPTC_frv_coff): New variable.
2186 (DEPTC_frv_elf): New variable.
2187 (DEPOBJ_frv_coff): New variable.
2188 (DEPOBJ_frv_elf): New variable.
2189 (DEP_frv_coff): New variable.
2190 (DEP_frv_elf): New variable.
2191 * tc-frv.c: New file.
2192 * tc-frv.h: New file.
2194 2002-06-17 Catherine Moore <clm@redhat.com>
2196 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2198 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2200 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2202 2002-06-17 Tom Rix <trix@redhat.com>
2204 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2206 2002-06-14 H.J. Lu <hjl@gnu.org>
2207 Daniel Jacobowitz <drow@mvista.com>
2209 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2210 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2211 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2212 and new_logical_line for the first .file directive.
2213 * read.c (s_app_file_string): New function.
2214 (s_app_file): Call it.
2215 * read.h (s_app_file_string): Add declaration.
2217 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2219 * configure.in: Remove MIPS_STABS_ELF.
2220 * configure: Regenerated.
2221 * config.in: Regenerated.
2222 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2224 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2226 (pdr_seg): Declare unconditionally.
2227 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2228 (s_mips_end): Likewise. Generate stabs function markers.
2229 (s_mips_ent): Generate stabs function markers.
2230 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2232 (s_mips_mask): Likewise.
2233 (mips_flag_mdebug): New.
2234 (md_longopts): Add "mdebug" and "no-mdebug".
2235 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2236 (mips_after_parse_args): Set mips_flag_mdebug.
2237 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2239 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2241 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2242 value twice for RELA relocations.
2244 2002-06-12 Ben Elliston <bje@redhat.com>
2246 * symbols.c (resolve_symbol_value): Initialise final_val.
2248 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2250 2002-06-11 Tom Rix <trix@redhat.com>
2252 * config/tc-ppc.c (ppc_subseg_align): Delete.
2253 (ppc_change_csect): Default csect align is 2.
2254 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2256 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2258 * config/tc-avr.c (mcu_types): Update.
2260 2002-06-08 Matt Thomas <matt@3am-software.com>
2262 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2263 (vax-*-netbsd*): New targets.
2264 * configure: Regenerate.
2265 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2266 * config/tc-vax.c: Add support for ELF and PIC.
2267 (flag_want_pic): New flag.
2268 (float_cons): Fix prototype.
2269 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2270 (md_assemble): Introduce a new is_absolute local, and use it
2271 rather than repeating the test. Make fatal errors actually
2272 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2273 Add support for ELF. Add support for PIC.
2274 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2275 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2277 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2278 optional for a.out, and not allowed for VMS. Adjust all callers.
2279 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2280 (md_create_long_jump): Likewise.
2281 (md_undefined_symbol): Likewise.
2282 (md_section_align): Likewise.
2283 (md_shortopts): Allow -k and -K for ELF.
2284 (md_parse_option): Set flag_want_pic if -k or -K.
2285 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2286 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2287 * config/tc-vax.h (tc_headers_hook): Remove.
2288 (TARGET_FORMAT): Set according to object format and target
2290 (BFD_ARCH, TARGET_ARCH): Define.
2291 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2292 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2293 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2294 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2296 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2298 * Makefile.am: Run "make dep-am".
2299 * Makefile.in: Regenerate.
2301 * as.c: Replace CONST with const.
2302 * write.c: Likewise.
2303 * config/obj-coff.c: Likewise.
2304 * config/tc-a29k.c: Likewise.
2305 * config/tc-arm.c: Likewise.
2306 * config/tc-dlx.c: Likewise.
2307 * config/tc-h8300.c: Likewise.
2308 * config/tc-h8500.c: Likewise.
2309 * config/tc-i370.c: Likewise.
2310 * config/tc-i860.c: Likewise.
2311 * config/tc-i960.c: Likewise.
2312 * config/tc-m68hc11.c: Likewise.
2313 * config/tc-m68k.c: Likewise.
2314 * config/tc-m88k.c: Likewise.
2315 * config/tc-mcore.c: Likewise.
2316 * config/tc-mips.c: Likewise.
2317 * config/tc-ns32k.c: Likewise.
2318 * config/tc-pdp11.c: Likewise.
2319 * config/tc-pj.c: Likewise.
2320 * config/tc-s390.c: Likewise.
2321 * config/tc-sh.c: Likewise.
2322 * config/tc-sparc.c: Likewise.
2323 * config/tc-tahoe.c: Likewise.
2324 * config/tc-tic80.c: Likewise.
2325 * config/tc-v850.c: Likewise.
2326 * config/tc-vax.c: Likewise.
2327 * config/tc-w65.c: Likewise.
2328 * config/tc-z8k.c: Likewise.
2330 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2332 Based on patch from Matt Green:
2333 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2334 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2335 (s_mips_loc): New function.
2336 (mips_nonecoff_pseudo_table): Call them.
2337 (append_insn): Call dwarf2_emit_insn.
2339 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2341 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2343 (file_ase_mips16): New veriable.
2344 (mips_eabi64): Remove.
2345 (CPU_HAS_MIPS16): New define.
2346 (CPU_HAS_MDMX): Fix data type.
2347 (md_begin): Code cleanup. Use file_ase_mips16.
2348 (mips_elf_final_processing): Handle mips16 header flag.
2349 Handle EABI flag without intermediate variable.
2351 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2353 * doc/as.texinfo: Update MIPS documentation.
2355 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2357 * config/tc-mips.c: Add define for $zero register.
2358 (md_begin): Add $zero as alias name for $0.
2359 (insn_uses_reg): Use ZERO define.
2360 (mips_ip): Add $zero as alias name for $0.
2361 (mips16_ip): Likewise.
2362 (s_cplocal): Demand empty rest of input line.
2363 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2364 names. Use ZERO define. Fix input_line_pointer progress.
2366 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2368 * symbols.c: Replace CONST by const throughout.
2369 (symbol_find_exact): Split out from..
2370 (symbol_find_base): ..here.
2371 * symbols.h: Replace CONST by const throughout.
2372 (symbol_find_exact): Declare.
2373 * config/obj-elf.c: #include "struc-symbol.h".
2374 (elf_frob_file): If group name matches an exported symbol, use that
2375 symbol for the signature and ".group" as the section name.
2377 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2379 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2382 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2384 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2385 and mips_opts.ase_mdmx if they are uninitialized.
2387 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2389 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2390 (hppa_force_relocation): Check if a stub just before the start symbol
2391 of the last call_info is reachable before forcing relocation. Fix
2394 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2396 * config/tc-mips.c (mips_after_parse_args): New function.
2397 (md_begin): Move processing of defaults to mips_after_parse_args.
2398 config/tc-mips.h (md_after_parse_args): Define.
2400 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2402 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2403 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2404 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2405 * configure: Regenerate.
2406 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2409 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2411 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2413 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2415 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2416 linkonce flag. Print all warnings.
2417 (obj_elf_section): Parse ",comdat" for groups.
2418 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2419 consistency of comdat flag.
2421 2002-06-02 Richard Henderson <rth@redhat.com>
2423 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2424 with LITERALs without sequence numbers.
2426 2002-06-01 Richard Henderson <rth@redhat.com>
2428 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2429 Rename them LITUSE_ALPHA_*.
2431 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2433 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2434 accept parentheses enclosed register lists.
2436 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2438 * Makefile.am: Run "make dep-am".
2439 * Makefile.in: Regenerate.
2440 * po/POTFILES.in: Regenerate.
2442 2002-05-31 Graeme Peterson <gp@qnx.com>
2444 * configure.in: Add i386-*-nto-qnx*.
2445 * configure: Regenerate.
2447 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2449 * config/tc-mips.c (mips_ip): Use unsigned long values for
2452 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2454 * config/tc-mips.c (s_cpsetup): Fix initialization of
2455 mips_cpreturn_register and mips_cpreturn_offset.
2457 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2459 * config/tc-mips.c (s_cpsetup): Fix comment.
2461 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2463 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2464 (mips_ip): Likewise.
2465 (mips16_ip): Likewise.
2466 (tc_get_register): Likewise.
2468 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2469 Ed Satterthwaite <ehs@broadcom.com>
2471 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2472 (mips_opts): Initialize "ase_mdmx" member.
2473 (file_ase_mdmx): New variable.
2474 (CPU_HAS_MDMX): New macro.
2475 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2476 based on command line options and configuration defaults.
2477 (macro_build): Note in comment that use of MDMX in macros is
2478 not currently allowed.
2479 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2480 "Z" MDMX operand types.
2481 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2482 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2484 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2485 Add support for "-mdmx" and "-no-mdmx" options.
2486 (OPTION_ELF_BASE): Move to accomodate new options.
2487 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2488 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2489 file_ase_mdmx was set.
2490 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2491 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2494 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2496 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2497 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2498 command line switch conforming to gcc conventions.
2499 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2501 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2503 * config/tc-mips.c (macro_build_jalr): New Function.
2504 (md_begin): NewABI uses big GOTs.
2505 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2506 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2507 (load_address): Add some NewABI PIC support.
2509 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2510 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2512 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2514 * config/tc-mips.c (load_address): Use mips_gp_register instead
2515 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2517 (macro): Use mips_gp_register instead of hardcoded value.
2519 2002-05-30 Richard Henderson <rth@redhat.com>
2521 * expr.h (operatorT): Add O_md17..O_md32.
2522 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2523 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2524 O_tprelhi, O_tprello, O_tprel): New.
2525 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2526 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2527 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2528 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2529 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2530 (md_apply_fix3): Handle TLS relocations.
2531 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2532 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2533 associated TLS reloc. Check lituse_tls relocs match up.
2534 (emit_insn): Handle TLS relocations.
2537 * doc/c-alpha.texi: Add docs for tls relocations.
2539 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2541 * config/tc-mips.c (mips_gprel_offset): New variable.
2542 (s_gpvalue): Use it.
2544 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2546 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2547 write-write conflicts.
2548 (md_assemble): Reformat introductory comment.
2549 (parallel_ok): Prevent packing only if the first
2550 instruction cannot be packed.
2552 2002-05-30 Jason Eckhardt <jle@redhat.com>
2553 Tom Rix <trix@redhat.com>
2555 * config/tc-d10v.c (build_insn): Check for immediates.
2557 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2559 * config/tc-mips.c: Replace GP in comments by $gp.
2560 (mips_big_got): Initialize.
2561 (mips_trap): Initialize.
2562 (load_address): Use mips_gp_register instead of hardcoded value.
2563 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2564 (macro): Use mips_gp_register instead of hardcoded value.
2565 (macro2): Change load_address calls.
2566 (md_pcrel_from): Comment formatting.
2567 (s_cpload): Use mips_gp_register instead of hardcoded value.
2568 (s_cprestore): Likewise. Comment formatting.
2569 (s_gpword): Fix data type.
2570 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2571 (nopic_need_relax): Replace GP in comments by $gp.
2572 (mips_elf_final_processing): Better comment.
2574 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2576 * configure.in: Add DLX configuraton
2577 * Makefile.am: Add DLX configuraton
2578 * configure: Regenerate.
2579 * Makefile.in: Regenerate.
2580 * config/tc-dlx.c: New file.
2581 * config/tc-dlx.h: New files.
2582 * NEWS: Mention new support.
2584 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2586 * config/obj-coff.c (write_object_file): Add missing semicolon.
2588 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2590 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2591 by the define. Remove superfluous check of mips_opts.mips16.
2592 (append_insn): Likewise. Canonicalize variable increments.
2593 (macro_build): Canonicalize variable increments.
2594 (macro_build_lui): Likewise.
2595 (load_register): Likewise.
2596 (load_address): Move pointer initialization.
2597 (macro): Move pointer to a more local scope. Canonicalize variable
2598 increments. Better comments. Replace magic constant for RA by the
2600 (macro2): Replace magic constant for RA by the define. Canonicalize
2601 variable increments.
2602 (mips_ip): Canonicalize variable increments.
2603 (mips16_ip): Replace magic constant for RA by the define.
2604 (my_getSmallParser): Canonicalize variable increments/decrements.
2605 (my_getPercentOp): Likewise.
2606 (my_getSmallExpression): Likewise.
2607 (s_align): Likewise.
2608 (s_mipsset): Likewise.
2609 (s_cpsetup): Likewise.
2610 (s_insn): Remove superfluous check of mips_opts.mips16.
2611 (s_mips_stab): Likewise.
2612 (mips_handle_align): Canonicalize variable increments.
2613 (s_mips_ent): Likewise.
2614 (s_mips_end): Add comment.
2616 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2618 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2619 * configure: Regenerate.
2621 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2623 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2624 * Makefile.in: Regenerate.
2625 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2626 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2627 * configure: Regenerate.
2628 * as.h: Use #include "" instead of <> for local header files.
2629 * flonum-konst.c: Likewise.
2630 * flonum-mult.c: Likewise.
2632 * listing.c: Likewise.
2633 * config/tc-ia64.h: Likewise.
2634 * config/tc-v850.h: Likewise.
2636 2002-05-24 TAMURA Kent <kent@netbsd.org>
2638 * configure.in: Add a target for i386-netbsdpe.
2639 * configure: Regenerate.
2641 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2643 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2644 (obj_elf_common): Call elf_common.
2645 (obj_elf_tls_common): New function.
2646 (elf_pseudo_tab): Support .tls_common.
2647 (special_sections): Add .tdata and .tbss.
2648 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2650 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2651 (obj_elf_parse_section_letters): Include T in error message.
2652 * config/tc-ppc.c (ppc_section_letter): Likewise.
2653 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2654 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2656 * config/tc-sparc.c (md_apply_fix3): Likewise.
2657 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2658 Define them if not BFD_ASSEMBLER.
2659 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2661 (md_apply_fix3): Add TLS relocs.
2662 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2663 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2664 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2665 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2666 (ia64_elf_section_letter): Include T in error message.
2667 (md_begin): Support TLS operators.
2668 (md_operand): Likewise.
2669 (ia64_gen_real_reloc_type): Support TLS relocs.
2670 * write.c (adjust_reloc_syms): Don't change symbols in
2671 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2673 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2675 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2676 round the relocation up rather than down.
2678 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2680 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2682 * doc/as.texinfo: Document that the COFF version of .section
2683 ignores the 'a' flag.
2685 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2687 * config/tc-alpha.c (assemble_tokens): Protect use of
2688 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2690 * write.c (size_seg): Check adjustment to last frag.
2691 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2693 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2694 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2695 (write_object_file): Invoke md_do_align if available, and use
2696 frag_align_code on text sections.
2697 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2698 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2699 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2700 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2701 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2704 2002-05-22 H.J. Lu <hjl@gnu.org>
2706 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2709 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2711 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2714 2002-05-22 H.J. Lu <hjl@gnu.org>
2716 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2717 for one .loc for compiler.
2719 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2721 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2724 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2726 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2727 Optimize the rotate by zero case.
2729 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2731 * configure.in: Remove accidental enabling of bfd_gas=yes for
2733 * configure: Regenerate.
2735 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2737 * app.c: Fix formatting.
2739 * ehopt.c: Likewise.
2741 * input-file.c: Likewise.
2742 * listing.c: Likewise.
2743 * macro.h: Likewise.
2744 * stabs.c: Likewise.
2745 * symbols.c: Likewise.
2747 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2749 * config/obj-generic.c: Delete file.
2750 * config/obj-generic.h: Likewise.
2752 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2754 * config/tc-avr.c (mcu_types): Update for new devices.
2756 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2758 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2760 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2762 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2763 worked sometimes by accident. Fix copy&paste comment.
2765 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2767 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2768 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2769 (mips_elf_final_processing): Let n32 use .reginfo.
2771 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2773 * config/tc-mips.c (append_insn): Fix too small range of variable.
2775 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2777 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2778 listing_prev_line().
2780 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2782 * config/tc-arm.c (md_assemble): Remove redundant call to
2785 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2788 * stabs.c (s_stab_generic): Fix grammatical error in warning
2791 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2793 * write.c (subsegs_finish): Don't specially align last subseg.
2795 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2797 * stabs.c (s_stab_generic): Warn about a description field that is
2800 * config/obj-coff.c: Fix compile time warnings when compiling
2801 without BFD_ASSEMBLER defined.
2804 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2806 (md_pcrel_from_section): Use md_pcrel_from().
2808 2002-05-11 Bruno Haible <bruno@clisp.org>
2810 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2811 by dwarf2_directive_loc, instead of calling dwarf2_where.
2813 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2815 * config/obj-coff.h: Fix formatting.
2816 * config/tc-mcore.c: Likewise.
2817 * config/tc-mn10300.c: Likewise.
2818 * config/tc-openrisc.c: Likewise.
2819 * config/tc-or32.c: Likewise.
2820 * config/tc-pdp11.c: Likewise.
2821 * config/tc-ppc.c: Likewise.
2822 * config/tc-ppc.h: Likewise.
2823 * config/tc-sh64.c: Likewise.
2824 * config/tc-sh.c: Likewise.
2825 * config/tc-tic54x.c: Likewise.
2826 * config/tc-xstormy16.c: Likewise.
2827 * config/tc-xstormy16.h: Likewise.
2829 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2831 * config/obj-coff.c: Fix formatting.
2832 * config/obj-elf.c: Likewise.
2833 * config/tc-alpha.c: Likewise.
2834 * config/tc-arm.c: Likewise.
2835 * config/tc-d10v.c: Likewise.
2836 * config/tc-d30v.c: Likewise.
2837 * config/tc-h8300.c: Likewise.
2838 * config/tc-hppa.c: Likewise.
2840 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2842 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2843 reloc when no_cond_jump_promotion.
2845 2002-05-08 Jim Wilson <wilson@redhat.com>
2847 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2848 current variable part of frag.
2850 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2852 * config/tc-mmix.c: Fix formatting.
2853 * config/tc-mmix.h: Likewise.
2855 2002-05-08 Alan Modra <amodra@bigpond.net.au>
2857 * configure: Regenerate.
2859 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2861 * config/tc-m68k.c: Fix formatting.
2863 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2865 * Makefile.am: Honour DESTDIR.
2866 * Makefile.in: Regenerate.
2868 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2870 * config/tc-ia64.c: Fix formatting.
2871 * config/tc-ia64.h: Likewise.
2873 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2875 * config/tc-mips.c: Fix formatting.
2876 * config/tc-s390.c: Likewise.
2877 * config/tc-s390.h: Likewise.
2879 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
2881 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2882 information for instructions.
2884 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2886 * as.h: Fix formatting.
2889 * dwarf2dbg.c: Likewise.
2890 * frags.h: Likewise.
2892 * macro.c: Likewise.
2894 * stabs.c: Likewise.
2895 * symbols.c: Likewise.
2897 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2899 * app.c (mri_pseudo): Only declare for TC_M68K.
2901 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2902 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2903 BFD_RELOC_16_BASEREL.
2904 (md_assemble): Likewise.
2905 (md_apply_fix3): Likewise.
2907 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2909 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2910 zero into an add of zero - it is not the same.
2912 2002-05-01 Arati Dikey <aratid@kpit.com>
2914 * tc-sh.c (get_specific): Generate warning if the same
2915 destination register is used in parallel instructions.
2917 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
2919 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2921 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2923 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2924 backwards to prevent cascading errors.
2926 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2928 * configure.in: Add support for powerpc-*-windiss.
2929 * configure: Regenerated.
2931 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2933 * config/tc-s390.c (md_parse_option): Formatting.
2935 * config/tc-i386.c: Formatting fixes, add missing space in error
2938 2002-04-24 Christian Groessler <chris@groessler.org>
2940 * config/tc-z8k.c (build_bytes): Add support for new cases:
2941 CLASS_IGNORE and ARG_NIM4.
2942 (md_assemble): Prevent destruction of input_line_pointer if
2943 get_operands returns failure.
2945 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
2947 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2948 instructions to be generated by macros.
2950 2002-04-24 Andreas Schwab <schwab@suse.de>
2952 * config/tc-i386.c (output_jump, output_disp)
2953 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2955 (md_apply_fix3): Remember addend value for rela relocations.
2956 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2958 2002-04-22 Chris Demetriou <cgd@broadcom.com>
2960 * config/tc-mips.c (macro_build): Add close-parenthesis missing
2961 from previous change.
2963 2002-04-22 Eric Christopher <echristo@redhat.com>
2965 * config/tc-mips.c (macro_build): Add warning if macro instructions
2966 are expanded into a branch delay slot.
2968 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
2970 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2971 numbers, gdb relies on them to detect the start of the prologue.
2973 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
2975 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2976 symbols in merge sections.
2978 2002-04-16 Alan Modra <amodra@bigpond.net.au>
2980 * as.c (main): Don't reference _bfd_chunksize.
2982 2002-04-15 Tom Rix <trix@redhat.com>
2984 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
2985 symbols in merge sections.
2987 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2989 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2990 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2991 argument for the precision.
2992 (gen_to_words): Update accordingly.
2994 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2996 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2997 BFD_VERSION_STRING unavailable.
2998 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3000 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3002 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3003 symbol_used_in_reloc_p is true.
3005 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3008 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3010 * dep-in.sed: Cope with absolute paths.
3011 * Makefile.am (dep.sed): Subst TOPDIR.
3013 * Makefile.in: Regenerate.
3015 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3017 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3018 (mips_ip): Remove unused variable.
3019 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3020 unsigned char with bfd_byte.
3021 (s_file): Remove unused variable.
3022 (s_mips_ent): Likewise.
3024 2002-04-03 Tom Rix <trix@redhat.com>
3026 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3028 (find_opcode): Fix warning in as_warn.
3029 * config/tc-d10v.h: Update Copyright.
3031 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3032 Tom Rix <trix@redhat.com>
3034 From Jeff Knaggs <jknaggs@redhat.com>
3035 * config/tc-d10v.c (check_resource_conflict): New function to
3036 check for resource conflicts.
3038 From Jason Eckhardt <jle@redhat.com>
3039 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3041 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3042 reserved control registers is used.
3043 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3046 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3047 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3048 instruction cannot be packed.
3050 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3051 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3052 write-write conflicts.
3053 (md_assemble): Reformat introductory comment.
3054 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3057 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3059 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3060 O_logical_not>): Derive final_seg from add_symbol.
3061 <O_multiply..O_logical_or>: More final_seg twiddles.
3063 2002-04-01 Jessica Han <jessica@cup.hp.com>
3065 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3068 2002-03-27 Andreas Schwab <schwab@suse.de>
3070 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3071 field for pc-relative fixups.
3072 (output_disp): Likewise.
3073 (md_estimate_size_before_relax): Likewise.
3074 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3075 pc-relative fixups in 64bit mode.
3077 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3079 * config/te-aix5.h: Typo fix.
3081 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3083 * Makefile.am: Run "make dep-am".
3084 * Makefile.in: Regenerate.
3085 * doc/Makefile.in: Regenerate.
3087 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3089 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3090 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3092 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3094 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3095 the EXTENDED bit here; report the estimate according to the
3098 2002-03-18 Tom Rix <trix@redhat.com>
3100 * configure.in: Add AIX 5 support.
3101 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3102 * config/te-aix5.h: New file. AIX 5 support.
3103 * configure: Regenerate.
3105 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3107 * po/fr.po: Updated version.
3109 2002-03-16 Andreas Jaeger <aj@suse.de>
3111 * doc/c-mips.texi (Machine Dependencies): Add new node.
3113 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3115 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3116 (mips_opts): Initialize "ase_mips3d" member.
3117 (file_ase_mips3d): New variable.
3118 (CPU_HAS_MIPS3D): New macro.
3119 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3120 based on command line options and configuration defaults.
3121 (macro_build, mips_ip): Accept MIPS-3D instructions if
3122 mips_opts.ase_mips3d is set.
3123 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3124 Add support for "-mips3d" and "-no-mips3d" options.
3125 (OPTION_ELF_BASE): Move to accomodate new options.
3126 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3127 (mips_elf_final_processing): Add a comment indicating that a
3128 MIPS-3D ASE ELF header flag should be set, when one exists.
3129 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3130 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3131 nomips3d" directives.
3133 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3135 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3136 a weak symbol in same section to be within reach.
3138 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3140 * po/fr.po: Updated version.
3142 2002-03-12 Andreas Schwab <schwab@suse.de>
3144 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3145 body record so that an error is given for misplaced .save
3148 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3150 * config/tc-i386.h (REX_OPCODE): Define.
3151 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3152 (rex_byte): typedef to int.
3153 * config/tc-i386.c: Group prototypes and vars together.
3154 Formatting fixes. Remove occurrences of "register" keyword.
3157 (mode_from_disp_size): Add INLINE keyword to prototype.
3158 (fits_in_signed_byte): Likewise.
3159 (fits_in_unsigned_byte): Likewise.
3160 (fits_in_unsigned_word): Likewise.
3161 (fits_in_signed_word): Likewise.
3162 (fits_in_unsigned_long): Likewise.
3163 (fits_in_signed_long): Likewise.
3164 (type_names): Constify.
3165 (intel_float_operand): Constify param.
3166 (add_prefix): Use REX_OPCODE.
3167 (md_assemble): Likewise. Modify for changed rex_byte.
3168 (parse_insn): Split out of md_assemble.
3169 (parse_operands): Likewise.
3170 (swap_operands): Likewise.
3171 (optimize_imm): Likewise.
3172 (optimize_disp): Likewise.
3173 (match_template): Likewise.
3174 (check_string): Likewise.
3175 (process_suffix): Likewise.
3176 (check_byte_reg): Likewise.
3177 (check_long_reg): Likewise.
3178 (check_qword_reg): Likewise.
3179 (check_word_reg): Likewise.
3180 (finalize_imm): Likewise.
3181 (process_operands): Likewise.
3182 (build_modrm_byte): Likewise.
3183 (output_insn): Likewise.
3184 (output_branch): Likewise.
3185 (output_jump): Likewise.
3186 (output_interseg_jump): Likewise.
3187 (output_disp): Likewise.
3188 (output_imm): Likewise.
3190 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3192 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3194 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3196 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3197 relocs except when BFD64.
3199 * write.c (number_to_chars_bigendian): Don't abort when N is
3200 larger than sizeof (VAL).
3201 (number_to_chars_littleendian): Likewise.
3203 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3205 * config/tc-hppa.c (md_apply_fix3): Add cast.
3206 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3209 2002-03-05 Paul Koning <pkoning@equallogic.com>
3211 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3212 (parse_ac5): New function for parsing float regs in float operand.
3213 (parse_expression): Remove attempt to make literals be octal.
3214 (parse_op_no_deferred): Support float literals.
3215 (parse_op): Reject attempts to refer to float regs.
3216 (parse_fop): New function, like parse_op but for float operand.
3217 (md_assemble): Add cases to parse float operands. Also fix
3218 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3220 2002-03-04 H.J. Lu <hjl@gnu.org>
3222 * config/obj-elf.c (special_section): Add .init_array,
3223 .fini_array and .preinit_array.
3225 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3226 .init_array and .fini_array.
3228 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3230 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3232 (obj_frob_symbol): Copy visibility.
3234 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3236 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3238 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3240 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3242 * po/es.po: Updated.
3244 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3246 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3247 only, undo the changes made on 2001-06-08, with the
3248 effect being that common or extern symbols are
3249 adjusted for embedded-PIC, but weak symbols are not.
3250 (md_estimate_size_before_relax: Likewise, with the effect
3251 that extern symbols are treated the same as weak symbols
3252 only if not embedded-PIC.
3253 (mips_fix_adjustable) Likewise, with the effect that
3254 weak or extern symbols are not adjusted for embedded-PIC.
3255 (md_apply_fix3): Tweak so that the case where value is zero
3256 is handled more correctly for embedded-PIC code.
3258 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3260 * doc/as.texinfo (Overview): Add missing @ifset IA64
3262 * configure.in (LINGUAS): Add es.po.
3263 * configure: Regenerate.
3264 * po/es.po: New file.
3266 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3268 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3269 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3270 and NO_PIC cases. Code cleanup.
3271 (macro2): Fix handling of 64bit register loads.
3273 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3275 * doc/as.texinfo: Add entry for IA64.
3276 * doc/c-ia64.texi: New file.
3278 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3280 * config/tc-hppa.c: Update copyright date.
3282 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3283 Remove references to chip manufacturers.
3284 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3286 (md_show_usage): Remove references to chip manufacturers. Mention
3288 (md_begin): Test power4 opcode flag bits.
3290 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3292 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3293 count exceeds prologue count.
3294 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3295 (unwind.label_prologue_count): New member.
3297 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3299 (get_saved_prologue_count): New function.
3300 (save_prologue_count): New function.
3301 (free_saved_prologue_count): New function.
3302 (dot_label_state): Record state label by calling save_prologue_count().
3303 (dot_copy_state): Restore prologue count by calling
3304 get_saved_prologue_count().
3305 (generate_unwind_image): Free up list of saved prologue
3306 counts by calling free_saved_prologue_counts().
3308 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3310 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3311 function declarations.
3313 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3315 * NEWS: Note that GASP is now deprecated.
3316 * Makefile.am: Do not build gasp-new by default.
3317 * Makefile.in: Regenerate.
3318 * doc/Makefile.am: Do not install gasp.info.
3319 * doc/Makefile.in: Regenerate.
3320 * gas/gasp.texi: Note that gasp is now deprecated.
3322 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3324 * NEWS: Mark 2.12 branch.
3326 2002-02-19 Tom Tromey <tromey@redhat.com>
3328 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3330 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3332 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3335 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3337 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3338 Make bit size independent of architecture switch.
3339 (md_begin): Add warning for -m64 with -Aesa.
3340 (s390_md_end): Use renamed architecture defines.
3342 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3344 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3346 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3348 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3351 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3353 * config/tc-mips.c (md_estimate_size_before_relax): Really
3354 make sure we treat weak like extern only for ELF. (Fixes
3355 patch from 2001-07-25.)
3357 2002-02-15 Ben Elliston <bje@redhat.com>
3359 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3362 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3364 * NEWS: Mention support for MMIX.
3366 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3368 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3369 a sequence of indpendent 'if' statements for easier debugging
3370 and future modification.
3372 2002-02-13 Matt Fredette <fredette@netbsd.org>
3374 * config/tc-m68k.c (md_show_usage): No longer display a
3375 hard-coded "68020" for the default CPU, instead display the
3376 canonical name of the true, configured default CPU.
3377 (m68k_elf_final_processing): Mark objects for sub-68020
3378 CPUs with the new EF_M68000 flag.
3380 2002-02-13 Andreas Schwab <schwab@suse.de>
3382 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3383 pc-relative relocations to merge sections in 64-bit mode.
3385 2002-02-13 Ben Elliston <bje@redhat.com>
3387 * NEWS: Document floating point number handling in gasp.
3388 * gasp.c: Include <assert.h> and "xregex.h".
3389 (is_flonum): New function.
3390 (chew_flownum): Likewise.
3391 (change_base): Consume flonums from the input, where possible.
3392 * doc/gasp.texi (Constants): Document floating point numbers.
3394 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3396 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3397 that implicitly use LR and RR selectors.
3399 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3401 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3402 and `epsw' as available on AM33 and above only.
3403 (other_register_name): Add logic to handle machine type encoded in
3406 2002-02-11 Tom Rix <trix@redhat.com>
3408 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3411 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3413 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3416 2002-02-11 Jan Hubicka <jh@suse.cz>
3418 * i386.c (md_assemble): Support 32bit address prefix.
3419 (i386_displacement): Likewise.
3420 (i386_index_check): Accept 32bit addressing in 64bit mode.
3422 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3424 * config/tc-sh.c (dot): Removed unused function.
3426 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3428 * Makefile.am: "make dep-am".
3429 * Makefile.in: Regenerate.
3430 * aclocal.m4: Regenerate.
3431 * config.in: Regenerate.
3432 * configure: Regenerate.
3433 * doc/Makefile.in: Regenerate.
3435 2002-02-10 Richard Henderson <rth@redhat.com>
3437 * doc/c-alpha.texi: New file.
3438 * doc/Makefile.am (CPU_DOCS): Add it.
3439 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3441 2002-02-09 Richard Henderson <rth@redhat.com>
3443 * config/tc-alpha.c (O_samegp): New.
3444 (USER_RELOC_P): Include it.
3445 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3446 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3447 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3448 (alpha_validate_fix): New.
3449 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3451 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3453 * doc/c-cris.texi: New.
3454 * doc/all.texi: @set CRIS.
3455 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3456 Include c-cris.texi.
3457 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3458 * doc/Makefile.in: Regenerate.
3460 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3462 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3463 determine if a number is a sign-extended 32-bit number.
3464 (load_register): Use IS_SEXT_32BIT_NUM.
3465 (macro): Check if load/store macro handling is using a
3466 constant 32-bit address on 64-bit address systems, and if
3467 so optimize the generation of that address.
3469 2002-02-08 Richard Henderson <rth@redhat.com>
3471 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3472 we've eliminated all foreign relocation types yet.
3473 (alpha_fix_adjustable): Likewise.
3475 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3477 Contribute sh64-elf.
3478 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3479 Stephen Clarke <Stephen.Clarke@st.com>
3480 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3481 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3482 * config/tc-sh.c (md_relax_table): Added default sizes for
3483 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3484 MOVI_16, MOVI_32 and MOVI_48.
3485 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3486 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3488 (shmedia_md_estimate_size_before_relax): Remove redundant
3489 blocks. Set fragP->fr_var even if relaxation type unchanged.
3490 Retain UNDEF_MOVI until expression decays to number.
3491 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3492 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3493 relocation types. Take fixP->fx_addnumber into account too.
3494 (shmedia_md_apply_fix): Likewise.
3495 (shmedia_md_convert_frag): Likewise.
3496 (shmedia_build_Mytes): Likewise.
3497 (sh64_consume_datalabel): Complain about nested datalabel.
3498 Support PIC relocs. Call sh_parse_name.
3499 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3500 in tc-sh.h to SHmedia reloc types.
3501 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3502 MOVI_GOTPC): New relaxation constants.
3503 (md_relax_table): Introduce relaxation directives for PIC-related
3505 (sh_PIC_related_p): Handle datalabel.
3506 (sh_check_fixup): Choose SH5 PIC relocations.
3507 (sh_cons_fix_new): Added BDF_RELOC_64.
3508 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3509 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3510 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3511 current ISA is SHmedia, get 7 bytes.
3512 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3513 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3515 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3516 shmedia_apply_fix3 and make void.
3517 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3518 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3520 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3521 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3522 2001-03-14 DJ Delorie <dj@redhat.com>
3523 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3524 * doc/Makefile.in(CPU_DOCS): Ditto.
3525 * doc/c-sh64.texi: New file.
3526 * doc/as.texinfo: Add SH64 support.
3527 2001-03-13 DJ Delorie <dj@redhat.com>
3528 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3529 A_REUSE_PREV so that its purpose is more obvious.
3530 (shmedia_build_Mytes): Ditto.
3531 2001-03-07 DJ Delorie <dj@redhat.com>
3532 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3534 (sh64_vtable_inherit): Ditto.
3535 (strip_datalabels): New, strip "datalabel" from given line.
3536 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3538 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3539 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3541 (shmedia_build_Mytes): ... to here.
3542 2001-03-06 DJ Delorie <dj@redhat.com>
3543 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3545 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3546 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3547 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3548 address by one in call to dwarf2_emit_insn.
3549 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3550 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3551 alignment handling broken by imported changes.
3552 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3553 (sh64_handle_align): Declare.
3554 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3555 (sh64_max_mem_for_rs_align_code): Declare.
3556 (enum sh64_isa_values): Moved here from tc-sh64.c.
3557 (md_do_align): Define.
3558 (sh64_do_align): Declare.
3559 (struct sh64_tc_frag_data): New.
3560 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3562 (TC_FRAG_INIT): Change to set new datatype.
3563 (struct sh64_segment_info_type): Rename member
3564 last_flushed_location to last_contents_mark. All users changed.
3565 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3566 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3567 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3568 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3569 of unsetting seen_insn.
3570 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3571 call sh64_update_contents_mark.
3572 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3573 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3574 enum sh64_isa_values.
3575 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3576 (emitting_crange): Boolean guard moved to file scope from function
3577 scope in sh64_set_contents_type.
3579 (sh64_update_contents_mark): New; most split out from
3580 sh64_flush_pending_output.
3581 (shmedia_md_end): Call sh64_update_contents_mark. Set
3582 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3583 (sh64_do_align): New function.
3584 (sh64_max_mem_for_rs_align_code): New function.
3585 (sh64_handle_align): Rename from shmedia_do_align. Make
3586 non-static. Add head comment. Emit zero bytes for n bytes modulo
3587 four. Change return-type to void.
3588 (shmedia_elf_new_section): Remove.
3589 (shmedia_md_assemble): Call sh64_update_contents_mark.
3590 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3591 new frag. Call sh64_update_contents_mark after making the new
3593 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3594 and sh_flush_pending_output.
3595 (sh64_flag_output): Also call md_flush_pending_output, but add
3596 condition on not emitting_crange.
3597 (sh64_tc_cons_fix_new): Remove.
3598 2001-01-12 Nick Clifton <nickc@redhat.com>
3599 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3600 alignment handling scheme imported from sourceware.
3601 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3602 * config/tc-sh64.h (TARGET_FORMAT): Define.
3603 (sh64_target_format): Prototype.
3604 * config/tc-sh64.c (sh64_target_mach): New function.
3605 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3606 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3607 zero_address_frag instead of copying the frag of the symbol.
3608 (shmedia_frob_file_before_adjust): Ditto.
3609 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3610 to valueT to remove signedness.
3611 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3612 headers to output_bfd. Do not evaluate symbols if final is false;
3614 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3615 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3616 to the current frag, call shmedia_md_convert_frag to emit fixups
3617 and make frag_wane neutralize the frag. Update comments.
3618 * config/tc-sh.c (md_convert_frag): Change caller of
3619 shmedia_md_convert_frag.
3620 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3621 * config/tc-sh64.h: Tweak comments and correct formatting.
3622 * config/tc-sh64.c: Ditto.
3623 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3624 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3625 for the no-relocation case.
3626 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3627 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3629 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
3631 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3632 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3634 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3636 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3637 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3638 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3639 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3640 al>: Set lowest bit of field to relocate to 1 and rest to empty,
3641 if reloc is emitted.
3642 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3643 New options plus bugfixes.
3644 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3646 (md_parse_option): Handle new options.
3647 (md_show_usage): Add blurb for new options.
3648 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3649 (sh64_expand, sh64_pt32): New variables.
3650 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3651 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3652 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
3653 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3654 <resolved previously-pc-relative relocs>: Handle
3655 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3656 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3657 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3658 points to SHcompact code.
3659 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3660 SH64PCREL16)>: Check that ISA of what operand points at and
3661 PTA/PTB matches, or emit error.
3662 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3663 SHMEDIA_BFD_RELOC_PT.
3664 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3666 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3667 condition for MOVI expansion.
3668 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3669 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3671 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3673 (sh64_target_format): Error-check setting of sh64_pt32 and
3674 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3675 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3676 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3677 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3678 * config/tc-sh64.c: Improve comments.
3679 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3680 not say the linker will check correctness of PTA/PTB expansion.
3681 (shmedia_md_end): Make non-static.
3682 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3684 * config/tc-sh.c (sh_finalize): Remove.
3685 * config/tc-sh.h (md_end): Do not define.
3686 Remove prototype for sh_finalize.
3687 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3688 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3689 sh64_section_data container when storing section type in tdata
3690 field in elf_section_data.
3691 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3693 * Makefile.am: Update dependencies.
3694 * Makefile.in: Regenerate.
3695 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3696 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3697 dwarf2_emit_insn call with test on debug_type.
3698 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3699 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3700 CRT_SH5_ISA32 sticky for 64-bit.
3701 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3702 Generate .crange sections when switching ISA mode or emitting
3703 constants in same section as code.
3704 * config/tc-sh64.c: Reformat structure definitions.
3705 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3707 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3708 to emit a .cranges descriptor when contents type changes. Only
3709 emit error if changing contents type and -no-mix is in effect.
3710 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3711 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3712 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3713 sh64_flush_last_crange over sections.
3714 When checking main symbol of datalabel symbol, check for
3715 STO_SH5_ISA32, not ISA type of section in definition.
3716 (shmedia_frob_file_before_adjust): Check main symbol for
3717 STO_SH5_ISA32; don't check ISA type of section in definition.
3718 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3719 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3720 .cranges entries have been output.
3721 (shmedia_elf_new_section): Just call md_flush_pending_output.
3722 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3723 fix. Do not set tc_segment_info_data.in_code for section. Call
3724 sh64_set_contents_type for SHmedia code.
3725 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3726 false. Call md_flush_pending_output.
3727 (sh64_target_format): Check that -no-mix and
3728 -shcompact-const-crange are used in sane combination with other
3730 (shmedia_md_pcrel_from_section): Check type of fix for how to
3732 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3733 not ISA type of section in definition.
3734 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3735 hold contents-type state.
3736 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3737 (sh64_flush_pending_output): Declare.
3738 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3739 (sh64_tc_cons_fix_new): Declare.
3740 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3741 call sh64_flag_output.
3742 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3743 call sh64_set_contents_type to mark SHcompact code and set
3745 (md_longopts): New options "-no-mix" and
3746 "-shcompact-const-crange".
3747 (md_parse_option): Handle new options.
3748 (md_show_usage): Add blurb for new options.
3749 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3750 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3751 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3752 (sh64_last_insn_frag): New.
3753 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3754 to get frag for insn opcode for generating fixups; do not assume it
3756 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3758 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3760 (TC_FRAG_TYPE): Define as fragS *.
3761 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3762 (sh64_last_insn_frag): Declare.
3763 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3764 not == NULL before dereferencing.
3765 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3766 Get rid of BFD section flag and EF_SH64_ABI64.
3767 * config/tc-sh64.c (shmedia_frob_section_type): Use
3768 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3769 communicate the section as containing SHmedia code. Describe why.
3770 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3771 EF_SH64 regardless of ABI.
3772 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3773 in error message. Handle resolved expressions for
3774 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3775 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3776 (shmedia_check_limits): Handle BFD_RELOC_64.
3777 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3778 a STO_SH5_ISA32 symbol, only the BFD value.
3779 2000-12-11 Ben Elliston <bje@redhat.com>
3780 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3781 dwarf2_generate_asm_lineno.
3782 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3783 Handle PC-relative MOVI expansions with assembler relaxation.
3784 Generate PC-relative relocs from 16-bit PC-relative expressions.
3785 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3786 (shmedia_md_pcrel_from_section): ...here.
3787 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3788 turned completely resolved. Adjust relocation type for 16-bit
3789 immediate operands that has turned PC-relative. Adjust back for
3790 MD_PCREL_FROM_SECTION being applied twice.
3791 (shmedia_md_convert_frag): Always emit reloc for expression with
3792 global or weak symbol. Handle relaxation result for PC-relative
3794 (shmedia_md_estimate_size_before_relax): An expression with a weak
3795 or global symbol can not be relaxed. Break out tests for
3796 relaxable symbol into variable sym_relaxable.
3797 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3798 UNDEF_MOVI)>: Break out any PC-relative expression and change
3800 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3802 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3803 MOVI expansion. If X_op_symbol of the immediate expression is
3804 set, make an expression symbol for the argument to frag_var.
3805 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3807 (END): Adjust for new relaxations.
3808 (md_relax_table): Add entries for new relaxations.
3809 2000-12-07 Ben Elliston <bje@redhat.com>
3810 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3811 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3812 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3813 SHORI operand offsets in PT/PTA/PTB expansions.
3814 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3815 Implement DataLabel semantics.
3816 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3817 shmedia_frob_file_before_adjust.
3818 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3819 (DATALABEL_SUFFIX): Define.
3820 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3821 symbol list to update "datalabel" symbols to their main symbol
3823 (shmedia_frob_file_before_adjust): New.
3824 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3825 undefined and set STT_DATALABEL.
3826 (sh64_frob_label): Initialize TC symbol field.
3827 (sh64_consume_datalabel): Actually implement semantics. New
3828 parameter operandf, call it instead of expression.
3829 (sh64_exclude_symbol): New.
3830 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3831 to sh64_consume_datalabel.
3832 (tc_symbol_new_hook): Define to tc_frob_symbol.
3833 (TC_SYMFIELD_TYPE): Define to symbolS *.
3834 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3835 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3836 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3838 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3839 generating dwarf2 debug information.
3840 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3841 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3842 elf64-sh64 for the 64-bit ABI.
3843 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3845 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3846 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3848 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3849 * config/tc-sh64.c: Tweak comments, formatting and error messages.
3850 (enum sh64_abi_values): New type.
3851 (enum sh64_isa_values): New type.
3852 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
3853 (seen_shcompact_mode, seen_shmedia_mode): Delete.
3854 (sh64_abi): Replace shmedia_64.
3855 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3856 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3857 (s_sh64_mode): Check validity for this target.
3858 (sh64_target_format): Initialize defaults for ISA and ABI.
3859 Fallback to old object format if no SH64 ISA or ABI has been
3861 * config/tc-sh.c (md_parse_option): Check combinations for errors.
3862 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3863 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3864 * config/tc-sh64.h: Fix typo in comment.
3865 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
3866 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3867 <PT fixups for absolute values>: Size will be longest, not
3869 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
3870 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3871 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3872 and l1 to hold lowercase of two first characters. Change all
3873 remaining TO_LOWER to tolower.
3874 * config/tc-sh64.c (TO_LOWER): Delete.
3875 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3876 (md_parse_name): Define.
3877 (sh64_consume_datalabel): Declare.
3878 (DOLLAR_DOT): Define.
3879 * config/tc-sh64.c (shmedia_parse_exp): New.
3880 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3881 (shmedia_parse_reg): Remove const from src
3883 (shmedia_get_operands): Ditto for args parameter and ptr variable.
3884 (shmedia_md_assemble): Ditto for op_end variable.
3885 (shmedia_get_operand): Ditto for ptr parameter and src variable.
3886 Use shmedia_parse_exp, not parse_exp.
3887 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3888 parameter. All callers changed.
3889 (shmedia_get_operand): Add shmedia_arg_type parameter. All
3891 (shmedia_parse_reg): Put first two character in local variables.
3892 Use tolower, not TO_LOWER. If no register is found and argtype
3893 indicates a control register, scan shmedia_creg_table
3895 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3896 * Makefile.am (CPU_TYPES): Add sh64.
3897 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3898 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3899 Regenerate dependencies.
3900 * Makefile.in: Regenerate.
3901 * configure.in: Add support for sh64-*-elf*.
3902 * configure: Regenerate.
3903 * config/tc-sh64.h: New.
3904 * config/tc-sh64.c: New.
3905 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3906 .mode, .isa and .uaquad.
3907 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3908 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3909 [HAVE_SH64] (END): Define as 10.
3910 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3911 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3913 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3914 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3915 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3916 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3918 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3919 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3920 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3921 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3922 SHmedia instructions. Handle state-change after switching to
3924 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3925 (md_parse_option) [HAVE_SH64]: Parse new options.
3926 (md_show_usage) [HAVE_SH64]: Show usage of new options.
3927 (md_convert_frag) [HAVE_SH64] <default>: Call
3928 shmedia_md_convert_frag instead of abort.
3929 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3930 BFD_RELOC_SH_SHMEDIA_CODE.
3931 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3932 SHcompact or SHmedia code.
3933 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3934 shmedia_md_apply_fix instead of abort.
3935 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3936 result from calling shmedia_md_estimate_size_before_relax instead
3938 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3940 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3941 shmedia_init_reloc and do nothing more if it returns non-zero.
3942 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3943 * po/POTFILES.in: Regenerate.
3944 * po/gas.pot: Regenerate.
3946 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
3948 * config/tc-sh.c (parse_at): Install the correct version of
3951 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3952 assume fixP->fx_subsy is non-NULL.
3954 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
3956 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
3957 A_DISP_PC_ABS, and adjust it by -4.
3958 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3960 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3961 the operand type is not A_DISP_PC_ABS.
3963 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3965 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3966 common and weak symbols. Handle common and weak symbols as
3967 undefined symbols with regards to GREG handling and merging.
3968 (mmix_frob_file): Ditto.
3970 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3972 * configure.in (hppa-*-netbsd*): New target.
3973 * configure: Regenerate.
3974 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3976 2002-02-02 Alan Modra <amodra@bigpond.net.au>
3978 * config/tc-v850.c: Add missing prototypes amd use old-style
3979 function definitions.
3980 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3981 (sdata_section tdata_section, zdata_section, sbss_section,
3982 tbss_section, zbss_section, rosdata_section, rozdata_section,
3983 scommon_section, tcommon_section, zcommon_section,
3984 call_table_data_section, call_table_text_section): Delete.
3985 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3986 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3987 v850_call_table_data, v850_call_table_text): Delete.
3988 (struct v850_seg_entry): New.
3989 (v850_seg_table): New.
3990 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3991 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3992 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3993 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3996 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
3997 recording of alignment.
3998 (md_pseudo_table): Use v850_seg.
3999 (md_begin): Don't init .call_table_data and .call_table_text here.
4000 Set v850_seg_table bss entry.
4002 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4004 Support on-demand global register allocation by passing on
4005 base-plus-offset relocs to the linker.
4006 * config/tc-mmix.c: Tweak and fix typos in comments.
4007 (allocate_undefined_gregs_in_linker): New variable.
4008 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4009 (md_longopts): Add --linker-allocated-gregs.
4010 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4011 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4012 (md_show_usage): Update text for -x. Add text for
4013 --linker-allocated-gregs.
4014 (tc_gen_reloc): Derive default value for addend from val and
4015 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4016 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4017 GREG if allocate_undefined_gregs_in_linker.
4018 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4019 --linker-allocated-gregs.
4020 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4021 --linker-allocated-gregs. Mention that it's implied by -x.
4022 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4023 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4025 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4027 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4029 * Makefile.am: Run "make dep-am"
4030 * Makefile.in: Regenerate.
4032 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4034 * config/tc-or32.c: New file.
4035 * config/tc-or32.h: New file.
4036 * configure.in: Add support for or32 targets.
4037 * configure: Regenerate.
4038 * config/obj-coff.c: Add support for or32 targets.
4039 * config/obj-coff.h: Add support for or32 targets.
4040 * Makefile.am: Add support for or32 targets.
4041 * Makefile.in: Regenerate.
4042 * NEWS: Mention support for OpenRISC.
4043 * doc/Makefile.in: Regenerate.
4044 * po/POTFILES.in: Regenerate.
4045 * po/gas.pot: Regenerate.
4047 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4049 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4052 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4054 * config/tc-mips.c (tc_gen_reloc): Arrange for
4055 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4056 their LO16 parts, even for ELF.
4058 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4060 * config/tc-i386.c: Protect definitions of true and false
4063 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4065 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4066 made because of .weak, if they are neither defined nor used in any
4069 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4071 * configure: Regenerated.
4073 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4075 * doc/Makefile.am (install): Depend on install-info.
4076 * doc/Makefile.in: Regenerate.
4078 2002-01-26 Nick Clifton <nick@redhat.com>
4080 * po/fr.po: Updated version
4082 2002-01-24 Kazu Hirata <kazu@hxi.com>
4084 * config/tc-h8300.c (check_operand): Don't print a warning
4085 when a valid 24-bit address is given to a 16-bit address
4088 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4090 * config/tc-sh.c (sh_elf_suffix): Removed.
4091 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4092 sh_end_of_match, sh_parse_name): New functions.
4093 (sh_elf_cons): Simplify.
4094 (parse_exp): Reject misplaced PIC operands.
4095 (md_undefined_symbol): Simplify.
4096 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4097 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4098 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4099 Complain if subsy remains at the end.
4100 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4101 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4103 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4105 * config/tc-mn10300.c (xr_registers): Move `pc'...
4106 (other_registers): ... here.
4108 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4110 * Makefile.am: Run "make dep-am".
4111 * Makefile.in: Regenerate.
4112 * gas/po/POTFILES.in: Regenerate.
4114 2002-01-21 DJ Delorie <dj@redhat.com>
4116 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4117 stabstr_name allocation permanent, as it will be referenced from
4120 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4122 * configure.in (ia64-*-netbsd*): New target.
4123 * configure: Regenerate.
4125 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4127 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4129 <Detailed description, ARM options>: Ditto.
4130 * doc/c-arm.texi (ARM Options): Ditto.
4132 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4134 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4135 do_mia, do_mar and do_mra respectively.
4136 (do_mav_*): Renamed from do_c_*.
4137 (mav_reg_required_here, mav_parse_offset): Renamed from
4138 cirrus_reg_required_here and cirrus_parse_offset respectively.
4139 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4141 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4142 Keith Walker <keith.walker@arm.com>
4144 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4145 (insns): Add pattern for bxj instruction.
4146 (do_bxj): New function.
4147 (arm_cpus): Add arm926ej.
4148 (arm_archs): Add armv5tej.
4150 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4152 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4154 2002-01-19 Keith Walker <keith.walker@arm.com>
4156 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4158 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4160 * NEWS: Mention new ARM command-line options and VFP support.
4162 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4164 (ARM_CEXT_MAVERICK): Similarly.
4165 (ARM_ANY): Now means any core instruction.
4166 (CPU_DEFAULT): Default to ARM_ANY.
4167 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4168 (pic_code): Declare for all object types. Make type int.
4169 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4170 (march_fpu_opt, mfpu_opt): Declare.
4171 (md_longopts): Tidy up conditional definitions.
4172 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4173 (arm_long_opts): New tables.
4174 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4175 (arm_parse_extension): New function.
4176 (md_parse_option): Rewrite using new table-driven system.
4177 (md_show_usage): Use new table-driven system.
4178 (md_begin): Calculate cpu_variant from command line option data.
4179 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4180 command-line options.
4181 * doc/c-arm.texi: Likewise.
4183 2002-01-18 Andreas Jaeger <aj@suse.de>
4185 * as.c (parse_args): Update year.
4187 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4189 * config/tc-tic54x.c (encode_address): Add a more informative
4190 warning about incorrect syntax.
4192 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4194 * po/gas.pot: Regenerate.
4196 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4198 * macro.c (get_any_string): Add no-c-format comment to prevent
4199 confusion when translating string.
4200 * gasp.c (get_any_string): Add no-c-format comment to prevent
4201 confusion when translating string.
4203 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4204 Johannes Stezenbach <js@convergence.de>
4205 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4206 matched before the shorter ones.
4207 (my_getSmallParser): Fix handling of nested parentheses in
4208 percent_op's. Code cleanup.
4209 (my_getPercentOp): New function, code from my_getSmallParser.
4210 (my_getSmallExpression): Fix handling of closing parentheses.
4211 Code cleanup. Better comments.
4213 2002-01-16 Nick Clifton <nickc@redhat.com>
4215 po/tr.po: New file: Turkish translation.
4216 configure.in (LINGUAS): Add "tr".
4217 configure: Regenerate.
4219 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4221 Support for VFP instructions
4222 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4223 (cp_address_required_here): New argument wb_ok. When false, do not
4224 accept write-back forms of addressing. Change all callers.
4225 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4226 (FPU_VFP_EXT_V2): Define.
4227 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4228 Define in terms of above.
4229 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4230 (vfp_reg): New struct.
4231 (vfp_regs): New array of registers.
4232 (insns): Add VFP instructions.
4233 (sn_table): New array of VFP single-precision register names.
4234 (dn_table): New array of VFP double-precision register names.
4235 (all_reg_maps): Add the new register tables.
4236 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4237 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4238 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4239 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4240 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4241 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4242 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4243 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4244 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4245 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4246 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4247 (do_vfp_sp_dp_cvt): New functions.
4248 (md_begin): Set soft-float flag for appropriate VFP work.
4249 (md_atof): Handle VFP-format doubles.
4250 (md_parse_option): Handle VFP command-line options.
4251 (md_show_usage): Display VFP command-line options.
4253 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4255 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4256 various command line options.
4258 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4260 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4262 (xstormy16_md_apply_fix3): Do not return a value.
4264 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4266 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4267 the -EL/-EB option that matches the target's endianness.
4268 (md_parse_option): Likewise.
4270 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4272 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4273 is not dependent on ARM_BI_ENDIAN.
4275 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4277 * tc-arm.c (all error messages): Normalize capitalization of messages.
4279 * tc-arm.h (md_operand): Delete define.
4280 * tc-arm.c (in_my_get_expression): New static variable.
4281 (my_get_expression): Set and clear it.
4282 (md_operand): New function. If called from my_get_expression
4283 put the error in inst.error.
4284 (output_inst): Now takes argument of instruction being assembled.
4285 Print it out with any error message.
4286 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4288 (end_of_line): Don't update inst.error if it is already set.
4290 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4292 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4293 op that can be translated into a mvn instruction.
4295 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4297 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4298 setting default md.flags.
4299 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4300 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4301 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4302 for 32 bit unwind info blocks.
4303 (generate_unwind_image): Add support for different types
4304 of unwind images (32 bits and/or big-endian).
4305 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4306 (ia64_target_format): Add support for hpux target formats.
4307 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4308 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4309 SHT_FINI_ARRAY elf section types.
4311 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4313 * tc-arm.c (struct reg_entry): Move before prototypes.
4314 (int_register, cp_register, fp_register): Delete.
4315 (reg_table): Delete. Replaced with ...
4316 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4317 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4318 (mav_dspsc_table): ... one table per register set.
4319 (arm_reg_hsh): Delete.
4320 (struct reg_map): New structure.
4321 (all_reg_maps): New array.
4322 (enum arm_reg_type): New enums.
4323 (build_reg_hsh): New function.
4324 (insert_reg_alias): Use hash table passed by caller. Adjust all
4326 (create_register_alias): New function, split out from ...
4327 (md_assemble): ... here.
4328 (md_begin): Build new register hash tables.
4329 (arm_reg_parse): New argument for the hash table to search. Adjust all
4331 (arm_reg_parse_any): New function.
4332 (co_proc_number): Look up the processor number in the processor hash
4334 (cirrus_regtype): Delete.
4335 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4336 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4337 (ARM_EXT_MAVERICKsc_register): Delete.
4338 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4339 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4341 (do_c_triple_4, do_c_triple_5): Delete.
4342 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4343 (do_c_quad_6): Delete.
4344 (do_c_quad_6[ab]): New functions.
4345 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4346 arguments to use new register parsing methods.
4347 (cirrus_reg_required_here): Likewise.
4348 (insns): Reclassify cirrus maverick worker functions.
4349 (cirrus_valid_reg): Delete.
4351 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4353 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4354 (sh*-*-netbsdelf*): New target.
4355 * configure: Regenerate.
4356 * tc-sh.h: Update copyright years.
4357 (TARGET_FORMAT): Add version for TE_NetBSD.
4359 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4361 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4364 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4366 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4367 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4369 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4371 * tc-mips.c (mips_cprestore_valid): New flag.
4372 (mips_frame_reg_valid): New flag.
4373 (macro) [M_JAL_2]: Check both flags.
4374 [M_JAL_A]: Likewise.
4375 (s_cprestore): Set mips_cprestore_valid.
4376 (tc_get_register): If setting mips_frame_reg, set
4377 mips_frame_reg_valid and clear mips_cprestore_valid.
4378 (s_mips_ent): Clear both flags.
4379 (s_mips_end): Clear both flags.
4381 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4383 * write.c (write_object_file): Make use of bfd_section_list_remove.
4384 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4385 * config/tc-mmix.c (mmix_frob_file): Likewise.
4387 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4389 * configure.in (i386-*-netbsdelf*): Collapse target into...
4390 (i386-*-netbsd*): ...this. Add support for x86-64.
4391 * configure: Regenerated.
4393 2002-01-03 matthew green <mrg@redhat.com>
4395 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4397 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4399 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4402 For older changes see ChangeLog-0001
4408 version-control: never