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