5ca1092a92792e1b072d1c1dfb0b5c4248c96adf
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2005-12-27 Nathan Sidwell <nathan@codesourcery.com>
2
3 * config/tc-mt.c (mt_arch): Default to ms1_16_002.
4 (md_parse_options): Only allow lowercase.
5 (md_show_usage): Update.
6
7 2005-12-27 Leif Ekblad <leif@rdos.net>
8
9 * configure.tgt: Add support for RDOS targets.
10
11 2005-12-27 James Troup <james@nocrew.org>
12
13 PR 1300
14 * config/tc-arm.c (md_apply_fix): Fix casts to match type in
15 printf format.
16
17 2005-12-27 Alan Modra <amodra@bigpond.net.au>
18
19 * Makefile.am: Run "make dep-am".
20 * Makefile.in: Regenerate.
21 * po/POTFILES.in: Regenerate.
22
23 2005-12-22 Jan Beulich <jbeulich@novell.com>
24
25 * symbols.h (snapshot_symbol): First parameter is now pointer
26 to pointer to symbolS.
27 * symbols.c (snapshot_symbol): Likewise. Store resulting symbol
28 there. Use symbol_equated_p.
29 * expr.c (resolve_expression): Change first argument to
30 snapshot_symbol. Track possibly changed add_symbol consistently
31 across function. Resolve more special cases with known result.
32 Also update final_val when replacing add_symbol.
33
34 2005-12-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35
36 * config/tc-vax.c: Convert to ISO C90 format. Fix formatting and
37 white space usage as well.
38
39 2005-12-20 Sterling Augustine <sterling@tensilica.com>
40
41 * config/tc-xtensa.c (xtensa_mark_narrow_branches): Set
42 is_aligning_branch flag.
43 (find_address_of_next_align_frag): Limit by xtensa_fetch_width.
44 (future_alignment_required): Except for frags with is_aligning_branch
45 flag set, call frag_wane for frags that do not need to be reexamined
46 for aligning.
47 (relax_frag_immed): Replace orig_vinsn with cur_vinsn to fix a leak.
48 (convert_frag_immed): Likewise.
49 (convert_frag_narrow): Check is_aligning_branch flag.
50 * config/tc-xtensa.h (xtensa_frag_type): Add is_aligning_branch flag.
51
52 2005-12-20 Sterling Augustine <sterling@tensilica.com>
53
54 * config/tc-xtensa.c (xg_find_narrowest_format): Optimize 1 slot case.
55 (xg_init_vinsn): Remove redundant initialization.
56 (xg_clear_vinsn): Zero all the slots with a single memset.
57 * config/xtensa-istack.h (vliw_insn): Move insnbuf field after slots.
58
59 2005-12-20 Nathan Sidwell <nathan@codesourcery.com>
60
61 * doc/t-mt.texi: Update MS1 to MT.
62
63 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
64
65 Second part of ms1 to mt renaming.
66 * configure: Rebuilt.
67 * configure.in (mt): Remove special case.
68 * config/tc-mt.c (opcodes/mt-desc.h, opcodes/mt-opc.h): Change
69 #includes.
70 (mt_insn, mt_mach, mt_mach_bitmask, mt_flags, mt_architectures):
71 Rename, adjust.
72 (md_parse_option, md_show_usage, md_begin, md_assemble,
73 md_cgen_lookup_reloc, md_atof): Adjust.
74 (mt_force_relocation, mt_apply_fix, mt_fix_adjustable): Rename, adjust.
75 * config/tc-mt.h (TC_MT): Rename.
76 (LISTING_HEADER, TARGET_ARCH, TARGET_FORMAT): Adjust.
77 (md_apply_fix): Adjust.
78 (mt_apply_fix, mt_fix_adjustable, mt_force_relocation): Rename.
79 (TC_FORCE_RELOCATION, tc_fix_adjustable): Adjust.
80
81 2005-12-14 Jan Beulich <jbeulich@novell.com>
82
83 * config/tc-i386.c (add_prefix): More fine-grained handling of
84 REX prefixes. Or new prefix value into i.prefix instead of
85 assigning.
86
87 2005-12-13 DJ Delorie <dj@redhat.com>
88
89 * config/tc-m32c.c (m32c_md_end): Only pad code sections.
90
91 2005-12-12 Paul Brook <paul@codesourcery.com>
92
93 * config/tc-arm.c (do_branch): Generate EABI branch relocations.
94 (do_bl): New function.
95 (do_blx): Generate BFD_RELOC_ARM_PCREL_CALL relocation.
96 (do_t_blx): Generate BFD_RELOC_THUMB_PCREL_BRANCH23.
97 (insns): Use do_bl.
98 (md_pcrel_from_section): Add BFD_RELOC_ARM_PCREL_CALL and
99 BFD_RELOC_ARM_PCREL_JUMP.
100 (md_apply_fix): Merge BFD_RELOC_ARM_PCREL_BRANCH and
101 BFD_RELOC_ARM_PCREL_BLX cases. Handle BFD_RELOC_ARM_PCREL_CALL and
102 BFD_RELOC_ARM_PCREL_JUMP.
103 (tc_gen_reloc): Handle BFD_RELOC_ARM_PCREL_CALL and
104 BFD_RELOC_ARM_PCREL_JUMP.
105 gas/testsuite/
106 * gas/arm/pic.d: Allow R_ARM_CALL relocations.
107
108 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
109
110 * configure.in: Replace ms1 arch with mt arch.
111 * configure: Rebuilt.
112 * configure.tgt: Replace ms1 arch with mt arch.
113 * config/tc-mt.c: Renamed from tc-ms1.c: Update include files.
114 * doc/Makefile.am (CPU_DOCS): Replace ms1 files with mt files.
115 * doc/Makefile.in: Rebuilt.
116
117 2005-12-07 Hans-Peter Nilsson <hp@axis.com>
118
119 Change 32-bit-branch expansion for --pic.
120 * config/tc-cris.c (STATE_COND_BRANCH_PIC): New relaxation state.
121 (md_cris_relax_table): Add entry for STATE_COND_BRANCH_PIC.
122 (cris_any_v0_v10_long_jump_size_pic): New macro.
123 (md_estimate_size_before_relax): Handle STATE_COND_BRANCH_PIC.
124 (md_convert_frag): Similar.
125 (md_create_long_jump): Change 32-bit-branch expansion for --pic.
126 (md_assemble, gen_cond_branch_32): Adjust similarly.
127 (md_parse_option) <case OPTION_PIC>: Adjust md_long_jump_size.
128 <case OPTION_ARCH>: Similar, if --pic.
129
130 2005-12-06 H.J. Lu <hongjiu.lu@intel.com>
131
132 PR gas/1874
133 * config/tc-i386.c (match_template): Handle monitor.
134 (process_suffix): Likewise.
135
136 2005-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
137
138 Bug gas/1948
139 * symbols.c (colon): Also check if now_seg is bss_section when a symbol
140 is being redefined.
141
142 2005-12-02 Arnold Metselaar <arnoldm@sourceware.org>
143
144 * config/tc-z80.c (emit_ldreg): fix bug in ld rr,<xx>
145
146 2005-11-26 Arnold Metselaar <arnoldm@sourceware.org>
147
148 * config/tc-z80.c (z80_start_line_hook): issue an error when
149 redefining a symbol with equ
150 * doc/as.texinfo(equ<z80>): mention difference with .equiv
151 * doc/as.texinfo(err): fix typo
152 * doc/c-z80.texi(equ): redefining a symbol with equ is no longer
153 allowed
154
155 2005-11-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
156
157 Bug gas/1896
158 * config/tc-hppa.c (hppa_fix_adjustable): Don't reject for reduction
159 R_HPPA relocations that are 32-bits wide.
160
161 2005-11-23 Daniel Jacobowitz <dan@codesourcery.com>
162 Thiemo Seufer <ths@networkno.de>
163
164 * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL_S2.
165 (macro_build): Complain for invalid branch displacements.
166 (mips_validate_fix): Delete.
167 (md_apply_fix): Re-add pcrel support for branches. Use consistent
168 text for misaligned branch targets.
169 (tc_gen_reloc: Re-add pcrel support for branches. Handle strange
170 BFD pcrel processing. Remove error for unresolved branches.
171 * config/tc-mips.h (TC_VALIDATE_FIX, mips_validate_fix): Delete.
172
173 2005-11-22 James E Wilson <wilson@specifix.com>
174
175 * config/tc-ia64.c (emit_one_bundle): Perform last_slot < 0 check
176 even when manual_bundling isn't set.
177
178 * config/tc-ia64.c (slot_index): Emit an error instead of a warning
179 when the frag chain is broken by section switching.
180
181 2005-11-18 Jie Zhang <jie.zhang@analog.com>
182
183 * config/bfin-defs.h (IS_BREG, IS_LREG): New macros.
184 * config/bfin-parse.y (asm_1): Check register type for load immediate
185 instruction.
186
187 2005-11-17 Alexandre Oliva <aoliva@redhat.com>
188
189 * config/tc-ppc.c (ppc_frob_file_before_adjust): Do not reference
190 dotname.
191 * write.c (write_object_file): Do not remove used weakrefd.
192
193 2005-11-17 Jan Beulich <jbeulich@novell.com>
194
195 * dw2gencfi.c (dot_cfi): Put argument parsing for cases
196 DW_CFA_restore and DW_CFA_undefined in a loop.
197
198 2005-11-17 Jan Beulich <jbeulich@novell.com>
199
200
201 * symbols.h (S_CLEAR_VOLATILE): Declare.
202 * symbols.c (colon): Also accept redefinable symbols for
203 redefinition. Clone them before modifying.
204 (S_CLEAR_VOLATILE): Define.
205 * cond.c (s_ifdef): Also test for equated symbols.
206 * read.c (s_comm_internal): Also exclude non-redefinable
207 equated symbols. Clone redefinable ones before modifying.
208 (s_weakref): Clone redefinable symbols before modifying.
209 * doc/internals.texi: Document sy_volatile, sy_forward_ref,
210 S_IS_VOLATILE, S_SET_VOLATILE, S_CLEAR_VOLATILE,
211 S_IS_FORWARD_REF, and S_SET_FORWARD_REF.
212
213 2005-11-16 Alan Modra <amodra@bigpond.net.au>
214
215 * config/tc-hppa.c (pa_comm): Set bfd_com_section segment.
216
217 2005-11-16 Alan Modra <amodra@bigpond.net.au>
218
219 * configure.tgt (i386-*-gnu*): Set em=gnu.
220 * config/te-gnu.h: New file.
221 * config/tc-i386.c: Don't use '/' as comment char for TE_GNU.
222
223 2005-11-16 Alan Modra <amodra@bigpond.net.au>
224
225 * config/tc-ppc.c (ppc_pe_comm): Set bfd_com_section segment.
226 * config/tc-alpha.c (s_alpha_comm): Likewise. Also, remove
227 redundant check.
228 * read.c (s_lsym): Remove non-BFD assembler sym handling.
229
230 2005-11-16 Alan Modra <amodra@bigpond.net.au>
231
232 * read.c (s_comm_internal): Set bfd_com_section segment.
233 (s_mri_common): Likewise.
234 * write.c (write_object_file): Remove non-BFD assembler common
235 sym handling.
236
237 2005-11-15 Daniel Jacobowitz <dan@codesourcery.com>
238
239 * config/tc-arm.c (s_arm_unwind_save_core): Don't emit an extra
240 opcode if r4-r15 are not saved.
241
242 2005-11-15 Alan Modra <amodra@bigpond.net.au>
243
244 * symbols.c (S_GET_VALUE): Remove non-BFD assembler recursion guard.
245
246 2005-11-14 Jan Beulich <jbeulich@novell.com>
247
248 * config/tc-ia64.c (AR_FCR, AR_EFLAG, AR_CSD, AR_SSD, AR_CFLG,
249 AR_FSR, AR_FIR, AR_FDR, AR_CCV, AR_EC): Define.
250 (ar): Use AR_* instead of literals.
251 (CR_DCR, CR_ITM, CR_IVA, CR_PTA, CR_GPTA, CR_LID, CR_ITV,
252 CR_PMV, CR_CMCV): Define.
253 (cr): Use CR_* instead of literals.
254
255 2005-11-14 Jan Beulich <jbeulich@novell.com>
256
257 * config/tc-ia64.c (md): Rename regsym to indregsym and move
258 it to the end of the structure.
259 (ar): Field regnum is unsigned.
260 (cr): Likewise:
261 (indirect_reg): Likewise.
262 (declare_register_set): Parameter regnum is unsigned.
263 (declare_register): Parameter numregs and base_regnum are
264 unsigned. So is the local loop variable.
265 (md_begin): Restrict scope of local variable regnum, which
266 also is unsigned. Replace loops with function calls where
267 possible. Re-order things so that register groups are kept
268 together. Remove all uses of regsym except for indirect
269 registers. Replace use of regsym by indregsym for indirect
270 registers.
271 (ia64_optimize_expr): Replace use of regsym by indregsym for
272 indirect registers, with appropriate bias.
273
274 2005-11-14 David Ung <davidu@mips.com>
275
276 * config/tc-mips.c (mips16_ip): Add handling of 'm' and 'M' codes
277 for the MIPS16e save/restore instructions.
278
279 2005-11-11 Jan Beulich <jbeulich@novell.com>
280
281 * doc/Makefile.am: Make asconfig.texi writeable before trying
282 to write to it.
283 * doc/Makefile.in: Refresh.
284
285 2005-11-10 Jan Beulich <jbeulich@novell.com>
286
287 * config/tc-i386.c (intel_e11): Don't special-case segment
288 registers in brackets.
289
290 2005-11-10 Nick Clifton <nickc@redhat.com>
291
292 * config/tc-arm.c (BAD_ADDR_MODE): Define.
293 (arm_reg_parse_multi): Return NULL rather than FAIL.
294 (arm_reg_parse): Fix comment, the function returns FAIL rather
295 than NULL if it is unable to parse the register name.
296 (do_ldrex): Use BAD_ADDR_MODE.
297 Change error message for PC-relative addressing.
298 (do_strex): Likewise.
299 (do_t_ldrex): Use BAD_ADDR_MODE.
300 (do_t_strex): Likewise.
301
302 2005-11-08 Jean-Jacques Metayer <jean-jacques.metayer@thomson.net>
303
304 * config/tc-sparc.c (isoctal): Fix thinko.
305
306 2005-11-08 Arnold Metselaar <arnold.metselaar@planet.nl>
307
308 * expr.c (operand <case '$'>): Use DOLLAR_AMBIGU rather than
309 flag_mri_m68k as condition for parsing the '$' as a prefix.
310 * as.h (DOLLAR_AMBIGU): Define if needed.
311
312 2005-11-08 Nathan Sidwell <nathan@codesourcery.com>
313
314 Add ms2 support.
315 * config/tc-ms1.c (ms1_mach_bitmask): Initialize to MS1.
316 (ms1_architectures): Add ms2.
317 (md_parse_option): Add ms2.
318 (md_show_usage): Add ms2.
319 (md_assemble): Add JAL_HAZARD detection logic.
320 (md_cgen_lookup_reloc): Add MS1_OPERAND_LOOPSIZE case.
321 * doc/c-ms1.texi: New.
322 * doc/all.texi: Add MS1.
323 * doc/Makefile.am (CPU_DOCS): Add c-ms1.texi.
324 * doc/Makefile.in: Rebuilt.
325 * doc/Makefile: Rebuilt.
326
327 2005-11-07 Steve Ellcey <sje@cup.hp.com>
328
329 * configure: Regenerate after modifying bfd/warning.m4.
330
331 2005-11-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
332
333 PR gas/1804
334 * config/tc-hppa.c (md_apply_fix): Use number_to_chars_bigendian to
335 output constant data.
336
337 2005-11-07 Mark Mitchell <mark@codesourcery.com>
338
339 * doc/Makefile.am (asconfig.texi): Set top_srcdir.
340 * doc/Makefile.in: Regenerated.
341 * doc/as.texinfo: Document "@FILE".
342
343 2005-11-07 Nick Clifton <nickc@redhat.com>
344
345 PR binutils/1568
346 * config/obj-coff.c (obj_coff_section): Set readonly flag with the
347 'x' attribute. Remember the actions of the 'w' and 'n' attributes
348 and do not allow the 'x','s' or 'd' attributes to change them.
349
350 2005-11-07 John Levon <levon@movementarian.org>
351
352 * config/tc-i386.h (tc_comment_chars): Define.
353 * config/tc-i386.c (line_comment_chars): Use '/' unconditionally.
354 (i386_comment_chars): Add.
355 (md_parse_options): Process OPTION_DIVIDE.
356 (md_show_usage): Describe --divide option.
357 * doc/c-i386.texi: Document --divide option.
358
359 2005-11-07 Arnold Metselaar <arnold.metselaar@planet.nl>
360
361 * expr.c (op_encoding): Map '=' to O_SINGLE_EQ, if defined.
362 * config/tc-z80.h: Define O_SINGLE_EQ as O_eq.
363
364 2005-11-07 Alan Modra <amodra@bigpond.net.au>
365
366 * macro.c (buffer_and_nest): Skip labels regardless of
367 NO_PSEUDO_DOT and flag_m68k_mri.
368
369 2005-11-07 Arnold Metselaar <arnold.metselaar@planet.nl>
370
371 * expr.c (integer_constant): Match only 'B' as binary suffix if
372 NUMBERS_WITH_SUFFIX and LOCAL_LABELS_FB. Allow both 'b' and 'B'
373 otherwise.
374
375 2005-11-04 Alexandre Oliva <aoliva@redhat.com>
376
377 * read.c (s_weakref): Do not permit redefinitions.
378 * symbols.c (colon): Do not permit redefinitions of equated
379 symbols.
380
381 2005-11-01 Thiemo Seufer <ths@networkno.de>
382
383 PR gas/1299
384 * Makefile.am: Disable -Werror for the itbl-lex.o rule.
385 * Makefile.in: Regenerate.
386
387 2005-11-01 Thiemo Seufer <ths@networkno.de>
388
389 * config/tc-mips.c (md_parse_option): Fix typo in comment.
390
391 2005-10-30 Mark Mitchell <mark@codesourcery.com>
392
393 * as.c (show_usage): Document "@FILE".
394
395 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
396
397 * Makefile.am (OBJ_FORMATS): Remove vms.
398 Run "make dep-am".
399 * Makefile.in: Regenerated.
400
401 * dep-in.sed: Replace " ./" with " ".
402
403 2005-10-28 Dave Brolley <brolley@redhat.com>
404
405 Contribute the following change:
406 2005-09-19 Dave Brolley <brolley@redhat.com>
407
408 * config/tc-m32c.c (default_isa): New static variable.
409 (m32c_isa): Now of type CGEN_BITSET.
410 (md_begin): Pass &m32c_isa to m32c_cgen_cpu_open.
411
412 2005-10-28 Paul Brook <paul@codesourcery.com>
413
414 * config/tc-arm.c (aeabi_set_public_attributes): Use selected_cpu
415 instead of mcpu_cpu_opt.
416
417 2005-10-27 Sterling Augustine <sterling@tensilica.com>
418
419 * config/tc-xtensa.c (find_vinsn_conflicts): Change error messages to
420 refer to "ports" instead of "queues".
421 (check_t1_t2_reads_and_writes): Pass correct interface values to
422 xtensa_interface_inout.
423
424 2005-10-27 Jan Beulich <jbeulich@novell.com>
425
426 * read.c (assign_symbol): Also consider equates already defined.
427 * symbols.c (symbol_clone): Also clone the underlying BFD symbol.
428 * config/obj-coff.h (obj_symbol_clone_hook): New.
429 (coff_obj_symbol_clone_hook): Declare.
430 * config/obj-coff.c (coff_obj_symbol_clone_hook): New.
431
432 2005-10-26 DJ Delorie <dj@redhat.com>
433
434 * config/tc-m32c.c (md_relax_table, subtype_mappings,
435 md_convert_frag): Add jsr.w support.
436
437 * config/tc-m32c.c (md_assemble): Don't use errmsg as the format
438 itself.
439 (md_cgen_lookup_reloc): Add m32c bitbase operands. Add 8-s24
440 and imm-8-HI operands.
441
442 2005-10-26 Paul Brook <paul@codesourcery.com>
443
444 * config/tc-arm.c (insns): Correct "sel" entry.
445
446 2005-10-26 Jan Beulich <jbeulich@novell.com>
447
448 * config/tc-i386.c (i386_operand): Don't check register prefix here.
449 (parse_real_register): Rename from parse_register.
450 (parse_register): New.
451 (i386_parse_name): New.
452 (md_operand): New.
453 (intel_e11): Don't tolerate registers in offset expressions anymore.
454 (intel_get_token): Don't check register prefix here. Copy the actual
455 register token, not the canonical register name.
456 * config/tc-i386.h (md_operand): Delete.
457 (i386_parse_name): Declare.
458 (md_parse_name): Define.
459
460 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
461
462 * Makefile.am: Add Z80 cpu.
463 * Makefile.in: Regenerated.
464 * app.c (do_scrub_chars)<TC_Z80>: Correctly scrub "ex af,af'"
465 and disallow newlines in quoted strings.
466 * configure.tgt: Add z80-*-coff.
467 * config/obj-coff.h: Add format "coff-z80".
468 * doc/Makefile.am: Add c-z80.texi.
469 * doc/Makefile.in: Regenerated.
470 * doc/all.texi: Add Z80.
471 * doc/c-z80.texi: New file
472 * doc/as.texinfo: Add z80 options and some z80-related remarks.
473 * config/tc-z80.c: New file
474 * config/tc-z80.h: New file
475 * NEWS: Mention new support.
476
477 2005-10-25 H.J. Lu <hongjiu.lu@intel.com>
478
479 * write.c (adjust_reloc_syms): Undo the change made on
480 2005-04-26 to allow local symbol set to undefined symbol.
481
482 2005-10-24 H.J. Lu <hongjiu.lu@intel.com>
483
484 * Makefile.am (bfin-parse.tab.h): Removed.
485 (bfin-parse.h): Added.
486 * Makefile.in: Regenerated.
487
488 2005-10-25 Alan Modra <amodra@bigpond.net.au>
489
490 * po/POTFILES.in: Regenerate.
491 * po/gas.pot: Regenerate.
492
493 2005-10-24 Bernd Schmidt <bernd.schmidt@analog.com>
494
495 * config/tc-bfin.c (Expr_Node_Gen_Reloc): If have symbol + constant,
496 make a single reloc with an offset rather than a stack.
497 * config/tc-bfin.h (MD_APPLY_SYM_VALUE): Define to 0.
498
499 2005-10-24 Alexandre Oliva <aoliva@redhat.com>
500
501 * read.c (potable): Add weakref.
502 (s_weakref): New.
503 * read.h (s_weakref): Declare.
504 * struc-symbol.h (struct symbol): Add sy_weakrefr and sy_weakrefd.
505 * symbols.c (colon): Clear weakrefr.
506 (symbol_find_exact): Rename to, and reimplement in terms of...
507 (symbol_find_exact_noref): ... new function.
508 (symbol_find): Likewise...
509 (symbol_find_noref): ... ditto.
510 (resolve_symbol_value): Resolve weakrefr without setting their
511 values.
512 (S_SET_WEAK): Call hook.
513 (S_GET_VALUE): Follow weakref link.
514 (S_SET_VALUE): Clear weakrefr.
515 (S_IS_WEAK): Follow weakref link.
516 (S_IS_WEAKREFR, S_SET_WEAKREFR, S_CLEAR_WEAKREFR): New.
517 (S_IS_WEAKREFD, S_SET_WEAKREFD, S_CLEAR_WEAKREFD): New.
518 (symbol_set_value_expression, symbol_set_frag): Clear weakrefr.
519 (symbol_mark_used): Follow weakref link.
520 (print_symbol_value_1): Print weak, weakrefr and weakrefd.
521 * symbols.h (symbol_find_noref, symbol_find_exact_noref): Declare.
522 (S_IS_WEAKREFR, S_SET_WEAKREFR, S_CLEAR_WEAKREFR): Declare.
523 (S_IS_WEAKREFD, S_SET_WEAKREFD, S_CLEAR_WEAKREFD): Declare.
524 * write.c (adust_reloc_syms): Follow weakref link. Do not
525 complain if target is undefined.
526 (write_object_file): Likewise. Remove weakrefr symbols. Drop
527 unreferenced weakrefd symbols.
528 * config/obj-coff.c (obj_frob_symbol): Do not force WEAKREFD
529 symbols EXTERNAL.
530 (pecoff_obj_set_weak_hook, pecoff_obj_clear_weak_hook): New.
531 * config/obj-coff.h (obj_set_weak_hook, obj_clear_weak_hook): Define.
532 * doc/as.texinfo: Document weakref.
533 * doc/internals.texi: Document new struct members, internal
534 functions and hooks.
535
536 2005-10-24 Jie Zhang <jie.zhang@analog.com>
537
538 * Makefile.am (bfin-parse.h): Renamed from bfin-parse.tab.h.
539 (EXTRA_DIST): Add bfin-parse.h and bfin-lex.c.
540 * Makefile.in: Regenerate.
541 * config/bfin-lex.l: Include bfin-parse.h instead of bfin-parse.tab.h.
542 * config/tc-bfin.c (md_chars_to_number): Change the type of first
543 argument from unsigned char * to char * to remove signedness warnings.
544
545 2005-10-24 Jan Beulich <jbeulich@novell.com>
546
547 * config/tc-ia64.c (enum reg_symbol): Delete IND_MEM.
548 (dot_rot): Change type of num_* variables. Check for positive count.
549 (ia64_optimize_expr): Re-structure.
550 (md_operand): Check for general register.
551
552 2005-10-24 Jan Beulich <jbeulich@novell.com>
553
554 * config/tc-ia64.c (declare_register): Call symbol_create.
555 (md_begin): Remove local variables total, ar_base, and cr_base.
556 Start loops for registers at their respective first one. Don't
557 update md.regsym for alias names. Generate alias name tp for r13.
558
559 2005-10-21 DJ Delorie <dj@redhat.com>
560
561 * config/tc-m32c.c (md_cgen_lookup_reloc): Add more relocs. Print
562 names unstead of numbers.
563
564 2005-10-19 David Ung <davidu@mips.com>
565
566 * config/tc-mips.c (append_insn): Convert MIPS16 jr/jalr jumps
567 into jrc/jalrc versions if ISA_MIPS32+ and not doing the swap,
568 hence avoiding to emit a nop.
569
570 2005-10-19 Jie Zhang <jie.zhang@analog.com>
571
572 * config/tc-bfin.c (md_begin): Let the lex_type of '(' be
573 LEX_BEGIN_NAME.
574 (bfin_start_line_hook): Remove the workaround for LSETUP(.
575 (bfin_name_is_register): Remove the workarounds for LSETUP(
576 and SAA(.
577 (bfin_start_label): Ditto.
578
579 2005-10-18 Bob Wilson <bob.wilson@acm.org>
580
581 * config/tc-xtensa.c (xtensa_end_directive): Restore
582 default_lit_sections regardless of use_literal_section.
583
584 2005-10-18 Jie Zhang <jie.zhang@analog.com>
585
586 * Makefile.am (bfin-lex.c): Update ylwrap invocation.
587 * Makefile.in: Regenerated.
588
589 2005-10-18 Arnold Metselaar <arnold.metselaar@planet.nl>
590
591 * doc/as.texinfo (.loc) Fix placement of '@end table'.
592
593 2005-10-17 Bob Wilson <bob.wilson@acm.org>
594
595 * config/xtensa-istack.h (TInsn): Replace dwarf2_line_info with an
596 unsigned line number. Do not include "dwarf2dbg.h".
597 * config/tc-xtensa.c (md_pseudo_table): Remove entry for "loc".
598 (xtensa_dwarf2_directive_loc, xtensa_dwarf2_emit_insn): Delete.
599 (xg_build_to_insn, xg_build_token_insn): Update TInsn uses.
600 (md_assemble): Use as_where instead of dwarf2_where.
601 (xg_assemble_vliw_tokens): Use unsigned line numbers instead of
602 dwarf2_line_infos. Change to call new_logical_line followed by
603 dwarf2_emit_insn.
604
605 2005-10-14 Mike Frysinger <vapier@gentoo.org>
606
607 * doc/as.texinfo (Section): Add missing ']' to .section example.
608
609 2005-10-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
610
611 PR binutils/941
612 * config/tc-hppa.c (pa_ip): Use as_bad instead of as_fatal when an
613 unknown opcode is found.
614
615 2005-10-12 Mark Mitchell <mark@codesourcery.com>
616
617 * NEWS: Mention @file.
618
619 2005-10-12 Nick Clifton <nickc@redhat.com>
620
621 * config/tc-avr.c: Convert to ISO C90 format. Fix formatting and
622 generally tidy up the code.
623 * config/tc-avr.h: Likewise.
624
625 2005-10-12 Jan Beulich <jbeulich@novell.com>
626
627 * config/tc-ia64.c (dot_reg_val): Use expression_and_evaluate.
628 (dot_pred_rel): Likewise.
629 (parse_operand): Likewise.
630 (ia64_unrecognized_line): Likewise.
631 (md_operand): Likewise.
632
633 2005-10-11 Jan Beulich <jbeulich@novell.com>
634
635 * expr.h (enum expr_mode): New.
636 (expression): Pass third argument to expr.
637 (expression_and_evaluate): New.
638 (deferred_expression): New.
639 (expr): Add third parameter.
640 (resolve_expression): New.
641 * struc-symbol.h (struct symbol): New members sy_volatile and
642 sy_forward_ref.
643 * symbols.c, symbols.h (symbol_clone): New.
644 (symbol_clone_if_forward_ref): New.
645 (snapshot_symbol): New.
646 (S_IS_VOLATILE): New.
647 (S_IS_FORWARD_REF): New.
648 (S_SET_VOLATILE): New.
649 (S_SET_FORWARD_REF): New.
650 * as.c (macro_expr): Use expression_and_evaluate.
651 * cond.c (s_if): Likewise.
652 (s_elseif): Likewise.
653 * dw2gencfi.c (cfi_parse_reg): Likewise.
654 * expr.c (operand): Add second parameter. Optionally call
655 deferred_expression. Pass mode argument to itself and md_parse_name.
656 Check mode before trying to evaluate symbol. Call
657 symbol_clone_if_forward_ref for both operands.
658 (expr): Add third parameter. Pass mode to operand and itself.
659 Optionally call resolve_expression.
660 (resolve_expression): New.
661 (get_single_number): Pass second argument to operand.
662 * read.c (potable): New entry for .eqv.
663 (read_a_source_file): Handle new == operator.
664 (get_absolute_expr): Use expression_and_evaluate.
665 (s_lsym): Likewise.
666 (assign_symbol): Rename second parameter. Call symbol_clone on
667 legal and illegal redefinition. Call S_SET_VOLATILE and
668 S_SET_FORWARD_REF depending on mode.
669 (s_set): Update description.
670 (s_space): Call resolve_expression.
671 (pseudo_set): Optionally call deferred_expression. Check
672 S_IS_FORWARD_REF before trying to simplify/resolve an expression.
673 (equals): Handle ==.
674 * config/tc-ia64.h (md_parse_name): Add mode parameter.
675 * config/tc-arc.c (arc_parse_cons_expression): Likewise.
676 * config/tc-m32r.h (md_parse_name): Likewise.
677 (m32r_parse_name): Likewise.
678 * config/tc-mmix.h (md_parse_name): Likewise.
679 * config/tc-mn10300.h (md_parse_name): Likewise.
680 (mn10300_parse_name): Likewise.
681 * config/tc-ppc.h (md_parse_name): Likewise.
682 * config/tc-sh.h (md_parse_name): Likewise.
683 (sh_parse_name): Likewise.
684 * config/tc-sh64.h (md_parse_name): Likewise.
685 (sh64_consume_datalabel): Likewise.
686 * config/tc-tic54x.h (md_parse_name): Likewise.
687 * config/tc-m32r.c (m32r_parse_name): Add mode parameter. Check it
688 before trying to evaluate symbol.
689 * config/tc-mn10300.c (mn10300_parse_name): Likewise.
690 * config/tc-sh.c (sh_parse_name): Likewise.
691 * config/tc-sh64.c (sh64_consume_datalabel): Add mode parameter. Pass
692 second argument to operandf. Pass mode parameter to sh_parse_name.
693 * doc/as.texinfo: Document .eqv and the == assignment operator.
694
695 2005-10-10 Ian Lance Taylor <ian@airs.com>
696
697 * Makefile.am (EXTRA_DIST): Remove bfin-lex.l and bfin-defs.h.
698 * Makefile.in: Regenerate.
699
700 2005-10-10 Arnold Metselaar <arnold.metselaar@planet.nl>
701
702 * expr.c (operator): Allow "!=" as a synonym for "<>".
703 * doc/as.texinfo (Infix Op): Mention "!=".
704
705 2005-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
706
707 * config/tc-hppa.c (strict): Don't initialize. Update comment.
708 (pa_ip): Promote from PA 1.0 to 1.1 immediately when 1.1 match is
709 found. Simplify handling of "ma" and "mb" completers.
710
711 2005-10-08 Paul Brook <paul@codesourcery.com>
712
713 * config/tc-arm.c: Don't provide fallback default for CPU_DEFAULT.
714 (arm_arch_used, thumb_arch_used, selected_cpu, selected_cpu_name):
715 New variables.
716 (arm_cpu_option_table): Add canonical_name.
717 (arm_cpus): Populate canonical_name field.
718 (s_arm_eabi_attribute, s_arm_arch, s_arm_cpu, s_arm_fpu,
719 aeabi_set_public_attributes, arm_md_end): New functions.
720 (md_pseudo_table): Add "cpu", "arch", "fpu" and "eabi_attribute".
721 (md_assemble): Set thumb_arch_used and arm_arch_used.
722 (md_begin): Set defaut cpu if CPU_DEFAULT not defined.
723 * config/tc-arm.h (md_end): Define.
724 * doc/c-arm.texi: Document .cpu, .arch, .fpu and .eabi_attribute.
725
726 2005-10-06 Khem Raj <kraj@mvista.com>
727 NIIBE Yutaka <gniibe@m17n.org>
728
729 * config/tc-sh.c (allow_dollar_register_prefix): New variable.
730 (parse_reg_without_prefix): New function.
731 (parse_reg): Check for '$' register prefix if --allow-reg-prefix is
732 set.
733 (option md_longopts): Add allow-reg-prefix option.
734 * doc/c-sh.texi: Document --allow-reg-prefix option.
735 * NEWS: Mention the new switch.
736
737 2005-10-03 Arnold Metselaar <arnold.metselaar@planet.nl>
738
739 * doc/as.texinfo (Infix Ops): '<' and '>' are not shift
740 operators.
741
742 2005-09-30 Sterling Augustine <sterling@tensilica.com>
743 Bob Wilson <bob.wilson@acm.org>
744
745 * config/tc-xtensa.c (xtensa_frob_label): Disallow labels in bundles.
746
747 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
748
749 * Makefile.am: Run "make dep-am".
750 * Makefile.in: Regenerated.
751 * aclocal.m4: Likewise.
752
753 2005-09-30 Mark Mitchell <mark@codesourcery.com>
754
755 * as.c (main): Use expandargv.
756
757 2005-09-30 Jan Beulich <jbeulich@novell.com>
758
759 * config/tc-tic4x.c (tic4x_set): Advance input_line_pointer past
760 (removed) comma.
761
762 2005-09-30 Catherine Moore <clm@cm00re.com>
763
764 * Makefile.am: Bfin support.
765 * Makefile.in: Regenerated.
766 * aclocal.m4: Regenerated.
767 * configure: Regenerated.
768 * configure.in: Bfin support.
769 * configure.tgt: Bfin support.
770 * config/bfin-aux.h: New file.
771 * config/bfin-defs.h: New file.
772 * config/bfin-lex.l: New file.
773 * config/bfin-parse.y: New file.
774 * config/tc-bfin.c: New file.
775 * config/tc-bfin.h: New file.
776 * doc/Makefile.am: Recognize c-bfin.texi.
777 * doc/Makefile.in: Regenerated.
778 * doc/all.texi: Bfin support.
779 * doc/as.texinfo: Likewise.
780 * doc/c-bfin.texi: Document bfin-specific syntax and
781 directives.
782
783 2005-09-30 Paul Brook <paul@codesourcery.com>
784
785 * config/tc-arm.c (opcode_tag): Add OT_cinfix3_legacy.
786 (opcode_lookup): Handle OT_cinfix3_legacy. Revert earlier change for
787 normal infix conditions.
788 (C3E): Include Thumb-2 definition.
789 (CL, cCL): Define.
790 (insns): Use them for legacy mnemonics.
791
792 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
793
794 * asintl.h: Prevent the inclusion of <libintl.h> from the Solaris
795 version of <locale.h> when ENABLE_NLS is not defined.
796
797 2005-09-29 Jan Beulich <jbeulich@novell.com>
798
799 * config/tc-ia64.c (parse_operands): Always parse first operand of
800 alloc.
801
802 2005-09-29 Arnold Metselaar <arnold.metselaar@planet.nl>
803 Alan Modra <amodra@bigpond.net.au>
804
805 * app.c (do_scrub_chars): Match open and close quote of strings.
806 Remove redundant EOF test in case 7.
807
808 2005-09-28 Jan Beulich <jbeulich@novell.com>
809
810 * config/tc-i386.c (reloc): Disable signedness check for 4-byte
811 relocations in 16- and 32-bit modes.
812 (i386_displacement): Make pc-relative branch handling dependent
813 upon operand (rather than address) size.
814
815 2005-09-28 Jan Beulich <jbeulich@novell.com>
816
817 * dw2gencfi.c (dot_cfi): Call ignore_rest_of_line when not fully
818 parsing the input.
819 (dot_cfi_startproc): Likewise.
820 (dot_cfi_endproc): Likewise. Also check no extra input was given.
821 (dot_cfi_escape): Likewise.
822
823 2005-09-28 Jan Beulich <jbeulich@novell.com>
824
825 * config/tc-i386.h (x86_cons_fix_new): Declare unconditionally.
826 (TC_CONS_FIX_NEW): Define unconditionally.
827 (x86_pe_cons_fix_new): Remove.
828 * config/tc-i386.c (signed_cons): New.
829 (md_pseudo_table): Add slong.
830 (x86_cons_fix_new): Declare unconditionally.
831 (x86_pe_cons_fix_new): Merge into x86_cons_fix_new.
832 (tc_gen_reloc): Also consider BFD_RELOC_X86_64_32S for gotpc
833 conversion.
834
835 2005-09-28 Arnold Metselaar <arnold.metselaar@planet.nl>
836
837 * app.c (do_scrub_chars <LEX_IS_SYMBOL_COMPONENT>): Check for full
838 buffer after copying string.
839
840 2005-09-27 Paul Brook <paul@codesourcery.com>
841
842 * config/arm.c (arm_cpus): Add more cpu names.
843 * doc/c-arm.texi: Document them.
844
845 2005-09-21 Alan Modra <amodra@bigpond.net.au>
846
847 * read.c (pseudo_set): Don't set undefined symbols to expr_section.
848
849 2005-09-20 Richard Henderson <rth@redhat.com>
850
851 * dwarf2dbg.c (process_entries): Fix uninitialized variable warning.
852
853 2005-09-20 Richard Henderson <rth@redhat.com>
854
855 * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofs
856 with label.
857 (dwarf2_loc_mark_labels): New.
858 (dwarf2_gen_line_info_1): Split out of ...
859 (dwarf2_gen_line_info): ... here. Create the temp symbol here.
860 (dwarf2_emit_label): New.
861 (dwarf2_directive_loc_mark_labels): New.
862 (out_set_addr): Take a symbol instead of frag+ofs.
863 (relax_inc_line_addr): Likewise.
864 (emit_inc_line_addr): Assert delta non-negative.
865 (process_entries): Remove dead code. Update to work with temp
866 symbols instead of frag+ofs.
867 * dwarf2dbg.h (dwarf2_directive_loc_mark_labels): Declare.
868 (dwarf2_emit_label, dwarf2_loc_mark_labels): Declare.
869 * config/obj-elf.c (elf_pseudo_tab): Add loc_mark_labels.
870 * config/obj-elf.h (obj_frob_label): New.
871 * config/tc-alpha.c (alpha_define_label): Call dwarf2_emit_label.
872 * config/tc-arm.c, config/tc-hppa.c, config/tc-m68k.c,
873 config/tc-mips.c, config/tc-ppc.c, config/tc-sh.c, config/tc-xtensa.c:
874 Similarly in the respective tc_frob_label implementation functions.
875 * config/tc-i386.c (md_pseudo_table): Move file and loc to
876 non-elf section; add loc_mark_labels.
877 * config/tc-ia64.c (struct label_fix): Add dw2_mark_labels.
878 (ia64_flush_insns): Check for marked labels; emit line entry if so.
879 (emit_one_bundle): Similarly.
880 (ia64_frob_label): Record marked labels.
881 * config/tc-m68hc11.h (tc_frob_label): Remove.
882 * config/tc-ms1.c (md_pseudo_table): Remove file and loc.
883 * config/tc-sh.h (tc_frob_label): Pass sym to sh_frob_label.
884 * config/tc-sh64.h (tc_frob_label): Likewise.
885 * doc/as.texinfo (LNS directives): Docuement .loc_mark_blocks.
886
887 2005-09-20 Alan Modra <amodra@bigpond.net.au>
888
889 * read.c (pseudo_set): Set segment of expression syms to expr_section.
890
891 2005-09-14 Jan Beulich <jbeulich@novell.com>
892
893 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Add selector
894 registers, floating point control and status words, and mxcsr as
895 well as (for 64-bit code) segment base registers and rflags.
896
897 2005-09-09 Dmitry Diky <diwil@spec.ru>
898
899 * config/tc-msp430.c (msp430_operands): Undo last changes. Instead...
900 (msp430_relax_frag): add a guard check to ensure that final fr_subtype
901 has been reached.
902
903 2005-09-08 Chao-ying Fu <fu@mips.com>
904
905 * doc/as.texinfo: Document -mdsp and -mno-dsp options.
906 * doc/c-mips.texi: Likewise, and document ".set dsp" and ".set nodsp"
907 directives.
908
909 2005-09-08 Paul Brook <paul@codesourcery.com>
910
911 * config/tc-arm.c (do_smi, do_t_smi): Rename ...
912 (do_smc, do_t_smc): ... to this.
913 (insns): Remane smi to smc.
914 (md_apply_fix, tc_gen_reloc): Rename BFD_RELOC_ARM_SMI to
915 BFD_RELOC_ARM_SMC.
916
917 2005-09-07 Richard Henderson <rth@redhat.com>
918
919 * dwarf2dbg.c (dwarf2_where): Set line->isa.
920 (dwarf2_set_isa): New.
921 (dwarf2_directive_loc): Rearrange to allow all options on one line.
922 * dwarf2dbg.h (dwarf2_set_isa): Declare.
923 * doc/as.texinfo: Update .loc documentation.
924
925 2005-09-07 Richard Henderson <rth@redhat.com>
926
927 * dwarf2dbg.c: Include safe-ctype.h.
928 (DWARF2_LINE_OPCODE_BASE): Bump to 13.
929 (current): Initialize.
930 (dwarf2_emit_insn): Clear DWARF2_FLAG_BASIC_BLOCK,
931 DWARF2_FLAG_PROLOGUE_END, DWARF2_FLAG_EPILOGUE_BEGIN.
932 (dwarf2_directive_file): Cope with invalid filename.
933 (dwarf2_directive_loc): Add handling for basic_block, prologue_end,
934 epilogue_begin, is_stmt, isa.
935 (emit_inc_line_addr): Move line_delta == 0, addr_delta == 0 special
936 case down lower.
937 (process_entries): Handle isa, DWARF2_FLAG_PROLOGUE_END,
938 and DWARF2_FLAG_EPILOGUE_BEGIN.
939 (out_debug_line): Emit sizes for DW_LNS_set_prologue_end,
940 DW_LNS_set_epilogue_begin, DW_LNS_set_isa.
941 * dwarf2dbg.h (DWARF2_FLAG_IS_STMT): Rename from DWARF2_FLAG_BEGIN_STMT.
942 (DWARF2_FLAG_BASIC_BLOCK): Rename from DWARF2_FLAG_BEGIN_BLOCK.
943 (DWARF2_FLAG_PROLOGUE_END, DWARF2_FLAG_EPILOGUE_BEGIN): New.
944 (struct dwarf2_line_info): Add isa member.
945 * doc/as.texinfo (LNS directives): New node.
946
947 2005-09-07 David Ung <davidu@mips.com>
948
949 * config/tc-mips.c (append_insn): Undo last change. Instead add
950 guard to suppress calling frag_grow if the current instruction is
951 one that allows a delay slot.
952
953 2005-09-06 Chao-ying Fu <fu@mips.com>
954
955 * config/tc-mips.c (mips_set_options): Add ase_mt for MT instructions.
956 (mips_opts): Add -1 to initialize ase_mt.
957 (file_ase_mt): New variable for -mmt.
958 (CPU_HAS_MT): New define.
959 (validate_mips_insn): Add supports for +t, +T, !, $, *, &, g operand
960 formats.
961 (mips_ip): Check ase_mt to enable MT instructions.
962 Handle !, $, *, &, +T, +t, g operand formats.
963 For "mftc1", "mfthc1", "cftc1", "mttc1", "mtthc1", "cttc1", we allow
964 odd float registers.
965 (OPTION_MT, OPTION_NO_MT): New define.
966 (OPTION_COMPAT_ARCH_BASE): Change because of inserting MT define.
967 (md_parse_option): Parse OPTION_MT and OPTION_NO_MT.
968 (mips_after_parse_args): Set ase_mt based on CPU.
969 (s_mipsset): Handle ".set mt" and ".set nomt".
970 (mips_elf_final_processing): Remind of adding new flag for MT ASE.
971 (md_show_usage): Show usage of -mmt and -mno-mt.
972 * doc/as.texinfo: Document -mmt and -mno-mt options.
973 * doc/c-mips.texi: Likewise, and document ".set mt" and ".set nomt"
974 directives.
975
976 2005-09-06 Paul Brook <paul@codesourcery.com>
977
978 * config/tc-arm.c (arm_it): Add relax field.
979 (T16_32_TAB): Add addi, addis, add_pc, add_sp, dec_sp, inc_sp,
980 b, bcond, ldr_pc, ldr_pc2, ldr_sp, str_sp, subi, subis.
981 (do_t_add_sub, do_t_addr, do_t_branch, do_t_ldst,
982 do_t_mov_cmp): Allow relaxation.
983 (output_relax_insn): New function.
984 (put_thumb32_insn): New function.
985 (output_inst): Use new functions.
986 (md_assemble): Don't throw error on relaxable instructions.
987 (insns): Change "b" entry from TCE(...) to tCE(...).
988 (md_estimate_size_before_relax): Return 2.
989 (md_convert_frag, relax_immediate, relax_adr, relax_addsub,
990 relax_branch, arm_relax_frag): New functions.
991 (arm_force_relocation): Return 0 for Thumb-2 immediate operand
992 relocations.
993 * config/tc-arm.h (md_convert_frag): Remove definition.
994 (md_relax_frag): Define.
995 (arm_relax_frag): Add prototype.
996
997 2005-09-02 Paul Brook <paul@codesourcery.com>
998
999 * config/tc-arm.c (do_rn_rd): Enforce SWP operand constraints.
1000
1001 2005-09-02 Paul Brook <paul@codesourcery.com>
1002
1003 * config/tc-arm.c (encode_arm_cp_address): Use
1004 BFD_RELOC_ARM_T32_CP_OFF_IMM in thumb mode.
1005 (do_iwmmxt_wldstbh): Use BFD_RELOC_ARM_T32_CP_OFF_IMM_S2 in thumb
1006 mode.
1007 (md_assemble): Only allow coprocessor instructions when Thumb-2 is
1008 available.
1009 (cCE, cC3): Define.
1010 (insns): Use them for coprocessor instructions.
1011 (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_CP_OFF_IMM.
1012 (get_thumb32_insn): New function.
1013 (put_thumb32_insn): New function.
1014 (md_apply_fix): Handle BFD_RELOC_ARM_T32_CP_OFF_IMM and
1015 BFD_RELOC_ARM_T32_CP_OFF_IMM_S2.
1016
1017 2005-09-02 Paul Brook <paul@codesourcery.com>
1018
1019 * config/tc-arm.c (opcode_lookup): Look for infix opcode when
1020 incorrect suffix matches.
1021
1022 2005-09-01 David Ung <davidu@mips.com>
1023
1024 * config/tc-mips.c (append_insn): Correctly handle mips16 case
1025 when the frags are different for the 2 instructions we want to
1026 swap. If the lengths of the 2 instructions are not the same, we
1027 won't do the swap but emit an nop.
1028
1029 2005-09-01 Dmitry Diky <diwil@spec.ru>
1030
1031 * config/tc-msp430.c (msp430_operands): Emit dwarf2_emit_insn()
1032 as appropriate. Change frag_variant() to frag_var() for relaxes.
1033
1034 2005-08-29 Nick Clifton <nickc@redhat.com>
1035
1036 * write.c (generic_force_reloc): Do not call S_FORCE_RELOC if
1037 there is no symbol.
1038
1039 2005-08-26 Jan Beulich <jbeulich@novell.com>
1040
1041 * config/tc-i386.c (intel_e09): Set JumpAbsolute when seeing a PTR-
1042 qualified operand of a branch.
1043 (intel_bracket_expr): Set JumpAbsolute here...
1044 (intel_e11): ... rather than here.
1045
1046 2005-08-26 Christian Groessler <chris@groessler.org>
1047
1048 * configure.tgt: Set bfd_gas also for z8k cpu.
1049 * config/tc-z8k.c (s_segm): Use bfd_set_arch_mach to set machine
1050 type.
1051 (newfix): Adapt to bfd reloc types.
1052 (build_bytes): Adapt to bfd reloc types. Ensure that enough space
1053 is available in the current frag.
1054 (md_convert_frag): Adapt function parameters.
1055 (tc_gen_reloc): New function.
1056 (md_section_align): Use bfd_get_section_alignment.
1057 (md_apply_fix): Adapt to bfd reloc types. Fix handling of
1058 BFD_RELOC_Z8K_IMM4L, BFD_RELOC_8, BFD_RELOC_16, and BFD_RELOC_32
1059 relocations.
1060 * config/tc-z8k.h (TARGET_ARCH): Define.
1061 (tc_fix_adjustable): Define.
1062
1063 2005-08-25 Chao-ying Fu <fu@mips.com>
1064
1065 * config/tc-mips.c (mips_set_options): Add ase_dsp for DSP instructions.
1066 (mips_opts): Add -1 to initialize ase_dsp.
1067 (file_ase_dsp): New variable for -mdsp.
1068 (CPU_HAS_DSP): New define.
1069 (validate_mips_insn): Add supports for 3, 4, 5, 6, 7, 8, 9, 0, ', :, @
1070 operand formats.
1071 (mips_ip): Add min_range and max_range for checking singed numbers.
1072 Check ase_dsp to enable DSP instructions.
1073 Handle 3, 4, 5, 6, 7, 8, 9, 0, ', :, @ operand formats.
1074 (OPTION_DSP, OPTION_NO_DSP): New define.
1075 (OPTION_COMPAT_ARCH_BASE): Change because of inserting DSP define.
1076 (md_parse_option): Parse OPTION_DSP and OPTION_NO_DSP.
1077 (mips_after_parse_args): Set ase_dsp based on CPU.
1078 (s_mipsset): Handle ".set dsp" and ".set nodsp".
1079 (mips_elf_final_processing): Remind of adding new flag for DSP ASE.
1080 (md_show_usage): Show usage of -mdsp and -mno-dsp.
1081
1082 2005-08-23 David Ung <davidu@mips.com>
1083
1084 * config/tc-mips.c (mips_cpu_info_table): Add 5kf to the table of
1085 cpu names.
1086
1087 2005-08-23 Alan Modra <amodra@bigpond.net.au>
1088
1089 PR 1036
1090 * config/tc-ppc.c (ppc_symbol_chars): Add '%' and '['.
1091
1092 2005-08-23 Phil Edwards <phil@codesourcery.com>
1093
1094 * configure.tgt (*-*-vxworks): Match vxworks* instead.
1095
1096 2005-08-22 Jan Beulich <jbeulich@novell.com>
1097
1098 * config/tc-i386.c (object_64bit): New.
1099 (i386_target_format): Initialize it.
1100 (output_disp): Use object_64bit for relocation type determination.
1101 (output_imm): Likewise.
1102 (i386_validate_fix): Likewise.
1103 (tc_gen_reloc): Likewise.
1104 (lex_got): Likewise. Remove static mode_name. Change array size
1105 of gotrel's rel field, and adjust its initializer. Adjust diagnostic.
1106 (x86_cons): Use object_64bit for deciding whether quad fields can
1107 have relocations.
1108
1109 2005-08-18 Christian Groessler <chris@groessler.org>
1110
1111 * config/tc-h8300.h: Remove TC_RELOC_MANGLE/tc_reloc_mangle.
1112 * config/tc-mcore.h: Likewise.
1113 * config/tc-z8k.h: Likewise.
1114 * config/tc-z8k.c: Likewise.
1115 * config/tc-sh.h: Remove TC_RELOC_MANGLE and
1116 sh_coff_reloc_mangle declaration.
1117 * config/tc-sh.c: (md_apply_fix): Fix comment for case
1118 BFD_RELOC_SH_USES.
1119
1120 2005-08-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1121
1122 * config/tc-sh64.c (sh64_target_format): Check preset_target_arch
1123 to confirm that no ISA is specified.
1124
1125 2005-08-18 Nick Clifton <nickc@redhat.com>
1126
1127 * write.c (relax_segment): Count the number of frags being
1128 processed and use this to compute a maximum limit on the number of
1129 iterations that will be allowed when attempting to relax the
1130 segment.
1131
1132 2005-08-17 Danny Smith <dannysmith@users.sourceforge.net>
1133
1134 * config/obj-coff.c (obj_coff_weak): Set auxiliary record
1135 of NT weak externals to IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY.
1136
1137 2005-08-16 Alan Modra <amodra@bigpond.net.au>
1138
1139 * config/tc-ppc.c (ppc_set_cpu): Don't select 64-bit based on
1140 default cpu.
1141
1142 2005-08-15 Paul Brook <paul@codesourcery.com>
1143
1144 * config/tc-arm.c (do_t_mov_cmp): Fix encoding of i16-bit conditional
1145 instructions.
1146 (do_t_mvn_tst, do_t_neg, do_t_shift): Ditto.
1147
1148 2005-08-15 Daniel Jacobowitz <dan@codesourcery.com>
1149
1150 * config/tc-ppc.c (parse_cpu): Add -me300 support.
1151 (md_show_usage): Likewise.
1152 * doc/c-ppc.texi (PowerPC-Opts): Document it.
1153
1154 2005-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
1155
1156 * config/tc-s390.c (md_parse_option): Add cpu type z9-109.
1157 (md_gather_operands): Add support for optional operands.
1158
1159 2005-08-12 Dmitry Diky <diwil@spec.ru>
1160 * config/tc-msp430.c (msp430_enable_relax): New flag.
1161 (msp430_enable_polys): Likewise.
1162 (OPTION_RELAX): New option.
1163 (OPTION_POLYMORPHS): Likewise.
1164 (md_longopts): New long options.
1165 (md_show_usage): Updated.
1166 (md_parse_option): Add new options handler.
1167 (msp430_operands): Add check if polymorph insns are enabled.
1168 (msp430_force_relocation_local): New function.
1169 (md_apply_fix): Now delete relocs according to new flags combination.
1170 (msp430_relax_frag): Convert long branches to short branches only if
1171 flag msp430_enable_relax is set.
1172 * config/tc-msp430.h (TC_FORCE_RELOCATION_LOCAL): Defined.
1173 (msp430_force_relocation_local): Likewise.
1174 * doc/c-msp430.texi: Describe new options.
1175
1176 2005-08-11 Ian Lance Taylor <ian@airs.com>
1177
1178 * Makefile.am ($(srcdir)/make-gas.com): Remove target.
1179 (stamp-mk.com): Likewise.
1180 (EXTRA_DIST): Remove make-gas.com from list.
1181 (MOSTLYCLEANFILES): Remove stamp-mk.com from list.
1182 * Makefile.in: Regenerate.
1183
1184 2005-08-11 Hans-Peter Nilsson <hp@axis.com>
1185
1186 * subsegs.c (subseg_change): Move declaration of seginfo to before
1187 first statement.
1188
1189 2005-08-11 Alan Modra <amodra@bigpond.net.au>
1190
1191 * README-vms: Delete.
1192 * config-gas.com: Delete.
1193 * makefile.vms: Delete.
1194 * vmsconf.sh: Delete.
1195 * config/atof-tahoe.c: Delete.
1196 * config/m88k-opcode.h: Delete.
1197 * config/obj-bout.c: Delete.
1198 * config/obj-bout.h: Delete.
1199 * config/obj-hp300.c: Delete.
1200 * config/obj-hp300.h: Delete.
1201 * config/tc-a29k.c: Delete.
1202 * config/tc-a29k.h: Delete.
1203 * config/tc-h8500.c: Delete.
1204 * config/tc-h8500.h: Delete.
1205 * config/tc-m88k.c: Delete.
1206 * config/tc-m88k.h: Delete.
1207 * config/tc-tahoe.c: Delete.
1208 * config/tc-tahoe.h: Delete.
1209 * config/tc-tic80.c: Delete.
1210 * config/tc-tic80.h: Delete.
1211 * config/tc-w65.c: Delete.
1212 * config/tc-w65.h: Delete.
1213 * config/te-aux.h: Delete.
1214 * config/te-delt88.h: Delete.
1215 * config/te-delta.h: Delete.
1216 * config/te-dpx2.h: Delete.
1217 * config/te-hp300.h: Delete.
1218 * config/te-ic960.h: Delete.
1219 * config/vms-a-conf.h: Delete.
1220 * doc/c-a29k.texi: Delete.
1221 * doc/c-h8500.texi: Delete.
1222 * doc/c-m88k.texi: Delete.
1223 * README: Remove obsolete examples, and list of supported targets.
1224 * Makefile.am: Remove a29k, h8500, m88k, tahoe, tic80, w65,
1225 bout and hp300 support.
1226 (DEP_FLAGS): Don't define BFD_ASSEMBLER.
1227 * configure.in: Remove --enable-bfd-assembler, need_bfd,
1228 primary_bfd_gas.
1229 * configure.tgt: Remove a29k, h8300-coff, h8500-*, i960 non-elf,
1230 m68k non bfd, m88k, or32-coff, tic80-*, vax non-bfd, w65k-*, *-nindy.
1231 * as.c: Remove all non-BFD_ASSEMBLER code, support for above targets.
1232 * as.h: Likewise.
1233 * dw2gencfi.c: Likewise.
1234 * dwarf2dbg.c: Likewise.
1235 * ehopt.c: Likewise.
1236 * input-file.c: Likewise.
1237 * listing.c: Likewise.
1238 * literal.c: Likewise.
1239 * messages.c: Likewise.
1240 * obj.h: Likewise.
1241 * output-file.c: Likewise.
1242 * read.c: Likewise.
1243 * stabs.c: Likewise.
1244 * struc-symbol.h: Likewise.
1245 * subsegs.c: Likewise.
1246 * subsegs.h: Likewise.
1247 * symbols.c: Likewise.
1248 * symbols.h: Likewise.
1249 * tc.h: Likewise.
1250 * write.c: Likewise.
1251 * write.h: Likewise.
1252 * config/aout_gnu.h: Likewise.
1253 * config/obj-aout.c: Likewise.
1254 * config/obj-aout.h: Likewise.
1255 * config/obj-coff.c: Likewise.
1256 * config/obj-coff.h: Likewise.
1257 * config/obj-evax.h: Likewise.
1258 * config/obj-ieee.h: Likewise.
1259 * config/tc-arm.c: Likewise.
1260 * config/tc-arm.h: Likewise.
1261 * config/tc-avr.c: Likewise.
1262 * config/tc-avr.h: Likewise.
1263 * config/tc-crx.h: Likewise.
1264 * config/tc-d10v.h: Likewise.
1265 * config/tc-d30v.h: Likewise.
1266 * config/tc-dlx.h: Likewise.
1267 * config/tc-fr30.h: Likewise.
1268 * config/tc-frv.h: Likewise.
1269 * config/tc-h8300.c: Likewise.
1270 * config/tc-h8300.h: Likewise.
1271 * config/tc-hppa.h: Likewise.
1272 * config/tc-i370.h: Likewise.
1273 * config/tc-i386.c: Likewise.
1274 * config/tc-i386.h: Likewise.
1275 * config/tc-i860.h: Likewise.
1276 * config/tc-i960.c: Likewise.
1277 * config/tc-i960.h: Likewise.
1278 * config/tc-ip2k.h: Likewise.
1279 * config/tc-iq2000.h: Likewise.
1280 * config/tc-m32c.h: Likewise.
1281 * config/tc-m32r.h: Likewise.
1282 * config/tc-m68hc11.h: Likewise.
1283 * config/tc-m68k.c: Likewise.
1284 * config/tc-m68k.h: Likewise.
1285 * config/tc-maxq.c: Likewise.
1286 * config/tc-maxq.h: Likewise.
1287 * config/tc-mcore.c: Likewise.
1288 * config/tc-mcore.h: Likewise.
1289 * config/tc-mn10200.h: Likewise.
1290 * config/tc-mn10300.c: Likewise.
1291 * config/tc-mn10300.h: Likewise.
1292 * config/tc-ms1.h: Likewise.
1293 * config/tc-msp430.c: Likewise.
1294 * config/tc-msp430.h: Likewise.
1295 * config/tc-ns32k.c: Likewise.
1296 * config/tc-ns32k.h: Likewise.
1297 * config/tc-openrisc.h: Likewise.
1298 * config/tc-or32.c: Likewise.
1299 * config/tc-or32.h: Likewise.
1300 * config/tc-ppc.c: Likewise.
1301 * config/tc-ppc.h: Likewise.
1302 * config/tc-s390.h: Likewise.
1303 * config/tc-sh.c: Likewise.
1304 * config/tc-sh.h: Likewise.
1305 * config/tc-sparc.c: Likewise.
1306 * config/tc-tic30.c: Likewise.
1307 * config/tc-tic30.h: Likewise.
1308 * config/tc-tic4x.c: Likewise.
1309 * config/tc-tic4x.h: Likewise.
1310 * config/tc-tic54x.c: Likewise.
1311 * config/tc-tic54x.h: Likewise.
1312 * config/tc-v850.h: Likewise.
1313 * config/tc-vax.c: Likewise.
1314 * config/tc-vax.h: Likewise.
1315 * config/tc-xstormy16.h: Likewise.
1316 * config/tc-xtensa.h: Likewise.
1317 * config/tc-z8k.c: Likewise.
1318 * config/tc-z8k.h: Likewise.
1319 * config/vms-a-conf.h
1320 * doc/Makefile.am: Likewise.
1321 * doc/all.texi: Likewise.
1322 * doc/as.texinfo: Likewise.
1323 * doc/internals.texi: Likewise.
1324 * doc/Makefile.in: Regenerate.
1325 * Makefile.in: Regenerate.
1326 * configure: Regenerate.
1327 * config.in: Regenerate.
1328 * po/POTFILES.in: Regenerate.
1329
1330 2005-08-09 Nick Clifton <nickc@redhat.com>
1331
1332 PR 1070
1333 * macro.c (getstring): Do not treat round parentheses exactly the
1334 same as angle brackets - the parentheses need to be preserved and
1335 passed on to the macro processing code.
1336
1337 2005-08-08 Nick Clifton <nickc@redhat.com>
1338
1339 * config/tc-msp430.c (MSP430_ISA_21): Define.
1340 (mcu_types): Add entries for msp430x21xx variants.
1341
1342 2005-08-08 Nick Clifton <nickc@redhat.com>
1343
1344 PR 1070
1345 * macro.c (getstring): Treat round parentheses in the same way as
1346 angle brackets.
1347 (get_any_string): Likewise.
1348
1349 2005-08-07 H.J. Lu <hongjiu.lu@intel.com>
1350
1351 PR gas/1118
1352 * as.c (parse_args): Handle -al=<FILE>.
1353
1354 2005-08-07 Nick Clifton <nickc@redhat.com>
1355
1356 * read.c (s_app_line): Accept a line number of 0 for compatibility
1357 with gcc's output for assembler-with-cpp files.
1358
1359 2005-08-05 Paul Brook <paul@codesourcery.com>
1360
1361 * config/tc-arm.c (current_it_mask, current_cc): New variables.
1362 (do_t_add_sub): Use correct encodings inside IT block.
1363 (do_t_arit3c): Ditto.
1364 (do_t_it): Simplify logic. Set current_it_mask and current_cc.
1365 (md_assemble): Verify conditional suffixes agains IT blocks.
1366
1367 2005-08-05 Paul Brook <paul@codesourcery.com>
1368
1369 * config/tc-arm.c (encode_thumb32_immediate): Only accept shifted
1370 constants.
1371 (encode_thumb32_shifted_operand): Prohibit register shifts.
1372 (encode_thumb32_addr_mode): Fix typo.
1373 (insns): Correct thumb2 ldm and stm opcodes.
1374
1375 2005-08-02 Khem Raj <kraj@mvista.com>
1376
1377 * config/tc-arm.c (do_iwmmxt_wldstd): Correct the offset range for
1378 WLDRD/WSTRD instruction.
1379
1380 2005-08-02 Alan Modra <amodra@bigpond.net.au>
1381
1382 * config/tc-ppc.c (md_apply_fix <ELF>): Don't warn on overflow
1383 if emitting a reloc.
1384
1385 2005-07-29 Thiemo Seufer <ths@networkno.de>
1386
1387 * config/tc-mips.c (s_mips_globl): Allow multiple symbols per .globl.
1388
1389 2005-07-29 Paul Brook <paul@codesourcery.com>
1390
1391 * config/tc-arm.c (T16_32_TAB): Add "addr". Fix encoding of push and
1392 pop.
1393 (do_t_addr): Implement 32-bit variant.
1394 (do_t_push_pop): Make some errors warnings. Handle single register
1395 32-bit case.
1396 (insns): Use tCE for adr.
1397 (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_ADD_PC12.
1398 (md_apply_fix): Ditto.
1399
1400 2005-07-29 Paul Brook <paul@codesourcery.com>
1401
1402 * config/tc-arm.c (parse_tb): New function.
1403 (enum operand_parse_code): Add OP_TB.
1404 (parse_operands): Handle OP_TB.
1405 (do_t_add_sub_w, do_t_tb): New functions.
1406 (insns): Add entries for addw, subw, tbb and tbh.
1407 (md_apply_fix): Handle BFD_RELOC_ARM_T32_IMM12.
1408
1409 2005-07-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1410
1411 * config/tc-m32r.c (m32r_check_fixup): Fixed X_op check.
1412
1413 2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
1414
1415 * config/tc-i386.c (handle_large_common): Declare only for ELF.
1416
1417 2005-07-27 Jan Beulich <jbeulich@novell.com>
1418
1419 * config/tc-ia64.h (unw_r_record): Change type of fr_mem to unsigned
1420 int.
1421 (unw_p_record): Remove unused/redundant fields imask and rmask.
1422 Combine spoff and pspoff into a union. Combine gr and br into a
1423 union. Change type of grmask and brmask to unsigned char. Change type
1424 of frmask to unsigned int.
1425 (unw_x_record): Combine spoff, pspoff, and treg into a union.
1426 * config/tc-ia64.c (unwind): New field 'pending_saves'.
1427 (check_pending_save): New.
1428 (alloc_record): Clear out entire record.
1429 (output_psp_gr): Use renamed structure fields.
1430 (output_psp_sprel): Likewise.
1431 (output_rp_gr): Likewise.
1432 (output_rp_br): Likewise.
1433 (output_rp_psprel): Likewise.
1434 (output_rp_sprel): Likewise.
1435 (output_pfs_gr): Likewise.
1436 (output_pfs_psprel): Likewise.
1437 (output_pfs_sprel): Likewise.
1438 (output_preds_gr): Likewise.
1439 (output_preds_psprel): Likewise.
1440 (output_preds_sprel): Likewise.
1441 (output_spill_base): Likewise.
1442 (output_unat_gr): Likewise.
1443 (output_unat_psprel): Likewise.
1444 (output_unat_sprel): Likewise.
1445 (output_lc_gr): Likewise.
1446 (output_lc_psprel): Likewise.
1447 (output_lc_sprel): Likewise.
1448 (output_fpsr_gr): Likewise.
1449 (output_fpsr_psprel): Likewise.
1450 (output_fpsr_sprel): Likewise.
1451 (output_priunat_gr): Likewise.
1452 (output_priunat_psprel): Likewise.
1453 (output_priunat_sprel): Likewise.
1454 (output_bsp_gr): Likewise.
1455 (output_bsp_psprel): Likewise.
1456 (output_bsp_sprel): Likewise.
1457 (output_bspstore_gr): Likewise.
1458 (output_bspstore_psprel): Likewise.
1459 (output_bspstore_sprel): Likewise.
1460 (output_rnat_gr): Likewise.
1461 (output_rnat_psprel): Likewise.
1462 (output_rnat_sprel): Likewise.
1463 (output_spill_psprel): Likewise.
1464 (output_spill_sprel): Likewise.
1465 (output_spill_reg): Likewise.
1466 (output_fr_mem): Likewise. Allocate one unwind record per set mask
1467 bit.
1468 (output_frgr_mem): Likewise.
1469 (output_gr_mem): Likewise.
1470 (output_br_mem): Likewise.
1471 (output_gr_gr): Likewise.
1472 (output_br_gr): Likewise.
1473 (fixup_unw_records): Likewise.
1474 (process_one_record): Use renamed structure fields. For gr_gr and
1475 br_gr, collect mask from chain of records before output.
1476 (in_prologue): Simplify and eliminate early returns. Call
1477 check_pending_save.
1478 (in_body): Simplify and eliminate early returns.
1479 (dot_body): Call check_pending_save.
1480 (md_assemble): Update comment. Deal with pending saves.
1481
1482 2005-07-26 Jan Beulich <jbeulich@novell.com>
1483
1484 * config/tc-i386.c (optimize_imm): Calculate candidate immediates
1485 mask from guessed suffix, but mask out other immediate types only
1486 if at least on candidate is valid for the insn.
1487
1488 2005-07-25 DJ Delorie <dj@redhat.com>
1489
1490 * config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
1491 Support %mod() modifiers from opcodes.
1492 * doc/c-m32c.texi (M32C-Modifiers): New section.
1493
1494 2005-07-25 Jan Hubicka <jh@suse.cz>
1495 H.J. Lu <hongjiu.lu@intel.com>
1496
1497 * config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is
1498 defined.
1499 (elf_com_section_ptr): New.
1500 (elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr.
1501 (elf_common_parse): Make it global. Use elf_com_section_ptr
1502 instead of bfd_com_section_ptr.
1503 (obj_elf_change_section): Handle x86-64 large bss sections.
1504
1505 * config/obj-elf.h (elf_com_section_ptr): New.
1506 (elf_common_parse): New.
1507
1508 * config/tc-i386.c (handle_large_common): New.
1509 (md_pseudo_table): Add "largecomm".
1510 (x86_64_section_letter): New.
1511 (x86_64_section_word): New.
1512
1513 * config/tc-i386.h (x86_64_section_word): New.
1514 (x86_64_section_letter): New.
1515 (md_elf_section_letter): New. Defined.
1516 (md_elf_section_word): Likewise.
1517
1518 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
1519
1520 * configure.tgt: Remove i386-*-rtemself*.
1521 Remove sparc-*-rtemself*.
1522
1523 2005-07-21 Ben Elliston <bje@gnu.org>
1524
1525 * config/tc-m68k.h: Remove TE_LYNX conditional code.
1526
1527 2005-07-21 Paul Brook <paul@codesourcery.com>
1528
1529 * config/tc-arm.c (encode_thumb32_addr_mode): Don't set
1530 inst.reloc.pc_rel.
1531
1532 2005-07-20 Tavis Ormandy <taviso@gentoo.org>
1533
1534 * messages.c: Use vsnprintf instead of vsprintf.
1535
1536 2005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1537
1538 * config/tc-m32r.c (tc_gen_reloc): Check BFD_RELOC_32_PCREL and
1539 BFD_RELOC_16_PCREL to Support R_M32R_REL32.
1540
1541 2005-07-18 Nick Clifton <nickc@redhat.com>
1542
1543 * configure.tgt: Restore alpha ordering to list of arches.
1544
1545 2005-07-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1546
1547 * tc-hppa.c (pa_ip): Reject match for '#' immediate if not pa20.
1548
1549 2005-07-18 Jan Beulich <jbeulich@novell.com>
1550
1551 * config/tc-i386.c (md_begin): Use IS_ELF.
1552 (tc_i386_fix_adjustable): Likewise.
1553 (md_estimate_size_before_relax): Likewise.
1554 (md_apply_fix): Likewise.
1555 (i386_target_format): Likewise.
1556 (lex_got): Define to NULL when not ELF or when LEX_AT. Check IS_ELF.
1557 (i386_immediate): Remove #ifdef LEX_AT.
1558 (i386_displacement): Likewise.
1559 * config/tc-i386.h (x86_cons): Prototype only when ELF and when not
1560 LEX_AT.
1561
1562 2005-07-18 Jan Beulich <jbeulich@novell.com>
1563
1564 * config/tc-i386.c (reloc): Convert to ISO C90. Change first
1565 parameter to unsigned. Parameter sign now is tristate - zero/
1566 positive mean unsigned/signed, negative means signedness doesn't
1567 matter. Check field size,
1568 signedness, and pcrel-ness are in agreement between relocated field
1569 and relocation type. Adjust diagnostics.
1570 (optimize_imm): And type mask of operand instead of overwriting it.
1571 (lex_got): Convert to ISO C90. Add third parameter. Add new field to
1572 local structure and initialize gotrel accordingly. Pass caller as
1573 mask of types that the operator can match.
1574 (x86_cons_fix_new): Let reloc know that signedness of relocation
1575 doesn't matter.
1576 (x86_pe_cons_fix_new): Likewise.
1577 (x86_cons): Pass additional argument to lex_got.
1578 (i386_immediate): New local variable 'types'. Pass its address as
1579 additional argument to lex_got. Mask out operand types not supported
1580 befoe returning.
1581 (i386_displacement): Likewise. Set bigdisp to all types supported in
1582 64-bit mode, combining the previously split initialization.
1583
1584 2005-07-18 Jan Beulich <jbeulich@novell.com>
1585
1586 * config/tc-i386.c (parse_insn): Reject prefix if unavailable in
1587 current mode.
1588
1589 2005-07-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1590
1591 * config/tc-hppa.c (pa_ip): Search entire mnemonic before considering
1592 promoted match.
1593
1594 2005-07-16 Alan Modra <amodra@bigpond.net.au>
1595
1596 * Makefile.am: Run "make dep-am".
1597 * Makefile.in: Regenerate.
1598
1599 2007-07-15 H.J. Lu <hongjiu.lu@intel.com>
1600
1601 * gas/config/tc-i386.h (CpuVMX): New.
1602 (CpuUnknownFlags): Add CpuVMX.
1603
1604 2005-07-14 Jim Blandy <jimb@redhat.com>
1605
1606 Add support for the Renesas M32C.
1607 * Makefile.am (CPU_TYPES): List m32c.
1608 (TARGET_CPU_CFILES): List config/tc-m32c.c.
1609 (TARGET_CPU_HFILES): List config/tc-m32c.h.
1610 * configure.in: Add case for m32c.
1611 * configure.tgt: Add cases for m32c and m32c-*-elf.
1612 * configure: Regenerated.
1613 * config/tc-m32c.c, config/tc-m32c.h: New files.
1614 * doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
1615 * doc/Makefile.in: Regenerated.
1616 * doc/all.texi: Set M32C.
1617 * doc/as.texinfo: Add text for the M32C-specific options and line
1618 comment characters, and refer to c-m32c.texi.
1619 * doc/c-m32c.texi: New file.
1620
1621 2005-07-14 Nick Clifton <nickc@redhat.com>
1622
1623 PR 1069
1624 * config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing
1625 the ins_parse buffer.
1626
1627 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
1628
1629 * configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
1630 i386-*-rtemscoff*, sparc-*-rtemsaout*.
1631
1632 2005-07-10 H.J. Lu <hongjiu.lu@intel.com>
1633
1634 * config/tc-i386.c (optimize_disp): Optimize signed 32bit
1635 displacements.
1636
1637 2005-07-08 Ben Elliston <bje@au.ibm.com>
1638
1639 * frags.h: Remove ANSI_PROTOTYPES conditional code.
1640 * config/obj-elf.h: Likewise.
1641 * config/tc-h8300.h: Likewise.
1642 * config/tc-h8500.h: Likewise.
1643 * config/tc-i370.h: Likewise.
1644 * config/tc-i386.h: Likewise.
1645 * config/tc-m68hc11.h: Likewise.
1646 * config/tc-m68k.h: Likewise.
1647 * config/tc-ppc.h: Likewise.
1648 * config/tc-s390.h: Likewise.
1649 * config/tc-sh.h: Likewise.
1650 * config/tc-sparc.h: Likewise.
1651 * config/tc-tic30.c: Likewise.
1652 * config/tc-w65.h: Likewise.
1653 * config/tc-xtensa.h: Likewise.
1654
1655 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
1656
1657 PR gas/1049
1658 * config/tc-cris.h (MD_APPLY_SYM_VALUE): Define.
1659
1660 2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1661
1662 * config/tc-tic30.c (debug): Add format attribute. Fix format
1663 bugs.
1664
1665 2005-07-06 H.J. Lu <hongjiu.lu@intel.com>
1666
1667 * config/tc-i386.c (cpu_arch): Add sse3.
1668
1669 * config/tc-i386.h (CpuSSE3): Renamed from ...
1670 (CpuPNI): This. Defined as CpuSSE3.
1671
1672 * doc/c-i386.texi: Document .sse3.
1673
1674 2005-07-06 Jan Beulich <jbeulich@novell.com>
1675
1676 * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop.
1677
1678 2005-07-05 Nick Clifton <nickc@redhat.com>
1679
1680 * config/tc-pdp11.c (md_apply_fix): Cast first argument to
1681 md_chars_to_numbers to an unsigned pointer in order to avoid a
1682 compile time warning.
1683
1684 2005-07-05 Paul Brook <paul@codesourcery.com>
1685
1686 * config/tc-ppc.c (ppc_target_format): Add VxWorks.
1687
1688 2005-07-05 Aldy Hernandez <aldyh@redhat.com>
1689
1690 * config/tc-ms1.c: New.
1691 * config/tc-ms1.h: New.
1692 * testsuite/gas/ms1/allinsn.d: New.
1693 * testsuite/gas/ms1/allinsn.s: New.
1694 * testsuite/gas/ms1/badinsn.s: New.
1695 * testsuite/gas/ms1/badinsn1.s: New.
1696 * testsuite/gas/ms1/badoffsethigh.s: New.
1697 * testsuite/gas/ms1/badoffsetlow.s: New.
1698 * testsuite/gas/ms1/badorder.s: New.
1699 * testsuite/gas/ms1/badreg.s: New.
1700 * testsuite/gas/ms1/badsignedimmhigh.s: New.
1701 * testsuite/gas/ms1/badsignedimmlow.s: New.
1702 * testsuite/gas/ms1/badsyntax.s: New.
1703 * testsuite/gas/ms1/badsyntax1.s: New.
1704 * testsuite/gas/ms1/badunsignedimmhigh.s: New.
1705 * testsuite/gas/ms1/badunsignedimmlow.s: New.
1706 * testsuite/gas/ms1/errors.exp: New.
1707 * testsuite/gas/ms1/ldst.s: New.
1708 * testsuite/gas/ms1/misc.d: New.
1709 * testsuite/gas/ms1/misc.s: New.
1710 * testsuite/gas/ms1/ms1-16-003.d: New.
1711 * testsuite/gas/ms1/ms1-16-003.s: New.
1712 * testsuite/gas/ms1/ms1.exp: New.
1713 * testsuite/gas/ms1/msys.d: New.
1714 * testsuite/gas/ms1/msys.s: New.
1715 * testsuite/gas/ms1/relocs.d: New.
1716 * testsuite/gas/ms1/relocs.exp: New.
1717 * testsuite/gas/ms1/relocs1.s: New.
1718 * testsuite/gas/ms1/relocs2.s: New.
1719
1720 2005-07-05 Jan Beulich <jbeulich@novell.com>
1721
1722 * config/tc-i386.h (CpuSVME): New.
1723 (CpuUnknownFlags): Include CpuSVME.
1724 * config/tc-i386.c (cpu_arch): Add .pacifica and .svme. Add opteron
1725 as alias of sledgehammer.
1726 (md_assemble): Include invlpga in the check for insns with two source
1727 operands.
1728 (process_operands): Include SVME insns in the check for ignored
1729 segment overrides. Adjust diagnostic.
1730 (i386_index_check): Special-case SVME insns with memory operands.
1731
1732 2005-07-04 Khem Raj <kraj@mvista.com>
1733 Nick Clifton <nickc@redhat.com>
1734
1735 * tc-arm.c (struct arm_it): Make operands.imm signed to match its
1736 use an immediate value.
1737 (parse_vfp_reg_list): Make the 2nd parameter an unsigned pointer
1738 since the register field of the operands structure is unsigned.
1739 (s_arm_unwind_save_vfp): Make "reg" unsigned.
1740 (parse_operands): Make the 2ns parameter an unsigned pointer to
1741 match its use.
1742 (do_ldrd): When using the imm field of the operands structure as a
1743 second register field, treat it as unsigned.
1744
1745 2005-07-04 Alan Modra <amodra@bigpond.net.au>
1746
1747 PR 1004
1748 * config/obj-elf.c (obj_elf_change_section): Use backend
1749 get_sec_type_attr.
1750
1751 2005-07-01 Jan Beulich <jbeulich@novell.com>
1752
1753 * config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
1754 (output_spill_psprel, output_spill_psprel_p): Combine.
1755 (output_spill_sprel, output_spill_sprel_p): Combine.
1756 (output_spill_reg, output_spill_regp_p): Combine.
1757 (process_one_record): Handle psp_psprel.
1758 (parse_predicate_and_operand): New.
1759 (convert_expr_to_ab_reg): Two new parameters. Return void. Always
1760 initialize output values. Emit diagnostic case here.
1761 (convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
1762 (add_unwind_entry): New second parameter. Allow first parameter to
1763 be NULL. Parse optional tag, emit warning about further support for
1764 it otherwise being missing. Check end-of-line when requested.
1765 (dot_fframe): Clear operand when wrong. Allow tag.
1766 (dot_vframe): Likewise.
1767 (dot_vframesp): Likewise. Rename parameter, issue warning when psp
1768 relative.
1769 (dot_vframepsp): Remove.
1770 (dot_altrp): Clear operand when wrong. Allow tag.
1771 (dot_save): Likewise. Let default case also go through
1772 add_unwind_entry.
1773 (dot_savemem): Likewise.
1774 (dot_restore): Don't return when wrong operand. Allow tag.
1775 (dot_spillreg, dot_spillreg_p): Combine. Simplify by using
1776 parse_predicate_and_operand and the new arguments to
1777 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
1778 when wrong operand. Allow tag.
1779 (dot_restorereg, dot_restorereg_p): Likewise.
1780 (dot_spillmem, dot_spillmem_p): Likewise.
1781 (dot_saveg): Clear operand when wrong. Perform tighter operand
1782 checks. Allow tag.
1783 (dot_savef): Likewise.
1784 (dot_saveb): Likewise.
1785 (dot_savegf): Likewise.
1786 (dot_spill): Remove end-of-line check. Combine. Simplify by using
1787 parse_predicate_and_operand and the new arguments to
1788 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
1789 when wrong operand. Allow tag.
1790 (popcount): New.
1791 (dot_label_state): Don't return when wrong operand.
1792 (dot_copy_state): Likewise.
1793 (dot_unwabi): Likewise. Check if in prologue.
1794 (dot_body): Don't call demand_empty_rest_of_line.
1795 (dot_prologue): Type of mask and grsave is unsigned. Perform tighter
1796 operand checks.
1797 (md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
1798 use dot_spillreg for .spillreg.p. Also use dot_spillmem for
1799 .spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
1800 (parse_operand): New second parameter. Don't deal with '}' here
1801 anymore. Don't advance past end-of-line.
1802 (parse_operands): Pass second argument to parse_operand.
1803 (ia64_start_line): Prevent out-of-bounds access through
1804 input_line_pointer. Deal with '}' here.
1805 (ia64_unrecognized_line): Don't deal with '}' here.
1806 (dot_alias): Use ignore_rest_of_line not its deprecated alias
1807 discard_rest_of_line.
1808
1809 2005-06-30 Zack Weinberg <zack@codesourcery.com>
1810
1811 * config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
1812 (encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
1813 (do_t_branch, insns [b, bl]): Don't encode pipeline offset.
1814 (do_branch): Always set inst.reloc.pc_rel.
1815 (s_arm_elf_cons): Disallow use of (plt) suffix.
1816 (do_adrl): Adjust X_add_number unconditionally.
1817 (md_pcrel_from): Rename md_pcrel_from_section, add second segT
1818 argument. Handle all adjustment for pipeline offset here.
1819 (md_apply_fix): No need to undo work of md_pcrel_from. No
1820 need to extract pre-encoded pipeline adjustments from various
1821 branch instructions. Generally, assume instructions are already
1822 all-bits-zero in the field being fixed up. Remove all OBJ_ELF
1823 special cases. Handle BFD_RELOC_ARM_PLT32 like
1824 BFD_RELOC_ARM_PCREL_BRANCH.
1825 (tc_gen_reloc): Remove OBJ_ELF special case.
1826 * config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
1827
1828 2005-06-30 Ben Elliston <bje@gnu.org>
1829
1830 * Makefile.am (check-DEJAGNU): Don't search for expect.
1831 * Makefile.in: Regenerate.
1832
1833 2005-06-30 Ben Elliston <bje@gnu.org>
1834
1835 * Makefile.am (EXPECT): Set to expect.
1836 (RUNTEST): Likewise, set to runtest.
1837 * Makefile.in: Regenerate.
1838
1839 2005-06-23 Ben Elliston <bje@gnu.org>
1840
1841 * config/m68k-parse.h: Use ISO C90.
1842 * config/m68k-parse.y: Likewise.
1843 * config/tc-m68k.h: Likewise.
1844
1845 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1846
1847 PR 1013
1848 * config/tc-i386.c (md_assemble): Don't call optimize_disp on
1849 movabs.
1850 (optimize_disp): Optimize only if possible. Don't use 64bit
1851 displacement on non-constants and do same on constants if
1852 possible.
1853
1854 2005-06-17 Jan Beulich <jbeulich@novell.com>
1855
1856 * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
1857 (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
1858 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
1859 (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
1860 and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
1861 aborting.
1862 (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
1863 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
1864 (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
1865 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
1866 BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
1867 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
1868 convert 8-byte pc-relative relocations.
1869 (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
1870 (i386_validate_fix): Likewise.
1871 (x86_cons): Also handle quad values in 64-bit mode.
1872 (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
1873 (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
1874 BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
1875 to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
1876
1877 2005-06-13 Zack Weinberg <zack@codesourcery.com>
1878
1879 * config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
1880 symbolP as well as for names with a leading dot. Use ACONCAT.
1881 (md_apply_fix): For branch relocations, only replace value
1882 with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
1883 (arm_force_relocation): Remove #ifdef OBJ_ELF case.
1884 * config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
1885 (LOCAL_LABEL_PREFIX): Don't define.
1886
1887 2005-06-10 Alan Modra <amodra@bigpond.net.au>
1888
1889 * config/tc-hppa.c (pa_block): Allocate just one byte for the
1890 fill pattern.
1891
1892 2005-06-08 James E Wilson <wilson@specifixinc.com>
1893
1894 PR 994
1895 * config/tc-ia64.c (slot_index): Revert last change. If first_frag
1896 is NULL, then emit a warning, and return the current index.
1897
1898 2005-06-08 Tomas Hurka <tom@hukatronic.cz>
1899
1900 PR 991
1901 * config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a
1902 temporary copy of the operands array so that changes can be safely
1903 backed out if the insn does not match.
1904 (m68k_compare_opcode): Shortcut the test when the parameters are
1905 the same. Return 1 if the names match but the second opcode is
1906 further on in the array than the first.
1907
1908 2005-06-08 Nick Clifton <nickc@redhat.com>
1909
1910 PR 994
1911 * config/tc-ia64.c (slot_index): Check for a NULL first_frag.
1912
1913 2005-06-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1914
1915 * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
1916
1917 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
1918 Michael Snyder <msnyder@redhat.com>
1919 Stan Cox <scox@redhat.com>
1920
1921 * configure.in: Add ms1 case.
1922
1923 * configure: Regenerate.
1924
1925 * configure.tgt: Add ms1 case.
1926
1927 2005-06-07 Bob Wilson <bob.wilson@acm.org>
1928
1929 * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
1930 * config/tc-xtensa.c (new_resource_table): Likewise.
1931 (resize_resource_table): Likewise.
1932 (release_resources): Fix assertion for unsigned values.
1933
1934 2005-06-07 Zack Weinberg <zack@codesourcery.com>
1935
1936 * cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
1937 * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
1938 * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
1939 * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
1940 * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
1941 * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
1942 * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
1943 * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
1944 * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
1945 * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
1946 * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
1947 * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
1948 * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
1949 * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
1950 * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
1951 * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
1952 * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
1953 * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
1954 * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
1955 * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
1956 * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
1957 * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
1958 * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
1959 * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
1960 * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
1961 * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
1962 * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
1963 * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
1964 * config/tc-xtensa.c, config/tc-z8k.c:
1965 Replace all instances of the string "_apply_fix3" with
1966 "_apply_fix".
1967 * po/POTFILES.in, po/gas.pot: Regenerate.
1968
1969 2005-06-08 Alan Modra <amodra@bigpond.net.au>
1970
1971 * Makefile.am: Run "make dep-am".
1972 (POTFILES): Remove GAS_CFILES.
1973 * Makefile.in: Regenerate.
1974
1975 2005-06-07 David Ung <davidu@mips.com>
1976
1977 * config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
1978 24kc, 24kf and 24kfx under MIPS32 release 2.
1979
1980 2005-06-04 Nick Clifton <nickc@redhat.com>
1981
1982 * config/tc-arm.c (CE, C3, CM, UE, UF): Redefine without reference
1983 to their Thumb-enabled equivalents.
1984
1985 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
1986
1987 * config/tc-mips.c (load_register): Add leading "0x" to the
1988 output of sprintf_vma().
1989 (macro): Likewise.
1990
1991 2005-06-01 Nick Clifton <nickc@redhat.com>
1992
1993 * config/tc-arm.c (TxCE, TxC3, TxCM, TUE, TUF): Remove redundant
1994 test for the presence of thumb version of the parsing functions
1995 since they must always exist and the test generates a compile time
1996 warning message.
1997
1998 2005-05-31 Richard Henderson <rth@redhat.com>
1999
2000 * config/tc-alpha.c (O_lituse_jsrdirect): New.
2001 (alpha_reloc_op): Add it.
2002 (debug_exp): Handle it.
2003 (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
2004 (emit_insn): Handle it.
2005 * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.
2006
2007 2005-05-31 Christian Groessler <chris@groessler.org>
2008
2009 * write.c (dump_section_relocs): Convert to ISO-C.
2010 (write_relocs): Avoid signed/unsigned and fprintf argument
2011 warnings in debug code.
2012
2013 2005-05-26 Zack Weinberg <zack@codesourcery.com>
2014
2015 * config/tc-arm.h (TC_FIX_TYPE): Change to int.
2016 (TC_INIT_FIX_DATA): Initialize to 0, not NULL.
2017 * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
2018 (md_apply_fix3): Delete fix_is_thumb variable; refer to
2019 fixP->tc_fix_data directly in the sole place it was used.
2020 Explicitly truncate value, *valP, fixP->fx_addnumber, and
2021 fixP->fx_offset to 32 bits, for consistent behavior between 32-
2022 and 64-bit hosts.
2023
2024 2005-05-27 Jan Beulich <jbeulich@novell.com>
2025
2026 * config/tc-ia64.c (struct proc_pending): New.
2027 (unwind): Replace proc_start with proc_pending.
2028 (unwind_diagnostic): Check unwind.proc_pending.sym.
2029 (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
2030 Check if previous proc not closed. Record all entry points.
2031 (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
2032 Set symbol sizes for entry points recorded in dot_proc. Check
2033 arguments for consistency with respective .proc's.
2034 (md_assemble): Replace unwind.proc_start with
2035 unwind.proc_pending.sym.
2036
2037 2005-05-27 Jan Beulich <jbeulich@novell.com>
2038
2039 * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
2040 and last_ptr. Check all in-use slots for first one with non-NULL
2041 unwind_record. Don't reload end_ptr before second update round.
2042
2043 2005-05-26 James E Wilson <wilson@specifixinc.com>
2044
2045 * config/tc-ia64.c (extra_goodness): Update comment.
2046 (md_begin): Add debugging code to print best_template table.
2047
2048 2005-05-25 Jan Beulich <jbeulich@novell.com>
2049
2050 * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
2051 template.
2052
2053 2005-05-25 Jan Beulich <jbeulich@novell.com>
2054
2055 * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
2056 BFD_RELOC_UNUSED when determining the width of the reloc.
2057
2058 2005-05-25 Jan Beulich <jbeulich@novell.com>
2059
2060 * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
2061 section entry.
2062
2063 2005-05-25 Jan Beulich <jbeulich@novell.com>
2064
2065 * config/tc-ia64.c (dot_radix): Rewrite.
2066
2067 2005-05-25 Jan Beulich <jbeulich@novell.com>
2068
2069 * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
2070 and next_slot_frag.
2071 (alloc_record): Remove references to next_slot_number and
2072 next_slot_frag.
2073 (emit_one_bundle): Likewise.
2074
2075 2005-05-22 Nick Clifton <nickc@redhat.com>
2076
2077 * config/tc-v850.c (md_apply_fix3): Pass the address of the
2078 message buffer when invoking the insert function.
2079
2080 2005-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2081
2082 * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
2083 only if an instruction match is found.
2084
2085 2005-05-20 Bob Wilson <bob.wilson@acm.org>
2086
2087 * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
2088 to addition in argument to xtensa_dwarf2_emit_insn.
2089
2090 2005-05-19 Zack Weinberg <zack@codesourcery.com>
2091
2092 * Makefile.am: Have 'all' depend on 'info'.
2093 * Makefile.in: Regenerate.
2094
2095 2005-05-19 Alan Modra <amodra@bigpond.net.au>
2096
2097 * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
2098
2099 2005-05-19 Anton Blanchard <anton@samba.org>
2100
2101 * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
2102 (md_show_usage): Document it.
2103 (ppc_setup_opcodes): Insert POWER5 mnemonics.
2104 * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
2105
2106 2005-05-19 Jan Beulich <jbeulich@novell.com>
2107
2108 * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
2109 relocations in unwind section.
2110
2111 2005-05-18 Nick Clifton <nickc@redhat.com>
2112
2113 * config/tc-v850.c (md_apply_fix3): Only use the insertion routine
2114 if one exists. Ignore any error messages it may produce, just
2115 allow it to perform the insertion.
2116
2117 2005-05-17 Zack Weinberg <zack@codesourcery.com>
2118
2119 * hash.c (hash_lookup): Add len parameter. All callers changed.
2120 (hash_find_n): New interface.
2121 * hash.h: Prototype hash_find_n.
2122 * sb.c: Include as.h.
2123 (scrub_from_sb, sb_to_scrub, scrub_position): New statics.
2124 (sb_scrub_and_add_sb): New interface.
2125 * sb.h: Prototype sb_scrub_and_add_sb.
2126 * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
2127
2128 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
2129 reference to BFD_RELOC_ARM_GOT12 which is never generated.
2130 * config/tc-arm.c: Rewrite, adding Thumb-2 support.
2131
2132 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2133
2134 * doc/Makefile.am (gasver.texi): Don't use $<.
2135 * doc/Makefile.in: Regenerated.
2136
2137 2005-05-17 Nick Clifton <nickc@redhat.com>
2138
2139 PR 876
2140 * symbols.c (resolve_symbol_value): Do not move symbols whose
2141 value expression has not been resolved or finalized into the
2142 absolute section as this will confuse other parts of the assembler
2143 into thinking that their value is zero.
2144
2145 2005-05-17 Jan Beulich <jbeulich@novell.com>
2146
2147 * read.c (_find_end_of_line): New.
2148 (find_end_of_line): New.
2149 (HANDLE_CONDITIONAL_ASSEMBLY): Use it.
2150 (read_a_source_file): Use it.
2151 (s_globl): Use it.
2152 (s_macro): Use it.
2153 (get_line_sb): Use it.
2154 (s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line.
2155 (s_comm_internal): Likewise.
2156 (s_lsym): Likewise.
2157 (s_macro): Likewise.
2158 (s_ignore): Use ignore_rest_of_line.
2159 * read.h (find_end_of_line): Prototype.
2160 (discard_rest_of_line): Remove prototype. #define to
2161 ignore_rest_of_line.
2162
2163 2005-05-17 Nick Clifton <nickc@redhat.com>
2164
2165 * config/tc-v850,h (TC_FIX_TYPE): Define.
2166 (TC_INIT_FIX_TYPE): Define.
2167 * config/tc-v850.c (md_assemble): When creating a fix record the
2168 operand in the tc_fix_data field.
2169 (md_apply_fix3): When applying a resolved fix use the operand's
2170 insertion procedure to store the value, if the operand has been
2171 recorded.
2172
2173 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2174
2175 * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap
2176 invocation.
2177 * Makefile.in: Regenerated.
2178
2179 2005-05-13 Sterling Augustine <sterling@tensilica.com>
2180 Bob Wilson <bob.wilson@acm.org>
2181
2182 * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
2183 message.
2184 (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional
2185 for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
2186
2187 2005-05-11 Alan Modra <amodra@bigpond.net.au>
2188
2189 * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
2190 BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
2191
2192 2005-05-10 Michael Matz <matz@suse.de>
2193
2194 * frags.c (frag_grow): Don't be too greedy in allocating memory.
2195
2196 * config/tc-hppa.c (pa_block): Check arguments to .block[z].
2197
2198 2005-05-10 Hans-Peter Nilsson <hp@bitrange.com>
2199
2200 PR binutils/886
2201 * config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly.
2202 Handle label-without-colon before ordinary dot-pseudo as an
2203 ordinary label. Don't leak memory for label-without-colon alone
2204 on a line. Don't mmixal-munge operands for dot-pseudos.
2205
2206 2005-05-10 Jan Beulich <jbeulich@novell.com>
2207
2208 * macro.c (get_any_string): Remove the two last parameters. Replace
2209 references to the former expand parameter by using macro_alternate.
2210 Simplify loop condition for checking for end-of-string.
2211 (get_string): Remove redunant call to sb_skip_white.
2212 (do_formals): Remove two last arguments to get_any_string.
2213 (macro_expand): Likewise.
2214 (expand_irp): Likewise.
2215
2216 2005-05-10 Jan Beulich <jbeulich@novell.com>
2217
2218 * read.c (s_macro): Move local variable 'local' to smaller scope.
2219 Call sb_kill on it when done.
2220
2221 2005-05-09 Jan Beulich <jbeulich@novell.com>
2222
2223 * config/tc-i386.c (optimize_disp): Discard displacement entirely
2224 when zero and not required by encoding constraints.
2225
2226 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
2227
2228 PR 936
2229 * config/tc-sh64.c (sh64_fake_label): New.
2230
2231 * config/tc-sh64.h (TC_FAKE_LABEL): New.
2232
2233 * doc/internals.texi (TC_FAKE_LABEL): Document.
2234
2235 * write.c (TC_FAKE_LABEL): New.
2236 (adjust_reloc_syms): Use it.
2237 (write_object_file): Likewise.
2238
2239 2005-05-09 Jan Beulich <jbeulich@novell.com>
2240
2241 * config/tc-i386.c (parse_insn): Disallow use of prefix separator
2242 and comma in Intel mode.
2243
2244 2005-05-09 Jan Beulich <jbeulich@novell.com>
2245
2246 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
2247 names to match ABI. Add more registers for 32-bit and 64-bit modes.
2248 Make name array static and const. Adjust lookup to account for NULL
2249 entries (standing for unused register numbers).
2250
2251 2005-05-09 Jan Beulich <jbeulich@novell.com>
2252
2253 * config/tc-i386.c (parse_insn): Consider all matching instructions
2254 when checking for string instruction after string-only prefix.
2255
2256 2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
2257
2258 PR 940
2259 * config/tc-ia64.c (start_unwind_section): Properly check
2260 comdat group with SHF_GROUP.
2261
2262 2005-05-06 Bob Wilson <bob.wilson@acm.org>
2263
2264 * doc/c-xtensa.texi (Literal Directive): Spelling correction.
2265
2266 2005-05-06 Bob Wilson <bob.wilson@acm.org>
2267
2268 * config/tc-xtensa.c: Remove excess whitespace.
2269 * config/tc-xtensa.h: Likewise.
2270 * config/xtensa-istack.h: Likewise.
2271 * config/xtensa-relax.c: Likewise.
2272 * config/xtensa-relax.h: Likewise.
2273
2274 2005-05-06 Nick Clifton <nickc@redhat.com>
2275
2276 * sb.h: Fix formatting of comments.
2277 * sb.c: Fix formatting of comments.
2278
2279 2005-05-06 Jan Beulich <jbeulich@novell.com>
2280
2281 * sb.h (sb_add_buffer): Reintroduce.
2282 * sb.c (sb_add_buffer): Likewise.
2283
2284 2005-05-06 Jan Beulich <jbeulich@novell.com>
2285
2286 * macro.c (new_formal, del_formal): New.
2287 (do_formals): Use new_formal. Check for and parse qualifier. Warn if
2288 required argument has default value. Stop looking for more formal
2289 when there was a vararg one.
2290 (macro_expand_body): Use new_formal and del_formal.
2291 (macro_expand): Likewise. Initialize local variable err. Don't
2292 return immediately when encountering an error. Warn when keyword
2293 argument already had a value assigned. Eliminate duplicate clearing
2294 of argument value. When current positional argument matches parameter
2295 of vararg type, assign to it all the remaining arguments. Issue error
2296 when required parameter does not have value.
2297 (free_macro): Use del_formal.
2298 (expand_irp): Initialize formal type. Free buffers associated with
2299 formal prior to returning.
2300 * macro.h (struct formal_struct): Add new field 'type' with new
2301 enumeration type 'formal_type'.
2302 * doc/as.texinfo: Document macro parameter qualifiers.
2303 * NEWS: Mention new functionality.
2304
2305 2005-05-06 Jan Beulich <jbeulich@novell.com>
2306
2307 * cond.c (s_ifb): New.
2308 * read.c (potable): Add s_ifb as handler for .ifb and .ifnb.
2309 * read.h (s_ifb): Prototype.
2310 * doc/as.texinfo: Document .ifb and .ifnb.
2311
2312 2005-05-05 Steve Ellcey <sje@cup.hp.com>
2313
2314 * config/tc-ia64.c (MIN): Undef.
2315
2316 2005-05-05 Paul Brook <paul@codesourcery.com>
2317
2318 * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS.
2319
2320 2005-05-05 Matt Thomas <matt@3am-software.com>
2321
2322 * config/tc-vax.c (md_assemble): Don't assume a valueT is 4
2323 bytes.
2324
2325 2005-05-05 Nick Clifton <nickc@redhat.com>
2326
2327 * Update the address and phone number of the FSF organization in
2328 the GPL notices in the following files:
2329 COPYING, app.c, as.c, as.h, asintl.h, atof-generic.c, bignum.h,
2330 bit_fix.h, cgen.c, cgen.h, cond.c, debug.c, depend.c, dw2gencfi.c,
2331 dw2gencfi.h, dwarf2dbg.c, dwarf2dbg.h, ecoff.c, ecoff.h, ehopt.c,
2332 emul-target.h, emul.h, expr.c, expr.h, flonum-copy.c,
2333 flonum-konst.c, flonum.h, frags.c, frags.h, hash.c, hash.h,
2334 input-file.c, input-file.h, input-scrub.c, itbl-lex.h, itbl-lex.l,
2335 itbl-ops.c, itbl-ops.h, itbl-parse.y, listing.c, listing.h,
2336 literal.c, macro.c, macro.h, messages.c, obj.h, output-file.c,
2337 output-file.h, read.c, read.h, sb.c, sb.h, stabs.c,
2338 struc-symbol.h, subsegs.c, subsegs.h, symbols.c, symbols.h, tc.h,
2339 write.c, write.h, config/aout_gnu.h, config/atof-ieee.c,
2340 config/atof-vax.c, config/itbl-mips.h, config/m68k-parse.h,
2341 config/m68k-parse.y, config/m88k-opcode.h, config/obj-aout.c,
2342 config/obj-aout.h, config/obj-bout.c, config/obj-bout.h,
2343 config/obj-coff.c, config/obj-coff.h, config/obj-ecoff.c,
2344 config/obj-ecoff.h, config/obj-elf.c, config/obj-elf.h,
2345 config/obj-evax.c, config/obj-evax.h, config/obj-hp300.c,
2346 config/obj-hp300.h, config/obj-ieee.c, config/obj-ieee.h,
2347 config/obj-multi.h, config/obj-som.c, config/obj-som.h,
2348 config/tc-a29k.c, config/tc-a29k.h, config/tc-alpha.c,
2349 config/tc-alpha.h, config/tc-arc.c, config/tc-arc.h,
2350 config/tc-arm.h, config/tc-avr.c, config/tc-avr.h,
2351 config/tc-cris.c, config/tc-cris.h, config/tc-crx.c,
2352 config/tc-crx.h, config/tc-d10v.c, config/tc-d10v.h,
2353 config/tc-d30v.c, config/tc-d30v.h, config/tc-dlx.c,
2354 config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2355 config/tc-frv.c, config/tc-frv.h, config/tc-generic.c,
2356 config/tc-generic.h, config/tc-h8300.c, config/tc-h8300.h,
2357 config/tc-h8500.c, config/tc-h8500.h, config/tc-hppa.c,
2358 config/tc-hppa.h, config/tc-i370.c, config/tc-i370.h,
2359 config/tc-i386.c, config/tc-i386.h, config/tc-i860.c,
2360 config/tc-i860.h, config/tc-i960.c, config/tc-i960.h,
2361 config/tc-ia64.c, config/tc-ia64.h, config/tc-ip2k.c,
2362 config/tc-ip2k.h, config/tc-iq2000.c, config/tc-iq2000.h,
2363 config/tc-m32r.c, config/tc-m32r.h, config/tc-m68851.h,
2364 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c,
2365 config/tc-m68k.h, config/tc-m88k.c, config/tc-m88k.h,
2366 config/tc-maxq.c, config/tc-maxq.h, config/tc-mcore.c,
2367 config/tc-mcore.h, config/tc-mips.c, config/tc-mips.h,
2368 config/tc-mmix.c, config/tc-mmix.h, config/tc-mn10200.c,
2369 config/tc-mn10200.h, config/tc-mn10300.c, config/tc-mn10300.h,
2370 config/tc-msp430.c, config/tc-msp430.h, config/tc-ns32k.c,
2371 config/tc-ns32k.h, config/tc-openrisc.c, config/tc-openrisc.h,
2372 config/tc-or32.c, config/tc-or32.h, config/tc-pdp11.c,
2373 config/tc-pdp11.h, config/tc-pj.c, config/tc-pj.h,
2374 config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c,
2375 config/tc-s390.h, config/tc-sh.c, config/tc-sh.h,
2376 config/tc-sh64.c, config/tc-sh64.h, config/tc-sparc.c,
2377 config/tc-sparc.h, config/tc-tahoe.c, config/tc-tahoe.h,
2378 config/tc-tic30.c, config/tc-tic30.h, config/tc-tic4x.c,
2379 config/tc-tic4x.h, config/tc-tic54x.c, config/tc-tic54x.h,
2380 config/tc-tic80.c, config/tc-tic80.h, config/tc-v850.c,
2381 config/tc-v850.h, config/tc-vax.c, config/tc-vax.h,
2382 config/tc-w65.c, config/tc-w65.h, config/tc-xstormy16.c,
2383 config/tc-xstormy16.h, config/tc-xtensa.c, config/tc-xtensa.h,
2384 config/tc-z8k.c, config/tc-z8k.h, config/te-386bsd.h,
2385 config/te-freebsd.h, config/te-hp300.h, config/te-hppa.h,
2386 config/te-ic960.h, config/te-irix.h, config/te-nbsd.h,
2387 config/te-netware.h, config/te-sparcaout.h, config/te-sun3.h,
2388 config/te-tmips.h, config/te-vxworks.h, config/vax-inst.h,
2389 config/xtensa-istack.h, config/xtensa-relax.c,
2390 config/xtensa-relax.h, doc/fdl.texi
2391
2392 2005-05-05 Nick Clifton <nickc@redhat.com>
2393
2394 * config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
2395 the target_big_endian variable to false.
2396
2397 2005-05-04 Alan Modra <amodra@bigpond.net.au>
2398
2399 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct section
2400 list traversal. Use bfd_section_list_prepend.
2401 * config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate
2402 over the section list.
2403 * config/tc-xtensa.c (xtensa_remove_section): Delete.
2404 (xtensa_insert_section): Delete.
2405 (xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove
2406 and bfd_section_list_prepend.
2407 (xtensa_reorder_seg_list): Use bfd_section_list_remove and
2408 bfd_section_list_insert_after.
2409
2410 2005-05-03 Nick Clifton <nickc@redhat.com>
2411
2412 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations
2413 of bfd_section_list... macros.
2414 * config/tc-mmix.c (mmix_frob_file): Likewise.
2415 * config/tc-xtensa.c (xtensa_remove_section): Likewise.
2416 (xtensa_insert_section): Likewise.
2417
2418 * macro.c (macro_hash): Remove static.
2419 * macro.h (macro_hash): Provide an external declaration.
2420
2421 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
2422
2423 * write.c (write_object_file): Use bfd_section_double_list_remove
2424 to remove sections.
2425
2426 2005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2427
2428 * doc/Makefile.am (gasver.texi): Correct quoting.
2429 * doc/Makefile.in: Regenerated.
2430
2431 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
2432
2433 * configure.tgt: Add h8300*-*-rtemscoff.
2434 Switch h8300*-*-rtems* to elf.
2435
2436 2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
2437
2438 * hash.c: Undo the last change.
2439 * hash.h: Likewise.
2440
2441 2005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
2442
2443 * doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
2444 of Makefile.
2445 (DISTCLEANFILES): Remove.
2446 (MAINTAINERCLEANFILES): Add asconfig.texi.
2447 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
2448
2449 2005-04-29 Ben Elliston <bje@au.ibm.com>
2450
2451 * Makefile.am (GAS_CFILES): Remove bignum-copy.c.
2452 (GENERIC_OBJS): Likewise, remove bignum-copy.o.
2453 (bignum-copy.o): Remove.
2454 * Makefile.in: Regenerate.
2455 * makefile.vms (OBJS): Remove bignum-copy.obj.
2456 * symbols.h (local_symbol_make): Remove declaration.
2457 (verify_symbol_chain_2): Likewise.
2458 * symbols.c (local_symbol_make): Make static.
2459 (max_indent_level): Likewise.
2460 (verify_symbol_chain_2): Remove.
2461 * macro.c (macro_hash): Make static.
2462 * messages.c (fprint_value): Remove.
2463 * read.h (get_absolute_expr): Remove.
2464 (emit_leb128_expr): Likewise.
2465 (do_s_func): Likewise.
2466 * read.c (do_s_func): Make static.
2467 (emit_leb128_expr): Likewise.
2468 (get_absolute_expr): Likewise.
2469 * as.h (as_howmuch): Remove declaration.
2470 (fprint_value): Likewise.
2471 * as.c (myname): Make static.
2472 * input-scrub.c (as_howmuch): Remove.
2473 (as_1_char): Likewise.
2474 * input-file.h (input_file_is_open): Remove.
2475 * input-file.c (input_file_is_open): Likewise.
2476 * expr.h (expr_build_unary): Remove declaration.
2477 (expr_build_binary): Likewise.
2478 * expr.c (expr_build_unary): Remove.
2479 (expr_build_binary): Likewise.
2480 * hash.h (hash_replace): Remove declaration.
2481 (hash_delete): Likewise.
2482 * hash.c (hash_replace): Remove.
2483 (hash_delete): Likewise.
2484 * bignum-copy.c (bignum_copy): Move from here ..
2485 * config/tc-vax.c (bignum_copy): .. to here.
2486 * bignum.h (LOG_TO_BASE_2_OF_10): Remove.
2487 (bignum_copy): Remove extern declaration.
2488 * sb.h (string_count): Remove extern declaration.
2489 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
2490 (sb_name): Likewise.
2491 * sb.c (dsize): Replace preprocessor macro with static int.
2492 (string_count): Make static.
2493 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
2494 (sb_name): Likewise.
2495 * config/obj-coff.c (dim_index): Make static.
2496 * config/tc-i386.c (GOT_symbol): Likewise.
2497 (output_invalid_buf): Likewise.
2498 * doc/internals.texi (Warning and error messages): Remove the
2499 prototype for fprint_value.
2500
2501 2005-04-27 Ben Elliston <bje@au.ibm.com>
2502
2503 * link.cmd: Remove.
2504
2505 2005-04-26 H.J. Lu <hongjiu.lu@intel.com>
2506
2507 * config/obj-multi.h (FAKE_LABEL_NAME): Defined.
2508
2509 * read.c (pseudo_set): Disallow symbol set to common symbol.
2510
2511 PR 857
2512 * write.c (write_object_file): Report common symbol name when
2513 disallowing local symbol set to common symbol.
2514 (adjust_reloc_syms): Disallow local symbol set to undefined
2515 symbol.
2516
2517 2005-04-25 Jan Beulich <jbeulich@novell.com>
2518
2519 * macro.c (macro_expand_body): Replace locals indicator parameters
2520 with actual macro_entry. New local variables macro_line and err.
2521 Don't return when encountering an error, just record the fact.
2522 Detect local symbol name colliding with parameter. Track line number
2523 inside of macro expansion.
2524 (do_formals): Move local variable name to wider scope. Check
2525 parameter of the same name doesn't already exist. In MRI mode, also
2526 check it doesn't collide with the argument count pseudo-parameter).
2527 (define_macro): Add file and line number parameters. Remove local
2528 variable namestr. New local variable error. Initialize macro_entry
2529 members file, line, and name. Don't return when encountering an
2530 error, just record the fact. Use %s in some diagnostics for read.c
2531 to insert the macro name. Free macro_entry on error.
2532 (macro_expand): Pass macro_entry to macro_epand_body. Don't return
2533 when encountering an error, just record the fact.
2534 (expand_irp): Don't return when encountering an error, just record
2535 the fact.
2536 * macro.h (macro_struct): New members name, file, and line.
2537 (define_macro): Add file and line number parameters.
2538 * read.c (s_macro): Pass file and line to define_macro. Tag warning
2539 regarding pseudo-op redefinition with the file/line that macro
2540 definition started at.
2541
2542 2005-04-22 Bob Wilson <bob.wilson@acm.org>
2543
2544 * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.
2545 (future_alignment_required): Remove ifdefs that use it.
2546
2547 2005-04-22 Bob Wilson <bob.wilson@acm.org>
2548
2549 * config/tc-xtensa.c (xg_get_build_instr_size): Remove.
2550 (xg_is_narrow_insn, xg_expand_narrow): Remove. Merge into...
2551 (xg_is_single_relaxable_insn): ...here. Add "targ" and "narrow_only"
2552 parameters.
2553 (xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements,
2554 convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
2555
2556 2005-04-21 Christian Groessler <chris@groessler.org>
2557
2558 * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
2559 array.
2560
2561 2005-04-20 H.J. Lu <hongjiu.lu@intel.com>
2562
2563 * config/obj-aout.h (S_IS_EXTERN): Removed.
2564 * config/obj-bout.h (S_IS_EXTERN): Likewise.
2565 * config/obj-coff.h (S_IS_EXTERN): Likewise.
2566 * symbols.c (S_IS_EXTERN): Likewise.
2567 * symbols.h (S_IS_EXTERN): Likewise.
2568
2569 * config/tc-alpha.c (tc_gen_reloc): Replace S_IS_EXTERN with
2570 S_IS_EXTERNAL.
2571 * config/tc-d10v.c (md_apply_fix3): Likewise.
2572 * config/tc-ia64.c (ia64_fix_adjustable): Likewise.
2573 * config/tc-iq2000.c (iq2000_fix_adjustable): Likewise.
2574 * config/tc-m32r.c (m32r_fix_adjustable): Likewise.
2575 * config/tc-mmix.c (mmix_adjust_symtab): Likewise.
2576 * config/tc-sh64.c (shmedia_frob_file_before_adjust): Likewise.
2577 (shmedia_md_convert_frag): Likewise.
2578 * symbols.c (print_symbol_value_1): Likewise.
2579 * write.c (write_object_file): Likewise.
2580
2581 2005-04-20 Nick Clifton <nickc@redhat.com>
2582
2583 * config/tc-xtensa.c (get_aligned_diff): Change type of
2584 branch_align to offsetT so that its signedness matches that of
2585 target_size.
2586
2587 * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
2588 number into a readable string.
2589 (load_register): Likewise.
2590
2591 2005-04-20 Andreas Schwab <schwab@suse.de>
2592
2593 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
2594
2595 2005-04-19 David S. Miller <davem@davemloft.net>
2596
2597 * config/tc-sparc.c (md_assemble): If sparc_ip gives us a
2598 NULL insn, exit early. Remove now spurious NULL checks.
2599 (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn
2600 to NULL and exit.
2601
2602 2005-04-19 Jan Beulich <jbeulich@novell.com>
2603
2604 * symbols.h (symbol_find_base): Remove prototype.
2605 * symbols.c (save_symbol_name): Remove code section conditional upon
2606 STRIP_UNDERSCORE.
2607 (symbol_find): Remove.
2608 (symbol_find_base): Rename to symbol_find.
2609 * subsegs.c (section_symbol): Replace use of symbol_find_base with
2610 symbol_find.
2611 * config/obj-coff.c (tag_insert): Remove code section conditional
2612 upon STRIP_UNDERSCORE.
2613 (obj_coff_def): Likewise.
2614 (obj_coff_endef): Replace use of symbol_find_base with symbol_find.
2615 (coff_frob_symbol): Likewise.
2616 (yank_symbols): Likewise.
2617 (c_section_symbol): Likewise.
2618 * config/obj-coff.h (DO_NOT_STRIP): Remove.
2619 * config/tc-arm.c (symbol_locate): Remove code section conditional
2620 upon STRIP_UNDERSCORE.
2621 * config/tc-h8300.h (DO_NOT_STRIP): Remove.
2622 * config/tc-h8500.h (DO_NOT_STRIP): Remove.
2623 * config/tc-sh.h (DO_NOT_STRIP): Remove.
2624 * config/tc-w65.h (DO_NOT_STRIP): Remove.
2625 * config/tc-z8k.h (DO_NOT_STRIP): Remove.
2626
2627 2005-04-19 Andreas Schwab <schwab@suse.de>
2628
2629 * config/tc-ia64.c (md_assemble): Fix error message for wrong
2630 access to application registers.
2631
2632 2005-04-19 Jan Beulich <jbeulich@novell.com>
2633
2634 * config/te-sysv32.h: Remove.
2635 * Makefile.am (TARG_ENV_HFILES): Remove reference to
2636 config/te-sysv32.h.
2637 * Makefile.in (TARG_ENV_HFILES): Likewise.
2638
2639 2005-04-19 Jan Beulich <jbeulich@novell.com>
2640
2641 PR/847
2642 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero-
2643 length symbols.
2644
2645 2005-04-18 Mark Kettenis <kettenis@gnu.org>
2646
2647 * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
2648
2649 2005-04-18 Maciej W. Rozycki <macro@linux-mips.org>
2650
2651 * config/tc-mips.c (normalize_constant_expr): Don't check for
2652 HAVE_32BIT_GPRS.
2653 (check_absolute_expr): Only call normalize_constant_expr() if
2654 HAVE_32BIT_GPRS.
2655 (mips_ip): Likewise.
2656
2657 * config/tc-mips.c (check_absolute_expr): Fix formatting.
2658
2659 2005-04-18 Jan Beulich <jbeulich@novell.com>
2660
2661 * macro.c (free_token): New, freeing all the memory associated with a
2662 macro.
2663 (do_formals): Move initializers to ...
2664 (define_macro): ... here.
2665 (delete_macro): Convert passed in name to lower case. Warn when
2666 purging macro that doesn't exist. Use hash_jam instead of hash_delete.
2667
2668 2005-04-15 Maciej W. Rozycki <macro@linux-mips.org>
2669
2670 * config/tc-mips.c (normalize_constant_expr): Fix formatting.
2671
2672 2005-04-15 Jan Beulich <jbeulich@novell.com>
2673
2674 * config/obj-elf.c (obj_elf_struct): New.
2675 (elf_pseudo_table). Use it for .offset and .struct.
2676
2677 2005-04-14 Bob Wilson <bob.wilson@acm.org>
2678 Sterling Augustine <sterling@tensilica.com>
2679
2680 * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
2681 than the section alignment.
2682
2683 2005-04-14 Bob Wilson <bob.wilson@acm.org>
2684 H.J. Lu <hongjiu.lu@intel.com>
2685
2686 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.
2687 * config/tc-xtensa.c (xg_translate_sysreg_op,
2688 xtensa_translate_old_userregs_ops,
2689 xtensa_find_unaligned_branch_targets,
2690 xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags,
2691 relax_frag_add_nop): Support 64-bit host.
2692 (xtensa_mark_literal_pool_location, xtensa_move_literals): Use
2693 tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
2694
2695 2005-04-14 Mark Kettenis <kettenis@gnu.org>
2696
2697 * configure.tgt: Add support for OpenBSD/sparc ELF.
2698
2699 * configure.tgt: Set emulation for mips-*-openbsd*.
2700 Remove broken mips-dec-openbsd* config.
2701 * configure.in: Set default ABI for mips64-*-openbsd*.
2702 * configure: Regenerate.
2703
2704 2005-04-14 Maciej W. Rozycki <macro@linux-mips.org>
2705
2706 * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP
2707 optimization for constant addresses.
2708
2709 2005-04-14 Nick Clifton <nickc@redhat.com>
2710
2711 * as.c (main): Move parse_args before symbol_begin and frag_init
2712 so that the hash table size can be set before it is used.
2713 * hash.c: Use an unsigned long type for the size of the hash
2714 tables.
2715 * hash.h (set_gas_hash_table_size): Update the prototype.
2716
2717 2005-04-14 Alan Modra <amodra@bigpond.net.au>
2718
2719 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
2720 * acinclude.m4: Include ../bfd/warning.m4.
2721 * configure.in: Invoke AM_BINUTILS_WARNINGS.
2722 * Makefile.in: Regenerate.
2723 * configure: Regenerate.
2724 * doc/Makefile.in: Regenerate.
2725
2726 2005-04-13 Maciej W. Rozycki <macro@linux-mips.org>
2727
2728 * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro.
2729 (normalize_address_expr): New function to sign-extend address
2730 offsets that fit into 32 bits in 32-bit mode.
2731 (macro_build_ldst_constoffset): Use normalize_address_expr()
2732 instead of a handcoded sequence.
2733 (load_register): Likewise. Report oversized numbers in a useful
2734 way.
2735 (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only
2736 for constant addresses. Report oversized numbers in a useful way.
2737 (mips_ip): Use normalize_address_expr() for addresses.
2738
2739 2005-04-12 Mark Kettenis <kettenis@gnu.org>
2740
2741 * config/tc-i386.c (output_insn): Handle VIA PadLock instructions
2742 similar to other instructions now that they're marked as ImmExt.
2743
2744 2005-04-12 Nick Clifton <nickc@redhat.com>
2745
2746 * hash.c (DEFAULT_SIZE): Delete. Replace with:
2747 (gas_hash_table_size): New static variable.
2748 (set_gas_hash_table_size): New function: Records a requested size
2749 for the hash tables.
2750 (get_gas_hash_table_size): New function: Return a prime number
2751 near the requested size of the hash table.
2752 (hash_new): Use get_gas_hash_table_size.
2753 * hash.h: Add a prototype for set_gas_hash_table_size.
2754 * as.c (show_usage): Add description of new switches: --hash-size
2755 and --reduce-memory-overheads.
2756 (option_values): Add OPTION_HASH_TABLE_SIZE and
2757 OPTION_REDUCE_MEMORY_OVERHEADS.
2758 (std_longpopts): Add entries for the new options.
2759 (parse_args): Handle the new options.
2760 * Makefile.am: Add a dependency of as.c on hash.h.
2761 * Makefile.in: Regenerate.
2762 * doc/as.texinfo: Document the new switches.
2763 * NEWS: Mention the new switches.
2764
2765 2005-04-12 Nick Clifton <nickc@redhat.com>
2766
2767 PR gas/818
2768 * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3]
2769 synonyms.
2770
2771 2005-04-12 Alan Modra <amodra@bigpond.net.au>
2772
2773 * Makefile.am: Run "make dep-am".
2774 * Makefile.in: Regenerate.
2775
2776 2005-04-11 Sterling Augustine <sterling@tensilica.com>
2777 Bob Wilson <bob.wilson@acm.org>
2778
2779 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.
2780
2781 2005-04-11 Mark Kettenis <kettenis@gnu.org>
2782
2783 * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
2784
2785 2005-04-11 Jan Beulich <jbeulich@novell.com>
2786
2787 * NEWS: Mention these changes and their effects.
2788 * macro.c (get_token): Use is_name_beginner/is_part_of_name/
2789 is_name_ender.
2790 (check_macro): Likewise.
2791 (buffer_and_nest): Likewise. Permit multiple labels. Don't discard
2792 labels together with the closing pseudo-op.
2793 (macro_expand_body): Adjust comment. Range-check input before use.
2794 Adjust mis-spelled diagnostic. Use is_name_beginner.
2795 * read.c (try_macro): New.
2796 (read_a_source_file): New static variable last_eol. Don't list
2797 macro expansion lines more than once. Call try_macro.
2798 (s_macro): Set section of line_label to absolute instead of undefined.
2799 * doc/as.texinfo: Add information on the caveats of these changes.
2800
2801 2005-04-11 Alan Modra <amodra@bigpond.net.au>
2802
2803 * symbols.c (symbol_X_add_number): Change return type to "offsetT *".
2804 * symbols.h (symbol_X_add_number): Update prototype.
2805
2806 2005-04-10 Eric Christopher <echristo@redhat.com>
2807
2808 * symbols.c (symbol_X_add_number): Fix warning.
2809
2810 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
2811
2812 * config/tc-m68k.c (md_begin): Support 64bit host.
2813 (get_num): Support 64bit BFD on 32bit host.
2814
2815 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
2816
2817 * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
2818
2819 2005-04-09 Alan Modra <amodra@bigpond.net.au>
2820
2821 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
2822 call. Don't do the COFF hacks for multi-emulation gas. Move
2823 demand_empty_rest_of_line back to caller.
2824 (s_set, equals): demand_empty_rest_of_line here.
2825
2826 PR gas/827
2827 * as.h (rs_dummy): Define.
2828 * symbols.c (symbol_X_add_number): New function.
2829 * symbols.h (symbol_X_add_number): Declare.
2830 * stabs.c (aout_process_stab): Tidy symbol frag setting.
2831 * read.c (assign_symbol): New function, split out from s_set.
2832 Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy.
2833 Fix COFF hacks for multi-emulation gas.
2834 (s_set): Call assign_symbol. Remove "register" keyword.
2835 (set_zero_frag): New function.
2836 (pseudo_set): Always check for assignment to section syms.
2837 Always set segment and frag of symbol, and likewise extern for
2838 aout/bout. Handle assignment of sym=sym+/-const specially. Don't
2839 special case exp.X_add_number non-zero for O_symbol expressions.
2840 (equals): Use assign_symbol.
2841
2842 2005-04-08 Bob Wilson <bob.wilson@acm.org>
2843
2844 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
2845 SEC_MERGE sections.
2846
2847 2005-04-06 H.J. Lu <hongjiu.lu@intel.com>
2848
2849 * config/tc-i386.c (tc_gen_reloc): Don't turn
2850 BFD_RELOC_X86_64_32S into BFD_RELOC_32.
2851
2852 2005-04-06 Nick Clifton <nickc@redhat.com>
2853
2854 * po/rw.po: New translation: Kinyarwanda
2855 * configure.in (ALL_LINGUAS): Add rw
2856 * configure: Regenerate.
2857
2858 2005-04-05 Sterling Augustine <sterling@tensilica.com>
2859 Bob Wilson <bob.wilson@acm.org>
2860
2861 * config/tc-xtensa.c (branch_align_power): New.
2862 (xtensa_find_unaligned_branch_targets, get_aligned_diff,
2863 future_alignment_required): Use branch_align_power to check section
2864 alignment as well as xtensa_fetch_width when aligning branch targets.
2865
2866 2005-04-05 Bob Wilson <bob.wilson@acm.org>
2867
2868 * config/tc-xtensa.c: Warning fixes throughout.
2869 (xtensa_fetch_width): Change to unsigned.
2870 (assemble_nop, xtensa_find_unaligned_branch_targets,
2871 xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
2872 is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
2873 min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
2874 unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
2875 count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
2876 get_text_align_max_fill_size, get_text_align_nop_count,
2877 get_text_align_nth_nop_size, get_noop_aligned_address,
2878 get_aligned_diff, convert_frag_align_next_opcode,
2879 convert_frag_immed_finish_loop, xtensa_create_property_segments,
2880 xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
2881 types, avoiding size_t and using offsetT and addressT appropriately.
2882 (get_text_align_power): Clean up types. Avoid incorrect bound.
2883 (get_text_align_fill_size): Clean up types. Restructure for clarity.
2884
2885 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
2886
2887 * config/tc-ia64.c (start_unwind_section): Undo the change
2888 of 2004-08-18.
2889 (generate_unwind_image, dot_endp): Likewise.
2890
2891 2005-04-01 David Mosberger <davidm@hpl.hp.com>
2892
2893 * config/tc-ia64.c (ia64_handle_align): Move le_nop and
2894 le_nop_stop arrays and initializers to file scope.
2895 (md_begin): When generating code for anything other than
2896 Itanium 1, use MMI instead of MFI NOP bundles as a filler.
2897
2898 2005-04-01 Jan Beulich <jbeulich@novell.com>
2899
2900 * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
2901 immediates.
2902
2903 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2904
2905 * NEWS: Mention [fdgh]_floating.
2906 * config/atof-vax.c: Fix some whitespace.
2907 * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
2908
2909 2005-04-01 Nick Clifton <nickc@redhat.com>
2910
2911 * configure.in: Add a check for <unistd.h> providing a prototype
2912 for getopt() which is compatible with the one in
2913 include/getopt.h. If so then define HAVE_DECL_GETOPT.
2914 * configure: Regenerate.
2915 * config.in (HAVE_DECL_GETOPT): Add.
2916
2917 2005-04-01 Jan Beulich <jbeulich@novell.com>
2918
2919 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
2920
2921 2005-04-01 Jan Beulich <jbeulich@novell.com>
2922
2923 * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
2924 (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
2925
2926 2005-03-30 Julian Brown <julian@codesourcery.com>
2927
2928 * config/tc-arm.c (arm_adjust_symtab): Rename
2929 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
2930
2931 2005-03-30 Julian Brown <julian@codesourcery.com>
2932
2933 * config/tc-arm.c (mapping_state): Change documentation in function
2934 comment to cross-reference spec instead. Change type of mapping symbols
2935 to BSF_NO_TYPE.
2936 (arm_adjust_symtab): Don't change type of mapping symbols here.
2937
2938 2005-03-30 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2939
2940 * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
2941 * config.in: Regenerate.
2942 * configure: Regenerate.
2943 * configure.in: Check for ffs decl and alphabetize.
2944
2945 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2946 Phil Blundell <philb@gnu.org>
2947
2948 * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
2949 (md_apply_fix3): Mark TLS symbols.
2950 (tc_gen_reloc): Handle TLS relocations.
2951 (arm_fix_adjustable): Ignore TLS relocations.
2952 (s_arm_elf_cons): Support expressions after decorated symbols.
2953
2954 2005-03-29 Julian Brown <julian@codesourcery.com>
2955
2956 * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
2957 whether personality routine index N has been output for this section.
2958 (mapping_state): tc_segment_info_data now struct not enum.
2959 (arm_elf_change_section): Likewise, and marked_pr_dependency is now
2960 handled on section change.
2961 (create_unwind_entry): Previous code to output dependency removed.
2962 (s_arm_unwind_fnend): Output dependency if it hasn't been done already
2963 for this section.
2964 * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
2965 arm_segment_info_type.
2966 (arm_segment_info_type): New struct.
2967
2968 2005-03-28 Sterling Augustine <sterling@tensilica.com>
2969 Bob Wilson <bob.wilson@acm.org>
2970
2971 * config/tc-xtensa.c (do_align_targets): Update comment.
2972 (xtensa_frob_label): Compute "freq" before possibly switching frags.
2973 Insert a LOOP_END frag before every loop target, and do not overload
2974 DESIRE_ALIGN_IF_TARGET frags with loop end information.
2975 (xg_assemble_vliw_tokens): Use do_align_targets.
2976 (xtensa_fix_target_frags): Remove code to convert a
2977 DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
2978 negatable branch at the end of a loop.
2979 (frag_can_negate_branch): Delete.
2980
2981 2005-03-28 David Mosberger <davidm@hpl.hp.com>
2982 H.J. Lu <hongjiu.lu@intel.com>
2983
2984 PR 803
2985 NEWS: Mention "-mtune=[itanium1|itanium2]".
2986
2987 * config/tc-ia64.c (md): Add tune.
2988 (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
2989 (md_show_usage): Add "-mtune=[itanium1|itanium2]".
2990 (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
2991 B unit NOPs are discouraged for McKinley-derived cores.
2992 (md_begin): Don't hardcode the "extra_goodness()" function in
2993 the comment...
2994 (ia64_init): Set md.tune to itanium2.
2995
2996 * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
2997 * doc/c-ia64.texi: Likewise.
2998
2999 2005-03-27 Ian Lance Taylor <ian@airs.com>
3000
3001 * config/obj-coff.c (coff_frob_symbol): When crashing because of a
3002 bad C_EFCN symbol, print its name.
3003
3004 2005-03-25 Bob Wilson <bob.wilson@acm.org>
3005
3006 * config/tc-xtensa.c (use_longcalls): Delete.
3007 (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
3008 the use_longcalls flag is set. Do this before checking the segment.
3009 (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never
3010 expand direct calls at this point.
3011 (xtensa_set_frag_assembly_state): Set use_longcalls flag.
3012 (xtensa_find_unmarked_state_frags): Likewise.
3013 (md_assemble): Do not disable longcalls by setting is_specific_opcode.
3014 (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
3015 (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
3016 * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
3017
3018 2005-03-25 Hans-Peter Nilsson <hp@bitrange.com>
3019
3020 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
3021
3022 2005-03-25 Hans-Peter Nilsson <hp@axis.com>
3023
3024 * config/tc-cris.h: Convert to ISO C90.
3025 * config/tc-cris.c: Ditto.
3026 (md_estimate_size_before_relax): Remove obsolete comment for
3027 parameter "segment_type".
3028 (md_begin): Document reason for cast of hash_insert argument.
3029 (md_atof): Correct type of parameter "type".
3030
3031 2005-03-24 Nick Clifton <nickc@redhat.com>
3032
3033 * write.h (bit_fix_new): Remove redundant prototype.
3034 * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
3035 * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
3036 * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
3037 * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
3038 * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
3039 * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
3040 * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
3041 * config/obj-som.c: Convert to ISO-C90 and fix formatting.
3042 * config/obj-som.h: Convert to ISO-C90 and fix formatting.
3043 * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
3044 * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
3045 * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
3046 * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
3047 * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
3048 * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
3049 * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
3050 * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
3051 * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
3052 * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
3053 * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
3054 * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
3055 * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
3056 * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
3057 * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
3058 * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
3059 * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
3060 * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
3061 * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
3062 * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
3063 * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
3064 * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
3065 * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
3066 * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
3067 * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
3068 * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
3069 * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
3070 * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
3071 * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
3072 * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
3073 * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
3074 * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
3075 * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
3076 * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
3077 * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
3078 * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
3079 * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
3080 * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
3081 * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
3082 * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
3083 * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
3084 * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
3085 * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
3086 * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
3087 * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
3088 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
3089
3090 2005-03-23 Jim Blandy <jimb@redhat.com>
3091
3092 * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
3093 attributes properly.
3094
3095 2005-03-23 Mike Frysinger <vapier@gentoo.org>
3096 Nick Clifton <nickc@redhat.com>
3097
3098 * configure.tgt: Accept any C library to accompany a GNU Linux
3099 implementation, not just the GNU C library.
3100 * configure.in: Likewise.
3101 * configure: Regenerate.
3102
3103 2005-03-23 Nick Clifton <nickc@redhat.com>
3104
3105 * config/tc-tic30.c: Convert to ISO C90 formatting.
3106 * config/tc-tic30.h: Convert to ISO C90 formatting.
3107 * config/tc-pdp11.c: Convert to ISO C90 formatting.
3108 * config/atof-vax.c: Convert to ISO C90 formatting.
3109
3110 2005-03-21 Maciej W. Rozycki <macro@mips.com>
3111
3112 * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
3113 relocations correctly as well.
3114 (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
3115 relocations in mergeable sections section-relative either.
3116
3117 2005-03-21 Bob Wilson <bob.wilson@acm.org>
3118
3119 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
3120
3121 2005-03-21 Nick Clifton <nickc@redhat.com>
3122
3123 * config/tc-sh.c (sh_elf_final_processing): Fix compile time
3124 warning by providing a prototype for sh_symbian_find_elf_flags.
3125
3126 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
3127 previous delta.
3128
3129 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3130
3131 * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
3132 along with other formats that set bfd_gas. Remove unnecessary
3133 setting of bfd_gas. Delete strongarm cases in generic_target
3134 switch.
3135
3136 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3137
3138 PR gas/780
3139 * config/tc-m68k.c (TRUNC, SEXT): Define.
3140 (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
3141 (m68k_ip): Truncate or sign extend expressions as appropriate.
3142 (get_num): Likewise.
3143 (md_apply_fix3): Use SEXT.
3144
3145 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3146
3147 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
3148 (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
3149 (obj-vms.o): Delete rule.
3150 Run "make dep-am".
3151 * Makefile.in: Regenerate.
3152 * aclocal.m4: Regenerate.
3153 * doc/Makefile.in: Regenerate.
3154 * po/POTFILES.in: Regenerate.
3155
3156 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
3157
3158 * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
3159 flag for coldfire v4e.
3160
3161 2005-03-17 Bob Wilson <bob.wilson@acm.org>
3162
3163 * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
3164 xg_apply_fix_value and return a value to indicate success.
3165 (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative.
3166 (xtensa_force_relocation): Remove checks for VTABLE relocs.
3167 (xtensa_validate_fix_sub): New.
3168 (xtensa_fix_adjustable): Remove check for external or weak symbols.
3169 (tc_gen_reloc): Move code to handle difference of symbols and code to
3170 apply tentative fix values to ...
3171 (md_apply_fix3): ...here. Enable standard overflow checks for simple
3172 8, 16, and 32 bit relocations. Apply fixes for slot-specific
3173 relocations when linkrelax flag is not set.
3174 * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
3175 (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
3176
3177 2005-03-17 Jan Beulich <jbeulich@novell.com>
3178
3179 * config/tc-i386.c (i386_scale): Beautify error message.
3180 (Intel syntax comments): Update.
3181 (struct intel_parser_s): Add fields in_offset, in_bracket, and
3182 next_operand.
3183 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
3184 Remove declarations.
3185 (intel_bracket_expr): Declare.
3186 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
3187 of the function body in a loop allowing to split an operand into two.
3188 Replace calls to malloc and checks of it returning non-NULL with
3189 calls to xmalloc/xstrdup.
3190 (intel_expr): SHORT no longer handled here. Add comment indicating
3191 comparison ops need implementation.
3192 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
3193 Check right operand of - does not specify a register when parsing
3194 the address of a memory reference.
3195 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
3196 Check operands do not specify a register when parsing the address of
3197 a memory reference.
3198 (intel_e06, intel_e06_1): Likewise.
3199 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
3200 handle SHORT as well as unary + and -. Don't accept : except for
3201 segment overrides or in direct far jump/call insns.
3202 (intel_brack_expr): New.
3203 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
3204 intel_brack_expr.
3205 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
3206 through in certain cases. Use intel_brack_expr. Add new diagnostics.
3207 Allow symbolic constants as register scale value.
3208 (intel_get_token): Replace call to malloc and check of return value
3209 with call to xmalloc. Change handling for FLAT to match MASM's.
3210 (intel_putback_token): Don't try to back up/free current token if
3211 that is T_NIL.
3212
3213 2005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
3214
3215 * configure.tgt: Set emulation for arm-*-eabi*.
3216 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
3217 * config/te-armeabi.h: New file.
3218 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
3219 * config/te-symbian.h: Include "te-armeabi.h".
3220
3221 2005-03-16 Nick Clifton <nickc@redhat.com>
3222
3223 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
3224 local variable in case it is clobbered by the setjmp.
3225
3226 2005-03-16 Nick Clifton <nickc@redhat.com>
3227 Ben Elliston <bje@au.ibm.com>
3228
3229 * configure.in (werror): New switch: Add -Werror to the
3230 compiler command line. Enabled by default. Disable via
3231 --disable-werror.
3232 * configure: Regenerate.
3233
3234 2005-03-16 Nick Clifton <nickc@redhat.com>
3235
3236 * config/obj-coff.h: Convert to ISO C90 formatting.
3237 * config/obj-coff.c: Convert to ISO C90 formatting.
3238
3239 2005-03-15 Zack Weinberg <zack@codesourcery.com>
3240
3241 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
3242 is_mls parameter; do not diagnose Rm==Rd when is_mls.
3243 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
3244 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
3245 (insns): Add ARMv6T2 instructions:
3246 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
3247 (arm_archs): Add V6T2 variants.
3248
3249 2005-03-15 Nick Clifton <nickc@redhat.com>
3250
3251 * NEWS: Add cutoff for changes in 2.16 release.
3252
3253 2005-03-15 Jan Beulich <jbeulich@novell.com>
3254
3255 * expr.c (operand): Merge handling of unary + into that for unary
3256 -, !, and ~.
3257
3258 2005-03-14 Eric Christopher <echristo@redhat.com>
3259
3260 * config/tc-mips.c: Include dw2gencfi.h.
3261 (mips_cfi_frame_initial_instructions): New.
3262 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
3263 (tc_cfi_frame_initial_instructions): Ditto.
3264 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
3265 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
3266 * Makefile.am: Update dependencies.
3267 * Makefile.in: Regenerate.
3268
3269 2005-03-15 Alan Modra <amodra@bigpond.net.au>
3270
3271 * po/es.po: Commit new Spanish translation.
3272
3273 2005-03-14 Alan Modra <amodra@bigpond.net.au>
3274
3275 * po/tr.po: Commit new Turkish translation.
3276
3277 2005-03-12 Zack Weinberg <zack@codesourcery.com>
3278
3279 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
3280 wfi, yield.
3281
3282 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
3283
3284 * config-gas.com: Mark vax-vms as obsolete.
3285 * configure.in: Remove fmt=vms support.
3286 * config.in: Regenerate.
3287 * configure: Regenerate.
3288 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
3289
3290 2005-03-10 Sterling Augustine <sterling@tensilica.com>
3291 Bob Wilson <bob.wilson@acm.org>
3292
3293 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
3294 when checking if xg_resolve_literals needs to be called.
3295 * config/tc-xtensa.h: Fix spelling typo in a comment.
3296
3297 2005-03-10 Jan Beulich <jbeulich@novell.com>
3298
3299 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
3300 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
3301 crafted structure declarations with the types from macro.h.
3302
3303 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3304
3305 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
3306 for -mno-shared optimization.
3307
3308 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3309
3310 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
3311 (MAX_NOPS): Bump to 4.
3312 (mips_fix_vr4130): New variable.
3313 (nops_for_vr4130): New function.
3314 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
3315 nops_for_vr4130 if working around VR4130 errata.
3316 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
3317 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
3318 (md_parse_option): Handle them.
3319 (md_show_usage): Print them.
3320 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
3321
3322 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3323
3324 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
3325 branch delay code.
3326
3327 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3328
3329 * config/tc-mips.h (mips_flush_pending_output): Delete.
3330 (mips_emit_delays): Declare.
3331 (md_flush_pending_output): Use mips_emit_delays.
3332 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
3333 the previous instructions.
3334 (md_begin, append_insn, md_parse_option): Update callers.
3335 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
3336 start_noreorder.
3337 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
3338 (s_gpdword): Update callers.
3339 (start_noreorder, end_noreorder): New functions.
3340 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
3341 manipulating mips_opts or prev_nop_frag directly.
3342 (mips_flush_pending_output): Delete.
3343
3344 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3345
3346 * config/tc-mips.c (mips_move_labels): New function, taken from...
3347 (append_insn, mips_emit_delays): ...here.
3348
3349 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3350
3351 * config/tc-mips.c (MAX_NOPS): New macro.
3352 (history): Resize to 1 + MAX_NOPS.
3353 (fix_vr4120_class): New enumeration.
3354 (vr4120_conflicts): New variable.
3355 (init_vr4120_conflicts): New function.
3356 (md_begin): Call it.
3357 (insn_uses_reg): Constify first argument.
3358 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
3359 (nops_for_insn_or_target): New functions.
3360 (append_insn): Use the new nops_for_* functions instead of inline
3361 delay checks. Generalize prev_nop_frag handling to handle an
3362 arbitrary history length. Insert nops into the history buffer
3363 once the number of nops in prev_nop_frag is fixed.
3364 (emit_delays): Use nops_for_insn instead of inline delay checks.
3365
3366 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3367
3368 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
3369 check from branch delay code. Remove unnecessary check for branches.
3370
3371 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3372
3373 * config/tc-mips.c (dummy_opcode): Delete.
3374 (nop_insn, mips16_nop_insn): New variables.
3375 (NOP_INSN): New macro.
3376 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
3377 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
3378 (md_begin): Initialize nop_insn and mips16_nop_insn.
3379 (append_insn): Use the new emit_nop function to add nops, recording
3380 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
3381 to reserve room for the instruction and install_insn to install the
3382 final form. Use insert_into_history to record the instruction in
3383 the history buffer. Use move_insn to do delay slot filling.
3384 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
3385 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
3386 (mips16_ip): Use create_insn to initialize mips_cl_insns.
3387
3388 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3389
3390 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
3391 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
3392 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
3393 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
3394 (mips16_ip): Use the new macros instead of explicit masks and shifts.
3395
3396 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3397
3398 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
3399 and extended_p fields with a single fixed_p field.
3400 (append_insn, mips_no_prev_insn): Adjust accordingly.
3401
3402 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3403
3404 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
3405 a single mips16_absolute_jump_p bit.
3406 (append_insn): Adjust accordingly.
3407
3408 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
3409
3410 * config/tc-mips.h (mips_cl_insn): Move definition to...
3411 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
3412 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
3413 and extended_p.
3414 (history): New variable.
3415 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
3416 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
3417 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
3418 (prev_prev_insn_unreordered): Delete.
3419 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
3420 (macro_start): Replace uses of prev_insn* with the equivalent history[]
3421 field.
3422
3423 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
3424
3425 * doc/Makefile.am: Update as.info dependencies.
3426 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
3427
3428 2005-03-08 Jan Beulich <jbeulich@novell.com>
3429
3430 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
3431 error, and point to .purgem documentation if someone really needs
3432 re-definitions.
3433 * NEWS: Mention macro redefinition is now an error.
3434
3435 2005-03-08 Jan Beulich <jbeulich@novell.com>
3436
3437 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
3438 emitted to. Add more precise diagnostics for non-fitting insns based
3439 on that. Eliminate now superfluous special casing of MLX. Clear out
3440 slot information when dropping an insn.
3441
3442 2005-03-08 Jan Beulich <jbeulich@novell.com>
3443
3444 * config/tc-ia64.c (parse_section_name): Rename to...
3445 (cross_section): In addition to separating the name from the rest of
3446 the arguments, also carry out the operation.
3447 (dot_xdata): Use cross_section.
3448 (dot_float_cons): Likewise.
3449 (dot_xstringer): Likewise.
3450 (dot_xdata_ua): Likewise.
3451 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
3452
3453 2005-03-05 Alan Modra <amodra@bigpond.net.au>
3454
3455 * po/gas.pot: Regenerate.
3456
3457 2005-03-04 David Daney <ddaney@avtrex.com>
3458
3459 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
3460 instead of '_gp' for -mno-shared optimization.
3461 (s_cpload): Ditto.
3462 (s_abicalls): Document it in the comment.
3463 (md_show_usage): Document the -mno-shared option.
3464
3465 2005-03-04 Richard Sandiford <rsandifo@redhat.com>
3466
3467 * config/tc-mips.c (mips_set_options): Add sym32 field.
3468 (mips_opts): Initialize it.
3469 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
3470 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
3471 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
3472 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
3473 when deciding whether to use a symbolic %highest/%higher expansion.
3474 (macro): Likewise. Remove o64/n32 linux hack. Always use
3475 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
3476 and "la". Handle constants separately from symbolic expressions in
3477 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
3478 and using load_register to load the high part of the address.
3479 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
3480 (OPTION_ELF_BASE): Bump by 2.
3481 (md_longopts): Add entries for -msym32 and -mno-sym32.
3482 (md_parse_option): Handle them.
3483 (usage): Document them.
3484 (s_mipsset): Handle ".set sym32" and ".set nosym32".
3485 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
3486 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
3487 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
3488 -msym32 and -mno-sym32.
3489
3490 2005-03-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3491
3492 * config/tc-mips.c (load_address): Implement GP optimization
3493 for 64bit address space non-PIC. Fix formatting.
3494 (macro): Likewise. Simplify code.
3495 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
3496 (mips_after_parse_args): Simplify code.
3497
3498 2005-03-03 Nick Clifton <nickc@redhat.com>
3499
3500 * expr.c (operand): Remove redundant code enclosed by #ifdef
3501 RELAX_PAREN_GROUPING....#endif.
3502
3503 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
3504 reloc is the difference of two symbols defined in the same
3505 section.
3506
3507 * config/tc-iq2000.c (line_comment_chars): Include the # character
3508 as otherwise this breaks #APP/#NO_APP processing.
3509
3510 2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3511
3512 * config/tc-arc.c(md_assemble): Remove dead code for handling
3513 immediate indexing of ld and st .
3514
3515 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
3516 Joseph Myers <joseph@codesourcery.com>
3517
3518 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
3519 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
3520 (parse_relocation): Check for a word break after a relocation
3521 operator.
3522 (md_apply_fix3): Handle TLS relocations, and mark thread-local
3523 symbols.
3524
3525 2005-03-02 Alan Modra <amodra@bigpond.net.au>
3526
3527 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
3528
3529 2005-03-02 Jan Beulich <jbeulich@novell.com>
3530
3531 * as.c (main): Use unlink_if_ordinary instead of unlink.
3532 * messages.c (as_fatal): Likewise.
3533
3534 2005-03-02 Jan Beulich <jbeulich@novell.com>
3535
3536 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
3537 accesses.
3538 (parse_register): Allow cr8...15 in all modes.
3539
3540 2005-03-02 Jan Beulich <jbeulich@novell.com>
3541
3542 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
3543 etc. like normal symbol references (T_ID).
3544
3545 2005-03-02 Alan Modra <amodra@bigpond.net.au>
3546
3547 * symbols.c (fb_label_name): Fix silly thinko in last change.
3548
3549 2005-03-02 Alan Modra <amodra@bigpond.net.au>
3550
3551 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
3552 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
3553
3554 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
3555
3556 2005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3557
3558 PR gas/708
3559 * config/tc-arc.c (md_assemble): Initialize suffix for extension
3560 suffixes also.
3561
3562 2005-03-01 Alan Modra <amodra@bigpond.net.au>
3563
3564 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
3565
3566 * as.h (assert): Warning fix.
3567 * expr.c (expr): Correct assertion.
3568 * read.c (s_comm_internal): Remove assertion.
3569 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
3570 (fixup_segment): Remove assertion.
3571 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
3572 (md_apply_fix3): Likewise.
3573 * config/tc-i370.c (md_begin): Correct assertion.
3574 (i370_macro): Warning fix for assertion.
3575
3576 2005-03-01 Alan Modra <amodra@bigpond.net.au>
3577
3578 * configure.in (AC_C_BIGENDIAN): Invoke.
3579 * configure: Regenerate.
3580 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
3581 host variable to set string header size.
3582 * config/obj-aout.c (obj_header_append): Don't use host structs.
3583 (obj_symbol_to_chars): Likewise.
3584 (obj_emit_strings): Likewise. Use the passed in output pointer.
3585 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
3586 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
3587 not sizeof host struct.
3588 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
3589 (obj_emit_strings): Likewise.
3590 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
3591 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
3592 sizeof host struct.
3593 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
3594 sizeof host struct.
3595 (host_number_to_chars): Define.
3596 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
3597 host internal struct to set header sizes.
3598 * config/tc-i960.c (md_number_to_field): Warning fix.
3599 (md_ri_to_chars): Use host byte order.
3600 (get_cdisp, md_apply_fix3): Warning fix.
3601 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
3602
3603 2005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3604
3605 * doc/c-arc.texi: Update documentation about ARC's extension
3606 instructions.
3607
3608 2005-02-27 Svein E. Seldal <svein@dev.seldal.com>
3609
3610 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
3611 address for myself.
3612
3613 2005-02-23 Alan Modra <amodra@bigpond.net.au>
3614
3615 * cgen.c: Warning fixes.
3616 * config/tc-arc.c: Likewise.
3617 * config/tc-arm.c: Likewise.
3618 * config/tc-avr.c: Likewise.
3619 * config/tc-d10v.c: Likewise.
3620 * config/tc-d30v.c: Likewise.
3621 * config/tc-frv.c: Likewise.
3622 * config/tc-frv.h: Likewise.
3623 * config/tc-h8300.c: Likewise.
3624 * config/tc-h8500.c: Likewise.
3625 * config/tc-i370.c: Likewise.
3626 * config/tc-i960.c: Likewise.
3627 * config/tc-ia64.c: Likewise.
3628 * config/tc-ip2k.c: Likewise.
3629 * config/tc-m68hc11.c: Likewise.
3630 * config/tc-maxq.c: Likewise.
3631 * config/tc-mcore.c: Likewise.
3632 * config/tc-mips.c: Likewise.
3633 * config/tc-msp430.c: Likewise.
3634 * config/tc-pj.c: Likewise.
3635 * config/tc-ppc.c: Likewise.
3636 * config/tc-ppc.h: Likewise.
3637 * config/tc-s390.c: Likewise.
3638 * config/tc-sh.c: Likewise.
3639 * config/tc-sh64.c: Likewise.
3640 * config/tc-tic4x.c: Likewise.
3641 * config/tc-tic80.c: Likewise.
3642 * config/tc-v850.c: Likewise.
3643 * config/tc-vax.c: Likewise.
3644 * config/tc-w65.c: Likewise.
3645 * config/tc-xstormy16.c: Likewise.
3646 * config/tc-z8k.c: Likewise.
3647
3648 2005-02-22 Catherine Moore <clm@cm00re.com>
3649
3650 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
3651 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
3652
3653 2005-02-22 Eric Christopher <echristo@redhat.com>
3654
3655 * config/tc-mips.c (struct proc): Change isym to
3656 func_sym. New member func_end_sym.
3657 (s_mips_ent): Update.
3658 (s_mips_end): Ditto. Add code to compute function size.
3659
3660 2005-02-22 Alan Modra <amodra@bigpond.net.au>
3661
3662 * read.c: Warning fixes.
3663 * config/obj-elf.c: Likewise.
3664
3665 2005-02-22 Maciej W. Rozycki <macro@mips.com>
3666
3667 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
3668 emitting insn.
3669
3670 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
3671
3672 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
3673 SEC_COFF_SHARED.
3674
3675 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
3676 SEC_TIC54X_BLOCK.
3677 (demand_empty_rest_of_line): Likewise.
3678 (tic54x_sblock): Likewise.
3679 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
3680
3681 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3682
3683 * read.c (address_bytes): New function.
3684 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
3685 (potable): Add "dc.a".
3686 (cons_worker): Handle "dc.a".
3687 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
3688
3689 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3690
3691 * input-file.c (input_file_open): Rearrange to avoid warning.
3692
3693 2005-02-19 Alan Modra <amodra@bigpond.net.au>
3694
3695 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
3696 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
3697 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
3698
3699 2005-02-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3700
3701 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
3702 uses after .set noat.
3703 (load_address): Likewise.
3704 (macro): Likewise. Don't try to avoid $at use by sacrificing
3705 the target register before it is stored, it won't work.
3706
3707 2005-02-17 James E Wilson <wilson@specifixinc.com>
3708
3709 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
3710 see an instruction that specifies a template.
3711
3712 2005-02-18 Alan Modra <amodra@bigpond.net.au>
3713
3714 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
3715 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
3716 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
3717
3718 2005-02-17 H.J. Lu <hongjiu.lu@intel.com>
3719
3720 * NEWS: Mention "-mhint.b=[ok|warning|error]".
3721
3722 * config/tc-ia64.c (md): Add hint_b.
3723 (emit_one_bundle): Handle md.hint_b for "hint".
3724 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
3725 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
3726 (ia64_init): Set md.hint_b to error.
3727 (md_assemble): Handle md.hint_b for "hint.b".
3728
3729 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
3730 * doc/c-ia64.texi: Likewise.
3731
3732 2005-02-17 Alan Modra <amodra@bigpond.net.au>
3733
3734 * tc.h (struct relax_type, relax_typeS): Move from here..
3735 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
3736 * ecoff.c (ecoff_new_file): Add appfile param.
3737 * ecoff.h (ecoff_new_file): Likewise.
3738 * itbl-lex.h: New file.
3739 * itbl-lex.l: Include itbl-lex.h.
3740 * itbl-parse.y: Likewise.
3741 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
3742 * read.c (s_app_file_string): Mark appfile possibly unused.
3743 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
3744 * subsegs.h (struct seg_info_trash): Delete.
3745 (seg_info): Use segment_info_type instead.
3746 * config/obj-coff.c (struct filename_list): Make filename const char *.
3747 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
3748 * config/obj-elf.c (elf_file_symbol): Similarly.
3749 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
3750 signed right shift.
3751 * config/tc-arc.c (md_operand): Warning fix.
3752 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
3753 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
3754 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
3755 * config/tc-frv.c (frv_force_relocation): Warning fix.
3756 * config/tc-m68k.c (md_parse_option): Delete unused var.
3757 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
3758 * config/tc-sparc.c: Likewise.
3759 (s_common): Warning fix.
3760 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
3761 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
3762 addressT.
3763 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
3764 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
3765 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
3766 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
3767 (tic4x_do_align): Use TIC_NOP_OPCODE.
3768 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
3769 * config/tc-vax.c: Include netinet/in.h.
3770 (tc_headers_hook): Formatting.
3771 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
3772
3773 2005-02-17 Jan Beulich <jbeulich@novell.com>
3774
3775 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
3776 parsing inN, locN, outN. Set 'idx' to offset register number starts
3777 at. Don't handle numbers with leading zeroes or beyond 95. Remove
3778 pointless cast.
3779
3780 2005-02-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3781
3782 * config/tc-mips.c (load_address): Fix formatting.
3783 (macro): Don't use AT if .set noat is in effect. Fix formatting.
3784 Catch macros which are unexpandable without AT. Remove duplicate
3785 zeroing of used_at.
3786 (macro2): Remove duplicate zeroing of used_at.
3787
3788 2005-02-16 Alan Modra <amodra@bigpond.net.au>
3789
3790 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
3791 than zero.
3792
3793 2005-02-15 Nigel Stephens <nigel@mips.com>
3794 Maciej W. Rozycki <macro@mips.com>
3795
3796 * config/tc-mips.c (reloc_needs_lo_p): Handle
3797 BFD_RELOC_MIPS16_HI16_S.
3798 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
3799 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
3800 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
3801 complaints on.
3802 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
3803 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
3804 Call my_getSmallExpression() to parse percent operators.
3805 (percent_op_match, mips_percent_op): Separate definitions.
3806 (mips16_percent_op): Define percent operators for the MIPS16 mode.
3807 (parse_relocation): Handle the MIPS16 mode using
3808 mips16_percent_op.
3809 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
3810 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
3811
3812 2005-02-15 Jan Beulich <jbeulich@novell.com>
3813
3814 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
3815 instead of explicitly dealing with the translation; exclude
3816 relocations that are already pcrel, however.
3817
3818 2005-02-15 Jan Beulich <jbeulich@novell.com>
3819
3820 * config/tc-ia64.c: Include limits.h (if available).
3821 (gr_values[0]): Set path to INT_MAX.
3822 (dot_reg_val): Don't allow changing value of r0. Limit range of
3823 general registers at r127.
3824 (specify_resource): Default resource index is -1. Don't set resource
3825 index (in case IA64_RS_RSE) without setting the specific flag.
3826 (note_register_values): Check operand is O_constant before tracking
3827 input value of moves. Add tracking for dep.z with constant inputs.
3828 (print_dependency): Resource index of specific resource may be zero.
3829 (check_dependencies): Likewise.
3830
3831 2005-02-15 Jan Beulich <jbeulich@novell.com>
3832
3833 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
3834 reg_class. Check operands and emit diagnostics for illegal use of
3835 registers.
3836
3837 2005-02-15 Jan Beulich <jbeulich@novell.com>
3838
3839 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
3840 new variables type, suffix, and width. Handle
3841 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
3842 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
3843 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
3844 FUNC_DTP_RELATIVE case. Return incoming relocation type if
3845 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
3846 if unable to translate relocation type, using the new variables.
3847
3848 2005-02-15 Jan Beulich <jbeulich@novell.com>
3849
3850 * config/tc-ia64.h (ia64_symbol_chars): Declare.
3851 (ty_symbol_chars): Define.
3852 * config/tc-ia64.c (ia64_symbol_chars): Define.
3853
3854 2005-02-15 Jan Beulich <jbeulich@novell.com>
3855
3856 * config/tc-ia64.c (ia64_parse_name): Only update next character if
3857 input_line_pointer was advanced.
3858
3859 2005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3860
3861 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
3862 within |.
3863
3864 2005-02-13 Jan Beulich <jbeulich@novell.com>
3865
3866 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
3867 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
3868 indicator.
3869 (ia64_init): Set md.detect_dv.
3870 (ia64_start_line): New static variable warned. Warn only once when
3871 encountering explicit stops in automatic mode.
3872 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
3873 * NEWS: Mention new default mode.
3874
3875 2005-02-13 Jan Beulich <jbeulich@novell.com>
3876
3877 * config/tc-ia64.c (dot_rot): Add comment that name strings should
3878 be freed when wiping out previous state. Canonicalize names before
3879 use. Free name string when detecting redefinition.
3880 (dot_pred_rel): Call generic expression parser to process arguments.
3881 Handle O_register case for individual predicates and O_subtract for
3882 ranges.
3883 (ia64_parse_name): Canonicalize name before looking it up in dynamic
3884 register hash.
3885 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
3886 Warn if multiple found, issue error if resulting symbol name has zero
3887 length.
3888 (dot_alias): Canonicalize name before use.
3889
3890 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
3891
3892 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
3893 and 0 for error.
3894 (in_procedure): Return -1 for warning.
3895 (in_prologue): Likewise.
3896 (in_body): Likewise.
3897
3898 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
3899
3900 * config/tc-ia64.c (dot_xdata): Undo the last change.
3901 (dot_float_cons): Likewise.
3902 (dot_xstringer): Likewise.
3903 (dot_xdata_ua): Likewise.
3904 (dot_float_cons_ua): Likewise.
3905
3906 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
3907
3908 * NEWS: Mention "-munwind-check=[warning|error]".
3909
3910 * config/tc-ia64.c (md): Add unwind_check.
3911 (unwind_diagnostic): New.
3912 (in_procedure): Call unwind_diagnostic when a directive isn't
3913 in procedure.
3914 (in_prologue): Call unwind_diagnostic when a directive isn't in
3915 prologue.
3916 (in_body): Call unwind_diagnostic when a directive isn't in
3917 body region.
3918 (dot_endp): Set md.unwind_check to error before calling
3919 in_procedure and restore it after. When the name is missing or
3920 couldn't be found, use the one from the last .proc if
3921 md.unwind_check isn't error. Warn if md.unwind_check is
3922 warning.
3923 (md_parse_option): Handle "-munwind-check=[warning|error]".
3924 (md_show_usage): Add "-munwind-check=[warning|error]".
3925 (ia64_init): Set md.unwind_check to warning.
3926
3927 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
3928 * doc/c-ia64.texi: Likewise.
3929
3930 2005-02-11 Jan Beulich <jbeulich@novell.com>
3931
3932 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
3933 (LEX_QM): Likewise.
3934 (ia64_parse_name): New third parameter.
3935 (md_parse_name): Pass third argument.
3936 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
3937 (md_operand): Handling of '@'-prefixed symbols moved from here...
3938 (ia64_parse_name): ...to here.
3939
3940 2005-02-11 Jan Beulich <jbeulich@novell.com>
3941
3942 * config/tc-ia64.c (md): Remove last_groups and group_idx.
3943 (errata_nop_necessary_p): Remove declaraction and definition.
3944 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
3945 update md.group_idx. Don't reset md.last_groups.
3946
3947 2005-02-11 Jan Beulich <jbeulich@novell.com>
3948
3949 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
3950 argument.
3951 (dot_xdata): Free section name after use.
3952 (dot_float_cons): Likewise.
3953 (dot_xstringer): Likewise.
3954 (dot_xdata_ua): Likewise.
3955 (dot_float_cons_ua): Likewise.
3956 (md_pseudo_table): Add xdata16 and xdata16.ua.
3957
3958 2005-02-10 H.J. Lu <hongjiu.lu@intel.com>
3959
3960 * doc/all.texi: Add IA64.
3961 * doc/as.texinfo: Likewise.
3962
3963 * doc/c-ia64.texi: Fix typos.
3964
3965 2005-02-10 Julian Brown <julian@codesourcery.com>
3966
3967 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
3968 BFD_RELOC_UNUSED.
3969 (do_t_push_pop): Likewise.
3970 (md_assemble): Likewise.
3971 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
3972 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
3973 (create_unwind_entry): Output dependency on the required personality
3974 routines.
3975
3976 2005-02-07 Nathan Sidwell <nathan@codesourcery.com>
3977
3978 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
3979 * subsegs.c (seg_not_empty_p): Likewise.
3980
3981 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
3982
3983 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
3984 relative jump calculation.
3985 <md_convert_frag) : Likewise.
3986 <output_disp): Likewise.
3987
3988 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
3989
3990 * write.c (write_object_file): Recognize warning-symbol construct
3991 and skip object- and target- handling for the second symbol.
3992
3993 2005-02-02 Jan Beulich <jbeulich@novell.com>
3994
3995 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
3996 designators along with quoted ones. Free copy of quoted designator
3997 when done.
3998
3999 2005-02-01 Ben Elliston <bje@au.ibm.com>
4000
4001 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
4002 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
4003 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
4004 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
4005 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
4006 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
4007 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
4008 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
4009 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
4010 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
4011 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
4012 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
4013 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
4014 #if 0'd code throughout.
4015
4016 2005-01-31 Nick Clifton <nickc@redhat.com>
4017
4018 * as.c (parse_args): Bump copyright date reported by --version to
4019 2005.
4020
4021 2005-01-31 Nick Clifton <nickc@redhat.com>
4022
4023 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
4024 and vax-vms.
4025
4026 2005-01-31 Jan Beulich <jbeulich@novell.com>
4027
4028 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
4029 that can end with .endr in that case. Make requiring/permitting
4030 pseudo-ops without leading dot closer to the logic in read.c serving
4031 the same purpose.
4032 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
4033 ignored.
4034
4035 2005-01-31 Jan Beulich <jbeulich@novell.com>
4036
4037 * macro.c (do_formals): Adjust to no longer accept empty parameter
4038 names.
4039 (define_macro): Adjust to no longer accept empty macro name, garbage
4040 following the parameters, or macros that were previously defined.
4041 * read.c (s_bad_end): Declare.
4042 (potable): Add endm. Handler for endr and endm is s_bad_end.
4043 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
4044 and .endr.
4045 * read.h (s_bad_endr): Remove.
4046
4047 2005-01-31 Jan Beulich <jbeulich@novell.com>
4048
4049 * config/tc-ia64.c (parse_operands): Parse all specified operands,
4050 immediately discarding (but counting) those exceeding the maximum
4051 possible amount. Track whether output and input operand counts ever
4052 matched, and use this to better indicate which of the operands/
4053 operand types was wrong; specifically don't default to pointing to
4054 the first operand.
4055
4056 2005-01-31 Jan Beulich <jbeulich@novell.com>
4057
4058 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
4059 variable in dot_endp). Add body and insn. Make prologue,
4060 prologue_mask, body, and insn bitfields.
4061 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
4062 messages.
4063 (in_procedure, in_prologue, in_body): New.
4064 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
4065 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
4066 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
4067 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
4068 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
4069 dot_personality): Use the appropriate one of the above.
4070 (dot_proc): Clear unwind.proc_start; set to current location only if
4071 none of the entry points were valid. Check for non-zero-length entry
4072 point names. Check that entry points aren't defined, yet. Clear
4073 unwind.prologue, unwind.body, and unwind.insn.
4074 (dot_body): Call in_procedure. Check that first directive in procedure
4075 had no insns emitted before. Set unwind.body.
4076 (dot_prologue): Call in_procedure. Check that not already in prologue.
4077 Check that first directive in procedure had no insns emitted before.
4078 Clear unwind.body.
4079 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
4080 length entry point names. Check that entry points became defined.
4081 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
4082
4083 2005-01-31 Jan Beulich <jbeulich@novell.com>
4084
4085 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
4086 before actually using it. Don't generate an error in manual bundling
4087 mode when looking at an insn requiring slot 2 but not yet at slot 2.
4088 Don't generate an error in manual bundling mode when looking at an
4089 insn required to be last in its group but the required slot hasn't
4090 been reached, yet. Allow conversion from MII to MI;I for bundle
4091 consisting of only 2 insns with the stop between them. Suppress
4092 various meaningless errors resulting from detecting earlier ones.
4093
4094 2005-01-31 Jan Beulich <jbeulich@novell.com>
4095
4096 * config/tc-ia64.c (parse_operands): Also handle alloc without first
4097 input being ar.pfs.
4098
4099 2005-01-28 Christian Groessler <chris@groessler.org>
4100
4101 * config/tc-z8k.c (md_assemble): Improve error detection.
4102
4103 2005-01-28 Jan Beulich <jbeulich@novell.com>
4104
4105 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
4106 for personality routine pointer only if there is one.
4107 (ia64_convert_frag): Likewise.
4108 (generate_unwind_image): Likewise.
4109
4110 2005-01-27 Christian Groessler <chris@groessler.org>
4111
4112 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
4113 (md_apply_fix3): Make relative branches out of range an error
4114 instead of a warning. Display correct line number for out of
4115 range branches/calls/memory accesses.
4116
4117 2005-01-27 Nathan Sidwell <nathan@codesourcery.com>
4118
4119 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
4120 to emit .debug_line and other debug sections.
4121 * as.h (seg_not_empty_p): Declare.
4122 * subsegs.c (seg_not_empty_p): New predicate.
4123
4124 2005-01-27 Andrew Cagney <cagney@gnu.org>
4125
4126 * configure: Regenerate to track ../gettext.m4 change.
4127
4128 2005-01-27 Jan Beulich <jbeulich@novell.com>
4129
4130 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
4131
4132 2005-01-27 Jan Beulich <jbeulich@novell.com>
4133
4134 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
4135 to/from application registers dynamic insns.
4136 (md_assemble): Defer resolution of move to/from application registers
4137 dynamic insns when they can be issued on either the I- or M-units.
4138
4139 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
4140
4141 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
4142 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
4143 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
4144 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
4145 * cgen.c (gas_cgen_parse_operand): Handle
4146 CGEN_PARSE_OPERAND_SYMBOLIC.
4147 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
4148 (frv_force_relocation): Likewise. Fix handling of PIC
4149 relocations.
4150 (md_apply_fix3): Likewise.
4151
4152 2005-01-21 Ben Elliston <bje@au.ibm.com>
4153
4154 * as.h: Remove #if 0'd code.
4155 * atof-generic.c (atof_generic): Likewise.
4156 * ecoff.c (ecoff_directive_frame): Likewise.
4157 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
4158 * itbl-ops.c (itbl_add_reg): Likewise.
4159 * listing.c (calc_hex): Likewise.
4160 * read.c (MASK_CHAR): Likewise.
4161 * subsegs.c (subsegs_print_statistics): Likewise.
4162 * symbols.c (indent): Likewise.
4163 * write.c (write_relocs): Likewise.
4164 (write_object_file): Likewise.
4165 (relax_frag): Likewise.
4166
4167 2005-01-20 Nick Clifton <nickc@redhat.com>
4168
4169 * as.c (std_longopts): Add an entry for "--a" in order to prevent
4170 getopt_long_only() from considering -a as an abbreviation for
4171 --alternate.
4172 (parse_args): Fix the parsing of -a=<file>.
4173
4174 2005-01-20 Alan Modra <amodra@bigpond.net.au>
4175
4176 PR gas/684
4177 * read.c (s_incbin): Adjust default count for skip. Check validity
4178 of count and skip rigorously.
4179
4180 2005-01-19 Fred Fish <fnf@specifixinc.com>
4181
4182 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
4183
4184 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
4185
4186 * read.c (convert_to_bignum): New function, split out from...
4187 (emit_expr): ...here. Handle the case where X_add_number is
4188 positive and the input value is negative.
4189 (output_big_sleb128): Fix setting of continuation bit. Check whether
4190 the final byte needs to be sign-extended. Fix size-shrinking loop.
4191 (emit_leb128_expr): When generating a signed leb128, see whether the
4192 sign of an O_constant's X_add_number matches the sign of the input
4193 value. Use a bignum if not.
4194
4195 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
4196
4197 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
4198 arch_sh_up in order to match the external name and make the
4199 testsuite's job easier.
4200
4201 2005-01-14 H.J. Lu <hongjiu.lu@intel.com>
4202
4203 PR 659
4204 * config/tc-i386.c (i386_scale): Disallow 0 scale.
4205
4206 2005-01-12 Nick Clifton <nickc@redhat.com>
4207
4208 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
4209 ignored_arguments array.
4210
4211 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
4212
4213 * write.c (write_object_file): Disallow a symbol equated to
4214 common symbol.
4215
4216 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
4217
4218 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
4219 bfd_mach_maxq20.
4220 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
4221 (maxq_target): New function: Set the machine type.
4222
4223 2005-01-06 Paul Brook <paul@codesourcery.com>
4224
4225 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
4226 (md_begin): Handle TE_VXWORKS for FP defaults.
4227 (md_apply_fix3): Correct rela offsets.
4228 (elf32_arm_target_format): Add VxWorks targets.
4229
4230 2005-01-06 Paul Brook <paul@codesourcery.com>
4231
4232 * configure.tgt: Set em=vxworks for *-*-vxworks.
4233 * config/te-vxworks.h: New File.
4234
4235 2005-01-06 Paul Brook <paul@codesourcery.com>
4236
4237 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
4238
4239 2005-01-04 Dmitry Diky <diwil@spec.ru>
4240
4241 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
4242 global label.
4243
4244 2005-01-03 David Mosberger <davidm@hpl.hp.com>
4245
4246 * config/tc-ia64.c (md): Add member "loc_directive_seen".
4247 (dot_loc): New function.
4248 (md_pseudo_table): Add entry to map .loc to dot_loc().
4249 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
4250 seen a .loc directive or we're generating DWARF2 debug info for
4251 assembly source.
4252
4253 2004-12-29 Alan Modra <amodra@bigpond.net.au>
4254
4255 PR gas/619
4256 * read.c (s_comm_internal): Don't zero end of name until size
4257 expression has been parsed.
4258
4259 2004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
4260
4261 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
4262
4263 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
4264
4265 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
4266 case).
4267
4268 2004-12-22 Ian Lance Taylor <ian@airs.com>
4269
4270 * configure.tgt: New.
4271 * configure.in: Move setting of cpu_type, fmt, etc., to
4272 configure.tgt.
4273 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
4274 $(srcdir)/configure.tgt.
4275 * configure, Makefile.in: Rebuild.
4276
4277 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
4278
4279 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
4280 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
4281 instructions.
4282 (avr_offset_expression): New function to parse offsets for LDI
4283 instructions.
4284 (avr_operand): Use it.
4285 (md_apply_fix3): Generate the relocs.
4286
4287 2004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
4288
4289 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
4290 BFD_RELOC_SH_IMMS10BY8 relocation.
4291
4292 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
4293 than just ignoring bad code.
4294
4295 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
4296
4297 * config/tc-v850.c (handle_lo16): New function.
4298 (v850_reloc_prefix): Use it to check lo().
4299 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
4300
4301 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
4302
4303 * configure.in: Add s390x-ibm-tpf support.
4304 * configure: Regenerate.
4305
4306 2004-12-15 Jan Beulich <jbeulich@novell.com>
4307
4308 * config/obj-elf.c (obj_elf_change_section): Only set type and
4309 attributes on new sections. Emit warning when type of re-declared
4310 section doesn't match.
4311
4312 2004-12-15 Jan Beulich <jbeulich@novell.com>
4313
4314 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
4315 '.cfi_startproc simple' doesn't inherit the old value.
4316
4317 2004-12-15 Jan Beulich <jbeulich@novell.com>
4318
4319 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
4320 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
4321 generation to emit a factored offset.
4322
4323 2004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
4324
4325 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
4326 which is too large in the case of NO_PIC without 64-bit
4327 addresses.
4328
4329 * config/tc-mips.c (mips_in_shared): New static variable.
4330 (macro_build_lui): Permit "_gp" if !mips_in_shared.
4331 (md_longopts): Add -mshared and -mno-shared.
4332 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
4333 (s_cpload): Implement !mips_in_shared case.
4334 (s_cpsetup): Likewise.
4335 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
4336 * NEWS: Mention -mno-shared.
4337
4338 2004-12-09 Paul Brook <paul@codesourcery.com>
4339
4340 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
4341 for function start.
4342
4343 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
4344
4345 * config/tc-mips.c (append_insn): If we emit a nop during a relax
4346 sequence, increase the size of the sequence.
4347
4348 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
4349 use CPU_RM9000.
4350
4351 2004-12-07 Ben Elliston <bje@gnu.org>
4352
4353 * read.c (s_align): Use an align_limit temporary to allay a GCC
4354 signed/unsigned comparison warning.
4355
4356 2004-12-01 Mark Mitchell <mark@codesourcery.com>
4357
4358 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
4359 * configure.in: Use it for arm*-*-linux-gnueabi*.
4360 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
4361 * config/te-armlinuxeabi.h: New file.
4362 * Makefile.in: Regenerated.
4363 * aclocal.m4: Likewise.
4364 * configure: Likewise.
4365 * doc/Makefile.in: Regenerated.
4366
4367 2004-12-02 Bob Wilson <bob.wilson@acm.org>
4368
4369 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
4370 (xtensa_restore_emit_state): Likewise.
4371
4372 2004-12-02 Alan Modra <amodra@bigpond.net.au>
4373
4374 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
4375 (s_align): Use it.
4376
4377 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
4378
4379 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
4380 * Makefile.in: Regenerate.
4381
4382 2004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
4383
4384 * config/tc-crx.c: Major code cleanup. Remove unused variables and
4385 functions, give functions a meaningful name, add comments.
4386 (check_range): New function - Replace operand size calculation
4387 with range checking.
4388 (assemble_insn): Update Algorithm, improve error issuing.
4389 (enum op_err): New.
4390 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
4391 handling.
4392
4393 2004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4394
4395 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
4396 miss between different section in the same module.
4397 (tc_gen_reloc): Likewise.
4398
4399 2004-11-25 Theodore A. Roth <troth@openavr.org>
4400
4401 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
4402 atmega325, atmega3250, atmega645 and atmega6450.
4403
4404 2004-11-25 Jan Beulich <jbeulich@novell.com>
4405
4406 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
4407 permissible for the selected instruction suffix.
4408 (process_suffix): For DefaultSize instructions, suppressing the
4409 guessing of a 'q' suffix if the instruction doesn't support it is
4410 pointless, because only an 'l' suffix can be guessed in this place.
4411
4412 2004-11-24 Nick Clifton <nickc@redhat.com>
4413
4414 * config/tc-iq2000.c: Remove support for IQ10 processor.
4415 Convert to ISO C90 formatting.
4416 * config/tc-iq2000.h: Likewise.
4417
4418 2004-11-23 Nick Clifton <nickc@redhat.com>
4419
4420 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
4421 in this table. They should be correct now.
4422
4423 2004-11-23 Jan Beulich <jbeulich@novell.com>
4424
4425 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
4426 indicate the MMX extensions added by both SSE and 3DNow!A.
4427 (Cpu3dnowA): Declare.
4428 (CpuUnknownFlags): Update.
4429 * config/tc-i386.c (cpu_sub_arch_name): Declare.
4430 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
4431 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
4432 3DNow!. Athlon additionally implies 3DNow!A. Several new
4433 entries (those starting with a dot are for sub-arch specification).
4434 (set_cpu_arch): Handle sub-arch specifications.
4435 (parse_insn): Distinguish between instructions not supported because
4436 of insufficient CPU features and because of 64-bit mode.
4437 * doc/c-i386.texi: Describe enhanced .arch directive.
4438
4439 2004-11-22 Bob Wilson <bob.wilson@acm.org>
4440
4441 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
4442
4443 2004-11-22 Bob Wilson <bob.wilson@acm.org>
4444
4445 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
4446 without a corresponding .debug_info section.
4447
4448 2004-11-22 Hans-Peter Nilsson <hp@axis.com>
4449
4450 * read.c (potable): Add "error" and "warning".
4451 (s_errwarn): New function.
4452 * read.h (s_errwarn): Declare.
4453 * doc/as.texinfo (Error, Warning): Document .error and .warning.
4454
4455 2004-11-22 Nick Clifton <nickc@redhat.com>
4456
4457 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
4458 c_dot_file_symbol.
4459
4460 2004-11-19 Alan Modra <amodra@bigpond.net.au>
4461
4462 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
4463 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
4464
4465 2004-11-19 Alan Modra <amodra@bigpond.net.au>
4466
4467 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
4468 (coff_adjust_symtab): Adjust call.
4469 (crawl_symbols): Likewise.
4470 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
4471 (obj_app_file): Adjust.
4472
4473 2004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
4474
4475 * configure.in: Enable bfd_assember for the MAXQ port.
4476 * configure: Regenerate.
4477
4478 2004-11-12 Bob Wilson <bob.wilson@acm.org>
4479 Sterling Augustine <sterling@tensilica.com>
4480
4481 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
4482 there is a conflict.
4483 (check_t1_t2_reads_and_writes): Check for both reads and writes to
4484 interfaces that are related as determined by xtensa_interface_class_id.
4485
4486 2004-11-12 Nick Clifton <nickc@redhat.com>
4487
4488 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
4489 offsets for conditional branches.
4490
4491 2004-11-11 Bob Wilson <bob.wilson@acm.org>
4492
4493 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
4494
4495 2004-11-10 Bob Wilson <bob.wilson@acm.org>
4496
4497 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
4498 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
4499 MAYBE_UNREACHABLE.
4500 (relax_frag_immed): Update call to update_next_frag_state.
4501
4502 2004-11-10 Alan Modra <amodra@bigpond.net.au>
4503
4504 * obj.h (struct format_ops <app_file>): Add int param.
4505 * read.h (s_app_file_string): Likewise.
4506 * read.c (s_app_file_string): Likewise.
4507 (s_app_file): Adjust s_app_file_string call.
4508 * config/tc-mips.c (s_mips_file): Likewise.
4509 * config/obj-coff.h (obj_app_file): Add app param.
4510 * config/obj-ecoff.h (obj_app_file): Likewise.
4511 * config/obj-multi.h (obj_app_file): Likewise.
4512 * config/obj-elf.h (elf_file_symbol): Likewise.
4513 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
4514 if called for # preprocessor lines.
4515
4516 2004-11-08 H.J. Lu <hongjiu.lu@intel.com>
4517
4518 PR 528
4519 * symbols.c (resolve_symbol_value): Convert weak symbols only
4520 for Windows PECOFF.
4521 (symbol_equated_reloc_p): Don't equate weaks when relocating
4522 only for Windows PECOFF.
4523
4524 2004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
4525
4526 * config/tc-crx.c (print_insn): Check and set insn_addr.
4527 * config/tc-crx.h (md_frag_check): Define.
4528
4529 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
4530 Vineet Sharma <vineets@noida.hcltech.com>
4531
4532 * configure.in: Add support for new target maxq-coff.
4533 * configure: Regenerate.
4534 * NEWS: Mention new support.
4535 * config/tc-maxq.c: New file.
4536 * config/tc-maxq.h: New file.
4537 * config/obj-coff.h: Add support for maxq-coff.
4538
4539 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4540
4541 * symbols.c (any_external_name): Define.
4542 (resolve_symbol_value): Convert weak symbols.
4543 (S_SET_EXTERNAL): Support any_external_name.
4544 (S_SET_NAME): Qualify parameter const.
4545 (symbol_equated_reloc_p): Equate to weaks when relocating.
4546 * symbols.h (S_SET_NAME): Qualfiy parameter const.
4547 * tc.h (any_external_name): Declare.
4548 * config/obj-coff.c ("coff/pe.h"): Include for BFD
4549 assemblers also.
4550 (weak_is_altname): Declare and define.
4551 (weak_name2altname): Same.
4552 (weak_altname2name): Same.
4553 (weak_uniquify): Same.
4554 (weak_altprefix): Define.
4555 (obj_coff_weak): Change .weak syntax and handling.
4556 (coff_frob_symbol): Fix PE weak symbol alternates.
4557 * config/obj-coff.h (USE_UNIQUE): Define.
4558 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
4559 are in another segment.
4560 (tc_gen_reloc): Remove broken addend hack.
4561 doc/as.texinfo: Update.
4562
4563 2004-11-05 Sterling Augustine <sterling@tensilica.com>
4564
4565 * config/tc-xtensa.c (total_frag_text_expansion): New.
4566 (md_estimate_size_before_relax): Use it.
4567 (find_address_of_next_align_frag): Likewise.
4568
4569 2004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
4570
4571 * config/tc-crx.c: Rename argument types.
4572 (processing_arg_number): Rename to 'cur_arg_num'.
4573 (get_number_of_bits): Rename to 'set_operand_size'.
4574 (get_operandtype): Rename to 'parse_operand', totally rewrite.
4575 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
4576 (set_indexmode_parameters): Remove function, integrate its code into
4577 'set_operand'.
4578 (set_operand_size): Get rid of 'Operand Number' function parameter -
4579 use global variable 'cur_arg_num' instead.
4580 Use a local 'argument' pointer to reference the current argument.
4581 (parse_operand): Likewise.
4582 (set_operand): Likewise.
4583 (process_label_constant): Likewise.
4584
4585 2004-11-04 Bob Wilson <bob.wilson@acm.org>
4586
4587 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
4588 (add_section_rename): Delete. Inlined into...
4589 (build_section_rename): ...here. Use xstrdup instead of strdup.
4590 (xtensa_section_rename): Drop "const" from argument and return types.
4591 (md_show_usage): Indent to match show_usage().
4592 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
4593 (tc_canonicalize_section_name): Define.
4594 (md_elf_section_rename): Remove unused macro.
4595 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
4596 * doc/c-xtensa.texi (Xtensa Options): Likewise.
4597 (Frame Directive): Delete.
4598
4599 2004-11-04 Daniel Jacobowitz <dan@debian.org>
4600
4601 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
4602 * config/tc-arm.c (target_oabi): Delete.
4603 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
4604 (arm_opts): Remove moabi.
4605 * doc/as.texinfo (Overview): Remove documentation of -moabi.
4606 * doc/c-arm.texi (ARM Options): Likewise.
4607 * configure: Regenerated.
4608
4609 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
4610
4611 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
4612 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
4613 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
4614 * configure: Regenerate.
4615 * config/tc-cris.c (enum cris_archs): New.
4616 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
4617 (cris_insn_ver_valid_for_arch): New functions.
4618 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
4619 (cris_arch): New variable.
4620 (md_pseudo_table): New pseudo .arch.
4621 (err_for_dangerous_mul_placement): Initialize according to
4622 DEFAULT_CRIS_ARCH.
4623 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
4624 All users changed.
4625 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
4626 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
4627 (BRANCH_WF_V32, BRANCH_WB_V32): New.
4628 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
4629 use in md_cris_relax_table.
4630 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
4631 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
4632 Update and improve head comment.
4633 (OPTION_PIC): Define in terms of previous option, OPTION_US.
4634 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
4635 (OPTION_ARCH): New.
4636 (md_longopts): New option --march=...
4637 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
4638 macros.
4639 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
4640 (HANDLE_RELAXABLE): New macro.
4641 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
4642 cases. Check for weak symbols and assume not relaxable. Handle
4643 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
4644 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
4645 fragP->fr_symbol.
4646 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
4647 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
4648 (cris_create_short_jump): Adjust for CRISv32.
4649 (cris_relax_frag): Handle new states.
4650 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
4651 (md_begin): Define symbols "..asm.arch.cris.v32",
4652 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
4653 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
4654 when entering opcode table entry points.
4655 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
4656 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
4657 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
4658 (cris_process_instruction): Initialize out_insnp->insn_type to
4659 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
4660 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
4661 cases.
4662 <case 'm'>: Check that modified_char == '.'.
4663 <invalid operands>: Consume the rest of the line.
4664 When operands don't match, skip over subsequent insns with
4665 non-matching version specifier but same mnemonic.
4666 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
4667 special registers in CRISv32 are always 32 bit long.
4668 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
4669 New cases.
4670 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
4671 and compatible. Recognize "ACR" for v32, unless followed by "+".
4672 (get_spec_reg): Consider cris_arch when looking up register.
4673 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
4674 v32 or compatible.
4675 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
4676 (cris_get_expression): Restore input_line_pointer if failing "early".
4677 (get_flags): Consider cris_arch and recognize flags accordingly.
4678 (branch_disp): Adjust for CRISv32.
4679 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
4680 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
4681 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
4682 resolved. Don't enter zeros in object file for
4683 BFD_RELOC_32_PCREL.
4684 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
4685 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
4686 (md_parse_option): Break out "return 1".
4687 <OPTION_ARCH> New case.
4688 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
4689 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
4690 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
4691 <case BFD_RELOC_32_PCREL>: New cases.
4692 Addends for non-zero fx_pcrel are too in fx_offset.
4693 (md_show_usage): Show --march=<arch>.
4694 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
4695 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
4696 (s_syntax) <struct syntaxes>: Properly constify member operand.
4697 * config/tc-cris.h (TARGET_MACH): Define.
4698 (cris_mach): Declare.
4699 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
4700 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
4701 (CRIS-Opts): Document --march=...
4702 (CRIS-Pseudos): Document .arch.
4703
4704 2004-11-04 Jan Beulich <jbeulich@novell.com>
4705
4706 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
4707 intel syntax and no register prefix, allow $ in symbol names when
4708 intel syntax.
4709 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
4710 (intel_float_operand): Add fourth return value indicating math control
4711 operations. Make classification more precise.
4712 (md_assemble): Complain if memory operand of mov[sz]x has no size
4713 specified.
4714 (parse_insn): Translate word operands to floating point instructions
4715 operating on integers as well as control instructions to short ones
4716 as expected by AT&T syntax. Translate 'd' suffix to short one only for
4717 floating point instructions operating on non-integer operands.
4718 (match_template): Remove fldcw special case. Adjust q-suffix handling
4719 to permit it on fild/fistp/fisttp in AT&T mode.
4720 (process_suffix): Don't guess DefaultSize insns' suffix from
4721 stackop_size for certain floating point control instructions. Guess
4722 suffix for branch and [ls][gi]dt based on flag_code. Split error
4723 messages for Intel and AT&T syntax, and make the condition more strict
4724 for the former. Adjust suppressing of generation of operand size
4725 overrides.
4726 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
4727 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
4728 more error checking.
4729 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
4730 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
4731
4732 2004-11-03 Hans-Peter Nilsson <hp@axis.com>
4733
4734 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
4735 md_short_jump_size, md_long_jump_size.
4736 * write.c [!WORKING_DOT_WORD]: Ditto.
4737 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
4738 qualifier.
4739 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
4740 declare.
4741 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
4742 const qualifier in these definitions.
4743 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
4744 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
4745
4746 2004-11-02 Nick Clifton <nickc@redhat.com>
4747
4748 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
4749 table before deciding to produce a .debug_line section to match up
4750 with a user provided .debug_info section.
4751
4752 2004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
4753
4754 * config/tc-crx.c (getreg_image): Bug fix, a return value was
4755 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
4756
4757 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
4758
4759 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
4760 (get_flags): New function.
4761 (get_number_of_bits): Edit comments, update numeric values to
4762 supported sizes.
4763 (process_label_constant): Don't support the colon
4764 format (SYMBOL:[s|m|l]).
4765 (set_cons_rparams): Support argument type 'arg_rbase'.
4766 (get_operandtype): Bug fix in 'rbase' operand type parsing.
4767 (handle_LoadStor): Bug fix, first handle post-increment mode.
4768 (getreg_image): Remove redundant code, update according to latest
4769 CRX spec.
4770 (print_constant): Bug fix relate to 3-word instructions.
4771 (assemble_insn): Bug fix, when matching instructions, verify also
4772 instruction type (not only mnemonic).
4773 Add various error checking.
4774 (preprocess_reglist): Support HI/LO and user registers.
4775
4776 2004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
4777
4778 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
4779 in an epilogue directive go negative.
4780
4781 2004-10-25 H.J. Lu <hongjiu.lu@intel.com>
4782
4783 PR 474
4784 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
4785 after reporting template error during manual bundling. Reported
4786 by Michael Dupont, michaelx.dupont@intel.com.
4787
4788 2004-10-25 Daniel Jacobowitz <dan@debian.org>
4789
4790 * Makefile.am: Run dep-am.
4791 * aclocal.m4: Regenerate with automake 1.9.2.
4792 * Makefile.in: Regenerate with automake 1.9.2.
4793 * doc/Makefile.in: Likewise.
4794
4795 * config/tc-arm.c: Include "dw2gencfi.h".
4796 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
4797 New functions.
4798 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
4799 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
4800 (tc_cfi_frame_initial_instructions): Define.
4801 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
4802 Add prototypes.
4803
4804 2004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
4805
4806 * config/tc-crx.c (assemble_insn): Check unsigned immediate
4807 operands validity.
4808 Update coprocessor id to be unsigned immediate.
4809
4810 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4811
4812 * config/tc-i386.c (O_secrel): Delete.
4813 (tc_pe_dwarf2_emit_offset): New function.
4814 * config/tc-i386.h (O_secrel): Define as O_md1.
4815 (TC_DWARF2_EMIT_OFFSET): Define.
4816
4817 2004-10-18 Nick Clifton <nickc@redhat.com>
4818
4819 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
4820 ignore @fptr() directives for 4-byte fixups.
4821
4822 2004-10-15 Alan Modra <amodra@bigpond.net.au>
4823
4824 * Makefile.am: Run "make dep-am"
4825 * Makefile.in: Regenerate.
4826
4827 2004-10-14 Bob Wilson <bob.wilson@acm.org>
4828
4829 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
4830 Remove comments about placement of literal pools.
4831 (Literal Directive): Update description of literal placement.
4832 (Literal Prefix Directive): Remove statement that this does not apply
4833 to absolute-mode literals. Describe new section naming scheme.
4834
4835 2004-10-12 Bob Wilson <bob.wilson@acm.org>
4836
4837 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
4838 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
4839 is_windowed_return_opcode): Delete.
4840 (xtensa_frob_label): Use get_subseg_target_freq.
4841 (md_assemble): Inline call to is_entry_opcode.
4842 (xtensa_handle_align): Inline call to get_frag_is_literal.
4843 (relaxation_requirements): Inline call to is_jx_opcode.
4844 (emit_single_op): Inline call to is_movi_opcode.
4845 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
4846 get_frag_is_no_transform, is_entry_opcode, and
4847 set_frag_is_specific_opcode. Use get_subseg_total_freq.
4848 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
4849 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
4850 Inline calls to get_frag_is_no_transform.
4851 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
4852 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
4853 get_frag_is_no_transform.
4854 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
4855 and set_frag_is_no_transform.
4856 (get_expression_value): Delete.
4857 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
4858 cur_target_freq to target_freq.
4859 (get_subseg_info): Split out code to create a new map entry into ...
4860 (add_subseg_info): ... this new function.
4861 (get_last_insn_flags): Check if get_subseg_info succeeded.
4862 (set_last_insn_flags): Call add_subseg_info if needed.
4863 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
4864 (xtensa_reorder_segments): Compute last_sec while counting sections.
4865 Remove call to get_last_sec.
4866 (get_last_sec): Delete.
4867 (cache_literal_section): Inline call to retrieve_literal_seg and its
4868 callees, seg_present and add_seg_list.
4869 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
4870 (get_frag_is_insn, get_frag_is_no_transform,
4871 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
4872 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
4873
4874 2004-10-12 Bob Wilson <bob.wilson@acm.org>
4875
4876 * config/tc-xtensa.c: Use ISO C90 formatting.
4877 * config/tc-xtensa.h: Likewise.
4878 * config/xtensa-istack.h: Likewise.
4879 * config/xtensa-relax.c: Likewise.
4880 * config/xtensa-relax.h: Likewise.
4881
4882 2004-10-12 Paul Brook <paul@codesourcery.com>
4883
4884 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
4885 EF_ARM_EABI_VER4.
4886 (arm_eabis): Ditto.
4887 * doc/c-arm.texi: Document that we actually support -meabi=4, not
4888 -meabi=3.
4889
4890 2004-10-08 Bob Wilson <bob.wilson@acm.org>
4891
4892 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
4893 entries.
4894 (Acknowledgements): Use "GAS" instead of AS variable.
4895
4896 2004-10-08 Daniel Jacobowitz <dan@debian.org>
4897
4898 * config/tc-i386.c: Include "elf/x86-64.h".
4899 (i386_elf_section_type): New function.
4900 * config/tc-i386.h (md_elf_section_type): Define.
4901 (i386_elf_section_type): New prototype.
4902
4903 2004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
4904
4905 * config/m68k-parse.h (enum m68k_register): New control register,
4906 MBAR2 (for MCF5249)
4907 * config/tc-m68k.c: Correct control register set for MCF5249.
4908
4909 2004-10-07 Bob Wilson <bob.wilson@acm.org>
4910 Sterling Augustine <sterling@tensilica.com>
4911
4912 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
4913 (UNREACHABLE_MAX_WIDTH): Define.
4914 (XTENSA_FETCH_WIDTH): Delete.
4915 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
4916 prefer_const16, prefer_l32r): New global variables.
4917 (LIT4_SECTION_NAME): Define.
4918 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
4919 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
4920 (frag_flags struct): New.
4921 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
4922 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
4923 (bitfield, bit_is_set, set_bit, clear_bit): Define.
4924 (MAX_FORMATS): Define.
4925 (op_placement_info struct, op_placement_table): New.
4926 (O_pltrel, O_hi16, O_lo16): Define.
4927 (directiveE enum): Rename directive_generics to directive_transform.
4928 Delete directive_relax. Add directive_schedule,
4929 directive_absolute_literals, and directive_last_directive.
4930 (directive_info): Rename "generics" to "transform". Delete "relax".
4931 Add "schedule" and "absolute-literals".
4932 (directive_state): Adjust entries to match changes in directive_info.
4933 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
4934 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
4935 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
4936 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
4937 (align_only_targets, software_a0_b_retw_interlock,
4938 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
4939 software_avoid_short_loop, software_avoid_close_loop_end,
4940 software_avoid_all_short_loops, specific_opcode): Delete.
4941 (warn_unaligned_branch_targets): New.
4942 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
4943 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
4944 (option_[no_]link_relax, option_[no_]transform,
4945 option_[no_]absolute_literals, option_warn_unaligned_targets,
4946 option_prefer_l32r, option_prefer_const16, option_target_hardware):
4947 New enum values.
4948 (option_[no_]align_only_targets, option_literal_section_name,
4949 option_text_section_name, option_data_section_name,
4950 option_bss_section_name, option_eb, option_el): Delete.
4951 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
4952 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
4953 and target-hardware. Delete entries for [no-]target-align-only,
4954 literal-section-name, text-section-name, data-section-name, and
4955 bss-section-name.
4956 (md_parse_option): Handle new options and remove old ones. Accept but
4957 ignore [no-]density options. Warn for [no-]generics and [no-]relax
4958 and treat them as [no-]transform.
4959 (md_show_usage): Add new options and remove old ones.
4960 (xtensa_setup_hw_workarounds): New.
4961 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
4962 "long", "short", "loc" and "frequency" entries.
4963 (use_generics): Rename to ...
4964 (use_transform): ... this function. Add past_xtensa_end check.
4965 (use_longcalls): Add past_xtensa_end check.
4966 (code_density_available, can_relax): Delete.
4967 (do_align_targets): New.
4968 (get_directive): Accept dashes in directive names. Warn about
4969 [no-]generics and [no-]relax directives and treat them as
4970 [no-]transform.
4971 (xtensa_begin_directive): Call md_flush_pending_output only for some
4972 directives. Check for directives inside instruction bundles. Warn
4973 about deprecated ".begin literal" usage. Warn and ignore [no-]density
4974 directives. Handle new directives. Check generating_literals flag
4975 for literal_prefix.
4976 (xtensa_end_directive): Check for directives inside instruction
4977 bundles. Warn and ignore [no-]density directives. Handle new
4978 directives. Call xtensa_set_frag_assembly_state.
4979 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
4980 xtensa_dwarf2_emit_insn): New.
4981 (xtensa_literal_position): Call md_flush_pending_output. Do not check
4982 use_literal_section flag.
4983 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
4984 literals. Use xtensa_elf_cons to parse the expression.
4985 (xtensa_literal_prefix): Do not check use_literal_section. Support
4986 ".lit4" sections for absolute literals. Change prefix convention to
4987 replace ".text" (or ".t" in a linkonce section). No need to call
4988 subseg_set.
4989 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
4990 (expression_end): Handle closing braces and colons.
4991 (PLT_SUFFIX, plt_suffix): Delete.
4992 (expression_maybe_register): Use new xtensa-isa.h functions. Use
4993 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
4994 and O_hi16 expressions as well.
4995 (tokenize_arguments): Handle closing braces and colons.
4996 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
4997 operands and paired register syntax.
4998 (get_invisible_operands): New.
4999 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
5000 new xtensa-isa.h functions.
5001 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
5002 (xg_translate_idioms): Check if inside bundle. Use use_transform.
5003 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
5004 instructions. Use xtensa_translate_zero_immed.
5005 (operand_is_immed, operand_is_pcrel_label): Delete.
5006 (get_relaxable_immed): Use new xtensa-isa.h functions.
5007 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
5008 functions.
5009 (xtensa_print_insn_table, print_vliw_insn): New.
5010 (is_direct_call_opcode): Use new xtensa-isa.h functions.
5011 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
5012 is_branch_or_jump_opcode): Delete.
5013 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
5014 (opnum_to_reloc, reloc_to_opnum): Delete.
5015 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
5016 xtensa-isa.h functions. Operate on one slot of an instruction.
5017 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
5018 xg_get_insn_size): Delete.
5019 (xg_get_build_instr_size): Use xg_get_single_size.
5020 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
5021 xg_build_widen_table. Use xg_get_single_size.
5022 (xg_get_max_narrow_insn_size): Delete.
5023 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
5024 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
5025 xg_get_single_size.
5026 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
5027 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
5028 (xg_expand_to_stack, xg_expand_narrow): Update calls to
5029 xg_build_widen_table. Use xg_get_single_size.
5030 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
5031 xg_check_operand.
5032 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
5033 treat weak symbols conservatively.
5034 (xg_check_operand): Use new xtensa-isa.h functions.
5035 (is_dnrange): Delete.
5036 (xg_assembly_relax): Inline previous calls to tinsn_copy.
5037 (xg_finish_frag): Specify separate relax states for the frag and slot0.
5038 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
5039 xtensa-isa.h functions.
5040 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
5041 xg_instruction_matches_options): New.
5042 (xg_instruction_matches_rule): Handle O_register expressions. Call
5043 xg_instruction_matches_options.
5044 (transition_rule_cmp): New.
5045 (xg_instruction_match): Update call to xg_build_simplify_table.
5046 (xg_build_token_insn): Record loc fields.
5047 (xg_simplify_insn): Check is_specific_opcode field and
5048 density_supported flag.
5049 (xg_expand_assembly_insn): Skip checking code_density_available. Use
5050 new xtensa-isa.h functions. Call use_transform instead of can_relax.
5051 (xg_assemble_literal): Add error handling for O_big. Call
5052 record_alignment. Handle O_pltrel.
5053 (xg_valid_literal_expression): New.
5054 (xg_assemble_literal_space): Add slot parameter. Remove call to
5055 set_expr_symbol_offset. Add call to record_alignment. Update call to
5056 xg_finish_frag.
5057 (xg_emit_insn): Delete.
5058 (xg_emit_insn_to_buf): Add format parameter. Update calls to
5059 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
5060 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
5061 and slot parameters. Handle new "alternate" relocations for absolute
5062 literals and CONST16 instructions. Check for bad uses of O_lo16 and
5063 O_hi16. Use new xtensa-isa.h functions.
5064 (xg_assemble_tokens): Delete.
5065 (is_register_writer): Use new xtensa-isa.h functions.
5066 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
5067 old-style RSR from LCOUNT.
5068 (next_frag_opcode): Delete.
5069 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
5070 update_next_frag_state): New.
5071 (update_next_frag_nop_state): Delete.
5072 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
5073 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
5074 the state of the absolute-literals directive. Add calls to
5075 record_alignment and xtensa_set_frag_assembly_state. Call
5076 xtensa_switch_to_non_abs_literal_fragment instead of
5077 xtensa_switch_to_literal_fragment.
5078 (build_nop): New.
5079 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
5080 (get_expanded_loop_offset): Change check for undefined opcode to an
5081 assertion.
5082 (xtensa_set_frag_assembly_state, relaxable_section,
5083 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
5084 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
5085 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
5086 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
5087 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
5088 (xtensa_init_fix_data): New.
5089 (xtensa_frob_label): Reset label symbol to the current frag. Check
5090 do_align_targets and generating_literals flag. Propagate frequency
5091 info to new alignment frag. Call xtensa_set_frag_assembly_state.
5092 (xtensa_unrecognized_line): New.
5093 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
5094 to xtensa_set_frag_assembly_state.
5095 (error_reset_cur_vinsn): New.
5096 (md_assemble): Remove check for literal frag. Remove call to
5097 istack_init. Call use_transform instead of use_generics. Parse
5098 explicit instruction format specifiers. Move code for
5099 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
5100 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
5101 Add dwarf2_where call. Remote automatic alignment for ENTRY
5102 instructions. Move call to xtensa_clear_insn_labels to the end.
5103 Rearrange to handle bundles.
5104 (xtensa_cons_fix_new): Delete.
5105 (xtensa_handle_align): New.
5106 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
5107 assignment to is_no_density field.
5108 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
5109 instead of reloc_to_opnum. Handle "alternate" relocations.
5110 (xtensa_force_relocation, xtensa_check_inside_bundle,
5111 xtensa_elf_section_change_hook): New.
5112 (xtensa_symbol_new_hook): Delete.
5113 (xtensa_fix_adjustable): Check for difference of symbols with an
5114 offset. Check for external and weak symbols.
5115 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
5116 (md_estimate_size_before_relax): Return expansion for the first slot.
5117 (tc_gen_reloc): Handle difference of symbols by producing
5118 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
5119 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
5120 tentative values into the output when linkrelax is set.
5121 (XTENSA_PROP_SEC_NAME): Define.
5122 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
5123 Create literal tables only if using literal sections. Create new
5124 property tables instead of old instruction tables. Check for unaligned
5125 branch targets and loops.
5126 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
5127 new_resource_table, clear_resource_table, resize_resource_table,
5128 resources_available, reserve_resources, release_resources,
5129 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
5130 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
5131 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
5132 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
5133 flag. Update checks for workaround options. Call
5134 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
5135 (xtensa_cleanup_align_frags): Add special case for branch targets.
5136 Check for and mark unreachable frags.
5137 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
5138 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
5139 end of a zero-overhead loop body.
5140 (frag_can_negate_branch): Handle instructions with multiple slots.
5141 Use new xtensa-isa.h functions
5142 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
5143 xtensa_mark_zcl_first_insns): New.
5144 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
5145 transformations are disabled.
5146 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
5147 multislot instructions.
5148 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
5149 Likewise. Also error if transformations are disabled.
5150 (unrelaxed_frag_max_size): New.
5151 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
5152 xtensa-isa.h functions.
5153 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
5154 xtensa_opcode_is_loop instead of is_loop_opcode.
5155 (get_text_align_power): Replace as_fatal with assertion.
5156 (get_text_align_fill_size): Iterate instead of using modulus when
5157 use_nops is false.
5158 (get_noop_aligned_address): Assert that this is for a machine-dependent
5159 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
5160 xg_get_single_size, and frag_format_size.
5161 (get_widen_aligned_address): Rename to ...
5162 (get_aligned_diff): ... this function. Add max_diff parameter.
5163 Remove handling of rs_align/rs_align_code frags. Use
5164 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
5165 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
5166 and pass it back to caller.
5167 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
5168 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
5169 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
5170 (relax_frag_text_align): Rename to ...
5171 (relax_frag_loop_align): ... this function. Assume loops can only be
5172 in the first slot of an instruction.
5173 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
5174 instruction. Remove call to frag_wane.
5175 (relax_frag_narrow): Rename to ...
5176 (relax_frag_for_align): ... this function. Extend to handle
5177 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
5178 RELAX_NARROW for the first slot.
5179 (find_address_of_next_align_frag, bytes_to_stretch): New.
5180 (future_alignment_required): Use find_address_of_next_align_frag and
5181 bytes_to_stretch. Look ahead to subsequent frags to make smarter
5182 alignment decisions.
5183 (relax_frag_immed): Add format, slot, and estimate_only parameters.
5184 Check if transformations are enabled for b_j_loop_end workaround.
5185 Use new xtensa-isa.h functions and handle multislot instructions.
5186 Update call to xg_assembly_relax.
5187 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
5188 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
5189 frag types.
5190 (convert_frag_narrow): Add segP, format and slot parameters. Call
5191 convert_frag_immed for branch instructions. Adjust calls to
5192 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
5193 xg_get_single_size and xg_get_single_format.
5194 (convert_frag_fill_nop): New.
5195 (convert_frag_immed): Add format and slot parameters. Handle multislot
5196 instructions and use new xtensa-isa.h functions. Update calls to
5197 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
5198 enabled for b_j_loop_end workaround. Use build_nop instead of
5199 assemble_nop. Check is_specific_opcode flag. Check for unreachable
5200 frags. Use xg_get_single_size. Handle O_pltrel.
5201 (fix_new_exp_in_seg): Remove check for old plt flag.
5202 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
5203 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
5204 for loop opcode to an assertion. Mark all frags up to the end of the
5205 loop as not transformable.
5206 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
5207 (get_subseg_info): New.
5208 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
5209 check for dest_seg.
5210 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
5211 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
5212 (xtensa_switch_to_non_abs_literal_fragment): New.
5213 (cache_literal_section): Add is_code parameter and pass it through to
5214 retrieve_literal_seg.
5215 (retrieve_literal_seg): Add is_code parameter and use it to set the
5216 flags on the literal section. Handle case where head parameter is 0.
5217 (get_frag_is_no_transform, set_frag_is_specific_opcode,
5218 set_frag_is_no_transform): New.
5219 (xtensa_create_property_segments): Add end_property_function parameter
5220 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
5221 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
5222 (xtensa_create_xproperty_segments, section_has_xproperty): New.
5223 (add_xt_block_frags): Add end_property_function parameter and call it
5224 if it is non-zero. Call xtensa_frag_flags_init.
5225 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
5226 get_frag_property_flags, frag_flags_to_number,
5227 xtensa_frag_flags_combinable, xt_block_aligned_size,
5228 xtensa_xt_block_combine, add_xt_prop_frags,
5229 init_op_placement_info_table, opcode_fits_format_slot,
5230 xg_get_single_size, xg_get_single_format): New.
5231 (istack_push): Inline call to tinsn_copy.
5232 (tinsn_copy): Delete.
5233 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
5234 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
5235 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
5236 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
5237 functions. Handle invisible operands.
5238 (tinsn_to_slotbuf): New.
5239 (tinsn_check_arguments): Use new xtensa-isa.h functions.
5240 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
5241 vinsn_from_chars, and xg_free_vinsn.
5242 (tinsn_from_insnbuf): New.
5243 (tinsn_immed_from_frag): Add slot parameter and handle multislot
5244 instructions. Handle symbol differences.
5245 (get_num_stack_text_bytes): Use xg_get_single_size.
5246 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
5247 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
5248 get_expr_register, set_expr_symbol_offset_diff): New.
5249 * config/tc-xtensa.h (MAX_SLOTS): Define.
5250 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
5251 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
5252 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
5253 RELAX_NONE types.
5254 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
5255 (xtensa_frag_type struct): Add is_assembly_state_set,
5256 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
5257 is_align, is_text_align, alignment, and is_first_loop_insn fields.
5258 Replace is_generics and is_relax fields by is_no_transform field.
5259 Delete is_text and is_longcalls fields. Change text_expansion and
5260 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
5261 per-slot information: literal_frags, slot_subtypes, slot_symbols,
5262 slot_sub_symbols, and slot_offsets. Add fr_prev field.
5263 (xtensa_fix_data struct): New.
5264 (xtensa_symfield_type struct): Delete plt field.
5265 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
5266 forward declaration here.
5267 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
5268 (XTENSA_SECTION_RENAME): Undefine.
5269 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
5270 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
5271 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
5272 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
5273 (unit_num_copies_func, opcode_num_units_func,
5274 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
5275 (resource_table struct): New.
5276 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
5277 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
5278 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
5279 (tinsn_copy): Delete prototype.
5280 (vliw_insn struct): New.
5281 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
5282 (widen_spec_list): Add option conditions for density and boolean
5283 instructions. Add expansions using CONST16 and conditions for using
5284 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
5285 predicted branches.
5286 (simplify_spec_list): Add option conditions for density instructions.
5287 Add entry for NOP instruction.
5288 (append_transition): Add cmp function pointer parameter and use it to
5289 insert the new entry in order.
5290 (operand_function_LOW16U, operand_function_HI16U): New.
5291 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
5292 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
5293 (enter_opname, split_string): Use xstrdup instead of strdup.
5294 (init_insn_pattern): Initialize new options field.
5295 (clear_req_or_option_list, clear_req_option_list,
5296 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
5297 New.
5298 (parse_insn_pattern): Parse option conditions.
5299 (transition_applies): New.
5300 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
5301 swapped last arguments in calls to append_constant_value_condition.
5302 Call clone_req_option_list. Add warning about invalid opcode.
5303 Handle LOW16U and HI16U function names.
5304 (build_transition_table): Add cmp parameter and use it in calls to
5305 append_transition. Use new xtensa-isa.h functions. Check
5306 transition_applies before adding entries.
5307 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
5308 pass it through to build_transition_table.
5309 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
5310 ReqOption, transition_cmp_fn): New types.
5311 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
5312 (transition_rule struct): Add options field.
5313 * doc/as.texinfo (Overview): Update Xtensa options.
5314 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
5315 --[no-]relax, and --[no-]generics options. Update descriptions of
5316 --text-section-literals and --[no-]longcalls. Add
5317 --[no-]absolute-literals and --[no-]transform.
5318 (Xtensa Syntax): Add description of syntax for FLIX instructions.
5319 Remove use of "generic" and "specific" terminology for opcodes.
5320 (Xtensa Registers): Generalize the syntax description to include
5321 user-defined register files.
5322 (Xtensa Automatic Alignment): Update.
5323 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
5324 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
5325 (Xtensa Directives): Remove confusing rules about precedence.
5326 (Density Directive, Relax Directive): Delete.
5327 (Schedule Directive): New.
5328 (Generics Directive): Rename to ...
5329 (Transform Directive): ... this node.
5330 (Literal Directive): Update for absolute literals. Missing
5331 literal_position directive is now an error.
5332 (Literal Position Directive): Update for absolute literals.
5333 (Freeregs Directive): Delete.
5334 (Absolute Literals Directive): New.
5335 (Frame Directive): Minor editing.
5336 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
5337 Update dependencies.
5338 * Makefile.in: Regenerate.
5339
5340 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
5341
5342 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
5343 to build the second and third fixups for a composite relocation.
5344 (macro_read_relocs): New function.
5345 (macro_build): Use it.
5346 (s_cpsetup): Pass all three composite relocation codes to macro_build.
5347 Simplify fragging code accordingly.
5348 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
5349 of the composite relocation. Set fx_tcbit in both fixups.
5350
5351 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
5352
5353 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
5354 (md_apply_fix3): Don't treat composite relocs as done.
5355
5356 2004-10-07 Jan Beulich <jbeulich@novell.com>
5357
5358 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
5359 prefix for symbol names generated from the LOCAL macro directive.
5360
5361 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
5362 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
5363
5364 2004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
5365
5366 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
5367 Special registers.
5368 (md_assemble): Add error checking for Co-Processor instructions.
5369 (get_cinv_parameters): Add 'b' option to invalidate the
5370 branch-target cache.
5371
5372 2004-10-05 Paul Brook <paul@codesourcery.com>
5373
5374 * config/tc-arm.c (unwind): New variable.
5375 (vfp_sp_encode_reg): New function.
5376 (vfp_sp_reg_required_here): Use it.
5377 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
5378 (vfp_parse_reg_list): New function.
5379 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
5380 s_arm_unwind_personality, s_arm_unwind_personalityindex,
5381 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
5382 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
5383 functions.
5384 (md_pseudo_table): Add them.
5385 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
5386 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
5387 (set_section, add_unwind_adjustsp, flush_pending_unwind,
5388 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
5389 require_hashconst, add_unwind_opcode): New functions.
5390 * doc/c-arm.texi: Document unwinding opcodes.
5391 * NEWS: Mention the new feature.
5392
5393 2004-10-04 Eric Christopher <echristo@redhat.com>
5394
5395 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
5396
5397 2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
5398
5399 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
5400 TLS relocations.
5401 * config/tc-s390.c (md_apply_fix3): Likewise.
5402 * config/tc-sparc.c (md_apply_fix3): Likewise.
5403
5404 2004-10-01 Paul Brook <paul@codesourcery.com>
5405
5406 * config/tc-arm.c (arm_elf_section_type): New function.
5407 (arm_elf_change_section): Set section link for exidx sections.
5408 * config/tc-arm.h (arm_elf_section_type): Add prototype.
5409 (md_elf_section_type): Define.
5410
5411 2004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
5412
5413 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
5414 instruction's offset.
5415
5416 2004-10-01 Adam Nemet <anemet@lnxw.com>
5417
5418 * (TARGET_FORMAT): Remove LynxOS COFF definition.
5419
5420 2004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
5421
5422 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
5423 asymbol *, instead use symbol_get_bfdsym.
5424
5425 2004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
5426
5427 * config/tc-m68k.c (select_control_regs): Add mcf5249.
5428
5429 2004-09-30 Paul Brook <paul@codesourcery.com>
5430
5431 * config/tc-arm.c (do_smi, do_nop): New functions.
5432 (insns): Add ARMv6ZK instructions.
5433 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
5434 (tc_gen_reloc): Ditto.
5435 (arm_cpus): Add mpcore and arm1176.
5436 (arm_archs): Add armv6{k,z,zk}.
5437 * doc/c-arm.texi: Document new cores and architectures.
5438
5439 2004-09-30 Nick Clifton <nickc@redhat.com>
5440
5441 * config/tc-arm.c: Use ISO C90 formatting.
5442
5443 2004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
5444
5445 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
5446 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
5447 REG_TYPE_MVDX is expected.
5448
5449 2004-09-29 Marc Bevand <m.bevand@gmail.com>
5450
5451 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
5452
5453 2004-09-21 James E Wilson <wilson@specifixinc.com>
5454
5455 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
5456 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
5457 output_spill_base, output_unat_psprel, output_lc_psprel,
5458 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
5459 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
5460 output_spill_psprel_p): Use it.
5461
5462 2004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
5463
5464 * config/tc-crx.c (handle_LoadStor): New function.
5465 Handle load/stor unique instructions before parsing.
5466
5467 2004-09-17 Paul Brook <paul@codesourcery.com>
5468
5469 * config/tc-arm.c (s_arm_rel31): New funciton.
5470 (md_pseudo_table): Add .rel31.
5471 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
5472 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
5473 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
5474 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
5475 (arm_parse_reloc): Add (target2).
5476
5477 2004-09-17 Alan Modra <amodra@bigpond.net.au>
5478
5479 * Makefile.am: Run "make dep-am".
5480 * Makefile.in: Regenerate.
5481 * aclocal.m4: Regenerate.
5482 * configure: Regenerate.
5483 * doc/Makefile.in: Regenerate.
5484 * po/POTFILES.in: Regenerate.
5485 * po/gas.pot: Regenerate.
5486
5487 2004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
5488
5489 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
5490 [!LLONG_MAX]: Ditto.
5491
5492 2004-09-13 Paul Brook <paul@codesourcery.com>
5493
5494 * config/tc-arm.c: Rename RELABS to TARGET1.
5495
5496 2004-09-13 Alan Modra <amodra@bigpond.net.au>
5497
5498 * messages.c (as_internal_value_out_of_range): Cast values passed
5499 to as_bad_where or as_warn_where to proper type.
5500
5501 2004-09-11 Theodore A. Roth <troth@openavr.org>
5502
5503 * config/tc-avr.c: Add support for
5504 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
5505
5506 2004-09-09 Alan Modra <amodra@bigpond.net.au>
5507
5508 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
5509 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
5510
5511 2004-09-08 Paul Brook <paul@codesourcery.com>
5512
5513 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
5514 fini_array and preinit_array section types.
5515 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
5516 and fini_array.
5517 * doc/as.texinfo: Document extra section types.
5518
5519 2004-09-02 Mark Mitchell <mark@codesourcery.com>
5520
5521 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
5522 * Makefile.in: Regenerated.
5523 * configure.in: Set em for arm*-*-symbianelf*.
5524 * configure: Regenerated.
5525 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
5526 vectors when appropriate.
5527 * config/te-symbian.h: New file.
5528
5529 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
5530
5531 * config/tc-crx.c (gettrap): Exception vector can be case
5532 insensitive.
5533 (process_label_constant): Fix a 32-bit displacement bug in branch
5534 instructions.
5535 (get_operandtype) : Bug fix, wrong operand was used.
5536 (process_label_constant): Initialize relocation type to
5537 BFD_RELOC_NONE
5538
5539 2004-09-01 Richard Earnshaw < reanrsha@arm.com>
5540
5541 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
5542 for synthesizable cores.
5543
5544 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
5545
5546 2004-08-25 Dmitry Diky <diwil@spec.ru>
5547
5548 * config/tc-msp430.c: Clean-up the code.
5549 (md_relax_table): New relax table.
5550 (mcu_types): Sort MCU types.
5551 (md_pseudo_table): Add .profiler pseudo handler.
5552 (pow2value): New function.
5553 (msp430_profiler): New function.
5554 (msp430_operands): Add new insns handlers.
5555 (msp430_srcoperand): Add register operand handler, allow complex
5556 expressions.
5557 (md_estimate_size_before_relax): Rewritten.
5558 (md_convert_frag): Rewritten.
5559 (msp430_relax_frag): New function.
5560 * config/tc-msp430.h (md_relax_frag): define macro
5561 * doc/c-msp430.texi: Update information.
5562
5563 2004-08-24 Nick Clifton <nickc@redhat.com>
5564
5565 * as.c (std_shortopts): Allow -g to take an optional argument.
5566 (parse_args): Pass any switch starting with -g on to the backend
5567 for parsing.
5568
5569 2004-08-18 Mark Mitchell <mark@codesourcery.com>
5570
5571 * configure.in (arm*-*-symbianelf*): New target.
5572 (arm*-*-eabi*): Likewise.
5573 * configure: Regenerated.
5574
5575 2004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5576 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
5577 correctly.
5578
5579 2004-08-18 Jakub Jelinek <jakub@redhat.com>
5580
5581 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
5582 argument, don't do anything if current section is not
5583 .gnu.linkonce.t.* and linkonce_empty is set.
5584 (generate_unwind_image, dot_endp): Adjust callers, call
5585 start_unwind_section (*, 1) if nothing will be put into the
5586 section.
5587
5588 2004-08-17 Nick Clifton <nickc@redhat.com>
5589
5590 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
5591 (show_usage): Add -g.
5592 (std_longopts): Add --gen-debug. Alpha sort the table.
5593 (parse_args): Print an error message if a switch is not handled.
5594 Handle the -g switch, calling md_debug_format_selector() if
5595 necessary.
5596 * NEWS: Mention new feature.
5597 * doc/as.texinfo: Document new switch.
5598 * doc/internals.texi: Document behaviour of md_parse_option.
5599
5600 * config/tc-arm.c (md_parse_option): Do not issue an error message
5601 if the switch is not recognised.
5602 * config/tc-m68k.c (md_parse_option): Likewise.
5603 * config/tc-pdp11.c (md_parse_option): Likewise.
5604 * config/tc-v850.c (md_parse_option): Likewise.
5605
5606 * as.h: Fix up formatting.
5607 * tc.h: Likewise.
5608
5609 2004-08-16 Nick Clifton <nickc@redhat.com>
5610
5611 * macro.c (macro_set_alternate): Use ISO C90 formatting.
5612
5613 * configure.in: Sort architecture based tables alphabetically.
5614 * configure: Regenerate.
5615
5616 2004-08-16 Alan Modra <amodra@bigpond.net.au>
5617
5618 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
5619 { "cc", 68 }, with { "cr", 70 }.
5620
5621 2004-08-13 Jan Beulich <jbeulich@novell.com>
5622 Nick Clifton <nickc@redhat.com>
5623
5624 * as.c: Add and handle new --alternate command line option.
5625 * macro.c (macro_set_alternate): New.
5626 * macro.h (macro_set_alternate): Declare.
5627 * read.c: Add and handle new .altmacro and .noaltmacro directives.
5628 * doc/as.texinfo: Document new command line option and pseudo-ops
5629 as well as insert documentation originating from gasp about
5630 alternate macro syntax.
5631 * NEWS: Mention new command line option and pseudo-ops.
5632
5633 2004-08-10 Mark Mitchell <mark@codesourcery.com>
5634
5635 * expr.c (operand): Handle the "~", "-", and "!" operators applied
5636 to bignums.
5637
5638 2004-08-06 Paul Brook <paul@codesourcery.com>
5639
5640 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
5641 Handle new relocations.
5642 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
5643
5644 2004-08-05 Bob Wilson <bob.wilson@acm.org>
5645
5646 * write.c (relax_segment): Use was_address instead of address when
5647 setting fr_fix field for align frag due to backwards .org.
5648
5649 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
5650
5651 Introduce SH2a support.
5652 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
5653 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
5654 arch_sh2a_nofpu_up.
5655 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
5656 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
5657 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
5658 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
5659 to end of conditional expression.
5660 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
5661 * config/tc-sh.c: Add sh2a-nofpu support.
5662 2003-12-29 DJ Delorie <dj@redhat.com>
5663 * tc-sh.c: Add sh2a support.
5664 (parse_reg): Add tbr.
5665 (parse_at): Support @@(disp,tbr).
5666 (get_specific): Support sh2a opcodes.
5667 (insert4): New, for 4 byte relocs.
5668 (build_Mytes): Support sh2a opcodes.
5669 (md_apply_fix3_Mytes): Support sh2a opcodes.
5670 2003-12-02 Michael Snyder <msnyder@redhat.com>
5671 * config/tc-sh.c (md_parse_option): Handle sh2a.
5672 (sh_elf_final_processing): Ditto.
5673
5674 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
5675
5676 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
5677 for TE_NetBSD.
5678
5679 2004-07-27 Alan Modra <amodra@bigpond.net.au>
5680
5681 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
5682 (ppc_arch): Expand comment.
5683
5684 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
5685
5686 * config/tc-crx.c: Support evaluating the difference between two
5687 symbols.
5688 * config/tc-crx.h: Likewise.
5689
5690 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
5691
5692 * config/tc-ia64.c (start_unwind_section): Set the linked-to
5693 section.
5694 (ia64_elf_section_change_hook): Set the linked-to section for
5695 SHT_IA_64_UNWIND.
5696
5697 2004-07-26 Dmitry Diky <diwil@spec.ru>
5698
5699 * config/tc-msp430.c: Add new subtargets: msp430x1610,
5700 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
5701 msp430xG438, msp430xG439.
5702
5703 2004-07-25 Daniel Jacobowitz <dan@debian.org>
5704
5705 * doc/as.texinfo (Section, PushSection): Correct documentation
5706 for ELF.
5707
5708 2004-07-21 Jan Beulich <jbeulich@novell.com>
5709
5710 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
5711 permissible for the selected instruction suffix.
5712 (match_template): Don't permit 64-bit general purpose operands in
5713 32-bit mode.
5714 (finalize_imm): Permit 64-bit immediates.
5715 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
5716 specially except for the width of the used base and/or index
5717 registers. For 32-bit displacements, use sign-extended
5718 relocations only when using 64-bit addressing.
5719 Force zero displacement on rip-relative addressing when there is
5720 no other displacement.
5721 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
5722 specially except for the width of the used base and/or index
5723 registers.
5724 (parse_register): Disallow Reg64 registers in 32-bit mode.
5725
5726 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
5727 suffix if the instruction doesn't support it.
5728
5729 2004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
5730
5731 * config/tc-mips.c (append_insn): Handle constant expressions with
5732 no associated relocation.
5733 (mips_ip): Cancel the expression after use for the Q format
5734 specifier.
5735 (parse_relocation): Return no relocation for unsupported
5736 operators.
5737 (my_getSmallExpression): Return no relocation if no relocation
5738 operators are used.
5739
5740 2004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5741
5742 * config/obj-som.c (adjust_stab_sections): Add prototype.
5743 (obj_som_compiler, obj_som_version, obj_som_copyright,
5744 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
5745 * config/tc-hppa.c (update_subspace): Likewise.
5746 (is_defined_subspace): Amplify comment.
5747 * config/obj-som.h (som_frob_file): Add prototype.
5748
5749 2004-07-19 Christopher Faylor <cgf@timesys.com>
5750 H.J. Lu <hongjiu.lu@intel.com>
5751
5752 * subsegs.c (section_symbol): Don't create a new segment when
5753 existing segment is undefined.
5754
5755 2004-07-16 Richard Earnshaw <rearnsha@arm.com>
5756
5757 * config/tc-arm.c: Include include/opcode/arm.h.
5758 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
5759 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
5760 (FPU_ARCH_*): Delete.
5761 * Makefile.am: Update dependencies.
5762 * Makefile.in: Regenerate.
5763
5764 2004-07-15 Nick Clifton <nickc@redhat.com>
5765
5766 * configure.in: Accept armbe as a big-endian arm configuration.
5767 * configure: Regenerate.
5768
5769 2004-07-13 Thomas Nystrom <thn@saeab.se>
5770
5771 * config/tc-i386.c (T_SHIFTOP): New constant.
5772 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
5773 (intel_el1): Handle '~'.
5774 (intel_get_token): Handle '<>', '&', '|' and '~'.
5775
5776 2004-07-13 Nick Clifton <nickc@redhat.com>
5777
5778 (md_assemble): Remove spurious newline from end of as_bad error
5779 message.
5780 (intel_e05_1): Likewise.
5781 (intel_e11): Likewise.
5782 (intel_match_token): Likewise.
5783
5784 2004-07-11 Andreas Schwab <schwab@suse.de>
5785
5786 * config/tc-m68k.c: Convert to C90. Remove redundant
5787 declarations. Indentation fixup.
5788 [M68KCOFF]: Include "obj-coff.h" instead of declaring
5789 obj_coff_section ourselves.
5790
5791 2004-07-09 James E Wilson <wilson@specifixinc.com>
5792
5793 * config/tc-ia64.c (default_big_endian): New.
5794 (dot_byteorder, md_begin): Use it.
5795 (md_parse_option): Set it.
5796
5797 2004-07-09 Nick Clifton <nickc@redhat.com>
5798
5799 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
5800 * configure: Regenerate.
5801 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
5802 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
5803 sh_find_elf_flags if necessary.
5804
5805 2004-07-08 Richard Sandiford <rsandifo@redhat.com>
5806
5807 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
5808 going to be split into more than one in-place addend, return 0
5809 for relocations against mergeable sections. Associate comments
5810 with code.
5811
5812 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
5813
5814 * Makefile.am (CPU_TYPES): Add crx.
5815 (TARGET_CPU_CFILES): Add config/tc-crx.c.
5816 (TARGET_CPU_HFILES): Add config/tc-crx.h.
5817 (DEPTC_crx_elf): New target.
5818 (DEPOBJ_crx_elf): Likewise.
5819 (DEP_crx_elf): Likewise.
5820 * Makefile.in: Regenerate.
5821 * configure.in: Add crx* target.
5822 * configure: Regenerate.
5823 * config/tc-crx.c: New file.
5824 * config/tc-crx.h: New file.
5825 * NEWS: Mention new target.
5826
5827 2004-07-06 Nick Clifton <nickc@redhat.com>
5828
5829 * config.in: Undefine TARGET_SYMBIAN by default.
5830 * configure.in:
5831 * configure: Regenerate. Add sh-symbian-elf target. If
5832 selected define TARGET_SYMBIAN.
5833 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
5834 format if TARGET_SYMBIAN has been defined.
5835
5836 * output-file.c (output_file_create): Report the target format
5837 chosen when bfd_openw reports that it is invalid.
5838
5839 * config/obj-coff.c (coff_pseudo_table): Only define the weak
5840 pseudo for BFD based assemblers.
5841
5842 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
5843
5844 gas:
5845 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
5846 (md_parse_option): Remove redundant -isa testing.
5847 Make bfd_arch variable const.
5848 (md_show_usage): Make bfd_arch variable const.
5849
5850 2004-07-03 James E Wilson <wilson@specifixinc.com>
5851
5852 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
5853 * config/tc-ia64.h (md_frag_check): Define.
5854
5855 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
5856
5857 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
5858 externals.
5859 * doc/as.texinfo (Weak): Document PE weak symbols.
5860
5861 2004-07-03 Richard Sandiford <rsandifo@redhat.com>
5862
5863 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
5864 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
5865 (mips_frob_file): Rework so that only a single pass through the
5866 relocs is needed. Allow %lo()s to have higher offsets than their
5867 corresponding %hi()s or %got()s.
5868
5869 2004-07-02 Nick Clifton <nickc@redhat.com>
5870
5871 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
5872 allow values which have come from undefined symbols.
5873 Always consider this fixup to have been processed as a reloc
5874 cannot be generated for it.
5875
5876 2004-07-02 Alan Modra <amodra@bigpond.net.au>
5877
5878 * frags.h (struct frag): Add has_code and insn_addr fields.
5879 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
5880 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
5881 * config/tc-ppc.h (md_frag_check): Define.
5882
5883 2004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
5884
5885 * doc/Makefile.am (info): Rename goal to...
5886 (info-local): ... this, to preserve implicit dependencies.
5887 * doc/Makefile.in: Regenerate with automake 1.8.5.
5888
5889 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5890
5891 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
5892 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
5893 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
5894 (tc_gen_reloc): Likewise.
5895 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
5896 (m32r_parse_name): Likewise.
5897 (m32r_cgen_parse_fix_exp): Likewise.
5898 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
5899 (O_PIC_reloc): Likewise.
5900 (TC_CGEN_PARSE_FIX_EXP): Likewise..
5901 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
5902 for @GOTOFF, @GOT, @PLT.
5903
5904 2004-06-21 Jan Beulich <jbeulich@novell.com>
5905
5906 * gas/symbols.c: While discarding ordinary local absolute symbols
5907 when --strip-local-absolute is in effect, retain file symbols.
5908
5909 2004-06-20 Andreas Schwab <schwab@suse.de>
5910
5911 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
5912 (md_parse_option): Likewise.
5913
5914 2004-06-17 Jan Beulich <jbeulich@novell.com>
5915
5916 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
5917 * config/te-netware.h: New file.
5918 * config/te-ppcnw.h: Delete: Obsolete.
5919 * configure.in: Eliminate ill NetWare targets. Make generic
5920 NetWare target use proper emulation.
5921 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
5922 reference to new te-netware.h.
5923 * configure: Regenerate.
5924 * Makefile.in: Regenerate.
5925
5926 2004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
5927
5928 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
5929 comparison in .insn pseudo operation.
5930
5931 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5932
5933 * config/obj-coff.c (coff_adjust_section_syms): Use
5934 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
5935 (coff_frob_section): Likewise.
5936 * config/tc-mips.c (md_apply_fix3): Likewise.
5937 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
5938 (elf_frob_file_after_relocs): Likewise.
5939
5940 2004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5941
5942 * config/tc-hppa.c (log2): Rename to exact_log2.
5943 (pa_next_subseg): Delete unused function.
5944 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
5945 (create_new_subspace): Likewise.
5946
5947 Bug gas/213
5948 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
5949 labels. Fix warning.
5950
5951 2004-05-28 DJ Delorie <dj@redhat.com>
5952
5953 * config/tc-mn10300.h (tc_fix_adjustable): Define.
5954 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
5955 or non-merged symbols.
5956
5957 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
5958
5959 * config/tc-ia64.c (remove_marked_resource): Save, clear and
5960 restore the old slot when inserting srlz.i/srlz.d.
5961
5962 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
5963
5964 * Makefile.am: Regenerate dependecies.
5965 * Makefile.in: Regenerate.
5966 * config/tc-sh.c (valid_arch): Make unsigned.
5967 (preset_target_arch): Likewise.
5968 (md_begin): Use new architecture flags system.
5969 (get_specific): Likewise.
5970 (assemble_ppi): Likewise.
5971 (md_assemble): Likewise. Also fix error check for bad opcodes.
5972 (md_parse_option): Likewise. Also generate -isa values according
5973 to the table in bfd/cpu-sh.c instead of just constants. Also
5974 allow <arch>-up ISA variants.
5975 (sh_elf_final_processing): Replace if-else chain with a call to
5976 sh_find_elf_flags().
5977
5978 2004-05-28 Peter Barada <peter@the-baradas.com>
5979
5980 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
5981 with zero offset into mode 2 addressing to save a word.
5982
5983 2004-05-27 H.J. Lu <hongjiu.lu@intel.com>
5984
5985 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
5986 (ar_is_only_in_integer_unit): New.
5987 (ar_is_only_in_memory_unit): New.
5988 (generate_unwind_image): Silence gcc on 32bit host.
5989 (md_assemble): Use ar_is_only_in_integer_unit instead of
5990 ar_is_in_integer_unit. Check AR access.
5991
5992 2004-05-27 Peter Barada <peter@the-baradas.com>
5993
5994 * config/tc-m68k.c (md_begin): Sort the opcode table into
5995 alphabetical order.
5996 (m68k_compare_opcode): New function to do the sorting.
5997
5998 2004-05-24 Peter Barada <peter@the-baradas.com>
5999
6000 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
6001 addressing on MIT style operands.
6002 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
6003 w/mask addressing.
6004 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
6005 operands.
6006
6007 2004-05-23 Alan Modra <amodra@bigpond.net.au>
6008
6009 * expr.c (operand, operator): Don't reject '++' and '--'.
6010
6011 2004-05-20 Richard Sandiford <rsandifo@redhat.com>
6012
6013 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
6014 dwarf tables.
6015
6016 2004-05-17 Adam Nemet <anemet@lnxw.com>
6017
6018 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
6019 * configure: Regenerate.
6020
6021 2004-05-13 Paul Brook <paul@codesourcery.com>
6022
6023 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
6024
6025 2004-05-13 Joel Sherrill <joel@oarcorp.com>
6026
6027 * configure.in (or32-*-rtems*): Switch to elf.
6028 * configure: Regenerate.
6029
6030 2004-05-13 Nick Clifton <nickc@redhat.com>
6031
6032 * po/fr.po: Updated French translation.
6033
6034 2004-05-11 Nick Clifton <nickc@redhat.com>
6035
6036 * doc/as.texinfo (Section): Document G and T flags to .section
6037 directive. Document the extra arguments that the G flag
6038 requires. Document the #tls flag.
6039
6040 2004-05-11 H.J. Lu <hongjiu.lu@intel.com>
6041
6042 * subsegs.c (section_symbol): Create a new section symbol if
6043 the existing one doesn't match.
6044 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
6045
6046 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6047
6048 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
6049 to cope with VR4181A errata MD(1) and MD(4).
6050
6051 2004-05-07 Brian Ford <ford@vss.fsi.com>
6052
6053 * NEWS: Mention .secrel32 for pe[i]-i386.
6054
6055 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
6056
6057 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
6058 (HANDLE_ALIGN): New.
6059
6060 2004-05-06 Daniel Jacobowitz <dan@debian.org>
6061
6062 * Makefile.am (DIST_SUBDIRS): Define.
6063 * aclocal.m4: Regenerate with automake 1.8.4.
6064 * Makefile.in: Likewise.
6065 * doc/Makefile.in: Likewise.
6066
6067 2004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
6068
6069 * config/tc-ia64.c (dot_serialize): Declare.
6070 (dot_serialize): New function.
6071 (md_pseudo_table): Add ".serialize.data" and
6072 ".serialize.instruction" directives.
6073
6074 2004-05-06 Nick Clifton <nickc@redhat.com>
6075
6076 * messages (as_internal_value_out_of_range): Print a message about
6077 a value being out of range. Be consistent about whether the
6078 values are printed in decimal or hexadecimal.
6079 (as_warn_value_out_of_range): Generate a warning message about an
6080 out of range value.
6081 (as_bad_value_out_of_range): Generate an error message about an
6082 out of range value.
6083 * as.h: Prototype the new functions.
6084 * config/tc-alpha.c (insert_operand): Use new function.
6085 * config/tc-arc.c (arc_insert_operand): Likewise.
6086 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
6087 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
6088 * config/tc-ppc.c (ppc_insert_operand): Likewise.
6089 * config/tc-s390.c (s390_insert_operand): Likewise.
6090 * config/tc-v850.c (v850_insert_operand): Likewise.
6091
6092 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
6093
6094 * configure.in: Set em=linux for frv-*-*linux*.
6095 * configure: Rebuilt.
6096 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
6097 (frv_md_fdpic_enabled): New.
6098 * config/tc-frv.c (frv_md_fdpic_enabled): New.
6099 (DEFAULT_FDPIC): New.
6100 (frv_flags): Use DEFAULT_FDPIC.
6101 (frv_pic_flag): Likewise.
6102 (OPTION_NOPIC): New.
6103 (md_longopts): Add -mnopic.
6104 (md_parse_option): Handle it.
6105 (md_show_usage): Add -mfdpic and -mnopic.
6106
6107 2004-05-05 Peter Barada <peter@the-baradas.com>
6108
6109 * config/tc-m68k.c: Add find_cf_chip to print list of valid
6110 chips for invalid coldfire instructions, rename selectors
6111 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
6112 add current_chip to track which chip is referred to(including save/restore),
6113 use current_chip to select control registers, not current_arch.
6114 (md_show_usage): Add new chips.
6115 * doc/c-m68k.texi: Document new command line switches.
6116
6117 2004-05-05 Jakub Jelinek <jakub@redhat.com>
6118
6119 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
6120 (NOP_OPCODE): Define.
6121 (s390_align_code): Remove prototype.
6122 * tc-s390.c (s390_align_code): Remove.
6123
6124 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
6125
6126 * config/tc-ia64.c (make_unw_section_name): Removed.
6127 (start_unwind_section): New function.
6128 (generate_unwind_image): Take const segT instead of const
6129 char *.
6130 (dot_handlerdata): Adjusted.
6131 (dot_endp): Likewise.
6132
6133 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
6134
6135 * config/obj-elf.c (obj_elf_change_section): Allow the
6136 ".note.GNU-stack" section has SHF_EXECINSTR.
6137
6138 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
6139
6140 * config/obj-elf.c (get_section): Return bfd_boolean.
6141 (obj_elf_change_section): Call bfd_get_section_by_name_if
6142 instead of bfd_map_over_sections.
6143
6144 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
6145
6146 * config/obj-elf.c (get_section): New function.
6147 (obj_elf_change_section): Support multiple sections with same
6148 name.
6149
6150 2004-04-30 Nick Clifton <nickc@redhat.com>
6151
6152 * config/tc-arm.c (create_register_alias): Fix typo checking for
6153 case sensitive register aliases.
6154 (co_proc_number): Use error message string in all_reg_maps[]
6155 array.
6156 (cp_reg_required_here): Likewise.
6157 (fp_reg_required_here): Likewise.
6158
6159 2004-04-29 Brian Ford <ford@vss.fsi.com>
6160
6161 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
6162
6163 2004-04-28 Chris Demetriou <cgd@broadcom.com>
6164
6165 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
6166 (load_address, macro, mips_ip, md_parse_option)
6167 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
6168 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
6169 embedded-PIC handling, and update comments.
6170 (SWITCH_TABLE): Remove.
6171 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
6172 (enum mips_pic_level): Remove EMBEDDED_PIC.
6173 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
6174 (TC_FORCE_RELOCATION): Update comment.
6175 * ecoff.c (ecoff_build_lineno): Add comment about some code that
6176 might be safe to remove now that MIPS embedded-PIC is gone.
6177
6178 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6179
6180 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
6181 call to obj_set_subsection_attributes.
6182 (obj_som_init_stab_section): Likewise.
6183 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
6184 (pa_def_subspaces): Provide comdat default.
6185 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
6186 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
6187 calls to create_new_subspace and update_subspace to pass comdat flag.
6188 (create_new_subspace, update_subspace): Add new comdat argument. Use
6189 it in calls to obj_set_subsection_attributes.
6190 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
6191 and use of comdat, common and dup_comm parameters.
6192
6193 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
6194
6195 * config/obj-elf.c (obj_elf_change_section): Check if the old
6196 group name is NULL before comparison.
6197
6198 2004-04-23 Chris Demetriou <cgd@broadcom.com>
6199
6200 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
6201
6202 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6203
6204 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
6205
6206 2004-04-23 Chris Demetriou <cgd@broadcom.com>
6207
6208 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
6209 (OPTION_MEMBEDDED_PIC): Remove.
6210 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
6211 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
6212 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
6213 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
6214 (OPTION_ELF_BASE): Renumber.
6215 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
6216 (md_show_usage): Remove mention of -membedded-pic.
6217 * doc/as.texinfo: Remove mention of -membedded-pic.
6218
6219 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6220
6221 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
6222 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
6223 a.out support.
6224 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
6225 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
6226 USE_GLOBAL_POINTER_OPT.
6227
6228 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6229
6230 * config/tc-mips.c (macro): One more use of load_delay_nop.
6231
6232 2004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
6233
6234 * config/tc-mips.c (load_delay_nop): New function.
6235 (load_address, macro): Use load_delay_nop() to build a nop
6236 which can be omitted with gpr_interlocks.
6237
6238 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6239
6240 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
6241 cop_interlocks): Remove superfluous CPU entries.
6242
6243 2004-04-22 Paul Brook <paul@codesourcery.com>
6244
6245 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
6246
6247 2004-04-22 Peter Barada <peter@the-baradas.com>
6248
6249 * NEWS: Added support for EMAC instructions and MAC/EMAC
6250 Motorola syntax.
6251 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
6252 scale factor tokens, trailing_ampersand to mark mask addressing
6253 for MAC/EMAC instructions.
6254 * config/m68k-parse.y: Add options_ampersand clause, '<<',
6255 '>>'.
6256 (yylex): Handle '>', '<', and '&' following '+'.
6257 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
6258 architectures in archs[].
6259 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
6260 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
6261 respectively.
6262 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
6263 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
6264 cases.
6265 Add EMAC operands to init_table[].
6266
6267 2004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
6268
6269 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
6270 state.
6271 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
6272 * config/tc-arm.c (enum mstate): Delete from here.
6273 (mapping_state): Remove the static mapstate variable and instead
6274 store the state in the segment. This allows a per-section mapping
6275 state. Handle and ignore MAP_UNDEFINED states.
6276 (arm_elf_change_section): Get the current mapping state from the
6277 new section.
6278 (s_ltorg): Set the mapping state to MAP_DATA.
6279 (arm_cleanup): Use arm_elf_change_section to get the mapping state
6280 for each pool as it is emitted.
6281
6282 2004-04-22 Nick Clifton <nickc@redhat.com>
6283
6284 * config/tc-arm.h: Formatting tidy ups.
6285
6286 2004-04-20 Chris Demetriou <cgd@broadcom.com>
6287
6288 * NEWS: Note that MIPS -membedded-pic option is deprecated.
6289
6290 2004-04-20 DJ Delorie <dj@redhat.com>
6291
6292 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
6293 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
6294 [TE_PE] (O_secrel): Define.
6295 [TE_PE] (x86_pe_cons_fix_new): New.
6296 [TE_PE] (pe_directive_secrel): Likewise.
6297 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
6298
6299 2004-04-19 Eric Christopher <echristo@redhat.com>
6300
6301 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
6302 of previous patch for fix in gcc.
6303
6304 2004-04-19 Jakub Jelinek <jakub@redhat.com>
6305
6306 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
6307
6308 2004-04-19 Nathan Sidwell <nathan@codesourcery.com>
6309
6310 * read.c (do_align): Call md_flush_pending_output, if defined.
6311
6312 2004-04-16 Alan Modra <amodra@bigpond.net.au>
6313
6314 * expr.c (operand): Correct checks for ++ and --.
6315
6316 2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
6317
6318 * config/tc-generic.c: Add some comments.
6319
6320 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
6321
6322 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
6323 -{no-}mfix-vr4122-bugs.
6324 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
6325 (append_insn, mips_emit_delays): Update accordingly.
6326 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
6327 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
6328 (md_parse_option): Update after above changes.
6329 (md_show_usage): Add -mfix-vr4120.
6330
6331 2004-04-13 Bob Wilson <bob.wilson@acm.org>
6332
6333 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
6334 of .section directive; add a reference to the ELF .subsection
6335 directive.
6336
6337 2004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6338
6339 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
6340 in parallel.
6341
6342 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6343
6344 * Makefile.am: Remove mips from aout targets.
6345 * Makefile.in: Regenerate.
6346 * configure.in: Remove mips-dec-bsd* target.
6347 * configure: Regenerate.
6348
6349 2004-04-07 Alan Modra <amodra@bigpond.net.au>
6350
6351 PR 96
6352 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
6353 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
6354 Update "mapping". Restrict some @ modifiers to 32 bit.
6355
6356 2004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
6357 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6358
6359 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
6360 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
6361 dont_adjust_reloc_32 is set.
6362 (md_longopts): Add option -renesas.
6363 (md_parse_option, md_show_usage): Likewise.
6364 * doc/c-sh.texi: Likewise.
6365
6366 2004-04-01 Dave Korn <dk@artimi.com>
6367
6368 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
6369 hi16 and lo16 fixS structs.
6370 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
6371 exactly the same way as for RELOC_DLX_REL16.
6372 (machine_ip): properly respect LO flag in the_insn and
6373 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
6374 (md_apply_fix3): apply RELOC_DLX_LO16.
6375
6376 2004-03-30 Stan Shebs <shebs@apple.com>
6377
6378 Remove long-obsolete MPW support.
6379 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
6380 * configure.in: Remove mention of ppc-*-mpw* config.
6381 * configure.in: Likewise.
6382
6383 2004-03-30 Nick Clifton <nickc@redhat.com>
6384
6385 * config/tc-arm.c (meabi_flags): Make its use conditional upon
6386 OBJ_ELF being defined.
6387
6388 2004-03-27 Alan Modra <amodra@bigpond.net.au>
6389
6390 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
6391
6392 2004-03-23 Paul Brook <paul@codesourcery.com>
6393
6394 * config/tc-arm.c (meabi_flags): New variable.
6395 (arm_parse_eabi): New function.
6396 (md_begin): Set flags for EABI v3.
6397 (arm_eabis): Add.
6398 (arm_long_opts): Add meabi.
6399 * doc/as.texinfo <ARM>: Document -meabi.
6400 * doc/c-arm.texi: Ditto.
6401
6402 2004-03-22 Bob Wilson <bob.wilson@acm.org>
6403
6404 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
6405 tables even when use_literal_section flag is not set.
6406
6407 2004-03-22 Alan Modra <amodra@bigpond.net.au>
6408
6409 * config/tc-sh.c: Remove trailing whitespace.
6410
6411 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
6412
6413 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
6414 --mul-bug-abort and the default behavior.
6415 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
6416 (err_for_dangerous_mul_placement): New variable.
6417 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
6418 macros.
6419 (md_cris_relax_table): Have placeholder for STATE_MUL.
6420 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
6421 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
6422 case doing nothing.
6423 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
6424 STATE_BYTE)>: Ditto.
6425 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
6426 alignment and position of this frag, emit error message if
6427 suspicious.
6428 (md_assemble): For a multiply insn and when checking it,
6429 transform the current frag into a special frag for that purpose.
6430 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
6431 OPTION_MULBUG_ABORT_ON>: Handle new options.
6432
6433 2004-03-19 Bob Wilson <bob.wilson@acm.org>
6434
6435 * config/tc-xtensa.c (mark_literal_frags): New function.
6436 (xtensa_move_literals): Call mark_literal_frags for all literal
6437 segments, including init and fini literal segments.
6438 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
6439
6440 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6441
6442 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
6443 (pa_comm): Set BSF_OBJECT in symbol flags.
6444
6445 2004-03-19 Alan Modra <amodra@bigpond.net.au>
6446
6447 * Makefile.am: Run "make dep-am".
6448 * Makefile.in: Regenerate.
6449 * doc/Makefile.in: Regenerate.
6450 * config.in: Regenerate.
6451 * po/gas.pot: Regenerate.
6452
6453 2004-03-18 Nathan Sidwell <nathan@codesourcery.com>
6454
6455 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
6456 (demand_empty_rest_of_line): Issue an error here.
6457 (ignore_rest_of_line): Silently skip to end.
6458 (demand_copy_string): Issue an error, not warning.
6459 (equals): Likewise.
6460 * config/obj-elf.c (obj_elf_section_name): Likewise.
6461 (obj_elf_section): Likewise.
6462 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
6463 (arc_extinst): Likewise.
6464 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
6465 (dot_spill): Likewise.
6466 (dot_unwabi): Likewise.
6467 (dot_prologue): Likewise.
6468
6469 * expr.c (operand): Reject ++ and --.
6470 (operator): Likewise.
6471
6472 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6473
6474 * config/tc-sh.c: Include dw2gencfi.h.
6475 (sh_cfi_frame_initial_instructions): New function.
6476 (sh_regname_to_dw2regnum): Likewise.
6477 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
6478 file.
6479 (TARGET_USE_CFIPOP): Define.
6480 (tc_cfi_frame_initial_instructions): Likewise.
6481 (tc_regname_to_dw2regnum): Likewise.
6482 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
6483 * Makefile.am: Update dependencies.
6484 * Makefile.in: Regenerate.
6485
6486 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6487
6488 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
6489 * configure: Regenerate.
6490
6491 2004-03-12 Bob Wilson <bob.wilson@acm.org>
6492
6493 * read.c (s_leb128): Call md_flush_pending_output.
6494
6495 2004-03-12 Michal Ludvig <mludvig@suse.cz>
6496
6497 * config/tc-i386.c (output_insn): Handle PadLock instructions.
6498 * config/tc-i386.h (CpuPadLock): New define.
6499 (CpuUnknownFlags): Added CpuPadLock.
6500
6501 2004-03-07 Andreas Schwab <schwab@suse.de>
6502
6503 * doc/c-hppa.texi (HPPA Directives): Fix typo.
6504
6505 2004-03-07 Richard Henderson <rth@redhat.com>
6506
6507 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
6508 (cfi_finish): Likewise for fde.
6509
6510 2004-03-05 H.J. Lu <hongjiu.lu@intel.com>
6511
6512 * config/tc-ia64.c (md_assemble): Properly handle NULL
6513 align_frag.
6514 (ia64_handle_align): Don't abort if failed to add a stop bit.
6515
6516 2004-03-04 H.J. Lu <hongjiu.lu@intel.com>
6517
6518 * Makefile.in: Regenerated.
6519 * aclocal.m4: Likewise.
6520 * configure: Likewise.
6521 * doc/Makefile.in: Likewise.
6522
6523 2004-03-03 H.J. Lu <hongjiu.lu@intel.com>
6524
6525 * config/tc-ia64.c (dot_align): New.
6526 (ia64_do_align): Make it static.
6527 (md_pseudo_table): Use "dot_align" for "align".
6528 (ia64_md_do_align): Don't set align_frag here.
6529 (ia64_handle_align): Add a stop bit to the previous bundle if
6530 needed.
6531
6532 * config/tc-ia64.h (ia64_do_align): Removed.
6533
6534 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
6535
6536 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
6537 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
6538 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
6539 the most general type or the user specifically requested it.
6540 (md_assemble): Add a new error message for when an instruction
6541 is understood, but is not allowed due to an -isa option.
6542
6543 2004-03-02 H.J. Lu <hongjiu.lu@intel.com>
6544
6545 * config/tc-ia64.c (align_frag): New.
6546 (md_assemble): Set the tc_frag_data field in align_frag for
6547 IA64_OPCODE_FIRST instructions.
6548 (ia64_md_do_align): Set align_frag.
6549 (ia64_handle_align): Add a stop bit if needed.
6550
6551 * config/tc-ia64.h (TC_FRAG_TYPE): New.
6552 (TC_FRAG_INIT): New.
6553
6554 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
6555
6556 * config/tc-frv.c (fr400_audio): New variable.
6557 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
6558 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
6559 (target_implements_insn_p): New function.
6560 (md_assemble): Report an error if the processor doesn't implement
6561 the instruction.
6562
6563 2004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6564
6565 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
6566 (md_parse_option): Ditto.
6567 (OPTION_NO_SPECIAL_M32R): Added.
6568 (md_show_usage): Document it.
6569 (enable_speial_m32r): Changed a default value from 0 to 1.
6570 * doc/c-m32r.texi: Document the -no-bitinst option.
6571
6572 2004-02-27 Nick Clifton <nickc@redhat.com>
6573
6574 * config/tc-sh.c (get_operand): Revert previous delta.
6575 (tc_gen_reloc): Check for an unknown reloc type before processing
6576 the addend.
6577
6578 2004-02-27 Hannes Reinecke <hare@suse.de>
6579
6580 * config/tc-s390.c (s390_insn): Correct range check for opcode in
6581 .insn pseudo operation.
6582
6583 2004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
6584
6585 * config/tc-sh.c (get_operand): In case of #Imm, check has been
6586 added for wrong syntax.
6587
6588 2004-02-26 Eric Christopher <echristo@redhat.com>
6589
6590 * config/tc-mips.c (mips_dwarf2_addr_size): New.
6591 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
6592
6593 2004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
6594
6595 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
6596 nibble types to assembler.
6597
6598 2004-02-25 Fred Fish <fnf@redhat.com>
6599
6600 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
6601
6602 2004-02-20 James E Wilson <wilson@specifixinc.com>
6603
6604 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
6605 finalize_syms.
6606 (fixup_unw_records): New arg before_relax. Pass to slot_index.
6607 (ia64_estimate_size_before_relax): New.
6608 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
6609 (generate_unwind_image): Pass 1 to fixup_unw_records.
6610 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
6611 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
6612
6613 2004-02-19 Jakub Jelinek <jakub@redhat.com>
6614
6615 * stabs.c (generate_asm_file): Avoid warning about use of
6616 uninitialized variable.
6617
6618 2004-02-18 David Mosberger <davidm@hpl.hp.com>
6619
6620 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
6621 body, and endp, allow unwind records which do not have a "t"
6622 (time/instruction) field.
6623
6624 2004-02-17 Petko Manolov <petkan@nucleusys.com>
6625
6626 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
6627 (do_mav_dspsc_2): Likewise.
6628 Fix accumulator registers move opcodes.
6629
6630 2004-02-13 Hannes Reinecke <hare@suse.de>
6631 Jakub Jelinek <jakub@redhat.com>
6632
6633 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
6634
6635 2004-02-10 Steve Ellcey <sje@cup.hp.com>
6636
6637 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
6638 (tc_frob_symbol): New macro definition.
6639 * config/tc-ia64.c (ia64_frob_symbol): New routine.
6640
6641 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
6642
6643 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
6644 read-only.
6645
6646 2004-02-09 Nathan Sidwell <nathan@codesourcery.com>
6647
6648 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
6649 (TC_CASE_SENSITIVE): ... this.
6650 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
6651 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
6652
6653 2004-02-06 James E Wilson <wilson@specifixinc.com>
6654
6655 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
6656 (generate_unwind_image): Re-add it here.
6657
6658 2004-02-06 Nathan Sidwell <nathan@codesourcery.com>
6659
6660 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
6661 * read.h (SKIP_WHITESPACE): Turn into an expression.
6662 * read.c (read_a_source_file): A pseudo is removed by having a
6663 NULL handler.
6664
6665 2004-02-05 James E Wilson <wilson@specifixinc.com>
6666
6667 * config/tc-ia64.c (output_endp): New.
6668 (count_bits): Delete.
6669 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
6670 endp unwind records.
6671 (fixup_unw_records): Handle endp unwind records. Delete code for
6672 shortening prologue regions not followed by a body record.
6673 (dot_endp): Call add_unwind_entry to emit endp unwind record.
6674 * config/tc-ia64.h (unw_record_type): Add endp.
6675
6676 2004-02-03 James E Wilson <wilson@specifixinc.com>
6677
6678 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
6679 fill padding bytes with zeroes.
6680 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
6681 sets unwind_record slot_number and slot_frag fields.
6682
6683 2004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6684
6685 * config/tc-mips.c (add_got_offset_hilo): New function.
6686 (macro): Use load_register() and add_got_offset_hilo() to load
6687 constants instead of hardcoding code sequences throughout.
6688
6689 2004-01-28 H.J. Lu <hongjiu.lu@intel.com>
6690
6691 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
6692
6693 2004-01-26 Bernardo Innocenti <bernie@develer.com>
6694
6695 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
6696 like m68k-elf.
6697 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
6698 of hard-coded test for TARGET_OS=elf.
6699
6700 2004-01-24 Chris Demetriou <cgd@broadcom.com>
6701
6702 * config/tc-mips.c (hilo_interlocks): Change definition
6703 so that MIPS32, MIPS64 and later ISAs are included, along with
6704 the already-included machines. Update comments.
6705
6706 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
6707
6708 * config/tc-arm.c (tc_gen_reloc): Improve error message for
6709 undefined local labels.
6710
6711 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
6712
6713 * config/tc-mips.c (load_address, macro): Update comments about
6714 NewABI GP relaxation.
6715
6716 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
6717
6718 * config/tc-mips.c (macro_build): Remove place and counter arguments.
6719 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
6720 (mips16_macro_build, macro_build_jalr): Remove counter argument.
6721 (set_at, load_register, load_address, move_register): Likewise.
6722 (load_got_offset, add_got_offset): Likewise.
6723 Update all calls and tidy accordingly.
6724
6725 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
6726
6727 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
6728 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
6729 (RELAX_USE_SECOND): Bump to 0x10000.
6730 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
6731 (mips_macro_warning): New variable.
6732 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
6733 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
6734 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
6735 of RELAX_ENCODE.
6736 (append_insn): Update mips_macro_warning.sizes.
6737 (macro_start, macro_warning, macro_end): New functions.
6738 (macro_build): Don't emit warnings here.
6739 (macro_build_lui, md_estimate_size_before_relax): ...or here.
6740 (md_convert_frag): Check for cases where one macro alternative
6741 needs a warning and the other doesn't. Emit a warning if the
6742 longer sequence was chosen.
6743
6744 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
6745
6746 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
6747 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
6748 the first sequence, the size of the second sequence, and a flag
6749 that says whether we should warn.
6750 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
6751 (RELAX_FIRST, RELAX_SECOND): New.
6752 (mips_relax): New variable.
6753 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
6754 (append_insn): Remove "place" argument. Use mips_relax.sequence
6755 rather than "place" to check whether we're expanding the second
6756 alternative of a relaxable macro. Remove redundant check for
6757 branch relaxation. If generating a normal insn, and there
6758 is not enough room in the current frag, call relax_close_frag()
6759 to close it. Update mips_relax.sizes[]. Emit fixups for the
6760 second version of a relaxable macro. Record the first relaxable
6761 fixup in mips_relax. Remove tc_gen_reloc workaround.
6762 (macro_build): Remove all uses of "place". Use mips_relax.sequence
6763 in the same way as in append_insn.
6764 (mips16_macro_build): Remove "place" argument.
6765 (macro_build_lui): As for macro_build. Don't drop the add_symbol
6766 when generating the second version of a relaxable macro.
6767 (load_got_offset, add_got_offset): New functions.
6768 (load_address, macro): Use new relaxation machinery. Remove
6769 tc_gen_reloc workarounds.
6770 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
6771 version of a relaxable macro is needed. Return -RELAX_SECOND if the
6772 first version is needed.
6773 (tc_gen_reloc): Remove relaxation handling.
6774 (md_convert_frag): Go through the fixups for a relaxable macro and
6775 mark those that belong to the unneeded alternative as done. If the
6776 second alternative is needed, adjust the fixup addresses to account
6777 for the deleted first alternative.
6778
6779 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
6780
6781 * frags.h (frag_room): Declare.
6782 * frags.c (frag_room): New function.
6783 * doc/internals.texi: Document it.
6784
6785 2004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6786
6787 * config/tc-mips.c (append_insn): Don't do r3900 interlock
6788 optimization for -mtune=r3900, as this will break on other CPUs.
6789
6790 2004-01-11 Tom Rix <tcrix@worldnet.att.net>
6791
6792 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
6793 be relaxed, use fixup.
6794 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
6795
6796 2004-01-19 Jakub Jelinek <jakub@redhat.com>
6797
6798 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
6799 precision operands.
6800
6801 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6802
6803 * config/tc-mips.c (append_insn): Properly detect variant frags
6804 that preclude swapping of relaxed branches. Correctly swap
6805 instructions between frags when dealing with relaxed branches.
6806
6807 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6808
6809 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
6810 throughout.
6811 * aclocal.m4: Regenerate.
6812 * configure: Regenerate.
6813
6814 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
6815
6816 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
6817 manipulation insns.
6818
6819 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
6820
6821 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
6822 reloc, reserve space for the delay slot as well as the jalr itself.
6823
6824 2004-01-09 Paul Brook <paul@codesourcery.com>
6825
6826 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
6827 (do_vfp_sp2_from_reg2): New function.
6828 (insns): Use them.
6829 (do_vfp_dp_from_reg2): Check return values properly.
6830
6831 2004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
6832
6833 * config/tc-mips.c (warn_nops): Remove static variable.
6834 (macro): Remove test of warn_nops.
6835 (md_shortops): Remove 'n'.
6836 (md_parse_option): Remove 'n' case.
6837 (md_show_usage): Remove -n.
6838 * doc/as.texinfo (Overview): Remove MIPS -n option.
6839 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
6840 * NEWS: Mention removal of MIPS -n option.
6841
6842 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
6843 (cop_interlocks): Check ISA level.
6844 (cop_mem_interlocks): Define.
6845 (reg_needs_delay): Check cop_interlocks rather than
6846 ISA_HAS_COPROC_DELAYS.
6847 (append_insn): Likewise. Use cop_mem_interlocks rather than
6848 directly checking mips_opts.isa.
6849 (mips_emit_delays): Likewise.
6850
6851 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
6852
6853 * config/tc-ia64.c (unwind): Move next_slot_number and
6854 next_slot_frag to ...
6855 (unw_rec_list): Here.
6856 (free_list_records): Removed.
6857 (output_unw_records): Likewise.
6858 (generate_unwind_image): Make it void.
6859 (alloc_record): Initialize next_slot_number and next_slot_frag.
6860 (slot_index): Take .org, .space and .align into account.
6861 (fixup_unw_records): Don't set slot_number to 0. Use
6862 list->next_slot_number and list->next_slot_frag instead of
6863 unwind.next_slot_number and unwind.next_slot_frag.
6864 (ia64_convert_frag): New.
6865 (generate_unwind_image): Generate a rs_machine_dependent frag
6866 for unwind record.
6867 (emit_one_bundle): Use list->next_slot_number and
6868 list->next_slot_frag instead of unwind.next_slot_number and
6869 unwind.next_slot_frag.
6870
6871 * config/tc-ia64.h (md_convert_frag): Defined as
6872 ia64_convert_frag.
6873 (md_estimate_size_before_relax): Defined as (f)->fr_var.
6874
6875 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
6876
6877 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
6878 * config/tc-frv.h (md_apply_fix3): Don't define.
6879 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
6880 operands.
6881 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
6882 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
6883 * config/tc-frv.c (line_separator_chars): Add `!'.
6884 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
6885 * config/tc-frv.c (md_assemble): Clear insn upfront.
6886 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
6887 * config/tc-frv.c (OPTION_FDPIC): New macro.
6888 (md_longopts): Add mfdpic.
6889 (md_parse_option): Handle it.
6890 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
6891 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
6892 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
6893 (frv_pic_ptr): Parse funcdesc.
6894
6895 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6896
6897 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
6898 gasver.texi. Remove duplicate symbol definitions for texi2pod.
6899
6900 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6901
6902 * Makefile.am (Makefile): Move the dependency on
6903 $(BFDDIR)/configure.in to...
6904 (CONFIG_STATUS_DEPENDENCIES): ... here.
6905 (AUTOMAKE_OPTIONS): Require automake 1.8.
6906 * Makefile.in: Regenerate.
6907 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
6908 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
6909 $(BFDDIR)/configure.in here as well.
6910 * doc/Makefile.in: Regenerate.
6911
6912 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6913
6914 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
6915 * Makefile.in: Regenerate.
6916 * aclocal.m4: Regenerate.
6917 * doc/Makefile.am (install, install-info): Remove.
6918 (install-data-local): A new hook for install-info.
6919 (AUTOMAKE_OPTIONS): Require automake 1.8.
6920 * doc/Makefile.in: Regenerate.
6921
6922 2004-01-02 Nutan Singh <nutan@kpitcummins.com>
6923
6924 * doc/c-sh.texi: Update description about floating point behavior
6925 of SH family.
6926
6927 2004-01-02 Bernardo Innocenti <bernie@develer.com>
6928
6929 * configure.in: Add m68k-uClinux target.
6930 * configure: Regenerate.
6931
6932 For older changes see ChangeLog-0203
6933 \f
6934 Local Variables:
6935 mode: change-log
6936 left-margin: 8
6937 fill-column: 74
6938 version-control: never
6939 End:
This page took 0.307825 seconds and 4 git commands to generate.