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