(macro): Use sprintf_vma to convert a > 32 bit number into a readable string.
[binutils-gdb.git] / gas / ChangeLog
1 2005-04-20 Nick Clifton <nickc@redhat.com>
2
3 * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
4 number into a readable string.
5 (load_register): Likewise.
6
7 2005-04-20 Andreas Schwab <schwab@suse.de>
8
9 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
10
11 2005-04-19 David S. Miller <davem@davemloft.net>
12
13 * config/tc-sparc.c (md_assemble): If sparc_ip gives us a
14 NULL insn, exit early. Remove now spurious NULL checks.
15 (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn
16 to NULL and exit.
17
18 2005-04-19 Jan Beulich <jbeulich@novell.com>
19
20 * symbols.h (symbol_find_base): Remove prototype.
21 * symbols.c (save_symbol_name): Remove code section conditional upon
22 STRIP_UNDERSCORE.
23 (symbol_find): Remove.
24 (symbol_find_base): Rename to symbol_find.
25 * subsegs.c (section_symbol): Replace use of symbol_find_base with
26 symbol_find.
27 * config/obj-coff.c (tag_insert): Remove code section conditional
28 upon STRIP_UNDERSCORE.
29 (obj_coff_def): Likewise.
30 (obj_coff_endef): Replace use of symbol_find_base with symbol_find.
31 (coff_frob_symbol): Likewise.
32 (yank_symbols): Likewise.
33 (c_section_symbol): Likewise.
34 * config/obj-coff.h (DO_NOT_STRIP): Remove.
35 * config/tc-arm.c (symbol_locate): Remove code section conditional
36 upon STRIP_UNDERSCORE.
37 * config/tc-h8300.h (DO_NOT_STRIP): Remove.
38 * config/tc-h8500.h (DO_NOT_STRIP): Remove.
39 * config/tc-sh.h (DO_NOT_STRIP): Remove.
40 * config/tc-w65.h (DO_NOT_STRIP): Remove.
41 * config/tc-z8k.h (DO_NOT_STRIP): Remove.
42
43 2005-04-19 Andreas Schwab <schwab@suse.de>
44
45 * config/tc-ia64.c (md_assemble): Fix error message for wrong
46 access to application registers.
47
48 2005-04-19 Jan Beulich <jbeulich@novell.com>
49
50 * config/te-sysv32.h: Remove.
51 * Makefile.am (TARG_ENV_HFILES): Remove reference to
52 config/te-sysv32.h.
53 * Makefile.in (TARG_ENV_HFILES): Likewise.
54
55 2005-04-19 Jan Beulich <jbeulich@novell.com>
56
57 PR/847
58 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero-
59 length symbols.
60
61 2005-04-18 Mark Kettenis <kettenis@gnu.org>
62
63 * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
64
65 2005-04-18 Maciej W. Rozycki <macro@linux-mips.org>
66
67 * config/tc-mips.c (normalize_constant_expr): Don't check for
68 HAVE_32BIT_GPRS.
69 (check_absolute_expr): Only call normalize_constant_expr() if
70 HAVE_32BIT_GPRS.
71 (mips_ip): Likewise.
72
73 * config/tc-mips.c (check_absolute_expr): Fix formatting.
74
75 2005-04-18 Jan Beulich <jbeulich@novell.com>
76
77 * macro.c (free_token): New, freeing all the memory associated with a
78 macro.
79 (do_formals): Move initializers to ...
80 (define_macro): ... here.
81 (delete_macro): Convert passed in name to lower case. Warn when
82 purging macro that doesn't exist. Use hash_jam instead of hash_delete.
83
84 2005-04-15 Maciej W. Rozycki <macro@linux-mips.org>
85
86 * config/tc-mips.c (normalize_constant_expr): Fix formatting.
87
88 2005-04-15 Jan Beulich <jbeulich@novell.com>
89
90 * config/obj-elf.c (obj_elf_struct): New.
91 (elf_pseudo_table). Use it for .offset and .struct.
92
93 2005-04-14 Bob Wilson <bob.wilson@acm.org>
94 Sterling Augustine <sterling@tensilica.com>
95
96 * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
97 than the section alignment.
98
99 2005-04-14 Bob Wilson <bob.wilson@acm.org>
100 H.J. Lu <hongjiu.lu@intel.com>
101
102 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.
103 * config/tc-xtensa.c (xg_translate_sysreg_op,
104 xtensa_translate_old_userregs_ops,
105 xtensa_find_unaligned_branch_targets,
106 xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags,
107 relax_frag_add_nop): Support 64-bit host.
108 (xtensa_mark_literal_pool_location, xtensa_move_literals): Use
109 tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
110
111 2005-04-14 Mark Kettenis <kettenis@gnu.org>
112
113 * configure.tgt: Add support for OpenBSD/sparc ELF.
114
115 * configure.tgt: Set emulation for mips-*-openbsd*.
116 Remove broken mips-dec-openbsd* config.
117 * configure.in: Set default ABI for mips64-*-openbsd*.
118 * configure: Regenerate.
119
120 2005-04-14 Maciej W. Rozycki <macro@linux-mips.org>
121
122 * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP
123 optimization for constant addresses.
124
125 2005-04-14 Nick Clifton <nickc@redhat.com>
126
127 * as.c (main): Move parse_args before symbol_begin and frag_init
128 so that the hash table size can be set before it is used.
129 * hash.c: Use an unsigned long type for the size of the hash
130 tables.
131 * hash.h (set_gas_hash_table_size): Update the prototype.
132
133 2005-04-14 Alan Modra <amodra@bigpond.net.au>
134
135 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
136 * acinclude.m4: Include ../bfd/warning.m4.
137 * configure.in: Invoke AM_BINUTILS_WARNINGS.
138 * Makefile.in: Regenerate.
139 * configure: Regenerate.
140 * doc/Makefile.in: Regenerate.
141
142 2005-04-13 Maciej W. Rozycki <macro@linux-mips.org>
143
144 * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro.
145 (normalize_address_expr): New function to sign-extend address
146 offsets that fit into 32 bits in 32-bit mode.
147 (macro_build_ldst_constoffset): Use normalize_address_expr()
148 instead of a handcoded sequence.
149 (load_register): Likewise. Report oversized numbers in a useful
150 way.
151 (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only
152 for constant addresses. Report oversized numbers in a useful way.
153 (mips_ip): Use normalize_address_expr() for addresses.
154
155 2005-04-12 Mark Kettenis <kettenis@gnu.org>
156
157 * config/tc-i386.c (output_insn): Handle VIA PadLock instructions
158 similar to other instructions now that they're marked as ImmExt.
159
160 2005-04-12 Nick Clifton <nickc@redhat.com>
161
162 * hash.c (DEFAULT_SIZE): Delete. Replace with:
163 (gas_hash_table_size): New static variable.
164 (set_gas_hash_table_size): New function: Records a requested size
165 for the hash tables.
166 (get_gas_hash_table_size): New function: Return a prime number
167 near the requested size of the hash table.
168 (hash_new): Use get_gas_hash_table_size.
169 * hash.h: Add a prototype for set_gas_hash_table_size.
170 * as.c (show_usage): Add description of new switches: --hash-size
171 and --reduce-memory-overheads.
172 (option_values): Add OPTION_HASH_TABLE_SIZE and
173 OPTION_REDUCE_MEMORY_OVERHEADS.
174 (std_longpopts): Add entries for the new options.
175 (parse_args): Handle the new options.
176 * Makefile.am: Add a dependency of as.c on hash.h.
177 * Makefile.in: Regenerate.
178 * doc/as.texinfo: Document the new switches.
179 * NEWS: Mention the new switches.
180
181 2005-04-12 Nick Clifton <nickc@redhat.com>
182
183 PR gas/818
184 * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3]
185 synonyms.
186
187 2005-04-12 Alan Modra <amodra@bigpond.net.au>
188
189 * Makefile.am: Run "make dep-am".
190 * Makefile.in: Regenerate.
191
192 2005-04-11 Sterling Augustine <sterling@tensilica.com>
193 Bob Wilson <bob.wilson@acm.org>
194
195 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.
196
197 2005-04-11 Mark Kettenis <kettenis@gnu.org>
198
199 * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
200
201 2005-04-11 Jan Beulich <jbeulich@novell.com>
202
203 * NEWS: Mention these changes and their effects.
204 * macro.c (get_token): Use is_name_beginner/is_part_of_name/
205 is_name_ender.
206 (check_macro): Likewise.
207 (buffer_and_nest): Likewise. Permit multiple labels. Don't discard
208 labels together with the closing pseudo-op.
209 (macro_expand_body): Adjust comment. Range-check input before use.
210 Adjust mis-spelled diagnostic. Use is_name_beginner.
211 * read.c (try_macro): New.
212 (read_a_source_file): New static variable last_eol. Don't list
213 macro expansion lines more than once. Call try_macro.
214 (s_macro): Set section of line_label to absolute instead of undefined.
215 * doc/as.texinfo: Add information on the caveats of these changes.
216
217 2005-04-11 Alan Modra <amodra@bigpond.net.au>
218
219 * symbols.c (symbol_X_add_number): Change return type to "offsetT *".
220 * symbols.h (symbol_X_add_number): Update prototype.
221
222 2005-04-10 Eric Christopher <echristo@redhat.com>
223
224 * symbols.c (symbol_X_add_number): Fix warning.
225
226 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
227
228 * config/tc-m68k.c (md_begin): Support 64bit host.
229 (get_num): Support 64bit BFD on 32bit host.
230
231 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
232
233 * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
234
235 2005-04-09 Alan Modra <amodra@bigpond.net.au>
236
237 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
238 call. Don't do the COFF hacks for multi-emulation gas. Move
239 demand_empty_rest_of_line back to caller.
240 (s_set, equals): demand_empty_rest_of_line here.
241
242 PR gas/827
243 * as.h (rs_dummy): Define.
244 * symbols.c (symbol_X_add_number): New function.
245 * symbols.h (symbol_X_add_number): Declare.
246 * stabs.c (aout_process_stab): Tidy symbol frag setting.
247 * read.c (assign_symbol): New function, split out from s_set.
248 Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy.
249 Fix COFF hacks for multi-emulation gas.
250 (s_set): Call assign_symbol. Remove "register" keyword.
251 (set_zero_frag): New function.
252 (pseudo_set): Always check for assignment to section syms.
253 Always set segment and frag of symbol, and likewise extern for
254 aout/bout. Handle assignment of sym=sym+/-const specially. Don't
255 special case exp.X_add_number non-zero for O_symbol expressions.
256 (equals): Use assign_symbol.
257
258 2005-04-08 Bob Wilson <bob.wilson@acm.org>
259
260 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
261 SEC_MERGE sections.
262
263 2005-04-06 H.J. Lu <hongjiu.lu@intel.com>
264
265 * config/tc-i386.c (tc_gen_reloc): Don't turn
266 BFD_RELOC_X86_64_32S into BFD_RELOC_32.
267
268 2005-04-06 Nick Clifton <nickc@redhat.com>
269
270 * po/rw.po: New translation: Kinyarwanda
271 * configure.in (ALL_LINGUAS): Add rw
272 * configure: Regenerate.
273
274 2005-04-05 Sterling Augustine <sterling@tensilica.com>
275 Bob Wilson <bob.wilson@acm.org>
276
277 * config/tc-xtensa.c (branch_align_power): New.
278 (xtensa_find_unaligned_branch_targets, get_aligned_diff,
279 future_alignment_required): Use branch_align_power to check section
280 alignment as well as xtensa_fetch_width when aligning branch targets.
281
282 2005-04-05 Bob Wilson <bob.wilson@acm.org>
283
284 * config/tc-xtensa.c: Warning fixes throughout.
285 (xtensa_fetch_width): Change to unsigned.
286 (assemble_nop, xtensa_find_unaligned_branch_targets,
287 xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
288 is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
289 min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
290 unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
291 count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
292 get_text_align_max_fill_size, get_text_align_nop_count,
293 get_text_align_nth_nop_size, get_noop_aligned_address,
294 get_aligned_diff, convert_frag_align_next_opcode,
295 convert_frag_immed_finish_loop, xtensa_create_property_segments,
296 xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
297 types, avoiding size_t and using offsetT and addressT appropriately.
298 (get_text_align_power): Clean up types. Avoid incorrect bound.
299 (get_text_align_fill_size): Clean up types. Restructure for clarity.
300
301 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
302
303 * config/tc-ia64.c (start_unwind_section): Undo the change
304 of 2004-08-18.
305 (generate_unwind_image, dot_endp): Likewise.
306
307 2005-04-01 David Mosberger <davidm@hpl.hp.com>
308
309 * config/tc-ia64.c (ia64_handle_align): Move le_nop and
310 le_nop_stop arrays and initializers to file scope.
311 (md_begin): When generating code for anything other than
312 Itanium 1, use MMI instead of MFI NOP bundles as a filler.
313
314 2005-04-01 Jan Beulich <jbeulich@novell.com>
315
316 * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
317 immediates.
318
319 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
320
321 * NEWS: Mention [fdgh]_floating.
322 * config/atof-vax.c: Fix some whitespace.
323 * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
324
325 2005-04-01 Nick Clifton <nickc@redhat.com>
326
327 * configure.in: Add a check for <unistd.h> providing a prototype
328 for getopt() which is compatible with the one in
329 include/getopt.h. If so then define HAVE_DECL_GETOPT.
330 * configure: Regenerate.
331 * config.in (HAVE_DECL_GETOPT): Add.
332
333 2005-04-01 Jan Beulich <jbeulich@novell.com>
334
335 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
336
337 2005-04-01 Jan Beulich <jbeulich@novell.com>
338
339 * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
340 (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
341
342 2005-03-30 Julian Brown <julian@codesourcery.com>
343
344 * config/tc-arm.c (arm_adjust_symtab): Rename
345 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
346
347 2005-03-30 Julian Brown <julian@codesourcery.com>
348
349 * config/tc-arm.c (mapping_state): Change documentation in function
350 comment to cross-reference spec instead. Change type of mapping symbols
351 to BSF_NO_TYPE.
352 (arm_adjust_symtab): Don't change type of mapping symbols here.
353
354 2005-03-30 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
355
356 * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
357 * config.in: Regenerate.
358 * configure: Regenerate.
359 * configure.in: Check for ffs decl and alphabetize.
360
361 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
362 Phil Blundell <philb@gnu.org>
363
364 * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
365 (md_apply_fix3): Mark TLS symbols.
366 (tc_gen_reloc): Handle TLS relocations.
367 (arm_fix_adjustable): Ignore TLS relocations.
368 (s_arm_elf_cons): Support expressions after decorated symbols.
369
370 2005-03-29 Julian Brown <julian@codesourcery.com>
371
372 * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
373 whether personality routine index N has been output for this section.
374 (mapping_state): tc_segment_info_data now struct not enum.
375 (arm_elf_change_section): Likewise, and marked_pr_dependency is now
376 handled on section change.
377 (create_unwind_entry): Previous code to output dependency removed.
378 (s_arm_unwind_fnend): Output dependency if it hasn't been done already
379 for this section.
380 * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
381 arm_segment_info_type.
382 (arm_segment_info_type): New struct.
383 * testsuite/gas/arm/unwind.d: Update expected output.
384
385 2005-03-28 Sterling Augustine <sterling@tensilica.com>
386 Bob Wilson <bob.wilson@acm.org>
387
388 * config/tc-xtensa.c (do_align_targets): Update comment.
389 (xtensa_frob_label): Compute "freq" before possibly switching frags.
390 Insert a LOOP_END frag before every loop target, and do not overload
391 DESIRE_ALIGN_IF_TARGET frags with loop end information.
392 (xg_assemble_vliw_tokens): Use do_align_targets.
393 (xtensa_fix_target_frags): Remove code to convert a
394 DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
395 negatable branch at the end of a loop.
396 (frag_can_negate_branch): Delete.
397
398 2005-03-28 David Mosberger <davidm@hpl.hp.com>
399 H.J. Lu <hongjiu.lu@intel.com>
400
401 PR 803
402 NEWS: Mention "-mtune=[itanium1|itanium2]".
403
404 * config/tc-ia64.c (md): Add tune.
405 (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
406 (md_show_usage): Add "-mtune=[itanium1|itanium2]".
407 (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
408 B unit NOPs are discouraged for McKinley-derived cores.
409 (md_begin): Don't hardcode the "extra_goodness()" function in
410 the comment...
411 (ia64_init): Set md.tune to itanium2.
412
413 * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
414 * doc/c-ia64.texi: Likewise.
415
416 2005-03-27 Ian Lance Taylor <ian@airs.com>
417
418 * config/obj-coff.c (coff_frob_symbol): When crashing because of a
419 bad C_EFCN symbol, print its name.
420
421 2005-03-25 Bob Wilson <bob.wilson@acm.org>
422
423 * config/tc-xtensa.c (use_longcalls): Delete.
424 (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
425 the use_longcalls flag is set. Do this before checking the segment.
426 (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never
427 expand direct calls at this point.
428 (xtensa_set_frag_assembly_state): Set use_longcalls flag.
429 (xtensa_find_unmarked_state_frags): Likewise.
430 (md_assemble): Do not disable longcalls by setting is_specific_opcode.
431 (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
432 (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
433 * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
434
435 2005-03-25 Hans-Peter Nilsson <hp@bitrange.com>
436
437 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
438
439 2005-03-25 Hans-Peter Nilsson <hp@axis.com>
440
441 * config/tc-cris.h: Convert to ISO C90.
442 * config/tc-cris.c: Ditto.
443 (md_estimate_size_before_relax): Remove obsolete comment for
444 parameter "segment_type".
445 (md_begin): Document reason for cast of hash_insert argument.
446 (md_atof): Correct type of parameter "type".
447
448 2005-03-24 Nick Clifton <nickc@redhat.com>
449
450 * write.h (bit_fix_new): Remove redundant prototype.
451 * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
452 * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
453 * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
454 * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
455 * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
456 * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
457 * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
458 * config/obj-som.c: Convert to ISO-C90 and fix formatting.
459 * config/obj-som.h: Convert to ISO-C90 and fix formatting.
460 * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
461 * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
462 * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
463 * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
464 * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
465 * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
466 * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
467 * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
468 * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
469 * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
470 * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
471 * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
472 * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
473 * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
474 * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
475 * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
476 * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
477 * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
478 * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
479 * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
480 * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
481 * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
482 * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
483 * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
484 * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
485 * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
486 * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
487 * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
488 * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
489 * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
490 * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
491 * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
492 * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
493 * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
494 * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
495 * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
496 * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
497 * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
498 * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
499 * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
500 * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
501 * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
502 * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
503 * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
504 * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
505 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
506
507 2005-03-23 Jim Blandy <jimb@redhat.com>
508
509 * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
510 attributes properly.
511
512 2005-03-23 Mike Frysinger <vapier@gentoo.org>
513 Nick Clifton <nickc@redhat.com>
514
515 * configure.tgt: Accept any C library to accompany a GNU Linux
516 implementation, not just the GNU C library.
517 * configure.in: Likewise.
518 * configure: Regenerate.
519
520 2005-03-23 Nick Clifton <nickc@redhat.com>
521
522 * config/tc-tic30.c: Convert to ISO C90 formatting.
523 * config/tc-tic30.h: Convert to ISO C90 formatting.
524 * config/tc-pdp11.c: Convert to ISO C90 formatting.
525 * config/atof-vax.c: Convert to ISO C90 formatting.
526
527 2005-03-21 Maciej W. Rozycki <macro@mips.com>
528
529 * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
530 relocations correctly as well.
531 (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
532 relocations in mergeable sections section-relative either.
533
534 2005-03-21 Bob Wilson <bob.wilson@acm.org>
535
536 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
537
538 2005-03-21 Nick Clifton <nickc@redhat.com>
539
540 * config/tc-sh.c (sh_elf_final_processing): Fix compile time
541 warning by providing a prototype for sh_symbian_find_elf_flags.
542
543 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
544 previous delta.
545
546 2005-03-21 Alan Modra <amodra@bigpond.net.au>
547
548 * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
549 along with other formats that set bfd_gas. Remove unnecessary
550 setting of bfd_gas. Delete strongarm cases in generic_target
551 switch.
552
553 2005-03-21 Alan Modra <amodra@bigpond.net.au>
554
555 PR gas/780
556 * config/tc-m68k.c (TRUNC, SEXT): Define.
557 (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
558 (m68k_ip): Truncate or sign extend expressions as appropriate.
559 (get_num): Likewise.
560 (md_apply_fix3): Use SEXT.
561
562 2005-03-21 Alan Modra <amodra@bigpond.net.au>
563
564 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
565 (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
566 (obj-vms.o): Delete rule.
567 Run "make dep-am".
568 * Makefile.in: Regenerate.
569 * aclocal.m4: Regenerate.
570 * doc/Makefile.in: Regenerate.
571 * po/POTFILES.in: Regenerate.
572
573 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
574
575 * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
576 flag for coldfire v4e.
577
578 2005-03-17 Bob Wilson <bob.wilson@acm.org>
579
580 * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
581 xg_apply_fix_value and return a value to indicate success.
582 (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative.
583 (xtensa_force_relocation): Remove checks for VTABLE relocs.
584 (xtensa_validate_fix_sub): New.
585 (xtensa_fix_adjustable): Remove check for external or weak symbols.
586 (tc_gen_reloc): Move code to handle difference of symbols and code to
587 apply tentative fix values to ...
588 (md_apply_fix3): ...here. Enable standard overflow checks for simple
589 8, 16, and 32 bit relocations. Apply fixes for slot-specific
590 relocations when linkrelax flag is not set.
591 * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
592 (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
593
594 2005-03-17 Jan Beulich <jbeulich@novell.com>
595
596 * config/tc-i386.c (i386_scale): Beautify error message.
597 (Intel syntax comments): Update.
598 (struct intel_parser_s): Add fields in_offset, in_bracket, and
599 next_operand.
600 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
601 Remove declarations.
602 (intel_bracket_expr): Declare.
603 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
604 of the function body in a loop allowing to split an operand into two.
605 Replace calls to malloc and checks of it returning non-NULL with
606 calls to xmalloc/xstrdup.
607 (intel_expr): SHORT no longer handled here. Add comment indicating
608 comparison ops need implementation.
609 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
610 Check right operand of - does not specify a register when parsing
611 the address of a memory reference.
612 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
613 Check operands do not specify a register when parsing the address of
614 a memory reference.
615 (intel_e06, intel_e06_1): Likewise.
616 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
617 handle SHORT as well as unary + and -. Don't accept : except for
618 segment overrides or in direct far jump/call insns.
619 (intel_brack_expr): New.
620 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
621 intel_brack_expr.
622 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
623 through in certain cases. Use intel_brack_expr. Add new diagnostics.
624 Allow symbolic constants as register scale value.
625 (intel_get_token): Replace call to malloc and check of return value
626 with call to xmalloc. Change handling for FLAT to match MASM's.
627 (intel_putback_token): Don't try to back up/free current token if
628 that is T_NIL.
629
630 2005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
631
632 * configure.tgt: Set emulation for arm-*-eabi*.
633 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
634 * config/te-armeabi.h: New file.
635 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
636 * config/te-symbian.h: Include "te-armeabi.h".
637
638 2005-03-16 Nick Clifton <nickc@redhat.com>
639
640 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
641 local variable in case it is clobbered by the setjmp.
642
643 2005-03-16 Nick Clifton <nickc@redhat.com>
644 Ben Elliston <bje@au.ibm.com>
645
646 * configure.in (werror): New switch: Add -Werror to the
647 compiler command line. Enabled by default. Disable via
648 --disable-werror.
649 * configure: Regenerate.
650
651 2005-03-16 Nick Clifton <nickc@redhat.com>
652
653 * config/obj-coff.h: Convert to ISO C90 formatting.
654 * config/obj-coff.c: Convert to ISO C90 formatting.
655
656 2005-03-15 Zack Weinberg <zack@codesourcery.com>
657
658 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
659 is_mls parameter; do not diagnose Rm==Rd when is_mls.
660 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
661 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
662 (insns): Add ARMv6T2 instructions:
663 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
664 (arm_archs): Add V6T2 variants.
665
666 2005-03-15 Nick Clifton <nickc@redhat.com>
667
668 * NEWS: Add cutoff for changes in 2.16 release.
669
670 2005-03-15 Jan Beulich <jbeulich@novell.com>
671
672 * expr.c (operand): Merge handling of unary + into that for unary
673 -, !, and ~.
674
675 2005-03-14 Eric Christopher <echristo@redhat.com>
676
677 * config/tc-mips.c: Include dw2gencfi.h.
678 (mips_cfi_frame_initial_instructions): New.
679 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
680 (tc_cfi_frame_initial_instructions): Ditto.
681 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
682 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
683 * Makefile.am: Update dependencies.
684 * Makefile.in: Regenerate.
685
686 2005-03-15 Alan Modra <amodra@bigpond.net.au>
687
688 * po/es.po: Commit new Spanish translation.
689
690 2005-03-14 Alan Modra <amodra@bigpond.net.au>
691
692 * po/tr.po: Commit new Turkish translation.
693
694 2005-03-12 Zack Weinberg <zack@codesourcery.com>
695
696 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
697 wfi, yield.
698
699 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
700
701 * config-gas.com: Mark vax-vms as obsolete.
702 * configure.in: Remove fmt=vms support.
703 * config.in: Regenerate.
704 * configure: Regenerate.
705 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
706
707 2005-03-10 Sterling Augustine <sterling@tensilica.com>
708 Bob Wilson <bob.wilson@acm.org>
709
710 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
711 when checking if xg_resolve_literals needs to be called.
712 * config/tc-xtensa.h: Fix spelling typo in a comment.
713
714 2005-03-10 Jan Beulich <jbeulich@novell.com>
715
716 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
717 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
718 crafted structure declarations with the types from macro.h.
719
720 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
721
722 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
723 for -mno-shared optimization.
724
725 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
726
727 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
728 (MAX_NOPS): Bump to 4.
729 (mips_fix_vr4130): New variable.
730 (nops_for_vr4130): New function.
731 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
732 nops_for_vr4130 if working around VR4130 errata.
733 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
734 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
735 (md_parse_option): Handle them.
736 (md_show_usage): Print them.
737 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
738
739 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
740
741 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
742 branch delay code.
743
744 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
745
746 * config/tc-mips.h (mips_flush_pending_output): Delete.
747 (mips_emit_delays): Declare.
748 (md_flush_pending_output): Use mips_emit_delays.
749 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
750 the previous instructions.
751 (md_begin, append_insn, md_parse_option): Update callers.
752 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
753 start_noreorder.
754 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
755 (s_gpdword): Update callers.
756 (start_noreorder, end_noreorder): New functions.
757 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
758 manipulating mips_opts or prev_nop_frag directly.
759 (mips_flush_pending_output): Delete.
760
761 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
762
763 * config/tc-mips.c (mips_move_labels): New function, taken from...
764 (append_insn, mips_emit_delays): ...here.
765
766 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
767
768 * config/tc-mips.c (MAX_NOPS): New macro.
769 (history): Resize to 1 + MAX_NOPS.
770 (fix_vr4120_class): New enumeration.
771 (vr4120_conflicts): New variable.
772 (init_vr4120_conflicts): New function.
773 (md_begin): Call it.
774 (insn_uses_reg): Constify first argument.
775 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
776 (nops_for_insn_or_target): New functions.
777 (append_insn): Use the new nops_for_* functions instead of inline
778 delay checks. Generalize prev_nop_frag handling to handle an
779 arbitrary history length. Insert nops into the history buffer
780 once the number of nops in prev_nop_frag is fixed.
781 (emit_delays): Use nops_for_insn instead of inline delay checks.
782
783 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
784
785 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
786 check from branch delay code. Remove unnecessary check for branches.
787
788 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
789
790 * config/tc-mips.c (dummy_opcode): Delete.
791 (nop_insn, mips16_nop_insn): New variables.
792 (NOP_INSN): New macro.
793 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
794 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
795 (md_begin): Initialize nop_insn and mips16_nop_insn.
796 (append_insn): Use the new emit_nop function to add nops, recording
797 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
798 to reserve room for the instruction and install_insn to install the
799 final form. Use insert_into_history to record the instruction in
800 the history buffer. Use move_insn to do delay slot filling.
801 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
802 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
803 (mips16_ip): Use create_insn to initialize mips_cl_insns.
804
805 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
806
807 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
808 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
809 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
810 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
811 (mips16_ip): Use the new macros instead of explicit masks and shifts.
812
813 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
814
815 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
816 and extended_p fields with a single fixed_p field.
817 (append_insn, mips_no_prev_insn): Adjust accordingly.
818
819 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
820
821 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
822 a single mips16_absolute_jump_p bit.
823 (append_insn): Adjust accordingly.
824
825 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
826
827 * config/tc-mips.h (mips_cl_insn): Move definition to...
828 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
829 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
830 and extended_p.
831 (history): New variable.
832 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
833 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
834 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
835 (prev_prev_insn_unreordered): Delete.
836 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
837 (macro_start): Replace uses of prev_insn* with the equivalent history[]
838 field.
839
840 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
841
842 * doc/Makefile.am: Update as.info dependencies.
843 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
844
845 2005-03-08 Jan Beulich <jbeulich@novell.com>
846
847 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
848 error, and point to .purgem documentation if someone really needs
849 re-definitions.
850 * NEWS: Mention macro redefinition is now an error.
851
852 2005-03-08 Jan Beulich <jbeulich@novell.com>
853
854 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
855 emitted to. Add more precise diagnostics for non-fitting insns based
856 on that. Eliminate now superfluous special casing of MLX. Clear out
857 slot information when dropping an insn.
858
859 2005-03-08 Jan Beulich <jbeulich@novell.com>
860
861 * config/tc-ia64.c (parse_section_name): Rename to...
862 (cross_section): In addition to separating the name from the rest of
863 the arguments, also carry out the operation.
864 (dot_xdata): Use cross_section.
865 (dot_float_cons): Likewise.
866 (dot_xstringer): Likewise.
867 (dot_xdata_ua): Likewise.
868 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
869
870 2005-03-05 Alan Modra <amodra@bigpond.net.au>
871
872 * po/gas.pot: Regenerate.
873
874 2005-03-04 David Daney <ddaney@avtrex.com>
875
876 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
877 instead of '_gp' for -mno-shared optimization.
878 (s_cpload): Ditto.
879 (s_abicalls): Document it in the comment.
880 (md_show_usage): Document the -mno-shared option.
881
882 2005-03-04 Richard Sandiford <rsandifo@redhat.com>
883
884 * config/tc-mips.c (mips_set_options): Add sym32 field.
885 (mips_opts): Initialize it.
886 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
887 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
888 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
889 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
890 when deciding whether to use a symbolic %highest/%higher expansion.
891 (macro): Likewise. Remove o64/n32 linux hack. Always use
892 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
893 and "la". Handle constants separately from symbolic expressions in
894 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
895 and using load_register to load the high part of the address.
896 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
897 (OPTION_ELF_BASE): Bump by 2.
898 (md_longopts): Add entries for -msym32 and -mno-sym32.
899 (md_parse_option): Handle them.
900 (usage): Document them.
901 (s_mipsset): Handle ".set sym32" and ".set nosym32".
902 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
903 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
904 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
905 -msym32 and -mno-sym32.
906
907 2005-03-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
908
909 * config/tc-mips.c (load_address): Implement GP optimization
910 for 64bit address space non-PIC. Fix formatting.
911 (macro): Likewise. Simplify code.
912 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
913 (mips_after_parse_args): Simplify code.
914
915 2005-03-03 Nick Clifton <nickc@redhat.com>
916
917 * expr.c (operand): Remove redundant code enclosed by #ifdef
918 RELAX_PAREN_GROUPING....#endif.
919
920 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
921 reloc is the difference of two symbols defined in the same
922 section.
923
924 * config/tc-iq2000.c (line_comment_chars): Include the # character
925 as otherwise this breaks #APP/#NO_APP processing.
926
927 2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
928
929 * config/tc-arc.c(md_assemble): Remove dead code for handling
930 immediate indexing of ld and st .
931
932 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
933 Joseph Myers <joseph@codesourcery.com>
934
935 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
936 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
937 (parse_relocation): Check for a word break after a relocation
938 operator.
939 (md_apply_fix3): Handle TLS relocations, and mark thread-local
940 symbols.
941
942 2005-03-02 Alan Modra <amodra@bigpond.net.au>
943
944 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
945
946 2005-03-02 Jan Beulich <jbeulich@novell.com>
947
948 * as.c (main): Use unlink_if_ordinary instead of unlink.
949 * messages.c (as_fatal): Likewise.
950
951 2005-03-02 Jan Beulich <jbeulich@novell.com>
952
953 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
954 accesses.
955 (parse_register): Allow cr8...15 in all modes.
956
957 2005-03-02 Jan Beulich <jbeulich@novell.com>
958
959 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
960 etc. like normal symbol references (T_ID).
961
962 2005-03-02 Alan Modra <amodra@bigpond.net.au>
963
964 * symbols.c (fb_label_name): Fix silly thinko in last change.
965
966 2005-03-02 Alan Modra <amodra@bigpond.net.au>
967
968 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
969 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
970
971 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
972
973 2005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
974
975 PR gas/708
976 * config/tc-arc.c (md_assemble): Initialize suffix for extension
977 suffixes also.
978
979 2005-03-01 Alan Modra <amodra@bigpond.net.au>
980
981 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
982
983 * as.h (assert): Warning fix.
984 * expr.c (expr): Correct assertion.
985 * read.c (s_comm_internal): Remove assertion.
986 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
987 (fixup_segment): Remove assertion.
988 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
989 (md_apply_fix3): Likewise.
990 * config/tc-i370.c (md_begin): Correct assertion.
991 (i370_macro): Warning fix for assertion.
992
993 2005-03-01 Alan Modra <amodra@bigpond.net.au>
994
995 * configure.in (AC_C_BIGENDIAN): Invoke.
996 * configure: Regenerate.
997 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
998 host variable to set string header size.
999 * config/obj-aout.c (obj_header_append): Don't use host structs.
1000 (obj_symbol_to_chars): Likewise.
1001 (obj_emit_strings): Likewise. Use the passed in output pointer.
1002 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
1003 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
1004 not sizeof host struct.
1005 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
1006 (obj_emit_strings): Likewise.
1007 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
1008 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
1009 sizeof host struct.
1010 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
1011 sizeof host struct.
1012 (host_number_to_chars): Define.
1013 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
1014 host internal struct to set header sizes.
1015 * config/tc-i960.c (md_number_to_field): Warning fix.
1016 (md_ri_to_chars): Use host byte order.
1017 (get_cdisp, md_apply_fix3): Warning fix.
1018 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
1019
1020 2005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1021
1022 * doc/c-arc.texi: Update documentation about ARC's extension
1023 instructions.
1024
1025 2005-02-27 Svein E. Seldal <svein@dev.seldal.com>
1026
1027 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
1028 address for myself.
1029
1030 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1031
1032 * cgen.c: Warning fixes.
1033 * config/tc-arc.c: Likewise.
1034 * config/tc-arm.c: Likewise.
1035 * config/tc-avr.c: Likewise.
1036 * config/tc-d10v.c: Likewise.
1037 * config/tc-d30v.c: Likewise.
1038 * config/tc-frv.c: Likewise.
1039 * config/tc-frv.h: Likewise.
1040 * config/tc-h8300.c: Likewise.
1041 * config/tc-h8500.c: Likewise.
1042 * config/tc-i370.c: Likewise.
1043 * config/tc-i960.c: Likewise.
1044 * config/tc-ia64.c: Likewise.
1045 * config/tc-ip2k.c: Likewise.
1046 * config/tc-m68hc11.c: Likewise.
1047 * config/tc-maxq.c: Likewise.
1048 * config/tc-mcore.c: Likewise.
1049 * config/tc-mips.c: Likewise.
1050 * config/tc-msp430.c: Likewise.
1051 * config/tc-pj.c: Likewise.
1052 * config/tc-ppc.c: Likewise.
1053 * config/tc-ppc.h: Likewise.
1054 * config/tc-s390.c: Likewise.
1055 * config/tc-sh.c: Likewise.
1056 * config/tc-sh64.c: Likewise.
1057 * config/tc-tic4x.c: Likewise.
1058 * config/tc-tic80.c: Likewise.
1059 * config/tc-v850.c: Likewise.
1060 * config/tc-vax.c: Likewise.
1061 * config/tc-w65.c: Likewise.
1062 * config/tc-xstormy16.c: Likewise.
1063 * config/tc-z8k.c: Likewise.
1064
1065 2005-02-22 Catherine Moore <clm@cm00re.com>
1066
1067 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
1068 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
1069
1070 2005-02-22 Eric Christopher <echristo@redhat.com>
1071
1072 * config/tc-mips.c (struct proc): Change isym to
1073 func_sym. New member func_end_sym.
1074 (s_mips_ent): Update.
1075 (s_mips_end): Ditto. Add code to compute function size.
1076
1077 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1078
1079 * read.c: Warning fixes.
1080 * config/obj-elf.c: Likewise.
1081
1082 2005-02-22 Maciej W. Rozycki <macro@mips.com>
1083
1084 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
1085 emitting insn.
1086
1087 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1088
1089 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
1090 SEC_COFF_SHARED.
1091
1092 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
1093 SEC_TIC54X_BLOCK.
1094 (demand_empty_rest_of_line): Likewise.
1095 (tic54x_sblock): Likewise.
1096 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
1097
1098 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1099
1100 * read.c (address_bytes): New function.
1101 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
1102 (potable): Add "dc.a".
1103 (cons_worker): Handle "dc.a".
1104 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
1105
1106 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1107
1108 * input-file.c (input_file_open): Rearrange to avoid warning.
1109
1110 2005-02-19 Alan Modra <amodra@bigpond.net.au>
1111
1112 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
1113 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
1114 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
1115
1116 2005-02-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1117
1118 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
1119 uses after .set noat.
1120 (load_address): Likewise.
1121 (macro): Likewise. Don't try to avoid $at use by sacrificing
1122 the target register before it is stored, it won't work.
1123
1124 2005-02-17 James E Wilson <wilson@specifixinc.com>
1125
1126 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
1127 see an instruction that specifies a template.
1128
1129 2005-02-18 Alan Modra <amodra@bigpond.net.au>
1130
1131 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
1132 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
1133 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
1134
1135 2005-02-17 H.J. Lu <hongjiu.lu@intel.com>
1136
1137 * NEWS: Mention "-mhint.b=[ok|warning|error]".
1138
1139 * config/tc-ia64.c (md): Add hint_b.
1140 (emit_one_bundle): Handle md.hint_b for "hint".
1141 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
1142 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
1143 (ia64_init): Set md.hint_b to error.
1144 (md_assemble): Handle md.hint_b for "hint.b".
1145
1146 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
1147 * doc/c-ia64.texi: Likewise.
1148
1149 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1150
1151 * tc.h (struct relax_type, relax_typeS): Move from here..
1152 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
1153 * ecoff.c (ecoff_new_file): Add appfile param.
1154 * ecoff.h (ecoff_new_file): Likewise.
1155 * itbl-lex.h: New file.
1156 * itbl-lex.l: Include itbl-lex.h.
1157 * itbl-parse.y: Likewise.
1158 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
1159 * read.c (s_app_file_string): Mark appfile possibly unused.
1160 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
1161 * subsegs.h (struct seg_info_trash): Delete.
1162 (seg_info): Use segment_info_type instead.
1163 * config/obj-coff.c (struct filename_list): Make filename const char *.
1164 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
1165 * config/obj-elf.c (elf_file_symbol): Similarly.
1166 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
1167 signed right shift.
1168 * config/tc-arc.c (md_operand): Warning fix.
1169 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
1170 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
1171 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
1172 * config/tc-frv.c (frv_force_relocation): Warning fix.
1173 * config/tc-m68k.c (md_parse_option): Delete unused var.
1174 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
1175 * config/tc-sparc.c: Likewise.
1176 (s_common): Warning fix.
1177 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
1178 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
1179 addressT.
1180 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
1181 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
1182 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
1183 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
1184 (tic4x_do_align): Use TIC_NOP_OPCODE.
1185 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
1186 * config/tc-vax.c: Include netinet/in.h.
1187 (tc_headers_hook): Formatting.
1188 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
1189
1190 2005-02-17 Jan Beulich <jbeulich@novell.com>
1191
1192 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
1193 parsing inN, locN, outN. Set 'idx' to offset register number starts
1194 at. Don't handle numbers with leading zeroes or beyond 95. Remove
1195 pointless cast.
1196
1197 2005-02-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1198
1199 * config/tc-mips.c (load_address): Fix formatting.
1200 (macro): Don't use AT if .set noat is in effect. Fix formatting.
1201 Catch macros which are unexpandable without AT. Remove duplicate
1202 zeroing of used_at.
1203 (macro2): Remove duplicate zeroing of used_at.
1204
1205 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1206
1207 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
1208 than zero.
1209
1210 2005-02-15 Nigel Stephens <nigel@mips.com>
1211 Maciej W. Rozycki <macro@mips.com>
1212
1213 * config/tc-mips.c (reloc_needs_lo_p): Handle
1214 BFD_RELOC_MIPS16_HI16_S.
1215 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
1216 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
1217 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
1218 complaints on.
1219 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
1220 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
1221 Call my_getSmallExpression() to parse percent operators.
1222 (percent_op_match, mips_percent_op): Separate definitions.
1223 (mips16_percent_op): Define percent operators for the MIPS16 mode.
1224 (parse_relocation): Handle the MIPS16 mode using
1225 mips16_percent_op.
1226 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
1227 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
1228
1229 2005-02-15 Jan Beulich <jbeulich@novell.com>
1230
1231 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
1232 instead of explicitly dealing with the translation; exclude
1233 relocations that are already pcrel, however.
1234
1235 2005-02-15 Jan Beulich <jbeulich@novell.com>
1236
1237 * config/tc-ia64.c: Include limits.h (if available).
1238 (gr_values[0]): Set path to INT_MAX.
1239 (dot_reg_val): Don't allow changing value of r0. Limit range of
1240 general registers at r127.
1241 (specify_resource): Default resource index is -1. Don't set resource
1242 index (in case IA64_RS_RSE) without setting the specific flag.
1243 (note_register_values): Check operand is O_constant before tracking
1244 input value of moves. Add tracking for dep.z with constant inputs.
1245 (print_dependency): Resource index of specific resource may be zero.
1246 (check_dependencies): Likewise.
1247
1248 2005-02-15 Jan Beulich <jbeulich@novell.com>
1249
1250 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
1251 reg_class. Check operands and emit diagnostics for illegal use of
1252 registers.
1253
1254 2005-02-15 Jan Beulich <jbeulich@novell.com>
1255
1256 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
1257 new variables type, suffix, and width. Handle
1258 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
1259 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
1260 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
1261 FUNC_DTP_RELATIVE case. Return incoming relocation type if
1262 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
1263 if unable to translate relocation type, using the new variables.
1264
1265 2005-02-15 Jan Beulich <jbeulich@novell.com>
1266
1267 * config/tc-ia64.h (ia64_symbol_chars): Declare.
1268 (ty_symbol_chars): Define.
1269 * config/tc-ia64.c (ia64_symbol_chars): Define.
1270
1271 2005-02-15 Jan Beulich <jbeulich@novell.com>
1272
1273 * config/tc-ia64.c (ia64_parse_name): Only update next character if
1274 input_line_pointer was advanced.
1275
1276 2005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1277
1278 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
1279 within |.
1280
1281 2005-02-13 Jan Beulich <jbeulich@novell.com>
1282
1283 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
1284 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
1285 indicator.
1286 (ia64_init): Set md.detect_dv.
1287 (ia64_start_line): New static variable warned. Warn only once when
1288 encountering explicit stops in automatic mode.
1289 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
1290 * NEWS: Mention new default mode.
1291
1292 2005-02-13 Jan Beulich <jbeulich@novell.com>
1293
1294 * config/tc-ia64.c (dot_rot): Add comment that name strings should
1295 be freed when wiping out previous state. Canonicalize names before
1296 use. Free name string when detecting redefinition.
1297 (dot_pred_rel): Call generic expression parser to process arguments.
1298 Handle O_register case for individual predicates and O_subtract for
1299 ranges.
1300 (ia64_parse_name): Canonicalize name before looking it up in dynamic
1301 register hash.
1302 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
1303 Warn if multiple found, issue error if resulting symbol name has zero
1304 length.
1305 (dot_alias): Canonicalize name before use.
1306
1307 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
1308
1309 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
1310 and 0 for error.
1311 (in_procedure): Return -1 for warning.
1312 (in_prologue): Likewise.
1313 (in_body): Likewise.
1314
1315 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
1316
1317 * config/tc-ia64.c (dot_xdata): Undo the last change.
1318 (dot_float_cons): Likewise.
1319 (dot_xstringer): Likewise.
1320 (dot_xdata_ua): Likewise.
1321 (dot_float_cons_ua): Likewise.
1322
1323 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
1324
1325 * NEWS: Mention "-munwind-check=[warning|error]".
1326
1327 * config/tc-ia64.c (md): Add unwind_check.
1328 (unwind_diagnostic): New.
1329 (in_procedure): Call unwind_diagnostic when a directive isn't
1330 in procedure.
1331 (in_prologue): Call unwind_diagnostic when a directive isn't in
1332 prologue.
1333 (in_body): Call unwind_diagnostic when a directive isn't in
1334 body region.
1335 (dot_endp): Set md.unwind_check to error before calling
1336 in_procedure and restore it after. When the name is missing or
1337 couldn't be found, use the one from the last .proc if
1338 md.unwind_check isn't error. Warn if md.unwind_check is
1339 warning.
1340 (md_parse_option): Handle "-munwind-check=[warning|error]".
1341 (md_show_usage): Add "-munwind-check=[warning|error]".
1342 (ia64_init): Set md.unwind_check to warning.
1343
1344 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
1345 * doc/c-ia64.texi: Likewise.
1346
1347 2005-02-11 Jan Beulich <jbeulich@novell.com>
1348
1349 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
1350 (LEX_QM): Likewise.
1351 (ia64_parse_name): New third parameter.
1352 (md_parse_name): Pass third argument.
1353 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
1354 (md_operand): Handling of '@'-prefixed symbols moved from here...
1355 (ia64_parse_name): ...to here.
1356
1357 2005-02-11 Jan Beulich <jbeulich@novell.com>
1358
1359 * config/tc-ia64.c (md): Remove last_groups and group_idx.
1360 (errata_nop_necessary_p): Remove declaraction and definition.
1361 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
1362 update md.group_idx. Don't reset md.last_groups.
1363
1364 2005-02-11 Jan Beulich <jbeulich@novell.com>
1365
1366 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
1367 argument.
1368 (dot_xdata): Free section name after use.
1369 (dot_float_cons): Likewise.
1370 (dot_xstringer): Likewise.
1371 (dot_xdata_ua): Likewise.
1372 (dot_float_cons_ua): Likewise.
1373 (md_pseudo_table): Add xdata16 and xdata16.ua.
1374
1375 2005-02-10 H.J. Lu <hongjiu.lu@intel.com>
1376
1377 * doc/all.texi: Add IA64.
1378 * doc/as.texinfo: Likewise.
1379
1380 * doc/c-ia64.texi: Fix typos.
1381
1382 2005-02-10 Julian Brown <julian@codesourcery.com>
1383
1384 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
1385 BFD_RELOC_UNUSED.
1386 (do_t_push_pop): Likewise.
1387 (md_assemble): Likewise.
1388 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
1389 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
1390 (create_unwind_entry): Output dependency on the required personality
1391 routines.
1392 testsuite/gas/arm/unwind.d: Alter expected output to include
1393 dependency on __aeabi_unwind_cpp_pr[01].
1394
1395 2005-02-07 Nathan Sidwell <nathan@codesourcery.com>
1396
1397 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
1398 * subsegs.c (seg_not_empty_p): Likewise.
1399
1400 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
1401
1402 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
1403 relative jump calculation.
1404 <md_convert_frag) : Likewise.
1405 <output_disp): Likewise.
1406
1407 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
1408
1409 * write.c (write_object_file): Recognize warning-symbol construct
1410 and skip object- and target- handling for the second symbol.
1411
1412 2005-02-02 Jan Beulich <jbeulich@novell.com>
1413
1414 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
1415 designators along with quoted ones. Free copy of quoted designator
1416 when done.
1417
1418 2005-02-01 Ben Elliston <bje@au.ibm.com>
1419
1420 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
1421 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
1422 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
1423 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
1424 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
1425 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
1426 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
1427 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
1428 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
1429 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
1430 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
1431 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
1432 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
1433 #if 0'd code throughout.
1434
1435 2005-01-31 Nick Clifton <nickc@redhat.com>
1436
1437 * as.c (parse_args): Bump copyright date reported by --version to
1438 2005.
1439
1440 2005-01-31 Nick Clifton <nickc@redhat.com>
1441
1442 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
1443 and vax-vms.
1444
1445 2005-01-31 Jan Beulich <jbeulich@novell.com>
1446
1447 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
1448 that can end with .endr in that case. Make requiring/permitting
1449 pseudo-ops without leading dot closer to the logic in read.c serving
1450 the same purpose.
1451 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
1452 ignored.
1453
1454 2005-01-31 Jan Beulich <jbeulich@novell.com>
1455
1456 * macro.c (do_formals): Adjust to no longer accept empty parameter
1457 names.
1458 (define_macro): Adjust to no longer accept empty macro name, garbage
1459 following the parameters, or macros that were previously defined.
1460 * read.c (s_bad_end): Declare.
1461 (potable): Add endm. Handler for endr and endm is s_bad_end.
1462 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
1463 and .endr.
1464 * read.h (s_bad_endr): Remove.
1465
1466 2005-01-31 Jan Beulich <jbeulich@novell.com>
1467
1468 * config/tc-ia64.c (parse_operands): Parse all specified operands,
1469 immediately discarding (but counting) those exceeding the maximum
1470 possible amount. Track whether output and input operand counts ever
1471 matched, and use this to better indicate which of the operands/
1472 operand types was wrong; specifically don't default to pointing to
1473 the first operand.
1474
1475 2005-01-31 Jan Beulich <jbeulich@novell.com>
1476
1477 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
1478 variable in dot_endp). Add body and insn. Make prologue,
1479 prologue_mask, body, and insn bitfields.
1480 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
1481 messages.
1482 (in_procedure, in_prologue, in_body): New.
1483 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
1484 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
1485 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
1486 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
1487 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
1488 dot_personality): Use the appropriate one of the above.
1489 (dot_proc): Clear unwind.proc_start; set to current location only if
1490 none of the entry points were valid. Check for non-zero-length entry
1491 point names. Check that entry points aren't defined, yet. Clear
1492 unwind.prologue, unwind.body, and unwind.insn.
1493 (dot_body): Call in_procedure. Check that first directive in procedure
1494 had no insns emitted before. Set unwind.body.
1495 (dot_prologue): Call in_procedure. Check that not already in prologue.
1496 Check that first directive in procedure had no insns emitted before.
1497 Clear unwind.body.
1498 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
1499 length entry point names. Check that entry points became defined.
1500 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
1501
1502 2005-01-31 Jan Beulich <jbeulich@novell.com>
1503
1504 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
1505 before actually using it. Don't generate an error in manual bundling
1506 mode when looking at an insn requiring slot 2 but not yet at slot 2.
1507 Don't generate an error in manual bundling mode when looking at an
1508 insn required to be last in its group but the required slot hasn't
1509 been reached, yet. Allow conversion from MII to MI;I for bundle
1510 consisting of only 2 insns with the stop between them. Suppress
1511 various meaningless errors resulting from detecting earlier ones.
1512
1513 2005-01-31 Jan Beulich <jbeulich@novell.com>
1514
1515 * config/tc-ia64.c (parse_operands): Also handle alloc without first
1516 input being ar.pfs.
1517
1518 2005-01-28 Christian Groessler <chris@groessler.org>
1519
1520 * config/tc-z8k.c (md_assemble): Improve error detection.
1521
1522 2005-01-28 Jan Beulich <jbeulich@novell.com>
1523
1524 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
1525 for personality routine pointer only if there is one.
1526 (ia64_convert_frag): Likewise.
1527 (generate_unwind_image): Likewise.
1528
1529 2005-01-27 Christian Groessler <chris@groessler.org>
1530
1531 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
1532 (md_apply_fix3): Make relative branches out of range an error
1533 instead of a warning. Display correct line number for out of
1534 range branches/calls/memory accesses.
1535
1536 2005-01-27 Nathan Sidwell <nathan@codesourcery.com>
1537
1538 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
1539 to emit .debug_line and other debug sections.
1540 * as.h (seg_not_empty_p): Declare.
1541 * subsegs.c (seg_not_empty_p): New predicate.
1542
1543 2005-01-27 Andrew Cagney <cagney@gnu.org>
1544
1545 * configure: Regenerate to track ../gettext.m4 change.
1546
1547 2005-01-27 Jan Beulich <jbeulich@novell.com>
1548
1549 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
1550
1551 2005-01-27 Jan Beulich <jbeulich@novell.com>
1552
1553 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
1554 to/from application registers dynamic insns.
1555 (md_assemble): Defer resolution of move to/from application registers
1556 dynamic insns when they can be issued on either the I- or M-units.
1557
1558 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
1559
1560 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
1561 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
1562 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
1563 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
1564 * cgen.c (gas_cgen_parse_operand): Handle
1565 CGEN_PARSE_OPERAND_SYMBOLIC.
1566 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
1567 (frv_force_relocation): Likewise. Fix handling of PIC
1568 relocations.
1569 (md_apply_fix3): Likewise.
1570
1571 2005-01-21 Ben Elliston <bje@au.ibm.com>
1572
1573 * as.h: Remove #if 0'd code.
1574 * atof-generic.c (atof_generic): Likewise.
1575 * ecoff.c (ecoff_directive_frame): Likewise.
1576 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
1577 * itbl-ops.c (itbl_add_reg): Likewise.
1578 * listing.c (calc_hex): Likewise.
1579 * read.c (MASK_CHAR): Likewise.
1580 * subsegs.c (subsegs_print_statistics): Likewise.
1581 * symbols.c (indent): Likewise.
1582 * write.c (write_relocs): Likewise.
1583 (write_object_file): Likewise.
1584 (relax_frag): Likewise.
1585
1586 2005-01-20 Nick Clifton <nickc@redhat.com>
1587
1588 * as.c (std_longopts): Add an entry for "--a" in order to prevent
1589 getopt_long_only() from considering -a as an abbreviation for
1590 --alternate.
1591 (parse_args): Fix the parsing of -a=<file>.
1592
1593 2005-01-20 Alan Modra <amodra@bigpond.net.au>
1594
1595 PR gas/684
1596 * read.c (s_incbin): Adjust default count for skip. Check validity
1597 of count and skip rigorously.
1598
1599 2005-01-19 Fred Fish <fnf@specifixinc.com>
1600
1601 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
1602
1603 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1604
1605 * read.c (convert_to_bignum): New function, split out from...
1606 (emit_expr): ...here. Handle the case where X_add_number is
1607 positive and the input value is negative.
1608 (output_big_sleb128): Fix setting of continuation bit. Check whether
1609 the final byte needs to be sign-extended. Fix size-shrinking loop.
1610 (emit_leb128_expr): When generating a signed leb128, see whether the
1611 sign of an O_constant's X_add_number matches the sign of the input
1612 value. Use a bignum if not.
1613
1614 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
1615
1616 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
1617 arch_sh_up in order to match the external name and make the
1618 testsuite's job easier.
1619
1620 2005-01-14 H.J. Lu <hongjiu.lu@intel.com>
1621
1622 PR 659
1623 * config/tc-i386.c (i386_scale): Disallow 0 scale.
1624
1625 2005-01-12 Nick Clifton <nickc@redhat.com>
1626
1627 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
1628 ignored_arguments array.
1629
1630 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
1631
1632 * write.c (write_object_file): Disallow a symbol equated to
1633 common symbol.
1634
1635 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
1636
1637 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
1638 bfd_mach_maxq20.
1639 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
1640 (maxq_target): New function: Set the machine type.
1641
1642 2005-01-06 Paul Brook <paul@codesourcery.com>
1643
1644 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
1645 (md_begin): Handle TE_VXWORKS for FP defaults.
1646 (md_apply_fix3): Correct rela offsets.
1647 (elf32_arm_target_format): Add VxWorks targets.
1648
1649 2005-01-06 Paul Brook <paul@codesourcery.com>
1650
1651 * configure.tgt: Set em=vxworks for *-*-vxworks.
1652 * config/te-vxworks.h: New File.
1653
1654 2005-01-06 Paul Brook <paul@codesourcery.com>
1655
1656 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
1657
1658 2005-01-04 Dmitry Diky <diwil@spec.ru>
1659
1660 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
1661 global label.
1662
1663 2005-01-03 David Mosberger <davidm@hpl.hp.com>
1664
1665 * config/tc-ia64.c (md): Add member "loc_directive_seen".
1666 (dot_loc): New function.
1667 (md_pseudo_table): Add entry to map .loc to dot_loc().
1668 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
1669 seen a .loc directive or we're generating DWARF2 debug info for
1670 assembly source.
1671
1672 2004-12-29 Alan Modra <amodra@bigpond.net.au>
1673
1674 PR gas/619
1675 * read.c (s_comm_internal): Don't zero end of name until size
1676 expression has been parsed.
1677
1678 2004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1679
1680 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
1681
1682 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
1683
1684 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
1685 case).
1686
1687 2004-12-22 Ian Lance Taylor <ian@airs.com>
1688
1689 * configure.tgt: New.
1690 * configure.in: Move setting of cpu_type, fmt, etc., to
1691 configure.tgt.
1692 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
1693 $(srcdir)/configure.tgt.
1694 * configure, Makefile.in: Rebuild.
1695
1696 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
1697
1698 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
1699 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
1700 instructions.
1701 (avr_offset_expression): New function to parse offsets for LDI
1702 instructions.
1703 (avr_operand): Use it.
1704 (md_apply_fix3): Generate the relocs.
1705
1706 2004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
1707
1708 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
1709 BFD_RELOC_SH_IMMS10BY8 relocation.
1710
1711 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
1712 than just ignoring bad code.
1713
1714 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
1715
1716 * config/tc-v850.c (handle_lo16): New function.
1717 (v850_reloc_prefix): Use it to check lo().
1718 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
1719
1720 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1721
1722 * configure.in: Add s390x-ibm-tpf support.
1723 * configure: Regenerate.
1724
1725 2004-12-15 Jan Beulich <jbeulich@novell.com>
1726
1727 * config/obj-elf.c (obj_elf_change_section): Only set type and
1728 attributes on new sections. Emit warning when type of re-declared
1729 section doesn't match.
1730
1731 2004-12-15 Jan Beulich <jbeulich@novell.com>
1732
1733 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
1734 '.cfi_startproc simple' doesn't inherit the old value.
1735
1736 2004-12-15 Jan Beulich <jbeulich@novell.com>
1737
1738 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
1739 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
1740 generation to emit a factored offset.
1741
1742 2004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
1743
1744 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
1745 which is too large in the case of NO_PIC without 64-bit
1746 addresses.
1747
1748 * config/tc-mips.c (mips_in_shared): New static variable.
1749 (macro_build_lui): Permit "_gp" if !mips_in_shared.
1750 (md_longopts): Add -mshared and -mno-shared.
1751 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
1752 (s_cpload): Implement !mips_in_shared case.
1753 (s_cpsetup): Likewise.
1754 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
1755 * NEWS: Mention -mno-shared.
1756
1757 2004-12-09 Paul Brook <paul@codesourcery.com>
1758
1759 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
1760 for function start.
1761
1762 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
1763
1764 * config/tc-mips.c (append_insn): If we emit a nop during a relax
1765 sequence, increase the size of the sequence.
1766
1767 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
1768 use CPU_RM9000.
1769
1770 2004-12-07 Ben Elliston <bje@gnu.org>
1771
1772 * read.c (s_align): Use an align_limit temporary to allay a GCC
1773 signed/unsigned comparison warning.
1774
1775 2004-12-01 Mark Mitchell <mark@codesourcery.com>
1776
1777 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
1778 * configure.in: Use it for arm*-*-linux-gnueabi*.
1779 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
1780 * config/te-armlinuxeabi.h: New file.
1781 * Makefile.in: Regenerated.
1782 * aclocal.m4: Likewise.
1783 * configure: Likewise.
1784 * doc/Makefile.in: Regenerated.
1785
1786 2004-12-02 Bob Wilson <bob.wilson@acm.org>
1787
1788 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
1789 (xtensa_restore_emit_state): Likewise.
1790
1791 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1792
1793 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
1794 (s_align): Use it.
1795
1796 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1797
1798 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1799 * Makefile.in: Regenerate.
1800
1801 2004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
1802
1803 * config/tc-crx.c: Major code cleanup. Remove unused variables and
1804 functions, give functions a meaningful name, add comments.
1805 (check_range): New function - Replace operand size calculation
1806 with range checking.
1807 (assemble_insn): Update Algorithm, improve error issuing.
1808 (enum op_err): New.
1809 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
1810 handling.
1811
1812 2004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1813
1814 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
1815 miss between different section in the same module.
1816 (tc_gen_reloc): Likewise.
1817
1818 2004-11-25 Theodore A. Roth <troth@openavr.org>
1819
1820 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
1821 atmega325, atmega3250, atmega645 and atmega6450.
1822
1823 2004-11-25 Jan Beulich <jbeulich@novell.com>
1824
1825 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
1826 permissible for the selected instruction suffix.
1827 (process_suffix): For DefaultSize instructions, suppressing the
1828 guessing of a 'q' suffix if the instruction doesn't support it is
1829 pointless, because only an 'l' suffix can be guessed in this place.
1830
1831 2004-11-24 Nick Clifton <nickc@redhat.com>
1832
1833 * config/tc-iq2000.c: Remove support for IQ10 processor.
1834 Convert to ISO C90 formatting.
1835 * config/tc-iq2000.h: Likewise.
1836
1837 2004-11-23 Nick Clifton <nickc@redhat.com>
1838
1839 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
1840 in this table. They should be correct now.
1841
1842 2004-11-23 Jan Beulich <jbeulich@novell.com>
1843
1844 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
1845 indicate the MMX extensions added by both SSE and 3DNow!A.
1846 (Cpu3dnowA): Declare.
1847 (CpuUnknownFlags): Update.
1848 * config/tc-i386.c (cpu_sub_arch_name): Declare.
1849 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
1850 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
1851 3DNow!. Athlon additionally implies 3DNow!A. Several new
1852 entries (those starting with a dot are for sub-arch specification).
1853 (set_cpu_arch): Handle sub-arch specifications.
1854 (parse_insn): Distinguish between instructions not supported because
1855 of insufficient CPU features and because of 64-bit mode.
1856 * doc/c-i386.texi: Describe enhanced .arch directive.
1857
1858 2004-11-22 Bob Wilson <bob.wilson@acm.org>
1859
1860 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
1861
1862 2004-11-22 Bob Wilson <bob.wilson@acm.org>
1863
1864 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
1865 without a corresponding .debug_info section.
1866
1867 2004-11-22 Hans-Peter Nilsson <hp@axis.com>
1868
1869 * read.c (potable): Add "error" and "warning".
1870 (s_errwarn): New function.
1871 * read.h (s_errwarn): Declare.
1872 * doc/as.texinfo (Error, Warning): Document .error and .warning.
1873
1874 2004-11-22 Nick Clifton <nickc@redhat.com>
1875
1876 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
1877 c_dot_file_symbol.
1878
1879 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1880
1881 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
1882 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
1883
1884 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1885
1886 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
1887 (coff_adjust_symtab): Adjust call.
1888 (crawl_symbols): Likewise.
1889 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
1890 (obj_app_file): Adjust.
1891
1892 2004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1893
1894 * configure.in: Enable bfd_assember for the MAXQ port.
1895 * configure: Regenerate.
1896
1897 2004-11-12 Bob Wilson <bob.wilson@acm.org>
1898 Sterling Augustine <sterling@tensilica.com>
1899
1900 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
1901 there is a conflict.
1902 (check_t1_t2_reads_and_writes): Check for both reads and writes to
1903 interfaces that are related as determined by xtensa_interface_class_id.
1904
1905 2004-11-12 Nick Clifton <nickc@redhat.com>
1906
1907 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
1908 offsets for conditional branches.
1909
1910 2004-11-11 Bob Wilson <bob.wilson@acm.org>
1911
1912 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
1913
1914 2004-11-10 Bob Wilson <bob.wilson@acm.org>
1915
1916 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
1917 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
1918 MAYBE_UNREACHABLE.
1919 (relax_frag_immed): Update call to update_next_frag_state.
1920
1921 2004-11-10 Alan Modra <amodra@bigpond.net.au>
1922
1923 * obj.h (struct format_ops <app_file>): Add int param.
1924 * read.h (s_app_file_string): Likewise.
1925 * read.c (s_app_file_string): Likewise.
1926 (s_app_file): Adjust s_app_file_string call.
1927 * config/tc-mips.c (s_mips_file): Likewise.
1928 * config/obj-coff.h (obj_app_file): Add app param.
1929 * config/obj-ecoff.h (obj_app_file): Likewise.
1930 * config/obj-multi.h (obj_app_file): Likewise.
1931 * config/obj-elf.h (elf_file_symbol): Likewise.
1932 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
1933 if called for # preprocessor lines.
1934
1935 2004-11-08 H.J. Lu <hongjiu.lu@intel.com>
1936
1937 PR 528
1938 * symbols.c (resolve_symbol_value): Convert weak symbols only
1939 for Windows PECOFF.
1940 (symbol_equated_reloc_p): Don't equate weaks when relocating
1941 only for Windows PECOFF.
1942
1943 2004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
1944
1945 * config/tc-crx.c (print_insn): Check and set insn_addr.
1946 * config/tc-crx.h (md_frag_check): Define.
1947
1948 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1949 Vineet Sharma <vineets@noida.hcltech.com>
1950
1951 * configure.in: Add support for new target maxq-coff.
1952 * configure: Regenerate.
1953 * NEWS: Mention new support.
1954 * config/tc-maxq.c: New file.
1955 * config/tc-maxq.h: New file.
1956 * config/obj-coff.h: Add support for maxq-coff.
1957
1958 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1959
1960 * symbols.c (any_external_name): Define.
1961 (resolve_symbol_value): Convert weak symbols.
1962 (S_SET_EXTERNAL): Support any_external_name.
1963 (S_SET_NAME): Qualify parameter const.
1964 (symbol_equated_reloc_p): Equate to weaks when relocating.
1965 * symbols.h (S_SET_NAME): Qualfiy parameter const.
1966 * tc.h (any_external_name): Declare.
1967 * config/obj-coff.c ("coff/pe.h"): Include for BFD
1968 assemblers also.
1969 (weak_is_altname): Declare and define.
1970 (weak_name2altname): Same.
1971 (weak_altname2name): Same.
1972 (weak_uniquify): Same.
1973 (weak_altprefix): Define.
1974 (obj_coff_weak): Change .weak syntax and handling.
1975 (coff_frob_symbol): Fix PE weak symbol alternates.
1976 * config/obj-coff.h (USE_UNIQUE): Define.
1977 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
1978 are in another segment.
1979 (tc_gen_reloc): Remove broken addend hack.
1980 doc/as.texinfo: Update.
1981
1982 2004-11-05 Sterling Augustine <sterling@tensilica.com>
1983
1984 * config/tc-xtensa.c (total_frag_text_expansion): New.
1985 (md_estimate_size_before_relax): Use it.
1986 (find_address_of_next_align_frag): Likewise.
1987
1988 2004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
1989
1990 * config/tc-crx.c: Rename argument types.
1991 (processing_arg_number): Rename to 'cur_arg_num'.
1992 (get_number_of_bits): Rename to 'set_operand_size'.
1993 (get_operandtype): Rename to 'parse_operand', totally rewrite.
1994 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
1995 (set_indexmode_parameters): Remove function, integrate its code into
1996 'set_operand'.
1997 (set_operand_size): Get rid of 'Operand Number' function parameter -
1998 use global variable 'cur_arg_num' instead.
1999 Use a local 'argument' pointer to reference the current argument.
2000 (parse_operand): Likewise.
2001 (set_operand): Likewise.
2002 (process_label_constant): Likewise.
2003
2004 2004-11-04 Bob Wilson <bob.wilson@acm.org>
2005
2006 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
2007 (add_section_rename): Delete. Inlined into...
2008 (build_section_rename): ...here. Use xstrdup instead of strdup.
2009 (xtensa_section_rename): Drop "const" from argument and return types.
2010 (md_show_usage): Indent to match show_usage().
2011 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
2012 (tc_canonicalize_section_name): Define.
2013 (md_elf_section_rename): Remove unused macro.
2014 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
2015 * doc/c-xtensa.texi (Xtensa Options): Likewise.
2016 (Frame Directive): Delete.
2017
2018 2004-11-04 Daniel Jacobowitz <dan@debian.org>
2019
2020 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
2021 * config/tc-arm.c (target_oabi): Delete.
2022 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
2023 (arm_opts): Remove moabi.
2024 * doc/as.texinfo (Overview): Remove documentation of -moabi.
2025 * doc/c-arm.texi (ARM Options): Likewise.
2026 * configure: Regenerated.
2027
2028 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
2029
2030 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
2031 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
2032 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
2033 * configure: Regenerate.
2034 * config/tc-cris.c (enum cris_archs): New.
2035 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
2036 (cris_insn_ver_valid_for_arch): New functions.
2037 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
2038 (cris_arch): New variable.
2039 (md_pseudo_table): New pseudo .arch.
2040 (err_for_dangerous_mul_placement): Initialize according to
2041 DEFAULT_CRIS_ARCH.
2042 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
2043 All users changed.
2044 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
2045 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
2046 (BRANCH_WF_V32, BRANCH_WB_V32): New.
2047 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
2048 use in md_cris_relax_table.
2049 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
2050 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
2051 Update and improve head comment.
2052 (OPTION_PIC): Define in terms of previous option, OPTION_US.
2053 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
2054 (OPTION_ARCH): New.
2055 (md_longopts): New option --march=...
2056 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
2057 macros.
2058 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
2059 (HANDLE_RELAXABLE): New macro.
2060 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
2061 cases. Check for weak symbols and assume not relaxable. Handle
2062 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
2063 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
2064 fragP->fr_symbol.
2065 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
2066 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
2067 (cris_create_short_jump): Adjust for CRISv32.
2068 (cris_relax_frag): Handle new states.
2069 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
2070 (md_begin): Define symbols "..asm.arch.cris.v32",
2071 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
2072 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
2073 when entering opcode table entry points.
2074 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
2075 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
2076 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
2077 (cris_process_instruction): Initialize out_insnp->insn_type to
2078 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
2079 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
2080 cases.
2081 <case 'm'>: Check that modified_char == '.'.
2082 <invalid operands>: Consume the rest of the line.
2083 When operands don't match, skip over subsequent insns with
2084 non-matching version specifier but same mnemonic.
2085 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
2086 special registers in CRISv32 are always 32 bit long.
2087 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
2088 New cases.
2089 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
2090 and compatible. Recognize "ACR" for v32, unless followed by "+".
2091 (get_spec_reg): Consider cris_arch when looking up register.
2092 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
2093 v32 or compatible.
2094 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
2095 (cris_get_expression): Restore input_line_pointer if failing "early".
2096 (get_flags): Consider cris_arch and recognize flags accordingly.
2097 (branch_disp): Adjust for CRISv32.
2098 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
2099 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
2100 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
2101 resolved. Don't enter zeros in object file for
2102 BFD_RELOC_32_PCREL.
2103 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
2104 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
2105 (md_parse_option): Break out "return 1".
2106 <OPTION_ARCH> New case.
2107 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
2108 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
2109 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
2110 <case BFD_RELOC_32_PCREL>: New cases.
2111 Addends for non-zero fx_pcrel are too in fx_offset.
2112 (md_show_usage): Show --march=<arch>.
2113 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
2114 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
2115 (s_syntax) <struct syntaxes>: Properly constify member operand.
2116 * config/tc-cris.h (TARGET_MACH): Define.
2117 (cris_mach): Declare.
2118 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
2119 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
2120 (CRIS-Opts): Document --march=...
2121 (CRIS-Pseudos): Document .arch.
2122
2123 2004-11-04 Jan Beulich <jbeulich@novell.com>
2124
2125 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
2126 intel syntax and no register prefix, allow $ in symbol names when
2127 intel syntax.
2128 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
2129 (intel_float_operand): Add fourth return value indicating math control
2130 operations. Make classification more precise.
2131 (md_assemble): Complain if memory operand of mov[sz]x has no size
2132 specified.
2133 (parse_insn): Translate word operands to floating point instructions
2134 operating on integers as well as control instructions to short ones
2135 as expected by AT&T syntax. Translate 'd' suffix to short one only for
2136 floating point instructions operating on non-integer operands.
2137 (match_template): Remove fldcw special case. Adjust q-suffix handling
2138 to permit it on fild/fistp/fisttp in AT&T mode.
2139 (process_suffix): Don't guess DefaultSize insns' suffix from
2140 stackop_size for certain floating point control instructions. Guess
2141 suffix for branch and [ls][gi]dt based on flag_code. Split error
2142 messages for Intel and AT&T syntax, and make the condition more strict
2143 for the former. Adjust suppressing of generation of operand size
2144 overrides.
2145 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
2146 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
2147 more error checking.
2148 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
2149 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
2150
2151 2004-11-03 Hans-Peter Nilsson <hp@axis.com>
2152
2153 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
2154 md_short_jump_size, md_long_jump_size.
2155 * write.c [!WORKING_DOT_WORD]: Ditto.
2156 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
2157 qualifier.
2158 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
2159 declare.
2160 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
2161 const qualifier in these definitions.
2162 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
2163 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
2164
2165 2004-11-02 Nick Clifton <nickc@redhat.com>
2166
2167 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
2168 table before deciding to produce a .debug_line section to match up
2169 with a user provided .debug_info section.
2170
2171 2004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
2172
2173 * config/tc-crx.c (getreg_image): Bug fix, a return value was
2174 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
2175
2176 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
2177
2178 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
2179 (get_flags): New function.
2180 (get_number_of_bits): Edit comments, update numeric values to
2181 supported sizes.
2182 (process_label_constant): Don't support the colon
2183 format (SYMBOL:[s|m|l]).
2184 (set_cons_rparams): Support argument type 'arg_rbase'.
2185 (get_operandtype): Bug fix in 'rbase' operand type parsing.
2186 (handle_LoadStor): Bug fix, first handle post-increment mode.
2187 (getreg_image): Remove redundant code, update according to latest
2188 CRX spec.
2189 (print_constant): Bug fix relate to 3-word instructions.
2190 (assemble_insn): Bug fix, when matching instructions, verify also
2191 instruction type (not only mnemonic).
2192 Add various error checking.
2193 (preprocess_reglist): Support HI/LO and user registers.
2194
2195 2004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
2196
2197 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
2198 in an epilogue directive go negative.
2199
2200 2004-10-25 H.J. Lu <hongjiu.lu@intel.com>
2201
2202 PR 474
2203 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
2204 after reporting template error during manual bundling. Reported
2205 by Michael Dupont, michaelx.dupont@intel.com.
2206
2207 2004-10-25 Daniel Jacobowitz <dan@debian.org>
2208
2209 * Makefile.am: Run dep-am.
2210 * aclocal.m4: Regenerate with automake 1.9.2.
2211 * Makefile.in: Regenerate with automake 1.9.2.
2212 * doc/Makefile.in: Likewise.
2213
2214 * config/tc-arm.c: Include "dw2gencfi.h".
2215 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
2216 New functions.
2217 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
2218 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
2219 (tc_cfi_frame_initial_instructions): Define.
2220 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
2221 Add prototypes.
2222
2223 2004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
2224
2225 * config/tc-crx.c (assemble_insn): Check unsigned immediate
2226 operands validity.
2227 Update coprocessor id to be unsigned immediate.
2228
2229 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2230
2231 * config/tc-i386.c (O_secrel): Delete.
2232 (tc_pe_dwarf2_emit_offset): New function.
2233 * config/tc-i386.h (O_secrel): Define as O_md1.
2234 (TC_DWARF2_EMIT_OFFSET): Define.
2235
2236 2004-10-18 Nick Clifton <nickc@redhat.com>
2237
2238 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
2239 ignore @fptr() directives for 4-byte fixups.
2240
2241 2004-10-15 Alan Modra <amodra@bigpond.net.au>
2242
2243 * Makefile.am: Run "make dep-am"
2244 * Makefile.in: Regenerate.
2245
2246 2004-10-14 Bob Wilson <bob.wilson@acm.org>
2247
2248 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
2249 Remove comments about placement of literal pools.
2250 (Literal Directive): Update description of literal placement.
2251 (Literal Prefix Directive): Remove statement that this does not apply
2252 to absolute-mode literals. Describe new section naming scheme.
2253
2254 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2255
2256 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
2257 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
2258 is_windowed_return_opcode): Delete.
2259 (xtensa_frob_label): Use get_subseg_target_freq.
2260 (md_assemble): Inline call to is_entry_opcode.
2261 (xtensa_handle_align): Inline call to get_frag_is_literal.
2262 (relaxation_requirements): Inline call to is_jx_opcode.
2263 (emit_single_op): Inline call to is_movi_opcode.
2264 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
2265 get_frag_is_no_transform, is_entry_opcode, and
2266 set_frag_is_specific_opcode. Use get_subseg_total_freq.
2267 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
2268 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
2269 Inline calls to get_frag_is_no_transform.
2270 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
2271 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
2272 get_frag_is_no_transform.
2273 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
2274 and set_frag_is_no_transform.
2275 (get_expression_value): Delete.
2276 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
2277 cur_target_freq to target_freq.
2278 (get_subseg_info): Split out code to create a new map entry into ...
2279 (add_subseg_info): ... this new function.
2280 (get_last_insn_flags): Check if get_subseg_info succeeded.
2281 (set_last_insn_flags): Call add_subseg_info if needed.
2282 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
2283 (xtensa_reorder_segments): Compute last_sec while counting sections.
2284 Remove call to get_last_sec.
2285 (get_last_sec): Delete.
2286 (cache_literal_section): Inline call to retrieve_literal_seg and its
2287 callees, seg_present and add_seg_list.
2288 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
2289 (get_frag_is_insn, get_frag_is_no_transform,
2290 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
2291 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
2292
2293 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2294
2295 * config/tc-xtensa.c: Use ISO C90 formatting.
2296 * config/tc-xtensa.h: Likewise.
2297 * config/xtensa-istack.h: Likewise.
2298 * config/xtensa-relax.c: Likewise.
2299 * config/xtensa-relax.h: Likewise.
2300
2301 2004-10-12 Paul Brook <paul@codesourcery.com>
2302
2303 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
2304 EF_ARM_EABI_VER4.
2305 (arm_eabis): Ditto.
2306 * doc/c-arm.texi: Document that we actually support -meabi=4, not
2307 -meabi=3.
2308
2309 2004-10-08 Bob Wilson <bob.wilson@acm.org>
2310
2311 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
2312 entries.
2313 (Acknowledgements): Use "GAS" instead of AS variable.
2314
2315 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2316
2317 * config/tc-i386.c: Include "elf/x86-64.h".
2318 (i386_elf_section_type): New function.
2319 * config/tc-i386.h (md_elf_section_type): Define.
2320 (i386_elf_section_type): New prototype.
2321
2322 2004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
2323
2324 * config/m68k-parse.h (enum m68k_register): New control register,
2325 MBAR2 (for MCF5249)
2326 * config/tc-m68k.c: Correct control register set for MCF5249.
2327
2328 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2329 Sterling Augustine <sterling@tensilica.com>
2330
2331 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
2332 (UNREACHABLE_MAX_WIDTH): Define.
2333 (XTENSA_FETCH_WIDTH): Delete.
2334 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
2335 prefer_const16, prefer_l32r): New global variables.
2336 (LIT4_SECTION_NAME): Define.
2337 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
2338 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
2339 (frag_flags struct): New.
2340 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
2341 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
2342 (bitfield, bit_is_set, set_bit, clear_bit): Define.
2343 (MAX_FORMATS): Define.
2344 (op_placement_info struct, op_placement_table): New.
2345 (O_pltrel, O_hi16, O_lo16): Define.
2346 (directiveE enum): Rename directive_generics to directive_transform.
2347 Delete directive_relax. Add directive_schedule,
2348 directive_absolute_literals, and directive_last_directive.
2349 (directive_info): Rename "generics" to "transform". Delete "relax".
2350 Add "schedule" and "absolute-literals".
2351 (directive_state): Adjust entries to match changes in directive_info.
2352 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
2353 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
2354 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
2355 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
2356 (align_only_targets, software_a0_b_retw_interlock,
2357 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
2358 software_avoid_short_loop, software_avoid_close_loop_end,
2359 software_avoid_all_short_loops, specific_opcode): Delete.
2360 (warn_unaligned_branch_targets): New.
2361 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
2362 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
2363 (option_[no_]link_relax, option_[no_]transform,
2364 option_[no_]absolute_literals, option_warn_unaligned_targets,
2365 option_prefer_l32r, option_prefer_const16, option_target_hardware):
2366 New enum values.
2367 (option_[no_]align_only_targets, option_literal_section_name,
2368 option_text_section_name, option_data_section_name,
2369 option_bss_section_name, option_eb, option_el): Delete.
2370 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
2371 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
2372 and target-hardware. Delete entries for [no-]target-align-only,
2373 literal-section-name, text-section-name, data-section-name, and
2374 bss-section-name.
2375 (md_parse_option): Handle new options and remove old ones. Accept but
2376 ignore [no-]density options. Warn for [no-]generics and [no-]relax
2377 and treat them as [no-]transform.
2378 (md_show_usage): Add new options and remove old ones.
2379 (xtensa_setup_hw_workarounds): New.
2380 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
2381 "long", "short", "loc" and "frequency" entries.
2382 (use_generics): Rename to ...
2383 (use_transform): ... this function. Add past_xtensa_end check.
2384 (use_longcalls): Add past_xtensa_end check.
2385 (code_density_available, can_relax): Delete.
2386 (do_align_targets): New.
2387 (get_directive): Accept dashes in directive names. Warn about
2388 [no-]generics and [no-]relax directives and treat them as
2389 [no-]transform.
2390 (xtensa_begin_directive): Call md_flush_pending_output only for some
2391 directives. Check for directives inside instruction bundles. Warn
2392 about deprecated ".begin literal" usage. Warn and ignore [no-]density
2393 directives. Handle new directives. Check generating_literals flag
2394 for literal_prefix.
2395 (xtensa_end_directive): Check for directives inside instruction
2396 bundles. Warn and ignore [no-]density directives. Handle new
2397 directives. Call xtensa_set_frag_assembly_state.
2398 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
2399 xtensa_dwarf2_emit_insn): New.
2400 (xtensa_literal_position): Call md_flush_pending_output. Do not check
2401 use_literal_section flag.
2402 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
2403 literals. Use xtensa_elf_cons to parse the expression.
2404 (xtensa_literal_prefix): Do not check use_literal_section. Support
2405 ".lit4" sections for absolute literals. Change prefix convention to
2406 replace ".text" (or ".t" in a linkonce section). No need to call
2407 subseg_set.
2408 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
2409 (expression_end): Handle closing braces and colons.
2410 (PLT_SUFFIX, plt_suffix): Delete.
2411 (expression_maybe_register): Use new xtensa-isa.h functions. Use
2412 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
2413 and O_hi16 expressions as well.
2414 (tokenize_arguments): Handle closing braces and colons.
2415 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
2416 operands and paired register syntax.
2417 (get_invisible_operands): New.
2418 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
2419 new xtensa-isa.h functions.
2420 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
2421 (xg_translate_idioms): Check if inside bundle. Use use_transform.
2422 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
2423 instructions. Use xtensa_translate_zero_immed.
2424 (operand_is_immed, operand_is_pcrel_label): Delete.
2425 (get_relaxable_immed): Use new xtensa-isa.h functions.
2426 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
2427 functions.
2428 (xtensa_print_insn_table, print_vliw_insn): New.
2429 (is_direct_call_opcode): Use new xtensa-isa.h functions.
2430 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
2431 is_branch_or_jump_opcode): Delete.
2432 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
2433 (opnum_to_reloc, reloc_to_opnum): Delete.
2434 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
2435 xtensa-isa.h functions. Operate on one slot of an instruction.
2436 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
2437 xg_get_insn_size): Delete.
2438 (xg_get_build_instr_size): Use xg_get_single_size.
2439 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
2440 xg_build_widen_table. Use xg_get_single_size.
2441 (xg_get_max_narrow_insn_size): Delete.
2442 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
2443 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
2444 xg_get_single_size.
2445 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
2446 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
2447 (xg_expand_to_stack, xg_expand_narrow): Update calls to
2448 xg_build_widen_table. Use xg_get_single_size.
2449 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
2450 xg_check_operand.
2451 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
2452 treat weak symbols conservatively.
2453 (xg_check_operand): Use new xtensa-isa.h functions.
2454 (is_dnrange): Delete.
2455 (xg_assembly_relax): Inline previous calls to tinsn_copy.
2456 (xg_finish_frag): Specify separate relax states for the frag and slot0.
2457 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
2458 xtensa-isa.h functions.
2459 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
2460 xg_instruction_matches_options): New.
2461 (xg_instruction_matches_rule): Handle O_register expressions. Call
2462 xg_instruction_matches_options.
2463 (transition_rule_cmp): New.
2464 (xg_instruction_match): Update call to xg_build_simplify_table.
2465 (xg_build_token_insn): Record loc fields.
2466 (xg_simplify_insn): Check is_specific_opcode field and
2467 density_supported flag.
2468 (xg_expand_assembly_insn): Skip checking code_density_available. Use
2469 new xtensa-isa.h functions. Call use_transform instead of can_relax.
2470 (xg_assemble_literal): Add error handling for O_big. Call
2471 record_alignment. Handle O_pltrel.
2472 (xg_valid_literal_expression): New.
2473 (xg_assemble_literal_space): Add slot parameter. Remove call to
2474 set_expr_symbol_offset. Add call to record_alignment. Update call to
2475 xg_finish_frag.
2476 (xg_emit_insn): Delete.
2477 (xg_emit_insn_to_buf): Add format parameter. Update calls to
2478 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
2479 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
2480 and slot parameters. Handle new "alternate" relocations for absolute
2481 literals and CONST16 instructions. Check for bad uses of O_lo16 and
2482 O_hi16. Use new xtensa-isa.h functions.
2483 (xg_assemble_tokens): Delete.
2484 (is_register_writer): Use new xtensa-isa.h functions.
2485 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
2486 old-style RSR from LCOUNT.
2487 (next_frag_opcode): Delete.
2488 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
2489 update_next_frag_state): New.
2490 (update_next_frag_nop_state): Delete.
2491 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
2492 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
2493 the state of the absolute-literals directive. Add calls to
2494 record_alignment and xtensa_set_frag_assembly_state. Call
2495 xtensa_switch_to_non_abs_literal_fragment instead of
2496 xtensa_switch_to_literal_fragment.
2497 (build_nop): New.
2498 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
2499 (get_expanded_loop_offset): Change check for undefined opcode to an
2500 assertion.
2501 (xtensa_set_frag_assembly_state, relaxable_section,
2502 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
2503 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
2504 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
2505 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
2506 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
2507 (xtensa_init_fix_data): New.
2508 (xtensa_frob_label): Reset label symbol to the current frag. Check
2509 do_align_targets and generating_literals flag. Propagate frequency
2510 info to new alignment frag. Call xtensa_set_frag_assembly_state.
2511 (xtensa_unrecognized_line): New.
2512 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
2513 to xtensa_set_frag_assembly_state.
2514 (error_reset_cur_vinsn): New.
2515 (md_assemble): Remove check for literal frag. Remove call to
2516 istack_init. Call use_transform instead of use_generics. Parse
2517 explicit instruction format specifiers. Move code for
2518 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
2519 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
2520 Add dwarf2_where call. Remote automatic alignment for ENTRY
2521 instructions. Move call to xtensa_clear_insn_labels to the end.
2522 Rearrange to handle bundles.
2523 (xtensa_cons_fix_new): Delete.
2524 (xtensa_handle_align): New.
2525 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
2526 assignment to is_no_density field.
2527 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
2528 instead of reloc_to_opnum. Handle "alternate" relocations.
2529 (xtensa_force_relocation, xtensa_check_inside_bundle,
2530 xtensa_elf_section_change_hook): New.
2531 (xtensa_symbol_new_hook): Delete.
2532 (xtensa_fix_adjustable): Check for difference of symbols with an
2533 offset. Check for external and weak symbols.
2534 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
2535 (md_estimate_size_before_relax): Return expansion for the first slot.
2536 (tc_gen_reloc): Handle difference of symbols by producing
2537 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
2538 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
2539 tentative values into the output when linkrelax is set.
2540 (XTENSA_PROP_SEC_NAME): Define.
2541 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
2542 Create literal tables only if using literal sections. Create new
2543 property tables instead of old instruction tables. Check for unaligned
2544 branch targets and loops.
2545 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
2546 new_resource_table, clear_resource_table, resize_resource_table,
2547 resources_available, reserve_resources, release_resources,
2548 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
2549 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
2550 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
2551 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
2552 flag. Update checks for workaround options. Call
2553 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
2554 (xtensa_cleanup_align_frags): Add special case for branch targets.
2555 Check for and mark unreachable frags.
2556 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
2557 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
2558 end of a zero-overhead loop body.
2559 (frag_can_negate_branch): Handle instructions with multiple slots.
2560 Use new xtensa-isa.h functions
2561 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
2562 xtensa_mark_zcl_first_insns): New.
2563 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
2564 transformations are disabled.
2565 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
2566 multislot instructions.
2567 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
2568 Likewise. Also error if transformations are disabled.
2569 (unrelaxed_frag_max_size): New.
2570 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
2571 xtensa-isa.h functions.
2572 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
2573 xtensa_opcode_is_loop instead of is_loop_opcode.
2574 (get_text_align_power): Replace as_fatal with assertion.
2575 (get_text_align_fill_size): Iterate instead of using modulus when
2576 use_nops is false.
2577 (get_noop_aligned_address): Assert that this is for a machine-dependent
2578 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
2579 xg_get_single_size, and frag_format_size.
2580 (get_widen_aligned_address): Rename to ...
2581 (get_aligned_diff): ... this function. Add max_diff parameter.
2582 Remove handling of rs_align/rs_align_code frags. Use
2583 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
2584 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
2585 and pass it back to caller.
2586 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
2587 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
2588 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
2589 (relax_frag_text_align): Rename to ...
2590 (relax_frag_loop_align): ... this function. Assume loops can only be
2591 in the first slot of an instruction.
2592 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
2593 instruction. Remove call to frag_wane.
2594 (relax_frag_narrow): Rename to ...
2595 (relax_frag_for_align): ... this function. Extend to handle
2596 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
2597 RELAX_NARROW for the first slot.
2598 (find_address_of_next_align_frag, bytes_to_stretch): New.
2599 (future_alignment_required): Use find_address_of_next_align_frag and
2600 bytes_to_stretch. Look ahead to subsequent frags to make smarter
2601 alignment decisions.
2602 (relax_frag_immed): Add format, slot, and estimate_only parameters.
2603 Check if transformations are enabled for b_j_loop_end workaround.
2604 Use new xtensa-isa.h functions and handle multislot instructions.
2605 Update call to xg_assembly_relax.
2606 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
2607 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
2608 frag types.
2609 (convert_frag_narrow): Add segP, format and slot parameters. Call
2610 convert_frag_immed for branch instructions. Adjust calls to
2611 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
2612 xg_get_single_size and xg_get_single_format.
2613 (convert_frag_fill_nop): New.
2614 (convert_frag_immed): Add format and slot parameters. Handle multislot
2615 instructions and use new xtensa-isa.h functions. Update calls to
2616 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
2617 enabled for b_j_loop_end workaround. Use build_nop instead of
2618 assemble_nop. Check is_specific_opcode flag. Check for unreachable
2619 frags. Use xg_get_single_size. Handle O_pltrel.
2620 (fix_new_exp_in_seg): Remove check for old plt flag.
2621 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
2622 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
2623 for loop opcode to an assertion. Mark all frags up to the end of the
2624 loop as not transformable.
2625 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
2626 (get_subseg_info): New.
2627 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
2628 check for dest_seg.
2629 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
2630 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
2631 (xtensa_switch_to_non_abs_literal_fragment): New.
2632 (cache_literal_section): Add is_code parameter and pass it through to
2633 retrieve_literal_seg.
2634 (retrieve_literal_seg): Add is_code parameter and use it to set the
2635 flags on the literal section. Handle case where head parameter is 0.
2636 (get_frag_is_no_transform, set_frag_is_specific_opcode,
2637 set_frag_is_no_transform): New.
2638 (xtensa_create_property_segments): Add end_property_function parameter
2639 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
2640 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
2641 (xtensa_create_xproperty_segments, section_has_xproperty): New.
2642 (add_xt_block_frags): Add end_property_function parameter and call it
2643 if it is non-zero. Call xtensa_frag_flags_init.
2644 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
2645 get_frag_property_flags, frag_flags_to_number,
2646 xtensa_frag_flags_combinable, xt_block_aligned_size,
2647 xtensa_xt_block_combine, add_xt_prop_frags,
2648 init_op_placement_info_table, opcode_fits_format_slot,
2649 xg_get_single_size, xg_get_single_format): New.
2650 (istack_push): Inline call to tinsn_copy.
2651 (tinsn_copy): Delete.
2652 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
2653 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
2654 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
2655 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
2656 functions. Handle invisible operands.
2657 (tinsn_to_slotbuf): New.
2658 (tinsn_check_arguments): Use new xtensa-isa.h functions.
2659 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
2660 vinsn_from_chars, and xg_free_vinsn.
2661 (tinsn_from_insnbuf): New.
2662 (tinsn_immed_from_frag): Add slot parameter and handle multislot
2663 instructions. Handle symbol differences.
2664 (get_num_stack_text_bytes): Use xg_get_single_size.
2665 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
2666 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
2667 get_expr_register, set_expr_symbol_offset_diff): New.
2668 * config/tc-xtensa.h (MAX_SLOTS): Define.
2669 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
2670 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
2671 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
2672 RELAX_NONE types.
2673 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
2674 (xtensa_frag_type struct): Add is_assembly_state_set,
2675 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
2676 is_align, is_text_align, alignment, and is_first_loop_insn fields.
2677 Replace is_generics and is_relax fields by is_no_transform field.
2678 Delete is_text and is_longcalls fields. Change text_expansion and
2679 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
2680 per-slot information: literal_frags, slot_subtypes, slot_symbols,
2681 slot_sub_symbols, and slot_offsets. Add fr_prev field.
2682 (xtensa_fix_data struct): New.
2683 (xtensa_symfield_type struct): Delete plt field.
2684 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
2685 forward declaration here.
2686 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
2687 (XTENSA_SECTION_RENAME): Undefine.
2688 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
2689 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
2690 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
2691 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
2692 (unit_num_copies_func, opcode_num_units_func,
2693 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
2694 (resource_table struct): New.
2695 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
2696 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
2697 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
2698 (tinsn_copy): Delete prototype.
2699 (vliw_insn struct): New.
2700 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
2701 (widen_spec_list): Add option conditions for density and boolean
2702 instructions. Add expansions using CONST16 and conditions for using
2703 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
2704 predicted branches.
2705 (simplify_spec_list): Add option conditions for density instructions.
2706 Add entry for NOP instruction.
2707 (append_transition): Add cmp function pointer parameter and use it to
2708 insert the new entry in order.
2709 (operand_function_LOW16U, operand_function_HI16U): New.
2710 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
2711 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
2712 (enter_opname, split_string): Use xstrdup instead of strdup.
2713 (init_insn_pattern): Initialize new options field.
2714 (clear_req_or_option_list, clear_req_option_list,
2715 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
2716 New.
2717 (parse_insn_pattern): Parse option conditions.
2718 (transition_applies): New.
2719 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
2720 swapped last arguments in calls to append_constant_value_condition.
2721 Call clone_req_option_list. Add warning about invalid opcode.
2722 Handle LOW16U and HI16U function names.
2723 (build_transition_table): Add cmp parameter and use it in calls to
2724 append_transition. Use new xtensa-isa.h functions. Check
2725 transition_applies before adding entries.
2726 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
2727 pass it through to build_transition_table.
2728 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
2729 ReqOption, transition_cmp_fn): New types.
2730 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
2731 (transition_rule struct): Add options field.
2732 * doc/as.texinfo (Overview): Update Xtensa options.
2733 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
2734 --[no-]relax, and --[no-]generics options. Update descriptions of
2735 --text-section-literals and --[no-]longcalls. Add
2736 --[no-]absolute-literals and --[no-]transform.
2737 (Xtensa Syntax): Add description of syntax for FLIX instructions.
2738 Remove use of "generic" and "specific" terminology for opcodes.
2739 (Xtensa Registers): Generalize the syntax description to include
2740 user-defined register files.
2741 (Xtensa Automatic Alignment): Update.
2742 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
2743 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
2744 (Xtensa Directives): Remove confusing rules about precedence.
2745 (Density Directive, Relax Directive): Delete.
2746 (Schedule Directive): New.
2747 (Generics Directive): Rename to ...
2748 (Transform Directive): ... this node.
2749 (Literal Directive): Update for absolute literals. Missing
2750 literal_position directive is now an error.
2751 (Literal Position Directive): Update for absolute literals.
2752 (Freeregs Directive): Delete.
2753 (Absolute Literals Directive): New.
2754 (Frame Directive): Minor editing.
2755 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
2756 Update dependencies.
2757 * Makefile.in: Regenerate.
2758
2759 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
2760
2761 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
2762 to build the second and third fixups for a composite relocation.
2763 (macro_read_relocs): New function.
2764 (macro_build): Use it.
2765 (s_cpsetup): Pass all three composite relocation codes to macro_build.
2766 Simplify fragging code accordingly.
2767 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
2768 of the composite relocation. Set fx_tcbit in both fixups.
2769
2770 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
2771
2772 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
2773 (md_apply_fix3): Don't treat composite relocs as done.
2774
2775 2004-10-07 Jan Beulich <jbeulich@novell.com>
2776
2777 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
2778 prefix for symbol names generated from the LOCAL macro directive.
2779
2780 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
2781 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
2782
2783 2004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
2784
2785 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
2786 Special registers.
2787 (md_assemble): Add error checking for Co-Processor instructions.
2788 (get_cinv_parameters): Add 'b' option to invalidate the
2789 branch-target cache.
2790
2791 2004-10-05 Paul Brook <paul@codesourcery.com>
2792
2793 * config/tc-arm.c (unwind): New variable.
2794 (vfp_sp_encode_reg): New function.
2795 (vfp_sp_reg_required_here): Use it.
2796 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
2797 (vfp_parse_reg_list): New function.
2798 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
2799 s_arm_unwind_personality, s_arm_unwind_personalityindex,
2800 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
2801 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
2802 functions.
2803 (md_pseudo_table): Add them.
2804 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
2805 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
2806 (set_section, add_unwind_adjustsp, flush_pending_unwind,
2807 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
2808 require_hashconst, add_unwind_opcode): New functions.
2809 * doc/c-arm.texi: Document unwinding opcodes.
2810 * NEWS: Mention the new feature.
2811
2812 2004-10-04 Eric Christopher <echristo@redhat.com>
2813
2814 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
2815
2816 2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
2817
2818 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
2819 TLS relocations.
2820 * config/tc-s390.c (md_apply_fix3): Likewise.
2821 * config/tc-sparc.c (md_apply_fix3): Likewise.
2822
2823 2004-10-01 Paul Brook <paul@codesourcery.com>
2824
2825 * config/tc-arm.c (arm_elf_section_type): New function.
2826 (arm_elf_change_section): Set section link for exidx sections.
2827 * config/tc-arm.h (arm_elf_section_type): Add prototype.
2828 (md_elf_section_type): Define.
2829
2830 2004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
2831
2832 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
2833 instruction's offset.
2834
2835 2004-10-01 Adam Nemet <anemet@lnxw.com>
2836
2837 * (TARGET_FORMAT): Remove LynxOS COFF definition.
2838
2839 2004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
2840
2841 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
2842 asymbol *, instead use symbol_get_bfdsym.
2843
2844 2004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
2845
2846 * config/tc-m68k.c (select_control_regs): Add mcf5249.
2847
2848 2004-09-30 Paul Brook <paul@codesourcery.com>
2849
2850 * config/tc-arm.c (do_smi, do_nop): New functions.
2851 (insns): Add ARMv6ZK instructions.
2852 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
2853 (tc_gen_reloc): Ditto.
2854 (arm_cpus): Add mpcore and arm1176.
2855 (arm_archs): Add armv6{k,z,zk}.
2856 * doc/c-arm.texi: Document new cores and architectures.
2857
2858 2004-09-30 Nick Clifton <nickc@redhat.com>
2859
2860 * config/tc-arm.c: Use ISO C90 formatting.
2861
2862 2004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
2863
2864 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
2865 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
2866 REG_TYPE_MVDX is expected.
2867
2868 2004-09-29 Marc Bevand <m.bevand@gmail.com>
2869
2870 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
2871
2872 2004-09-21 James E Wilson <wilson@specifixinc.com>
2873
2874 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
2875 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
2876 output_spill_base, output_unat_psprel, output_lc_psprel,
2877 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
2878 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
2879 output_spill_psprel_p): Use it.
2880
2881 2004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
2882
2883 * config/tc-crx.c (handle_LoadStor): New function.
2884 Handle load/stor unique instructions before parsing.
2885
2886 2004-09-17 Paul Brook <paul@codesourcery.com>
2887
2888 * config/tc-arm.c (s_arm_rel31): New funciton.
2889 (md_pseudo_table): Add .rel31.
2890 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
2891 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
2892 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
2893 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
2894 (arm_parse_reloc): Add (target2).
2895
2896 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2897
2898 * Makefile.am: Run "make dep-am".
2899 * Makefile.in: Regenerate.
2900 * aclocal.m4: Regenerate.
2901 * configure: Regenerate.
2902 * doc/Makefile.in: Regenerate.
2903 * po/POTFILES.in: Regenerate.
2904 * po/gas.pot: Regenerate.
2905
2906 2004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
2907
2908 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
2909 [!LLONG_MAX]: Ditto.
2910
2911 2004-09-13 Paul Brook <paul@codesourcery.com>
2912
2913 * config/tc-arm.c: Rename RELABS to TARGET1.
2914
2915 2004-09-13 Alan Modra <amodra@bigpond.net.au>
2916
2917 * messages.c (as_internal_value_out_of_range): Cast values passed
2918 to as_bad_where or as_warn_where to proper type.
2919
2920 2004-09-11 Theodore A. Roth <troth@openavr.org>
2921
2922 * config/tc-avr.c: Add support for
2923 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
2924
2925 2004-09-09 Alan Modra <amodra@bigpond.net.au>
2926
2927 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
2928 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
2929
2930 2004-09-08 Paul Brook <paul@codesourcery.com>
2931
2932 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
2933 fini_array and preinit_array section types.
2934 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
2935 and fini_array.
2936 * doc/as.texinfo: Document extra section types.
2937
2938 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2939
2940 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
2941 * Makefile.in: Regenerated.
2942 * configure.in: Set em for arm*-*-symbianelf*.
2943 * configure: Regenerated.
2944 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
2945 vectors when appropriate.
2946 * config/te-symbian.h: New file.
2947
2948 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2949
2950 * config/tc-crx.c (gettrap): Exception vector can be case
2951 insensitive.
2952 (process_label_constant): Fix a 32-bit displacement bug in branch
2953 instructions.
2954 (get_operandtype) : Bug fix, wrong operand was used.
2955 (process_label_constant): Initialize relocation type to
2956 BFD_RELOC_NONE
2957
2958 2004-09-01 Richard Earnshaw < reanrsha@arm.com>
2959
2960 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
2961 for synthesizable cores.
2962
2963 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
2964
2965 2004-08-25 Dmitry Diky <diwil@spec.ru>
2966
2967 * config/tc-msp430.c: Clean-up the code.
2968 (md_relax_table): New relax table.
2969 (mcu_types): Sort MCU types.
2970 (md_pseudo_table): Add .profiler pseudo handler.
2971 (pow2value): New function.
2972 (msp430_profiler): New function.
2973 (msp430_operands): Add new insns handlers.
2974 (msp430_srcoperand): Add register operand handler, allow complex
2975 expressions.
2976 (md_estimate_size_before_relax): Rewritten.
2977 (md_convert_frag): Rewritten.
2978 (msp430_relax_frag): New function.
2979 * config/tc-msp430.h (md_relax_frag): define macro
2980 * doc/c-msp430.texi: Update information.
2981
2982 2004-08-24 Nick Clifton <nickc@redhat.com>
2983
2984 * as.c (std_shortopts): Allow -g to take an optional argument.
2985 (parse_args): Pass any switch starting with -g on to the backend
2986 for parsing.
2987
2988 2004-08-18 Mark Mitchell <mark@codesourcery.com>
2989
2990 * configure.in (arm*-*-symbianelf*): New target.
2991 (arm*-*-eabi*): Likewise.
2992 * configure: Regenerated.
2993
2994 2004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2995 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
2996 correctly.
2997
2998 2004-08-18 Jakub Jelinek <jakub@redhat.com>
2999
3000 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
3001 argument, don't do anything if current section is not
3002 .gnu.linkonce.t.* and linkonce_empty is set.
3003 (generate_unwind_image, dot_endp): Adjust callers, call
3004 start_unwind_section (*, 1) if nothing will be put into the
3005 section.
3006
3007 2004-08-17 Nick Clifton <nickc@redhat.com>
3008
3009 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
3010 (show_usage): Add -g.
3011 (std_longopts): Add --gen-debug. Alpha sort the table.
3012 (parse_args): Print an error message if a switch is not handled.
3013 Handle the -g switch, calling md_debug_format_selector() if
3014 necessary.
3015 * NEWS: Mention new feature.
3016 * doc/as.texinfo: Document new switch.
3017 * doc/internals.texi: Document behaviour of md_parse_option.
3018
3019 * config/tc-arm.c (md_parse_option): Do not issue an error message
3020 if the switch is not recognised.
3021 * config/tc-m68k.c (md_parse_option): Likewise.
3022 * config/tc-pdp11.c (md_parse_option): Likewise.
3023 * config/tc-v850.c (md_parse_option): Likewise.
3024
3025 * as.h: Fix up formatting.
3026 * tc.h: Likewise.
3027
3028 2004-08-16 Nick Clifton <nickc@redhat.com>
3029
3030 * macro.c (macro_set_alternate): Use ISO C90 formatting.
3031
3032 * configure.in: Sort architecture based tables alphabetically.
3033 * configure: Regenerate.
3034
3035 2004-08-16 Alan Modra <amodra@bigpond.net.au>
3036
3037 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
3038 { "cc", 68 }, with { "cr", 70 }.
3039
3040 2004-08-13 Jan Beulich <jbeulich@novell.com>
3041 Nick Clifton <nickc@redhat.com>
3042
3043 * as.c: Add and handle new --alternate command line option.
3044 * macro.c (macro_set_alternate): New.
3045 * macro.h (macro_set_alternate): Declare.
3046 * read.c: Add and handle new .altmacro and .noaltmacro directives.
3047 * doc/as.texinfo: Document new command line option and pseudo-ops
3048 as well as insert documentation originating from gasp about
3049 alternate macro syntax.
3050 * NEWS: Mention new command line option and pseudo-ops.
3051
3052 2004-08-10 Mark Mitchell <mark@codesourcery.com>
3053
3054 * expr.c (operand): Handle the "~", "-", and "!" operators applied
3055 to bignums.
3056
3057 2004-08-06 Paul Brook <paul@codesourcery.com>
3058
3059 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
3060 Handle new relocations.
3061 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
3062
3063 2004-08-05 Bob Wilson <bob.wilson@acm.org>
3064
3065 * write.c (relax_segment): Use was_address instead of address when
3066 setting fr_fix field for align frag due to backwards .org.
3067
3068 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
3069
3070 Introduce SH2a support.
3071 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
3072 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
3073 arch_sh2a_nofpu_up.
3074 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
3075 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
3076 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
3077 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
3078 to end of conditional expression.
3079 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
3080 * config/tc-sh.c: Add sh2a-nofpu support.
3081 2003-12-29 DJ Delorie <dj@redhat.com>
3082 * tc-sh.c: Add sh2a support.
3083 (parse_reg): Add tbr.
3084 (parse_at): Support @@(disp,tbr).
3085 (get_specific): Support sh2a opcodes.
3086 (insert4): New, for 4 byte relocs.
3087 (build_Mytes): Support sh2a opcodes.
3088 (md_apply_fix3_Mytes): Support sh2a opcodes.
3089 2003-12-02 Michael Snyder <msnyder@redhat.com>
3090 * config/tc-sh.c (md_parse_option): Handle sh2a.
3091 (sh_elf_final_processing): Ditto.
3092
3093 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
3094
3095 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
3096 for TE_NetBSD.
3097
3098 2004-07-27 Alan Modra <amodra@bigpond.net.au>
3099
3100 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
3101 (ppc_arch): Expand comment.
3102
3103 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
3104
3105 * config/tc-crx.c: Support evaluating the difference between two
3106 symbols.
3107 * config/tc-crx.h: Likewise.
3108
3109 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
3110
3111 * config/tc-ia64.c (start_unwind_section): Set the linked-to
3112 section.
3113 (ia64_elf_section_change_hook): Set the linked-to section for
3114 SHT_IA_64_UNWIND.
3115
3116 2004-07-26 Dmitry Diky <diwil@spec.ru>
3117
3118 * config/tc-msp430.c: Add new subtargets: msp430x1610,
3119 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
3120 msp430xG438, msp430xG439.
3121
3122 2004-07-25 Daniel Jacobowitz <dan@debian.org>
3123
3124 * doc/as.texinfo (Section, PushSection): Correct documentation
3125 for ELF.
3126
3127 2004-07-21 Jan Beulich <jbeulich@novell.com>
3128
3129 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
3130 permissible for the selected instruction suffix.
3131 (match_template): Don't permit 64-bit general purpose operands in
3132 32-bit mode.
3133 (finalize_imm): Permit 64-bit immediates.
3134 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
3135 specially except for the width of the used base and/or index
3136 registers. For 32-bit displacements, use sign-extended
3137 relocations only when using 64-bit addressing.
3138 Force zero displacement on rip-relative addressing when there is
3139 no other displacement.
3140 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
3141 specially except for the width of the used base and/or index
3142 registers.
3143 (parse_register): Disallow Reg64 registers in 32-bit mode.
3144
3145 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
3146 suffix if the instruction doesn't support it.
3147
3148 2004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
3149
3150 * config/tc-mips.c (append_insn): Handle constant expressions with
3151 no associated relocation.
3152 (mips_ip): Cancel the expression after use for the Q format
3153 specifier.
3154 (parse_relocation): Return no relocation for unsupported
3155 operators.
3156 (my_getSmallExpression): Return no relocation if no relocation
3157 operators are used.
3158
3159 2004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3160
3161 * config/obj-som.c (adjust_stab_sections): Add prototype.
3162 (obj_som_compiler, obj_som_version, obj_som_copyright,
3163 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
3164 * config/tc-hppa.c (update_subspace): Likewise.
3165 (is_defined_subspace): Amplify comment.
3166 * config/obj-som.h (som_frob_file): Add prototype.
3167
3168 2004-07-19 Christopher Faylor <cgf@timesys.com>
3169 H.J. Lu <hongjiu.lu@intel.com>
3170
3171 * subsegs.c (section_symbol): Don't create a new segment when
3172 existing segment is undefined.
3173
3174 2004-07-16 Richard Earnshaw <rearnsha@arm.com>
3175
3176 * config/tc-arm.c: Include include/opcode/arm.h.
3177 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
3178 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
3179 (FPU_ARCH_*): Delete.
3180 * Makefile.am: Update dependencies.
3181 * Makefile.in: Regenerate.
3182
3183 2004-07-15 Nick Clifton <nickc@redhat.com>
3184
3185 * configure.in: Accept armbe as a big-endian arm configuration.
3186 * configure: Regenerate.
3187
3188 2004-07-13 Thomas Nystrom <thn@saeab.se>
3189
3190 * config/tc-i386.c (T_SHIFTOP): New constant.
3191 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
3192 (intel_el1): Handle '~'.
3193 (intel_get_token): Handle '<>', '&', '|' and '~'.
3194
3195 2004-07-13 Nick Clifton <nickc@redhat.com>
3196
3197 (md_assemble): Remove spurious newline from end of as_bad error
3198 message.
3199 (intel_e05_1): Likewise.
3200 (intel_e11): Likewise.
3201 (intel_match_token): Likewise.
3202
3203 2004-07-11 Andreas Schwab <schwab@suse.de>
3204
3205 * config/tc-m68k.c: Convert to C90. Remove redundant
3206 declarations. Indentation fixup.
3207 [M68KCOFF]: Include "obj-coff.h" instead of declaring
3208 obj_coff_section ourselves.
3209
3210 2004-07-09 James E Wilson <wilson@specifixinc.com>
3211
3212 * config/tc-ia64.c (default_big_endian): New.
3213 (dot_byteorder, md_begin): Use it.
3214 (md_parse_option): Set it.
3215
3216 2004-07-09 Nick Clifton <nickc@redhat.com>
3217
3218 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
3219 * configure: Regenerate.
3220 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
3221 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
3222 sh_find_elf_flags if necessary.
3223
3224 2004-07-08 Richard Sandiford <rsandifo@redhat.com>
3225
3226 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
3227 going to be split into more than one in-place addend, return 0
3228 for relocations against mergeable sections. Associate comments
3229 with code.
3230
3231 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
3232
3233 * Makefile.am (CPU_TYPES): Add crx.
3234 (TARGET_CPU_CFILES): Add config/tc-crx.c.
3235 (TARGET_CPU_HFILES): Add config/tc-crx.h.
3236 (DEPTC_crx_elf): New target.
3237 (DEPOBJ_crx_elf): Likewise.
3238 (DEP_crx_elf): Likewise.
3239 * Makefile.in: Regenerate.
3240 * configure.in: Add crx* target.
3241 * configure: Regenerate.
3242 * config/tc-crx.c: New file.
3243 * config/tc-crx.h: New file.
3244 * NEWS: Mention new target.
3245
3246 2004-07-06 Nick Clifton <nickc@redhat.com>
3247
3248 * config.in: Undefine TARGET_SYMBIAN by default.
3249 * configure.in:
3250 * configure: Regenerate. Add sh-symbian-elf target. If
3251 selected define TARGET_SYMBIAN.
3252 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
3253 format if TARGET_SYMBIAN has been defined.
3254
3255 * output-file.c (output_file_create): Report the target format
3256 chosen when bfd_openw reports that it is invalid.
3257
3258 * config/obj-coff.c (coff_pseudo_table): Only define the weak
3259 pseudo for BFD based assemblers.
3260
3261 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
3262
3263 gas:
3264 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
3265 (md_parse_option): Remove redundant -isa testing.
3266 Make bfd_arch variable const.
3267 (md_show_usage): Make bfd_arch variable const.
3268
3269 2004-07-03 James E Wilson <wilson@specifixinc.com>
3270
3271 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
3272 * config/tc-ia64.h (md_frag_check): Define.
3273
3274 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3275
3276 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
3277 externals.
3278 * doc/as.texinfo (Weak): Document PE weak symbols.
3279
3280 2004-07-03 Richard Sandiford <rsandifo@redhat.com>
3281
3282 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
3283 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
3284 (mips_frob_file): Rework so that only a single pass through the
3285 relocs is needed. Allow %lo()s to have higher offsets than their
3286 corresponding %hi()s or %got()s.
3287
3288 2004-07-02 Nick Clifton <nickc@redhat.com>
3289
3290 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
3291 allow values which have come from undefined symbols.
3292 Always consider this fixup to have been processed as a reloc
3293 cannot be generated for it.
3294
3295 2004-07-02 Alan Modra <amodra@bigpond.net.au>
3296
3297 * frags.h (struct frag): Add has_code and insn_addr fields.
3298 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
3299 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
3300 * config/tc-ppc.h (md_frag_check): Define.
3301
3302 2004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
3303
3304 * doc/Makefile.am (info): Rename goal to...
3305 (info-local): ... this, to preserve implicit dependencies.
3306 * doc/Makefile.in: Regenerate with automake 1.8.5.
3307
3308 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3309
3310 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
3311 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
3312 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
3313 (tc_gen_reloc): Likewise.
3314 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
3315 (m32r_parse_name): Likewise.
3316 (m32r_cgen_parse_fix_exp): Likewise.
3317 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
3318 (O_PIC_reloc): Likewise.
3319 (TC_CGEN_PARSE_FIX_EXP): Likewise..
3320 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
3321 for @GOTOFF, @GOT, @PLT.
3322
3323 2004-06-21 Jan Beulich <jbeulich@novell.com>
3324
3325 * gas/symbols.c: While discarding ordinary local absolute symbols
3326 when --strip-local-absolute is in effect, retain file symbols.
3327
3328 2004-06-20 Andreas Schwab <schwab@suse.de>
3329
3330 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
3331 (md_parse_option): Likewise.
3332
3333 2004-06-17 Jan Beulich <jbeulich@novell.com>
3334
3335 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
3336 * config/te-netware.h: New file.
3337 * config/te-ppcnw.h: Delete: Obsolete.
3338 * configure.in: Eliminate ill NetWare targets. Make generic
3339 NetWare target use proper emulation.
3340 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
3341 reference to new te-netware.h.
3342 * configure: Regenerate.
3343 * Makefile.in: Regenerate.
3344
3345 2004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
3346
3347 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
3348 comparison in .insn pseudo operation.
3349
3350 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3351
3352 * config/obj-coff.c (coff_adjust_section_syms): Use
3353 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
3354 (coff_frob_section): Likewise.
3355 * config/tc-mips.c (md_apply_fix3): Likewise.
3356 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
3357 (elf_frob_file_after_relocs): Likewise.
3358
3359 2004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3360
3361 * config/tc-hppa.c (log2): Rename to exact_log2.
3362 (pa_next_subseg): Delete unused function.
3363 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
3364 (create_new_subspace): Likewise.
3365
3366 Bug gas/213
3367 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
3368 labels. Fix warning.
3369
3370 2004-05-28 DJ Delorie <dj@redhat.com>
3371
3372 * config/tc-mn10300.h (tc_fix_adjustable): Define.
3373 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
3374 or non-merged symbols.
3375
3376 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
3377
3378 * config/tc-ia64.c (remove_marked_resource): Save, clear and
3379 restore the old slot when inserting srlz.i/srlz.d.
3380
3381 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
3382
3383 * Makefile.am: Regenerate dependecies.
3384 * Makefile.in: Regenerate.
3385 * config/tc-sh.c (valid_arch): Make unsigned.
3386 (preset_target_arch): Likewise.
3387 (md_begin): Use new architecture flags system.
3388 (get_specific): Likewise.
3389 (assemble_ppi): Likewise.
3390 (md_assemble): Likewise. Also fix error check for bad opcodes.
3391 (md_parse_option): Likewise. Also generate -isa values according
3392 to the table in bfd/cpu-sh.c instead of just constants. Also
3393 allow <arch>-up ISA variants.
3394 (sh_elf_final_processing): Replace if-else chain with a call to
3395 sh_find_elf_flags().
3396 * testsuite/gas/sh/arch: New directory.
3397 * testsuite/gas/sh/arch/arch.exp: New test script.
3398 * testsuite/gas/sh/arch/arch_expected.txt: New file.
3399 * testsuite/gas/sh/arch/sh.s: New file.
3400 * testsuite/gas/sh/arch/sh2.s: New file.
3401 * testsuite/gas/sh/arch/sh-dsp.s: New file.
3402 * testsuite/gas/sh/arch/sh2e.s: New file.
3403 * testsuite/gas/sh/arch/sh3-nommu.s: New file.
3404 * testsuite/gas/sh/arch/sh3.s: New file.
3405 * testsuite/gas/sh/arch/sh3-dsp.s: New file.
3406 * testsuite/gas/sh/arch/sh3e.s: New file.
3407 * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
3408 * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
3409 * testsuite/gas/sh/arch/sh4.s: New file.
3410 * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
3411 * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
3412 * testsuite/gas/sh/arch/sh4a.s: New file.
3413
3414 2004-05-28 Peter Barada <peter@the-baradas.com>
3415
3416 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
3417 with zero offset into mode 2 addressing to save a word.
3418
3419 2004-05-27 H.J. Lu <hongjiu.lu@intel.com>
3420
3421 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
3422 (ar_is_only_in_integer_unit): New.
3423 (ar_is_only_in_memory_unit): New.
3424 (generate_unwind_image): Silence gcc on 32bit host.
3425 (md_assemble): Use ar_is_only_in_integer_unit instead of
3426 ar_is_in_integer_unit. Check AR access.
3427
3428 2004-05-27 Peter Barada <peter@the-baradas.com>
3429
3430 * config/tc-m68k.c (md_begin): Sort the opcode table into
3431 alphabetical order.
3432 (m68k_compare_opcode): New function to do the sorting.
3433
3434 2004-05-24 Peter Barada <peter@the-baradas.com>
3435
3436 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
3437 addressing on MIT style operands.
3438 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
3439 w/mask addressing.
3440 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
3441 operands.
3442
3443 2004-05-23 Alan Modra <amodra@bigpond.net.au>
3444
3445 * expr.c (operand, operator): Don't reject '++' and '--'.
3446
3447 2004-05-20 Richard Sandiford <rsandifo@redhat.com>
3448
3449 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
3450 dwarf tables.
3451
3452 2004-05-17 Adam Nemet <anemet@lnxw.com>
3453
3454 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
3455 * configure: Regenerate.
3456
3457 2004-05-13 Paul Brook <paul@codesourcery.com>
3458
3459 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
3460
3461 2004-05-13 Joel Sherrill <joel@oarcorp.com>
3462
3463 * configure.in (or32-*-rtems*): Switch to elf.
3464 * configure: Regenerate.
3465
3466 2004-05-13 Nick Clifton <nickc@redhat.com>
3467
3468 * po/fr.po: Updated French translation.
3469
3470 2004-05-11 Nick Clifton <nickc@redhat.com>
3471
3472 * doc/as.texinfo (Section): Document G and T flags to .section
3473 directive. Document the extra arguments that the G flag
3474 requires. Document the #tls flag.
3475
3476 2004-05-11 H.J. Lu <hongjiu.lu@intel.com>
3477
3478 * subsegs.c (section_symbol): Create a new section symbol if
3479 the existing one doesn't match.
3480 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
3481
3482 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
3483
3484 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
3485 to cope with VR4181A errata MD(1) and MD(4).
3486
3487 2004-05-07 Brian Ford <ford@vss.fsi.com>
3488
3489 * NEWS: Mention .secrel32 for pe[i]-i386.
3490
3491 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
3492
3493 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3494 (HANDLE_ALIGN): New.
3495
3496 2004-05-06 Daniel Jacobowitz <dan@debian.org>
3497
3498 * Makefile.am (DIST_SUBDIRS): Define.
3499 * aclocal.m4: Regenerate with automake 1.8.4.
3500 * Makefile.in: Likewise.
3501 * doc/Makefile.in: Likewise.
3502
3503 2004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
3504
3505 * config/tc-ia64.c (dot_serialize): Declare.
3506 (dot_serialize): New function.
3507 (md_pseudo_table): Add ".serialize.data" and
3508 ".serialize.instruction" directives.
3509
3510 2004-05-06 Nick Clifton <nickc@redhat.com>
3511
3512 * messages (as_internal_value_out_of_range): Print a message about
3513 a value being out of range. Be consistent about whether the
3514 values are printed in decimal or hexadecimal.
3515 (as_warn_value_out_of_range): Generate a warning message about an
3516 out of range value.
3517 (as_bad_value_out_of_range): Generate an error message about an
3518 out of range value.
3519 * as.h: Prototype the new functions.
3520 * config/tc-alpha.c (insert_operand): Use new function.
3521 * config/tc-arc.c (arc_insert_operand): Likewise.
3522 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
3523 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
3524 * config/tc-ppc.c (ppc_insert_operand): Likewise.
3525 * config/tc-s390.c (s390_insert_operand): Likewise.
3526 * config/tc-v850.c (v850_insert_operand): Likewise.
3527
3528 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
3529
3530 * configure.in: Set em=linux for frv-*-*linux*.
3531 * configure: Rebuilt.
3532 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
3533 (frv_md_fdpic_enabled): New.
3534 * config/tc-frv.c (frv_md_fdpic_enabled): New.
3535 (DEFAULT_FDPIC): New.
3536 (frv_flags): Use DEFAULT_FDPIC.
3537 (frv_pic_flag): Likewise.
3538 (OPTION_NOPIC): New.
3539 (md_longopts): Add -mnopic.
3540 (md_parse_option): Handle it.
3541 (md_show_usage): Add -mfdpic and -mnopic.
3542
3543 2004-05-05 Peter Barada <peter@the-baradas.com>
3544
3545 * config/tc-m68k.c: Add find_cf_chip to print list of valid
3546 chips for invalid coldfire instructions, rename selectors
3547 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
3548 add current_chip to track which chip is referred to(including save/restore),
3549 use current_chip to select control registers, not current_arch.
3550 (md_show_usage): Add new chips.
3551 * doc/c-m68k.texi: Document new command line switches.
3552
3553 2004-05-05 Jakub Jelinek <jakub@redhat.com>
3554
3555 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
3556 (NOP_OPCODE): Define.
3557 (s390_align_code): Remove prototype.
3558 * tc-s390.c (s390_align_code): Remove.
3559
3560 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
3561
3562 * config/tc-ia64.c (make_unw_section_name): Removed.
3563 (start_unwind_section): New function.
3564 (generate_unwind_image): Take const segT instead of const
3565 char *.
3566 (dot_handlerdata): Adjusted.
3567 (dot_endp): Likewise.
3568
3569 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
3570
3571 * config/obj-elf.c (obj_elf_change_section): Allow the
3572 ".note.GNU-stack" section has SHF_EXECINSTR.
3573
3574 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
3575
3576 * config/obj-elf.c (get_section): Return bfd_boolean.
3577 (obj_elf_change_section): Call bfd_get_section_by_name_if
3578 instead of bfd_map_over_sections.
3579
3580 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
3581
3582 * config/obj-elf.c (get_section): New function.
3583 (obj_elf_change_section): Support multiple sections with same
3584 name.
3585
3586 2004-04-30 Nick Clifton <nickc@redhat.com>
3587
3588 * config/tc-arm.c (create_register_alias): Fix typo checking for
3589 case sensitive register aliases.
3590 (co_proc_number): Use error message string in all_reg_maps[]
3591 array.
3592 (cp_reg_required_here): Likewise.
3593 (fp_reg_required_here): Likewise.
3594
3595 2004-04-29 Brian Ford <ford@vss.fsi.com>
3596
3597 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
3598
3599 2004-04-28 Chris Demetriou <cgd@broadcom.com>
3600
3601 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
3602 (load_address, macro, mips_ip, md_parse_option)
3603 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
3604 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
3605 embedded-PIC handling, and update comments.
3606 (SWITCH_TABLE): Remove.
3607 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
3608 (enum mips_pic_level): Remove EMBEDDED_PIC.
3609 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
3610 (TC_FORCE_RELOCATION): Update comment.
3611 * ecoff.c (ecoff_build_lineno): Add comment about some code that
3612 might be safe to remove now that MIPS embedded-PIC is gone.
3613
3614 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3615
3616 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
3617 call to obj_set_subsection_attributes.
3618 (obj_som_init_stab_section): Likewise.
3619 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
3620 (pa_def_subspaces): Provide comdat default.
3621 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
3622 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
3623 calls to create_new_subspace and update_subspace to pass comdat flag.
3624 (create_new_subspace, update_subspace): Add new comdat argument. Use
3625 it in calls to obj_set_subsection_attributes.
3626 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
3627 and use of comdat, common and dup_comm parameters.
3628
3629 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
3630
3631 * config/obj-elf.c (obj_elf_change_section): Check if the old
3632 group name is NULL before comparison.
3633
3634 2004-04-23 Chris Demetriou <cgd@broadcom.com>
3635
3636 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
3637
3638 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3639
3640 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
3641
3642 2004-04-23 Chris Demetriou <cgd@broadcom.com>
3643
3644 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
3645 (OPTION_MEMBEDDED_PIC): Remove.
3646 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
3647 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
3648 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
3649 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
3650 (OPTION_ELF_BASE): Renumber.
3651 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
3652 (md_show_usage): Remove mention of -membedded-pic.
3653 * doc/as.texinfo: Remove mention of -membedded-pic.
3654
3655 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3656
3657 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
3658 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
3659 a.out support.
3660 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
3661 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
3662 USE_GLOBAL_POINTER_OPT.
3663
3664 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3665
3666 * config/tc-mips.c (macro): One more use of load_delay_nop.
3667
3668 2004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
3669
3670 * config/tc-mips.c (load_delay_nop): New function.
3671 (load_address, macro): Use load_delay_nop() to build a nop
3672 which can be omitted with gpr_interlocks.
3673
3674 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3675
3676 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
3677 cop_interlocks): Remove superfluous CPU entries.
3678
3679 2004-04-22 Paul Brook <paul@codesourcery.com>
3680
3681 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
3682
3683 2004-04-22 Peter Barada <peter@the-baradas.com>
3684
3685 * NEWS: Added support for EMAC instructions and MAC/EMAC
3686 Motorola syntax.
3687 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
3688 scale factor tokens, trailing_ampersand to mark mask addressing
3689 for MAC/EMAC instructions.
3690 * config/m68k-parse.y: Add options_ampersand clause, '<<',
3691 '>>'.
3692 (yylex): Handle '>', '<', and '&' following '+'.
3693 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
3694 architectures in archs[].
3695 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
3696 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
3697 respectively.
3698 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
3699 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
3700 cases.
3701 Add EMAC operands to init_table[].
3702
3703 2004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
3704
3705 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
3706 state.
3707 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
3708 * config/tc-arm.c (enum mstate): Delete from here.
3709 (mapping_state): Remove the static mapstate variable and instead
3710 store the state in the segment. This allows a per-section mapping
3711 state. Handle and ignore MAP_UNDEFINED states.
3712 (arm_elf_change_section): Get the current mapping state from the
3713 new section.
3714 (s_ltorg): Set the mapping state to MAP_DATA.
3715 (arm_cleanup): Use arm_elf_change_section to get the mapping state
3716 for each pool as it is emitted.
3717
3718 2004-04-22 Nick Clifton <nickc@redhat.com>
3719
3720 * config/tc-arm.h: Formatting tidy ups.
3721
3722 2004-04-20 Chris Demetriou <cgd@broadcom.com>
3723
3724 * NEWS: Note that MIPS -membedded-pic option is deprecated.
3725
3726 2004-04-20 DJ Delorie <dj@redhat.com>
3727
3728 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
3729 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
3730 [TE_PE] (O_secrel): Define.
3731 [TE_PE] (x86_pe_cons_fix_new): New.
3732 [TE_PE] (pe_directive_secrel): Likewise.
3733 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
3734
3735 2004-04-19 Eric Christopher <echristo@redhat.com>
3736
3737 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
3738 of previous patch for fix in gcc.
3739
3740 2004-04-19 Jakub Jelinek <jakub@redhat.com>
3741
3742 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
3743
3744 2004-04-19 Nathan Sidwell <nathan@codesourcery.com>
3745
3746 * read.c (do_align): Call md_flush_pending_output, if defined.
3747
3748 2004-04-16 Alan Modra <amodra@bigpond.net.au>
3749
3750 * expr.c (operand): Correct checks for ++ and --.
3751
3752 2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
3753
3754 * config/tc-generic.c: Add some comments.
3755
3756 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
3757
3758 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
3759 -{no-}mfix-vr4122-bugs.
3760 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
3761 (append_insn, mips_emit_delays): Update accordingly.
3762 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
3763 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
3764 (md_parse_option): Update after above changes.
3765 (md_show_usage): Add -mfix-vr4120.
3766
3767 2004-04-13 Bob Wilson <bob.wilson@acm.org>
3768
3769 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
3770 of .section directive; add a reference to the ELF .subsection
3771 directive.
3772
3773 2004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3774
3775 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
3776 in parallel.
3777
3778 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3779
3780 * Makefile.am: Remove mips from aout targets.
3781 * Makefile.in: Regenerate.
3782 * configure.in: Remove mips-dec-bsd* target.
3783 * configure: Regenerate.
3784
3785 2004-04-07 Alan Modra <amodra@bigpond.net.au>
3786
3787 PR 96
3788 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
3789 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
3790 Update "mapping". Restrict some @ modifiers to 32 bit.
3791
3792 2004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
3793 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
3794
3795 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
3796 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
3797 dont_adjust_reloc_32 is set.
3798 (md_longopts): Add option -renesas.
3799 (md_parse_option, md_show_usage): Likewise.
3800 * doc/c-sh.texi: Likewise.
3801
3802 2004-04-01 Dave Korn <dk@artimi.com>
3803
3804 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
3805 hi16 and lo16 fixS structs.
3806 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
3807 exactly the same way as for RELOC_DLX_REL16.
3808 (machine_ip): properly respect LO flag in the_insn and
3809 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
3810 (md_apply_fix3): apply RELOC_DLX_LO16.
3811
3812 2004-03-30 Stan Shebs <shebs@apple.com>
3813
3814 Remove long-obsolete MPW support.
3815 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
3816 * configure.in: Remove mention of ppc-*-mpw* config.
3817 * configure.in: Likewise.
3818
3819 2004-03-30 Nick Clifton <nickc@redhat.com>
3820
3821 * config/tc-arm.c (meabi_flags): Make its use conditional upon
3822 OBJ_ELF being defined.
3823
3824 2004-03-27 Alan Modra <amodra@bigpond.net.au>
3825
3826 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
3827
3828 2004-03-23 Paul Brook <paul@codesourcery.com>
3829
3830 * config/tc-arm.c (meabi_flags): New variable.
3831 (arm_parse_eabi): New function.
3832 (md_begin): Set flags for EABI v3.
3833 (arm_eabis): Add.
3834 (arm_long_opts): Add meabi.
3835 * doc/as.texinfo <ARM>: Document -meabi.
3836 * doc/c-arm.texi: Ditto.
3837
3838 2004-03-22 Bob Wilson <bob.wilson@acm.org>
3839
3840 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
3841 tables even when use_literal_section flag is not set.
3842
3843 2004-03-22 Alan Modra <amodra@bigpond.net.au>
3844
3845 * config/tc-sh.c: Remove trailing whitespace.
3846
3847 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3848
3849 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
3850 --mul-bug-abort and the default behavior.
3851 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
3852 (err_for_dangerous_mul_placement): New variable.
3853 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
3854 macros.
3855 (md_cris_relax_table): Have placeholder for STATE_MUL.
3856 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
3857 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
3858 case doing nothing.
3859 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
3860 STATE_BYTE)>: Ditto.
3861 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
3862 alignment and position of this frag, emit error message if
3863 suspicious.
3864 (md_assemble): For a multiply insn and when checking it,
3865 transform the current frag into a special frag for that purpose.
3866 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
3867 OPTION_MULBUG_ABORT_ON>: Handle new options.
3868
3869 2004-03-19 Bob Wilson <bob.wilson@acm.org>
3870
3871 * config/tc-xtensa.c (mark_literal_frags): New function.
3872 (xtensa_move_literals): Call mark_literal_frags for all literal
3873 segments, including init and fini literal segments.
3874 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
3875
3876 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3877
3878 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
3879 (pa_comm): Set BSF_OBJECT in symbol flags.
3880
3881 2004-03-19 Alan Modra <amodra@bigpond.net.au>
3882
3883 * Makefile.am: Run "make dep-am".
3884 * Makefile.in: Regenerate.
3885 * doc/Makefile.in: Regenerate.
3886 * config.in: Regenerate.
3887 * po/gas.pot: Regenerate.
3888
3889 2004-03-18 Nathan Sidwell <nathan@codesourcery.com>
3890
3891 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
3892 (demand_empty_rest_of_line): Issue an error here.
3893 (ignore_rest_of_line): Silently skip to end.
3894 (demand_copy_string): Issue an error, not warning.
3895 (equals): Likewise.
3896 * config/obj-elf.c (obj_elf_section_name): Likewise.
3897 (obj_elf_section): Likewise.
3898 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
3899 (arc_extinst): Likewise.
3900 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
3901 (dot_spill): Likewise.
3902 (dot_unwabi): Likewise.
3903 (dot_prologue): Likewise.
3904
3905 * expr.c (operand): Reject ++ and --.
3906 (operator): Likewise.
3907
3908 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3909
3910 * config/tc-sh.c: Include dw2gencfi.h.
3911 (sh_cfi_frame_initial_instructions): New function.
3912 (sh_regname_to_dw2regnum): Likewise.
3913 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
3914 file.
3915 (TARGET_USE_CFIPOP): Define.
3916 (tc_cfi_frame_initial_instructions): Likewise.
3917 (tc_regname_to_dw2regnum): Likewise.
3918 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
3919 * Makefile.am: Update dependencies.
3920 * Makefile.in: Regenerate.
3921
3922 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3923
3924 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3925 * configure: Regenerate.
3926
3927 2004-03-12 Bob Wilson <bob.wilson@acm.org>
3928
3929 * read.c (s_leb128): Call md_flush_pending_output.
3930
3931 2004-03-12 Michal Ludvig <mludvig@suse.cz>
3932
3933 * config/tc-i386.c (output_insn): Handle PadLock instructions.
3934 * config/tc-i386.h (CpuPadLock): New define.
3935 (CpuUnknownFlags): Added CpuPadLock.
3936
3937 2004-03-07 Andreas Schwab <schwab@suse.de>
3938
3939 * doc/c-hppa.texi (HPPA Directives): Fix typo.
3940
3941 2004-03-07 Richard Henderson <rth@redhat.com>
3942
3943 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
3944 (cfi_finish): Likewise for fde.
3945
3946 2004-03-05 H.J. Lu <hongjiu.lu@intel.com>
3947
3948 * config/tc-ia64.c (md_assemble): Properly handle NULL
3949 align_frag.
3950 (ia64_handle_align): Don't abort if failed to add a stop bit.
3951
3952 2004-03-04 H.J. Lu <hongjiu.lu@intel.com>
3953
3954 * Makefile.in: Regenerated.
3955 * aclocal.m4: Likewise.
3956 * configure: Likewise.
3957 * doc/Makefile.in: Likewise.
3958
3959 2004-03-03 H.J. Lu <hongjiu.lu@intel.com>
3960
3961 * config/tc-ia64.c (dot_align): New.
3962 (ia64_do_align): Make it static.
3963 (md_pseudo_table): Use "dot_align" for "align".
3964 (ia64_md_do_align): Don't set align_frag here.
3965 (ia64_handle_align): Add a stop bit to the previous bundle if
3966 needed.
3967
3968 * config/tc-ia64.h (ia64_do_align): Removed.
3969
3970 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
3971
3972 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
3973 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
3974 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
3975 the most general type or the user specifically requested it.
3976 (md_assemble): Add a new error message for when an instruction
3977 is understood, but is not allowed due to an -isa option.
3978
3979 2004-03-02 H.J. Lu <hongjiu.lu@intel.com>
3980
3981 * config/tc-ia64.c (align_frag): New.
3982 (md_assemble): Set the tc_frag_data field in align_frag for
3983 IA64_OPCODE_FIRST instructions.
3984 (ia64_md_do_align): Set align_frag.
3985 (ia64_handle_align): Add a stop bit if needed.
3986
3987 * config/tc-ia64.h (TC_FRAG_TYPE): New.
3988 (TC_FRAG_INIT): New.
3989
3990 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3991
3992 * config/tc-frv.c (fr400_audio): New variable.
3993 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
3994 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
3995 (target_implements_insn_p): New function.
3996 (md_assemble): Report an error if the processor doesn't implement
3997 the instruction.
3998
3999 2004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4000
4001 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
4002 (md_parse_option): Ditto.
4003 (OPTION_NO_SPECIAL_M32R): Added.
4004 (md_show_usage): Document it.
4005 (enable_speial_m32r): Changed a default value from 0 to 1.
4006 * doc/c-m32r.texi: Document the -no-bitinst option.
4007
4008 2004-02-27 Nick Clifton <nickc@redhat.com>
4009
4010 * config/tc-sh.c (get_operand): Revert previous delta.
4011 (tc_gen_reloc): Check for an unknown reloc type before processing
4012 the addend.
4013
4014 2004-02-27 Hannes Reinecke <hare@suse.de>
4015
4016 * config/tc-s390.c (s390_insn): Correct range check for opcode in
4017 .insn pseudo operation.
4018
4019 2004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
4020
4021 * config/tc-sh.c (get_operand): In case of #Imm, check has been
4022 added for wrong syntax.
4023
4024 2004-02-26 Eric Christopher <echristo@redhat.com>
4025
4026 * config/tc-mips.c (mips_dwarf2_addr_size): New.
4027 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
4028
4029 2004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
4030
4031 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
4032 nibble types to assembler.
4033
4034 2004-02-25 Fred Fish <fnf@redhat.com>
4035
4036 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
4037
4038 2004-02-20 James E Wilson <wilson@specifixinc.com>
4039
4040 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
4041 finalize_syms.
4042 (fixup_unw_records): New arg before_relax. Pass to slot_index.
4043 (ia64_estimate_size_before_relax): New.
4044 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
4045 (generate_unwind_image): Pass 1 to fixup_unw_records.
4046 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
4047 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
4048
4049 2004-02-19 Jakub Jelinek <jakub@redhat.com>
4050
4051 * stabs.c (generate_asm_file): Avoid warning about use of
4052 uninitialized variable.
4053
4054 2004-02-18 David Mosberger <davidm@hpl.hp.com>
4055
4056 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
4057 body, and endp, allow unwind records which do not have a "t"
4058 (time/instruction) field.
4059
4060 2004-02-17 Petko Manolov <petkan@nucleusys.com>
4061
4062 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
4063 (do_mav_dspsc_2): Likewise.
4064 Fix accumulator registers move opcodes.
4065
4066 2004-02-13 Hannes Reinecke <hare@suse.de>
4067 Jakub Jelinek <jakub@redhat.com>
4068
4069 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
4070
4071 2004-02-10 Steve Ellcey <sje@cup.hp.com>
4072
4073 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
4074 (tc_frob_symbol): New macro definition.
4075 * config/tc-ia64.c (ia64_frob_symbol): New routine.
4076
4077 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
4078
4079 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
4080 read-only.
4081
4082 2004-02-09 Nathan Sidwell <nathan@codesourcery.com>
4083
4084 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
4085 (TC_CASE_SENSITIVE): ... this.
4086 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
4087 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
4088
4089 2004-02-06 James E Wilson <wilson@specifixinc.com>
4090
4091 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
4092 (generate_unwind_image): Re-add it here.
4093
4094 2004-02-06 Nathan Sidwell <nathan@codesourcery.com>
4095
4096 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
4097 * read.h (SKIP_WHITESPACE): Turn into an expression.
4098 * read.c (read_a_source_file): A pseudo is removed by having a
4099 NULL handler.
4100
4101 2004-02-05 James E Wilson <wilson@specifixinc.com>
4102
4103 * config/tc-ia64.c (output_endp): New.
4104 (count_bits): Delete.
4105 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
4106 endp unwind records.
4107 (fixup_unw_records): Handle endp unwind records. Delete code for
4108 shortening prologue regions not followed by a body record.
4109 (dot_endp): Call add_unwind_entry to emit endp unwind record.
4110 * config/tc-ia64.h (unw_record_type): Add endp.
4111
4112 2004-02-03 James E Wilson <wilson@specifixinc.com>
4113
4114 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
4115 fill padding bytes with zeroes.
4116 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
4117 sets unwind_record slot_number and slot_frag fields.
4118
4119 2004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4120
4121 * config/tc-mips.c (add_got_offset_hilo): New function.
4122 (macro): Use load_register() and add_got_offset_hilo() to load
4123 constants instead of hardcoding code sequences throughout.
4124
4125 2004-01-28 H.J. Lu <hongjiu.lu@intel.com>
4126
4127 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
4128
4129 2004-01-26 Bernardo Innocenti <bernie@develer.com>
4130
4131 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
4132 like m68k-elf.
4133 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
4134 of hard-coded test for TARGET_OS=elf.
4135
4136 2004-01-24 Chris Demetriou <cgd@broadcom.com>
4137
4138 * config/tc-mips.c (hilo_interlocks): Change definition
4139 so that MIPS32, MIPS64 and later ISAs are included, along with
4140 the already-included machines. Update comments.
4141
4142 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
4143
4144 * config/tc-arm.c (tc_gen_reloc): Improve error message for
4145 undefined local labels.
4146
4147 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
4148
4149 * config/tc-mips.c (load_address, macro): Update comments about
4150 NewABI GP relaxation.
4151
4152 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
4153
4154 * config/tc-mips.c (macro_build): Remove place and counter arguments.
4155 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
4156 (mips16_macro_build, macro_build_jalr): Remove counter argument.
4157 (set_at, load_register, load_address, move_register): Likewise.
4158 (load_got_offset, add_got_offset): Likewise.
4159 Update all calls and tidy accordingly.
4160
4161 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
4162
4163 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
4164 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
4165 (RELAX_USE_SECOND): Bump to 0x10000.
4166 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
4167 (mips_macro_warning): New variable.
4168 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
4169 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
4170 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
4171 of RELAX_ENCODE.
4172 (append_insn): Update mips_macro_warning.sizes.
4173 (macro_start, macro_warning, macro_end): New functions.
4174 (macro_build): Don't emit warnings here.
4175 (macro_build_lui, md_estimate_size_before_relax): ...or here.
4176 (md_convert_frag): Check for cases where one macro alternative
4177 needs a warning and the other doesn't. Emit a warning if the
4178 longer sequence was chosen.
4179
4180 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
4181
4182 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
4183 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
4184 the first sequence, the size of the second sequence, and a flag
4185 that says whether we should warn.
4186 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
4187 (RELAX_FIRST, RELAX_SECOND): New.
4188 (mips_relax): New variable.
4189 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
4190 (append_insn): Remove "place" argument. Use mips_relax.sequence
4191 rather than "place" to check whether we're expanding the second
4192 alternative of a relaxable macro. Remove redundant check for
4193 branch relaxation. If generating a normal insn, and there
4194 is not enough room in the current frag, call relax_close_frag()
4195 to close it. Update mips_relax.sizes[]. Emit fixups for the
4196 second version of a relaxable macro. Record the first relaxable
4197 fixup in mips_relax. Remove tc_gen_reloc workaround.
4198 (macro_build): Remove all uses of "place". Use mips_relax.sequence
4199 in the same way as in append_insn.
4200 (mips16_macro_build): Remove "place" argument.
4201 (macro_build_lui): As for macro_build. Don't drop the add_symbol
4202 when generating the second version of a relaxable macro.
4203 (load_got_offset, add_got_offset): New functions.
4204 (load_address, macro): Use new relaxation machinery. Remove
4205 tc_gen_reloc workarounds.
4206 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
4207 version of a relaxable macro is needed. Return -RELAX_SECOND if the
4208 first version is needed.
4209 (tc_gen_reloc): Remove relaxation handling.
4210 (md_convert_frag): Go through the fixups for a relaxable macro and
4211 mark those that belong to the unneeded alternative as done. If the
4212 second alternative is needed, adjust the fixup addresses to account
4213 for the deleted first alternative.
4214
4215 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
4216
4217 * frags.h (frag_room): Declare.
4218 * frags.c (frag_room): New function.
4219 * doc/internals.texi: Document it.
4220
4221 2004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4222
4223 * config/tc-mips.c (append_insn): Don't do r3900 interlock
4224 optimization for -mtune=r3900, as this will break on other CPUs.
4225
4226 2004-01-11 Tom Rix <tcrix@worldnet.att.net>
4227
4228 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
4229 be relaxed, use fixup.
4230 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
4231
4232 2004-01-19 Jakub Jelinek <jakub@redhat.com>
4233
4234 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
4235 precision operands.
4236
4237 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4238
4239 * config/tc-mips.c (append_insn): Properly detect variant frags
4240 that preclude swapping of relaxed branches. Correctly swap
4241 instructions between frags when dealing with relaxed branches.
4242
4243 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4244
4245 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
4246 throughout.
4247 * aclocal.m4: Regenerate.
4248 * configure: Regenerate.
4249
4250 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
4251
4252 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
4253 manipulation insns.
4254
4255 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
4256
4257 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
4258 reloc, reserve space for the delay slot as well as the jalr itself.
4259
4260 2004-01-09 Paul Brook <paul@codesourcery.com>
4261
4262 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
4263 (do_vfp_sp2_from_reg2): New function.
4264 (insns): Use them.
4265 (do_vfp_dp_from_reg2): Check return values properly.
4266
4267 2004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
4268
4269 * config/tc-mips.c (warn_nops): Remove static variable.
4270 (macro): Remove test of warn_nops.
4271 (md_shortops): Remove 'n'.
4272 (md_parse_option): Remove 'n' case.
4273 (md_show_usage): Remove -n.
4274 * doc/as.texinfo (Overview): Remove MIPS -n option.
4275 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
4276 * NEWS: Mention removal of MIPS -n option.
4277
4278 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
4279 (cop_interlocks): Check ISA level.
4280 (cop_mem_interlocks): Define.
4281 (reg_needs_delay): Check cop_interlocks rather than
4282 ISA_HAS_COPROC_DELAYS.
4283 (append_insn): Likewise. Use cop_mem_interlocks rather than
4284 directly checking mips_opts.isa.
4285 (mips_emit_delays): Likewise.
4286
4287 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
4288
4289 * config/tc-ia64.c (unwind): Move next_slot_number and
4290 next_slot_frag to ...
4291 (unw_rec_list): Here.
4292 (free_list_records): Removed.
4293 (output_unw_records): Likewise.
4294 (generate_unwind_image): Make it void.
4295 (alloc_record): Initialize next_slot_number and next_slot_frag.
4296 (slot_index): Take .org, .space and .align into account.
4297 (fixup_unw_records): Don't set slot_number to 0. Use
4298 list->next_slot_number and list->next_slot_frag instead of
4299 unwind.next_slot_number and unwind.next_slot_frag.
4300 (ia64_convert_frag): New.
4301 (generate_unwind_image): Generate a rs_machine_dependent frag
4302 for unwind record.
4303 (emit_one_bundle): Use list->next_slot_number and
4304 list->next_slot_frag instead of unwind.next_slot_number and
4305 unwind.next_slot_frag.
4306
4307 * config/tc-ia64.h (md_convert_frag): Defined as
4308 ia64_convert_frag.
4309 (md_estimate_size_before_relax): Defined as (f)->fr_var.
4310
4311 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
4312
4313 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
4314 * config/tc-frv.h (md_apply_fix3): Don't define.
4315 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
4316 operands.
4317 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
4318 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
4319 * config/tc-frv.c (line_separator_chars): Add `!'.
4320 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
4321 * config/tc-frv.c (md_assemble): Clear insn upfront.
4322 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
4323 * config/tc-frv.c (OPTION_FDPIC): New macro.
4324 (md_longopts): Add mfdpic.
4325 (md_parse_option): Handle it.
4326 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
4327 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
4328 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
4329 (frv_pic_ptr): Parse funcdesc.
4330
4331 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4332
4333 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
4334 gasver.texi. Remove duplicate symbol definitions for texi2pod.
4335
4336 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4337
4338 * Makefile.am (Makefile): Move the dependency on
4339 $(BFDDIR)/configure.in to...
4340 (CONFIG_STATUS_DEPENDENCIES): ... here.
4341 (AUTOMAKE_OPTIONS): Require automake 1.8.
4342 * Makefile.in: Regenerate.
4343 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
4344 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
4345 $(BFDDIR)/configure.in here as well.
4346 * doc/Makefile.in: Regenerate.
4347
4348 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4349
4350 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
4351 * Makefile.in: Regenerate.
4352 * aclocal.m4: Regenerate.
4353 * doc/Makefile.am (install, install-info): Remove.
4354 (install-data-local): A new hook for install-info.
4355 (AUTOMAKE_OPTIONS): Require automake 1.8.
4356 * doc/Makefile.in: Regenerate.
4357
4358 2004-01-02 Nutan Singh <nutan@kpitcummins.com>
4359
4360 * doc/c-sh.texi: Update description about floating point behavior
4361 of SH family.
4362
4363 2004-01-02 Bernardo Innocenti <bernie@develer.com>
4364
4365 * configure.in: Add m68k-uClinux target.
4366 * configure: Regenerate.
4367
4368 For older changes see ChangeLog-0203
4369 \f
4370 Local Variables:
4371 mode: change-log
4372 left-margin: 8
4373 fill-column: 74
4374 version-control: never
4375 End: