*** empty log message ***
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
0f82ff91
AM
12005-07-16 Alan Modra <amodra@bigpond.net.au>
2
3 * Makefile.am: Run "make dep-am".
4 * Makefile.in: Regenerate.
5
90700ea2
L
62007-07-15 H.J. Lu <hongjiu.lu@intel.com>
7
8 * gas/config/tc-i386.h (CpuVMX): New.
9 (CpuUnknownFlags): Add CpuVMX.
10
49f58d10
JB
112005-07-14 Jim Blandy <jimb@redhat.com>
12
13 Add support for the Renesas M32C.
14 * Makefile.am (CPU_TYPES): List m32c.
15 (TARGET_CPU_CFILES): List config/tc-m32c.c.
16 (TARGET_CPU_HFILES): List config/tc-m32c.h.
17 * configure.in: Add case for m32c.
18 * configure.tgt: Add cases for m32c and m32c-*-elf.
19 * configure: Regenerated.
20 * config/tc-m32c.c, config/tc-m32c.h: New files.
21 * doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
22 * doc/Makefile.in: Regenerated.
23 * doc/all.texi: Set M32C.
24 * doc/as.texinfo: Add text for the M32C-specific options and line
25 comment characters, and refer to c-m32c.texi.
26 * doc/c-m32c.texi: New file.
27
6c5cf62c
NC
282005-07-14 Nick Clifton <nickc@redhat.com>
29
30 PR 1069
31 * config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing
32 the ins_parse buffer.
33
14c194bb
NC
342005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
35
36 * configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
37 i386-*-rtemscoff*, sparc-*-rtemsaout*.
38
28a9d8f5
L
392005-07-10 H.J. Lu <hongjiu.lu@intel.com>
40
41 * config/tc-i386.c (optimize_disp): Optimize signed 32bit
42 displacements.
43
b4f261e0
BE
442005-07-08 Ben Elliston <bje@au.ibm.com>
45
46 * frags.h: Remove ANSI_PROTOTYPES conditional code.
47 * config/obj-elf.h: Likewise.
48 * config/tc-h8300.h: Likewise.
49 * config/tc-h8500.h: Likewise.
50 * config/tc-i370.h: Likewise.
51 * config/tc-i386.h: Likewise.
52 * config/tc-m68hc11.h: Likewise.
53 * config/tc-m68k.h: Likewise.
54 * config/tc-ppc.h: Likewise.
55 * config/tc-s390.h: Likewise.
56 * config/tc-sh.h: Likewise.
57 * config/tc-sparc.h: Likewise.
58 * config/tc-tic30.c: Likewise.
59 * config/tc-w65.h: Likewise.
60 * config/tc-xtensa.h: Likewise.
61
d8b19f1a
HPN
622005-07-08 Hans-Peter Nilsson <hp@axis.com>
63
64 PR gas/1049
65 * config/tc-cris.h (MD_APPLY_SYM_VALUE): Define.
66
0fd3a477
JW
672005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
68
69 * config/tc-tic30.c (debug): Add format attribute. Fix format
70 bugs.
71
bf50992e
L
722005-07-06 H.J. Lu <hongjiu.lu@intel.com>
73
74 * config/tc-i386.c (cpu_arch): Add sse3.
75
76 * config/tc-i386.h (CpuSSE3): Renamed from ...
77 (CpuPNI): This. Defined as CpuSSE3.
78
79 * doc/c-i386.texi: Document .sse3.
80
5d5e6db9
JB
812005-07-06 Jan Beulich <jbeulich@novell.com>
82
83 * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop.
84
3ec2b351
NC
852005-07-05 Nick Clifton <nickc@redhat.com>
86
87 * config/tc-pdp11.c (md_apply_fix): Cast first argument to
88 md_chars_to_numbers to an unsigned pointer in order to avoid a
89 compile time warning.
90
9d8504b1
PB
912005-07-05 Paul Brook <paul@codesourcery.com>
92
93 * config/tc-ppc.c (ppc_target_format): Add VxWorks.
94
a0defb2e
AH
952005-07-05 Aldy Hernandez <aldyh@redhat.com>
96
97 * config/tc-ms1.c: New.
98 * config/tc-ms1.h: New.
99 * testsuite/gas/ms1/allinsn.d: New.
100 * testsuite/gas/ms1/allinsn.s: New.
101 * testsuite/gas/ms1/badinsn.s: New.
102 * testsuite/gas/ms1/badinsn1.s: New.
103 * testsuite/gas/ms1/badoffsethigh.s: New.
104 * testsuite/gas/ms1/badoffsetlow.s: New.
105 * testsuite/gas/ms1/badorder.s: New.
106 * testsuite/gas/ms1/badreg.s: New.
107 * testsuite/gas/ms1/badsignedimmhigh.s: New.
108 * testsuite/gas/ms1/badsignedimmlow.s: New.
109 * testsuite/gas/ms1/badsyntax.s: New.
110 * testsuite/gas/ms1/badsyntax1.s: New.
111 * testsuite/gas/ms1/badunsignedimmhigh.s: New.
112 * testsuite/gas/ms1/badunsignedimmlow.s: New.
113 * testsuite/gas/ms1/errors.exp: New.
114 * testsuite/gas/ms1/ldst.s: New.
115 * testsuite/gas/ms1/misc.d: New.
116 * testsuite/gas/ms1/misc.s: New.
117 * testsuite/gas/ms1/ms1-16-003.d: New.
118 * testsuite/gas/ms1/ms1-16-003.s: New.
119 * testsuite/gas/ms1/ms1.exp: New.
120 * testsuite/gas/ms1/msys.d: New.
121 * testsuite/gas/ms1/msys.s: New.
122 * testsuite/gas/ms1/relocs.d: New.
123 * testsuite/gas/ms1/relocs.exp: New.
124 * testsuite/gas/ms1/relocs1.s: New.
125 * testsuite/gas/ms1/relocs2.s: New.
126
30123838
JB
1272005-07-05 Jan Beulich <jbeulich@novell.com>
128
129 * config/tc-i386.h (CpuSVME): New.
130 (CpuUnknownFlags): Include CpuSVME.
131 * config/tc-i386.c (cpu_arch): Add .pacifica and .svme. Add opteron
132 as alias of sledgehammer.
133 (md_assemble): Include invlpga in the check for insns with two source
134 operands.
135 (process_operands): Include SVME insns in the check for ignored
136 segment overrides. Adjust diagnostic.
137 (i386_index_check): Special-case SVME insns with memory operands.
138
ca3f61f7
NC
1392005-07-04 Khem Raj <kraj@mvista.com>
140 Nick Clifton <nickc@redhat.com>
141
142 * tc-arm.c (struct arm_it): Make operands.imm signed to match its
143 use an immediate value.
144 (parse_vfp_reg_list): Make the 2nd parameter an unsigned pointer
145 since the register field of the operands structure is unsigned.
146 (s_arm_unwind_save_vfp): Make "reg" unsigned.
147 (parse_operands): Make the 2ns parameter an unsigned pointer to
148 match its use.
149 (do_ldrd): When using the imm field of the operands structure as a
150 second register field, treat it as unsigned.
151
551b43fd
AM
1522005-07-04 Alan Modra <amodra@bigpond.net.au>
153
154 PR 1004
155 * config/obj-elf.c (obj_elf_change_section): Use backend
156 get_sec_type_attr.
157
e4e8248d
JB
1582005-07-01 Jan Beulich <jbeulich@novell.com>
159
160 * config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
161 (output_spill_psprel, output_spill_psprel_p): Combine.
162 (output_spill_sprel, output_spill_sprel_p): Combine.
163 (output_spill_reg, output_spill_regp_p): Combine.
164 (process_one_record): Handle psp_psprel.
165 (parse_predicate_and_operand): New.
166 (convert_expr_to_ab_reg): Two new parameters. Return void. Always
167 initialize output values. Emit diagnostic case here.
168 (convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
169 (add_unwind_entry): New second parameter. Allow first parameter to
170 be NULL. Parse optional tag, emit warning about further support for
171 it otherwise being missing. Check end-of-line when requested.
172 (dot_fframe): Clear operand when wrong. Allow tag.
173 (dot_vframe): Likewise.
174 (dot_vframesp): Likewise. Rename parameter, issue warning when psp
175 relative.
176 (dot_vframepsp): Remove.
177 (dot_altrp): Clear operand when wrong. Allow tag.
178 (dot_save): Likewise. Let default case also go through
179 add_unwind_entry.
180 (dot_savemem): Likewise.
181 (dot_restore): Don't return when wrong operand. Allow tag.
182 (dot_spillreg, dot_spillreg_p): Combine. Simplify by using
183 parse_predicate_and_operand and the new arguments to
184 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
185 when wrong operand. Allow tag.
186 (dot_restorereg, dot_restorereg_p): Likewise.
187 (dot_spillmem, dot_spillmem_p): Likewise.
188 (dot_saveg): Clear operand when wrong. Perform tighter operand
189 checks. Allow tag.
190 (dot_savef): Likewise.
191 (dot_saveb): Likewise.
192 (dot_savegf): Likewise.
193 (dot_spill): Remove end-of-line check. Combine. Simplify by using
194 parse_predicate_and_operand and the new arguments to
195 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
196 when wrong operand. Allow tag.
197 (popcount): New.
198 (dot_label_state): Don't return when wrong operand.
199 (dot_copy_state): Likewise.
200 (dot_unwabi): Likewise. Check if in prologue.
201 (dot_body): Don't call demand_empty_rest_of_line.
202 (dot_prologue): Type of mask and grsave is unsigned. Perform tighter
203 operand checks.
204 (md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
205 use dot_spillreg for .spillreg.p. Also use dot_spillmem for
206 .spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
207 (parse_operand): New second parameter. Don't deal with '}' here
208 anymore. Don't advance past end-of-line.
209 (parse_operands): Pass second argument to parse_operand.
210 (ia64_start_line): Prevent out-of-bounds access through
211 input_line_pointer. Deal with '}' here.
212 (ia64_unrecognized_line): Don't deal with '}' here.
213 (dot_alias): Use ignore_rest_of_line not its deprecated alias
214 discard_rest_of_line.
215
2fc8bdac
ZW
2162005-06-30 Zack Weinberg <zack@codesourcery.com>
217
218 * config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
219 (encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
220 (do_t_branch, insns [b, bl]): Don't encode pipeline offset.
0d828caf 221 (do_branch): Always set inst.reloc.pc_rel.
2fc8bdac
ZW
222 (s_arm_elf_cons): Disallow use of (plt) suffix.
223 (do_adrl): Adjust X_add_number unconditionally.
224 (md_pcrel_from): Rename md_pcrel_from_section, add second segT
225 argument. Handle all adjustment for pipeline offset here.
226 (md_apply_fix): No need to undo work of md_pcrel_from. No
227 need to extract pre-encoded pipeline adjustments from various
228 branch instructions. Generally, assume instructions are already
229 all-bits-zero in the field being fixed up. Remove all OBJ_ELF
230 special cases. Handle BFD_RELOC_ARM_PLT32 like
231 BFD_RELOC_ARM_PCREL_BRANCH.
232 (tc_gen_reloc): Remove OBJ_ELF special case.
233 * config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
234
b753922c
BE
2352005-06-30 Ben Elliston <bje@gnu.org>
236
237 * Makefile.am (check-DEJAGNU): Don't search for expect.
238 * Makefile.in: Regenerate.
239
c3298874
BE
2402005-06-30 Ben Elliston <bje@gnu.org>
241
242 * Makefile.am (EXPECT): Set to expect.
243 (RUNTEST): Likewise, set to runtest.
244 * Makefile.in: Regenerate.
245
8f738565
BE
2462005-06-23 Ben Elliston <bje@gnu.org>
247
248 * config/m68k-parse.h: Use ISO C90.
249 * config/m68k-parse.y: Likewise.
250 * config/tc-m68k.h: Likewise.
251
b300c311
L
2522005-06-20 H.J. Lu <hongjiu.lu@intel.com>
253
254 PR 1013
255 * config/tc-i386.c (md_assemble): Don't call optimize_disp on
256 movabs.
257 (optimize_disp): Optimize only if possible. Don't use 64bit
258 displacement on non-constants and do same on constants if
259 possible.
260
d6ab8113
JB
2612005-06-17 Jan Beulich <jbeulich@novell.com>
262
263 * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
264 (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
265 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
266 (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
267 and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
268 aborting.
269 (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
270 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
271 (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
272 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
273 BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
274 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
275 convert 8-byte pc-relative relocations.
276 (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
277 (i386_validate_fix): Likewise.
278 (x86_cons): Also handle quad values in 64-bit mode.
279 (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
280 (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
281 BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
282 to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
283
37f6032b
ZW
2842005-06-13 Zack Weinberg <zack@codesourcery.com>
285
286 * config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
287 symbolP as well as for names with a leading dot. Use ACONCAT.
288 (md_apply_fix): For branch relocations, only replace value
289 with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
290 (arm_force_relocation): Remove #ifdef OBJ_ELF case.
291 * config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
292 (LOCAL_LABEL_PREFIX): Don't define.
293
6bdb6dec
AM
2942005-06-10 Alan Modra <amodra@bigpond.net.au>
295
296 * config/tc-hppa.c (pa_block): Allocate just one byte for the
297 fill pattern.
298
4dddc1d1
JW
2992005-06-08 James E Wilson <wilson@specifixinc.com>
300
301 PR 994
302 * config/tc-ia64.c (slot_index): Revert last change. If first_frag
303 is NULL, then emit a warning, and return the current index.
304
03b13e59
NC
3052005-06-08 Tomas Hurka <tom@hukatronic.cz>
306
6bdb6dec 307 PR 991
03b13e59
NC
308 * config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a
309 temporary copy of the operands array so that changes can be safely
310 backed out if the insn does not match.
311 (m68k_compare_opcode): Shortcut the test when the parameters are
312 the same. Return 1 if the names match but the second opcode is
313 further on in the array than the first.
314
985d9490
NC
3152005-06-08 Nick Clifton <nickc@redhat.com>
316
317 PR 994
318 * config/tc-ia64.c (slot_index): Check for a NULL first_frag.
319
6858915a
NC
3202005-06-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
321
322 * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
323
047af9ef
AH
3242005-06-07 Aldy Hernandez <aldyh@redhat.com>
325 Michael Snyder <msnyder@redhat.com>
326 Stan Cox <scox@redhat.com>
327
328 * configure.in: Add ms1 case.
329
330 * configure: Regenerate.
331
332 * configure.tgt: Add ms1 case.
333
0bf60745
BW
3342005-06-07 Bob Wilson <bob.wilson@acm.org>
335
336 * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
337 * config/tc-xtensa.c (new_resource_table): Likewise.
338 (resize_resource_table): Likewise.
339 (release_resources): Fix assertion for unsigned values.
340
55cf6793
ZW
3412005-06-07 Zack Weinberg <zack@codesourcery.com>
342
343 * cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
344 * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
345 * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
346 * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
347 * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
348 * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
349 * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
350 * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
351 * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
352 * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
353 * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
354 * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
355 * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
356 * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
357 * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
358 * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
359 * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
360 * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
361 * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
362 * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
363 * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
364 * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
365 * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
366 * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
367 * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
368 * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
369 * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
370 * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
371 * config/tc-xtensa.c, config/tc-z8k.c:
372 Replace all instances of the string "_apply_fix3" with
373 "_apply_fix".
374 * po/POTFILES.in, po/gas.pot: Regenerate.
375
620c54b3
AM
3762005-06-08 Alan Modra <amodra@bigpond.net.au>
377
378 * Makefile.am: Run "make dep-am".
379 (POTFILES): Remove GAS_CFILES.
380 * Makefile.in: Regenerate.
381
32b26a03
MR
3822005-06-07 David Ung <davidu@mips.com>
383
384 * config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
385 24kc, 24kf and 24kfx under MIPS32 release 2.
386
6a86118a
NC
3872005-06-04 Nick Clifton <nickc@redhat.com>
388
389 * config/tc-arm.c (CE, C3, CM, UE, UF): Redefine without reference
390 to their Thumb-enabled equivalents.
391
20e1fcfd
MR
3922005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
393
394 * config/tc-mips.c (load_register): Add leading "0x" to the
395 output of sprintf_vma().
396 (macro): Likewise.
397
1887dd22
NC
3982005-06-01 Nick Clifton <nickc@redhat.com>
399
400 * config/tc-arm.c (TxCE, TxC3, TxCM, TUE, TUF): Remove redundant
401 test for the presence of thumb version of the parsing functions
402 since they must always exist and the test generates a compile time
403 warning message.
404
04fe8f58
RH
4052005-05-31 Richard Henderson <rth@redhat.com>
406
407 * config/tc-alpha.c (O_lituse_jsrdirect): New.
408 (alpha_reloc_op): Add it.
409 (debug_exp): Handle it.
410 (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
411 (emit_insn): Handle it.
412 * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.
413
988392e2
CG
4142005-05-31 Christian Groessler <chris@groessler.org>
415
416 * write.c (dump_section_relocs): Convert to ISO-C.
417 (write_relocs): Avoid signed/unsigned and fprintf argument
418 warnings in debug code.
419
adbaf948
ZW
4202005-05-26 Zack Weinberg <zack@codesourcery.com>
421
422 * config/tc-arm.h (TC_FIX_TYPE): Change to int.
423 (TC_INIT_FIX_DATA): Initialize to 0, not NULL.
424 * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
425 (md_apply_fix3): Delete fix_is_thumb variable; refer to
426 fixP->tc_fix_data directly in the sole place it was used.
427 Explicitly truncate value, *valP, fixP->fx_addnumber, and
428 fixP->fx_offset to 32 bits, for consistent behavior between 32-
429 and 64-bit hosts.
430
5656b6b8
JB
4312005-05-27 Jan Beulich <jbeulich@novell.com>
432
433 * config/tc-ia64.c (struct proc_pending): New.
434 (unwind): Replace proc_start with proc_pending.
435 (unwind_diagnostic): Check unwind.proc_pending.sym.
436 (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
437 Check if previous proc not closed. Record all entry points.
438 (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
439 Set symbol sizes for entry points recorded in dot_proc. Check
440 arguments for consistency with respective .proc's.
441 (md_assemble): Replace unwind.proc_start with
442 unwind.proc_pending.sym.
443
75214fb0
JB
4442005-05-27 Jan Beulich <jbeulich@novell.com>
445
446 * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
447 and last_ptr. Check all in-use slots for first one with non-NULL
448 unwind_record. Don't reload end_ptr before second update round.
449
7c06efaa
JW
4502005-05-26 James E Wilson <wilson@specifixinc.com>
451
452 * config/tc-ia64.c (extra_goodness): Update comment.
453 (md_begin): Add debugging code to print best_template table.
454
286cee81
JB
4552005-05-25 Jan Beulich <jbeulich@novell.com>
456
457 * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
458 template.
459
30ad6cb9
JB
4602005-05-25 Jan Beulich <jbeulich@novell.com>
461
462 * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
463 BFD_RELOC_UNUSED when determining the width of the reloc.
464
6baf2b51
JB
4652005-05-25 Jan Beulich <jbeulich@novell.com>
466
467 * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
468 section entry.
469
fa30c84f
JB
4702005-05-25 Jan Beulich <jbeulich@novell.com>
471
472 * config/tc-ia64.c (dot_radix): Rewrite.
473
1055c30c
JB
4742005-05-25 Jan Beulich <jbeulich@novell.com>
475
476 * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
477 and next_slot_frag.
478 (alloc_record): Remove references to next_slot_number and
479 next_slot_frag.
480 (emit_one_bundle): Likewise.
481
45d18c80
NC
4822005-05-22 Nick Clifton <nickc@redhat.com>
483
484 * config/tc-v850.c (md_apply_fix3): Pass the address of the
485 message buffer when invoking the insert function.
486
9f45e54b
DA
4872005-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
488
489 * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
490 only if an instruction match is found.
491
47e70edb
BW
4922005-05-20 Bob Wilson <bob.wilson@acm.org>
493
494 * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
495 to addition in argument to xtensa_dwarf2_emit_insn.
496
e3e71e27
ZW
4972005-05-19 Zack Weinberg <zack@codesourcery.com>
498
499 * Makefile.am: Have 'all' depend on 'info'.
500 * Makefile.in: Regenerate.
501
c744ecf2
AM
5022005-05-19 Alan Modra <amodra@bigpond.net.au>
503
504 * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
505
b0648eec
AM
5062005-05-19 Anton Blanchard <anton@samba.org>
507
508 * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
509 (md_show_usage): Document it.
510 (ppc_setup_opcodes): Insert POWER5 mnemonics.
511 * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
512
4600db48
JB
5132005-05-19 Jan Beulich <jbeulich@novell.com>
514
515 * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
516 relocations in unwind section.
517
a0ef61f7
NC
5182005-05-18 Nick Clifton <nickc@redhat.com>
519
520 * config/tc-v850.c (md_apply_fix3): Only use the insertion routine
521 if one exists. Ignore any error messages it may produce, just
522 allow it to perform the insertion.
523
c19d1205
ZW
5242005-05-17 Zack Weinberg <zack@codesourcery.com>
525
526 * hash.c (hash_lookup): Add len parameter. All callers changed.
527 (hash_find_n): New interface.
528 * hash.h: Prototype hash_find_n.
529 * sb.c: Include as.h.
530 (scrub_from_sb, sb_to_scrub, scrub_position): New statics.
531 (sb_scrub_and_add_sb): New interface.
532 * sb.h: Prototype sb_scrub_and_add_sb.
533 * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
534
535 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
536 reference to BFD_RELOC_ARM_GOT12 which is never generated.
537 * config/tc-arm.c: Rewrite, adding Thumb-2 support.
538
970c3dbc
DJ
5392005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
540
541 * doc/Makefile.am (gasver.texi): Don't use $<.
542 * doc/Makefile.in: Regenerated.
543
ec7ef033
NC
5442005-05-17 Nick Clifton <nickc@redhat.com>
545
546 PR 876
547 * symbols.c (resolve_symbol_value): Do not move symbols whose
548 value expression has not been resolved or finalized into the
549 absolute section as this will confuse other parts of the assembler
550 into thinking that their value is zero.
551
40a4d956
JB
5522005-05-17 Jan Beulich <jbeulich@novell.com>
553
554 * read.c (_find_end_of_line): New.
555 (find_end_of_line): New.
556 (HANDLE_CONDITIONAL_ASSEMBLY): Use it.
557 (read_a_source_file): Use it.
558 (s_globl): Use it.
559 (s_macro): Use it.
560 (get_line_sb): Use it.
561 (s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line.
562 (s_comm_internal): Likewise.
563 (s_lsym): Likewise.
564 (s_macro): Likewise.
565 (s_ignore): Use ignore_rest_of_line.
566 * read.h (find_end_of_line): Prototype.
567 (discard_rest_of_line): Remove prototype. #define to
568 ignore_rest_of_line.
569
2d034539
NC
5702005-05-17 Nick Clifton <nickc@redhat.com>
571
572 * config/tc-v850,h (TC_FIX_TYPE): Define.
573 (TC_INIT_FIX_TYPE): Define.
574 * config/tc-v850.c (md_assemble): When creating a fix record the
575 operand in the tc_fix_data field.
576 (md_apply_fix3): When applying a resolved fix use the operand's
577 insertion procedure to store the value, if the operand has been
578 recorded.
579
42ecbf5e
DJ
5802005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
581
582 * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap
583 invocation.
584 * Makefile.in: Regenerated.
585
d7c531cd
BW
5862005-05-13 Sterling Augustine <sterling@tensilica.com>
587 Bob Wilson <bob.wilson@acm.org>
588
589 * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
590 message.
591 (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional
592 for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
593
3c9d25f4
AM
5942005-05-11 Alan Modra <amodra@bigpond.net.au>
595
596 * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
597 BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
598
ee192366
MM
5992005-05-10 Michael Matz <matz@suse.de>
600
601 * frags.c (frag_grow): Don't be too greedy in allocating memory.
602
603 * config/tc-hppa.c (pa_block): Check arguments to .block[z].
604
20d7ce9b
HPN
6052005-05-10 Hans-Peter Nilsson <hp@bitrange.com>
606
607 PR binutils/886
608 * config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly.
609 Handle label-without-colon before ordinary dot-pseudo as an
610 ordinary label. Don't leak memory for label-without-colon alone
611 on a line. Don't mmixal-munge operands for dot-pseudos.
612
be03cc84
JB
6132005-05-10 Jan Beulich <jbeulich@novell.com>
614
615 * macro.c (get_any_string): Remove the two last parameters. Replace
616 references to the former expand parameter by using macro_alternate.
617 Simplify loop condition for checking for end-of-string.
618 (get_string): Remove redunant call to sb_skip_white.
619 (do_formals): Remove two last arguments to get_any_string.
620 (macro_expand): Likewise.
621 (expand_irp): Likewise.
622
360e86f1
JB
6232005-05-10 Jan Beulich <jbeulich@novell.com>
624
625 * read.c (s_macro): Move local variable 'local' to smaller scope.
626 Call sb_kill on it when done.
627
34d9ee9e
JB
6282005-05-09 Jan Beulich <jbeulich@novell.com>
629
ee192366
MM
630 * config/tc-i386.c (optimize_disp): Discard displacement entirely
631 when zero and not required by encoding constraints.
34d9ee9e 632
c9cd7160
L
6332005-05-09 H.J. Lu <hongjiu.lu@intel.com>
634
635 PR 936
636 * config/tc-sh64.c (sh64_fake_label): New.
637
638 * config/tc-sh64.h (TC_FAKE_LABEL): New.
639
640 * doc/internals.texi (TC_FAKE_LABEL): Document.
641
642 * write.c (TC_FAKE_LABEL): New.
643 (adjust_reloc_syms): Use it.
644 (write_object_file): Likewise.
645
e44823cf
JB
6462005-05-09 Jan Beulich <jbeulich@novell.com>
647
648 * config/tc-i386.c (parse_insn): Disallow use of prefix separator
649 and comma in Intel mode.
650
089dfecd
JB
6512005-05-09 Jan Beulich <jbeulich@novell.com>
652
653 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
654 names to match ABI. Add more registers for 32-bit and 64-bit modes.
655 Make name array static and const. Adjust lookup to account for NULL
656 entries (standing for unused register numbers).
657
f41bbced
JB
6582005-05-09 Jan Beulich <jbeulich@novell.com>
659
660 * config/tc-i386.c (parse_insn): Consider all matching instructions
661 when checking for string instruction after string-only prefix.
662
6e3f953d
L
6632005-05-07 H.J. Lu <hongjiu.lu@intel.com>
664
665 PR 940
666 * config/tc-ia64.c (start_unwind_section): Properly check
667 comdat group with SHF_GROUP.
668
0c6c36d5
BW
6692005-05-06 Bob Wilson <bob.wilson@acm.org>
670
671 * doc/c-xtensa.texi (Literal Directive): Spelling correction.
672
c138bc38
BW
6732005-05-06 Bob Wilson <bob.wilson@acm.org>
674
675 * config/tc-xtensa.c: Remove excess whitespace.
676 * config/tc-xtensa.h: Likewise.
677 * config/xtensa-istack.h: Likewise.
678 * config/xtensa-relax.c: Likewise.
679 * config/xtensa-relax.h: Likewise.
680
93a9f991
NC
6812005-05-06 Nick Clifton <nickc@redhat.com>
682
683 * sb.h: Fix formatting of comments.
684 * sb.c: Fix formatting of comments.
685
3c9aabc7
JB
6862005-05-06 Jan Beulich <jbeulich@novell.com>
687
688 * sb.h (sb_add_buffer): Reintroduce.
689 * sb.c (sb_add_buffer): Likewise.
690
6eaeac8a
JB
6912005-05-06 Jan Beulich <jbeulich@novell.com>
692
693 * macro.c (new_formal, del_formal): New.
694 (do_formals): Use new_formal. Check for and parse qualifier. Warn if
695 required argument has default value. Stop looking for more formal
696 when there was a vararg one.
697 (macro_expand_body): Use new_formal and del_formal.
698 (macro_expand): Likewise. Initialize local variable err. Don't
699 return immediately when encountering an error. Warn when keyword
700 argument already had a value assigned. Eliminate duplicate clearing
701 of argument value. When current positional argument matches parameter
702 of vararg type, assign to it all the remaining arguments. Issue error
703 when required parameter does not have value.
704 (free_macro): Use del_formal.
705 (expand_irp): Initialize formal type. Free buffers associated with
706 formal prior to returning.
707 * macro.h (struct formal_struct): Add new field 'type' with new
708 enumeration type 'formal_type'.
709 * doc/as.texinfo: Document macro parameter qualifiers.
710 * NEWS: Mention new functionality.
711
26aca5f6
JB
7122005-05-06 Jan Beulich <jbeulich@novell.com>
713
714 * cond.c (s_ifb): New.
715 * read.c (potable): Add s_ifb as handler for .ifb and .ifnb.
716 * read.h (s_ifb): Prototype.
717 * doc/as.texinfo: Document .ifb and .ifnb.
718
5faa8e39
JW
7192005-05-05 Steve Ellcey <sje@cup.hp.com>
720
721 * config/tc-ia64.c (MIN): Undef.
722
eac338cf
PB
7232005-05-05 Paul Brook <paul@codesourcery.com>
724
725 * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS.
726
d8244a4a
NC
7272005-05-05 Matt Thomas <matt@3am-software.com>
728
729 * config/tc-vax.c (md_assemble): Don't assume a valueT is 4
730 bytes.
731
4b4da160
NC
7322005-05-05 Nick Clifton <nickc@redhat.com>
733
734 * Update the address and phone number of the FSF organization in
735 the GPL notices in the following files:
736 COPYING, app.c, as.c, as.h, asintl.h, atof-generic.c, bignum.h,
737 bit_fix.h, cgen.c, cgen.h, cond.c, debug.c, depend.c, dw2gencfi.c,
738 dw2gencfi.h, dwarf2dbg.c, dwarf2dbg.h, ecoff.c, ecoff.h, ehopt.c,
739 emul-target.h, emul.h, expr.c, expr.h, flonum-copy.c,
740 flonum-konst.c, flonum.h, frags.c, frags.h, hash.c, hash.h,
741 input-file.c, input-file.h, input-scrub.c, itbl-lex.h, itbl-lex.l,
742 itbl-ops.c, itbl-ops.h, itbl-parse.y, listing.c, listing.h,
743 literal.c, macro.c, macro.h, messages.c, obj.h, output-file.c,
744 output-file.h, read.c, read.h, sb.c, sb.h, stabs.c,
745 struc-symbol.h, subsegs.c, subsegs.h, symbols.c, symbols.h, tc.h,
746 write.c, write.h, config/aout_gnu.h, config/atof-ieee.c,
747 config/atof-vax.c, config/itbl-mips.h, config/m68k-parse.h,
748 config/m68k-parse.y, config/m88k-opcode.h, config/obj-aout.c,
749 config/obj-aout.h, config/obj-bout.c, config/obj-bout.h,
750 config/obj-coff.c, config/obj-coff.h, config/obj-ecoff.c,
751 config/obj-ecoff.h, config/obj-elf.c, config/obj-elf.h,
752 config/obj-evax.c, config/obj-evax.h, config/obj-hp300.c,
753 config/obj-hp300.h, config/obj-ieee.c, config/obj-ieee.h,
754 config/obj-multi.h, config/obj-som.c, config/obj-som.h,
755 config/tc-a29k.c, config/tc-a29k.h, config/tc-alpha.c,
756 config/tc-alpha.h, config/tc-arc.c, config/tc-arc.h,
757 config/tc-arm.h, config/tc-avr.c, config/tc-avr.h,
758 config/tc-cris.c, config/tc-cris.h, config/tc-crx.c,
759 config/tc-crx.h, config/tc-d10v.c, config/tc-d10v.h,
760 config/tc-d30v.c, config/tc-d30v.h, config/tc-dlx.c,
761 config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
762 config/tc-frv.c, config/tc-frv.h, config/tc-generic.c,
763 config/tc-generic.h, config/tc-h8300.c, config/tc-h8300.h,
764 config/tc-h8500.c, config/tc-h8500.h, config/tc-hppa.c,
765 config/tc-hppa.h, config/tc-i370.c, config/tc-i370.h,
766 config/tc-i386.c, config/tc-i386.h, config/tc-i860.c,
767 config/tc-i860.h, config/tc-i960.c, config/tc-i960.h,
768 config/tc-ia64.c, config/tc-ia64.h, config/tc-ip2k.c,
769 config/tc-ip2k.h, config/tc-iq2000.c, config/tc-iq2000.h,
770 config/tc-m32r.c, config/tc-m32r.h, config/tc-m68851.h,
771 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c,
772 config/tc-m68k.h, config/tc-m88k.c, config/tc-m88k.h,
773 config/tc-maxq.c, config/tc-maxq.h, config/tc-mcore.c,
774 config/tc-mcore.h, config/tc-mips.c, config/tc-mips.h,
775 config/tc-mmix.c, config/tc-mmix.h, config/tc-mn10200.c,
776 config/tc-mn10200.h, config/tc-mn10300.c, config/tc-mn10300.h,
777 config/tc-msp430.c, config/tc-msp430.h, config/tc-ns32k.c,
778 config/tc-ns32k.h, config/tc-openrisc.c, config/tc-openrisc.h,
779 config/tc-or32.c, config/tc-or32.h, config/tc-pdp11.c,
780 config/tc-pdp11.h, config/tc-pj.c, config/tc-pj.h,
781 config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c,
782 config/tc-s390.h, config/tc-sh.c, config/tc-sh.h,
783 config/tc-sh64.c, config/tc-sh64.h, config/tc-sparc.c,
784 config/tc-sparc.h, config/tc-tahoe.c, config/tc-tahoe.h,
785 config/tc-tic30.c, config/tc-tic30.h, config/tc-tic4x.c,
786 config/tc-tic4x.h, config/tc-tic54x.c, config/tc-tic54x.h,
787 config/tc-tic80.c, config/tc-tic80.h, config/tc-v850.c,
788 config/tc-v850.h, config/tc-vax.c, config/tc-vax.h,
789 config/tc-w65.c, config/tc-w65.h, config/tc-xstormy16.c,
790 config/tc-xstormy16.h, config/tc-xtensa.c, config/tc-xtensa.h,
791 config/tc-z8k.c, config/tc-z8k.h, config/te-386bsd.h,
792 config/te-freebsd.h, config/te-hp300.h, config/te-hppa.h,
793 config/te-ic960.h, config/te-irix.h, config/te-nbsd.h,
794 config/te-netware.h, config/te-sparcaout.h, config/te-sun3.h,
795 config/te-tmips.h, config/te-vxworks.h, config/vax-inst.h,
796 config/xtensa-istack.h, config/xtensa-relax.c,
2b8725e7 797 config/xtensa-relax.h, doc/fdl.texi
4b4da160 798
699d2810
NC
7992005-05-05 Nick Clifton <nickc@redhat.com>
800
801 * config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
802 the target_big_endian variable to false.
803
69852798
AM
8042005-05-04 Alan Modra <amodra@bigpond.net.au>
805
806 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct section
807 list traversal. Use bfd_section_list_prepend.
808 * config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate
809 over the section list.
810 * config/tc-xtensa.c (xtensa_remove_section): Delete.
811 (xtensa_insert_section): Delete.
812 (xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove
813 and bfd_section_list_prepend.
814 (xtensa_reorder_seg_list): Use bfd_section_list_remove and
815 bfd_section_list_insert_after.
816
c1d05a60
NC
8172005-05-03 Nick Clifton <nickc@redhat.com>
818
819 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations
820 of bfd_section_list... macros.
821 * config/tc-mmix.c (mmix_frob_file): Likewise.
822 * config/tc-xtensa.c (xtensa_remove_section): Likewise.
823 (xtensa_insert_section): Likewise.
824
825 * macro.c (macro_hash): Remove static.
826 * macro.h (macro_hash): Provide an external declaration.
827
5daa8fe7
L
8282005-05-02 H.J. Lu <hongjiu.lu@intel.com>
829
830 * write.c (write_object_file): Use bfd_section_double_list_remove
831 to remove sections.
832
475bf943
DJ
8332005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
834
835 * doc/Makefile.am (gasver.texi): Correct quoting.
836 * doc/Makefile.in: Regenerated.
837
009b6a7a
DJ
8382005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
839
840 * configure.tgt: Add h8300*-*-rtemscoff.
841 Switch h8300*-*-rtems* to elf.
842
7e70f1af
L
8432005-04-29 H.J. Lu <hongjiu.lu@intel.com>
844
845 * hash.c: Undo the last change.
846 * hash.h: Likewise.
847
aa7eb06d
DJ
8482005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
849
850 * doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
851 of Makefile.
852 (DISTCLEANFILES): Remove.
853 (MAINTAINERCLEANFILES): Add asconfig.texi.
854 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
855
87c245cc
BE
8562005-04-29 Ben Elliston <bje@au.ibm.com>
857
858 * Makefile.am (GAS_CFILES): Remove bignum-copy.c.
859 (GENERIC_OBJS): Likewise, remove bignum-copy.o.
860 (bignum-copy.o): Remove.
861 * Makefile.in: Regenerate.
862 * makefile.vms (OBJS): Remove bignum-copy.obj.
863 * symbols.h (local_symbol_make): Remove declaration.
864 (verify_symbol_chain_2): Likewise.
865 * symbols.c (local_symbol_make): Make static.
866 (max_indent_level): Likewise.
867 (verify_symbol_chain_2): Remove.
868 * macro.c (macro_hash): Make static.
869 * messages.c (fprint_value): Remove.
870 * read.h (get_absolute_expr): Remove.
871 (emit_leb128_expr): Likewise.
872 (do_s_func): Likewise.
873 * read.c (do_s_func): Make static.
874 (emit_leb128_expr): Likewise.
875 (get_absolute_expr): Likewise.
876 * as.h (as_howmuch): Remove declaration.
877 (fprint_value): Likewise.
878 * as.c (myname): Make static.
879 * input-scrub.c (as_howmuch): Remove.
880 (as_1_char): Likewise.
881 * input-file.h (input_file_is_open): Remove.
882 * input-file.c (input_file_is_open): Likewise.
883 * expr.h (expr_build_unary): Remove declaration.
884 (expr_build_binary): Likewise.
885 * expr.c (expr_build_unary): Remove.
886 (expr_build_binary): Likewise.
887 * hash.h (hash_replace): Remove declaration.
888 (hash_delete): Likewise.
889 * hash.c (hash_replace): Remove.
890 (hash_delete): Likewise.
891 * bignum-copy.c (bignum_copy): Move from here ..
892 * config/tc-vax.c (bignum_copy): .. to here.
893 * bignum.h (LOG_TO_BASE_2_OF_10): Remove.
894 (bignum_copy): Remove extern declaration.
895 * sb.h (string_count): Remove extern declaration.
896 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
897 (sb_name): Likewise.
898 * sb.c (dsize): Replace preprocessor macro with static int.
899 (string_count): Make static.
900 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
901 (sb_name): Likewise.
902 * config/obj-coff.c (dim_index): Make static.
903 * config/tc-i386.c (GOT_symbol): Likewise.
904 (output_invalid_buf): Likewise.
905 * doc/internals.texi (Warning and error messages): Remove the
906 prototype for fprint_value.
907
f3429a74
BE
9082005-04-27 Ben Elliston <bje@au.ibm.com>
909
910 * link.cmd: Remove.
911
60938e80
L
9122005-04-26 H.J. Lu <hongjiu.lu@intel.com>
913
914 * config/obj-multi.h (FAKE_LABEL_NAME): Defined.
915
916 * read.c (pseudo_set): Disallow symbol set to common symbol.
917
918 PR 857
919 * write.c (write_object_file): Report common symbol name when
920 disallowing local symbol set to common symbol.
921 (adjust_reloc_syms): Disallow local symbol set to undefined
922 symbol.
923
02ddf156
JB
9242005-04-25 Jan Beulich <jbeulich@novell.com>
925
926 * macro.c (macro_expand_body): Replace locals indicator parameters
927 with actual macro_entry. New local variables macro_line and err.
928 Don't return when encountering an error, just record the fact.
929 Detect local symbol name colliding with parameter. Track line number
930 inside of macro expansion.
931 (do_formals): Move local variable name to wider scope. Check
932 parameter of the same name doesn't already exist. In MRI mode, also
933 check it doesn't collide with the argument count pseudo-parameter).
934 (define_macro): Add file and line number parameters. Remove local
935 variable namestr. New local variable error. Initialize macro_entry
936 members file, line, and name. Don't return when encountering an
937 error, just record the fact. Use %s in some diagnostics for read.c
938 to insert the macro name. Free macro_entry on error.
939 (macro_expand): Pass macro_entry to macro_epand_body. Don't return
940 when encountering an error, just record the fact.
941 (expand_irp): Don't return when encountering an error, just record
942 the fact.
943 * macro.h (macro_struct): New members name, file, and line.
944 (define_macro): Add file and line number parameters.
945 * read.c (s_macro): Pass file and line to define_macro. Tag warning
946 regarding pseudo-op redefinition with the file/line that macro
947 definition started at.
948
d2a033cd
BW
9492005-04-22 Bob Wilson <bob.wilson@acm.org>
950
951 * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.
952 (future_alignment_required): Remove ifdefs that use it.
953
84b08ed9
BW
9542005-04-22 Bob Wilson <bob.wilson@acm.org>
955
956 * config/tc-xtensa.c (xg_get_build_instr_size): Remove.
957 (xg_is_narrow_insn, xg_expand_narrow): Remove. Merge into...
958 (xg_is_single_relaxable_insn): ...here. Add "targ" and "narrow_only"
959 parameters.
960 (xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements,
961 convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
962
d8cbebfd
CG
9632005-04-21 Christian Groessler <chris@groessler.org>
964
965 * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
966 array.
967
e97b3f28
L
9682005-04-20 H.J. Lu <hongjiu.lu@intel.com>
969
970 * config/obj-aout.h (S_IS_EXTERN): Removed.
971 * config/obj-bout.h (S_IS_EXTERN): Likewise.
972 * config/obj-coff.h (S_IS_EXTERN): Likewise.
973 * symbols.c (S_IS_EXTERN): Likewise.
974 * symbols.h (S_IS_EXTERN): Likewise.
975
976 * config/tc-alpha.c (tc_gen_reloc): Replace S_IS_EXTERN with
977 S_IS_EXTERNAL.
978 * config/tc-d10v.c (md_apply_fix3): Likewise.
979 * config/tc-ia64.c (ia64_fix_adjustable): Likewise.
980 * config/tc-iq2000.c (iq2000_fix_adjustable): Likewise.
981 * config/tc-m32r.c (m32r_fix_adjustable): Likewise.
982 * config/tc-mmix.c (mmix_adjust_symtab): Likewise.
983 * config/tc-sh64.c (shmedia_frob_file_before_adjust): Likewise.
984 (shmedia_md_convert_frag): Likewise.
985 * symbols.c (print_symbol_value_1): Likewise.
986 * write.c (write_object_file): Likewise.
987
55e08f71
NC
9882005-04-20 Nick Clifton <nickc@redhat.com>
989
5f9084e9
NC
990 * config/tc-xtensa.c (get_aligned_diff): Change type of
991 branch_align to offsetT so that its signedness matches that of
992 target_size.
993
55e08f71
NC
994 * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
995 number into a readable string.
996 (load_register): Likewise.
997
1f8b1395
AS
9982005-04-20 Andreas Schwab <schwab@suse.de>
999
1000 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
1001
b0825cc2
DM
10022005-04-19 David S. Miller <davem@davemloft.net>
1003
1004 * config/tc-sparc.c (md_assemble): If sparc_ip gives us a
1005 NULL insn, exit early. Remove now spurious NULL checks.
1006 (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn
1007 to NULL and exit.
1008
91c4c449
JB
10092005-04-19 Jan Beulich <jbeulich@novell.com>
1010
1011 * symbols.h (symbol_find_base): Remove prototype.
1012 * symbols.c (save_symbol_name): Remove code section conditional upon
1013 STRIP_UNDERSCORE.
1014 (symbol_find): Remove.
1015 (symbol_find_base): Rename to symbol_find.
1016 * subsegs.c (section_symbol): Replace use of symbol_find_base with
1017 symbol_find.
1018 * config/obj-coff.c (tag_insert): Remove code section conditional
1019 upon STRIP_UNDERSCORE.
1020 (obj_coff_def): Likewise.
1021 (obj_coff_endef): Replace use of symbol_find_base with symbol_find.
1022 (coff_frob_symbol): Likewise.
1023 (yank_symbols): Likewise.
1024 (c_section_symbol): Likewise.
1025 * config/obj-coff.h (DO_NOT_STRIP): Remove.
1026 * config/tc-arm.c (symbol_locate): Remove code section conditional
1027 upon STRIP_UNDERSCORE.
1028 * config/tc-h8300.h (DO_NOT_STRIP): Remove.
1029 * config/tc-h8500.h (DO_NOT_STRIP): Remove.
1030 * config/tc-sh.h (DO_NOT_STRIP): Remove.
1031 * config/tc-w65.h (DO_NOT_STRIP): Remove.
1032 * config/tc-z8k.h (DO_NOT_STRIP): Remove.
1033
80b8152b
AS
10342005-04-19 Andreas Schwab <schwab@suse.de>
1035
1036 * config/tc-ia64.c (md_assemble): Fix error message for wrong
1037 access to application registers.
1038
4d56c0a0
JB
10392005-04-19 Jan Beulich <jbeulich@novell.com>
1040
1041 * config/te-sysv32.h: Remove.
1042 * Makefile.am (TARG_ENV_HFILES): Remove reference to
1043 config/te-sysv32.h.
1044 * Makefile.in (TARG_ENV_HFILES): Likewise.
1045
4fdd1e4f
JB
10462005-04-19 Jan Beulich <jbeulich@novell.com>
1047
1048 PR/847
1049 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero-
1050 length symbols.
1051
791fe849
MK
10522005-04-18 Mark Kettenis <kettenis@gnu.org>
1053
1054 * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
1055
9ee2a2d4
MR
10562005-04-18 Maciej W. Rozycki <macro@linux-mips.org>
1057
1058 * config/tc-mips.c (normalize_constant_expr): Don't check for
1059 HAVE_32BIT_GPRS.
1060 (check_absolute_expr): Only call normalize_constant_expr() if
1061 HAVE_32BIT_GPRS.
1062 (mips_ip): Likewise.
1063
1064 * config/tc-mips.c (check_absolute_expr): Fix formatting.
1065
e6ca91be
JB
10662005-04-18 Jan Beulich <jbeulich@novell.com>
1067
1068 * macro.c (free_token): New, freeing all the memory associated with a
1069 macro.
1070 (do_formals): Move initializers to ...
1071 (define_macro): ... here.
1072 (delete_macro): Convert passed in name to lower case. Warn when
1073 purging macro that doesn't exist. Use hash_jam instead of hash_delete.
1074
9f872bbe
MR
10752005-04-15 Maciej W. Rozycki <macro@linux-mips.org>
1076
1077 * config/tc-mips.c (normalize_constant_expr): Fix formatting.
1078
8fe53b44
JB
10792005-04-15 Jan Beulich <jbeulich@novell.com>
1080
1081 * config/obj-elf.c (obj_elf_struct): New.
1082 (elf_pseudo_table). Use it for .offset and .struct.
1083
0e5cd789 10842005-04-14 Bob Wilson <bob.wilson@acm.org>
140fe8df 1085 Sterling Augustine <sterling@tensilica.com>
0e5cd789
BW
1086
1087 * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
1088 than the section alignment.
1089
dd49a749
BW
10902005-04-14 Bob Wilson <bob.wilson@acm.org>
1091 H.J. Lu <hongjiu.lu@intel.com>
1092
1093 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.
1094 * config/tc-xtensa.c (xg_translate_sysreg_op,
1095 xtensa_translate_old_userregs_ops,
1096 xtensa_find_unaligned_branch_targets,
1097 xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags,
1098 relax_frag_add_nop): Support 64-bit host.
1099 (xtensa_mark_literal_pool_location, xtensa_move_literals): Use
1100 tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
1101
26eebcf5
MK
11022005-04-14 Mark Kettenis <kettenis@gnu.org>
1103
64efe625
MK
1104 * configure.tgt: Add support for OpenBSD/sparc ELF.
1105
26eebcf5
MK
1106 * configure.tgt: Set emulation for mips-*-openbsd*.
1107 Remove broken mips-dec-openbsd* config.
1108 * configure.in: Set default ABI for mips64-*-openbsd*.
1109 * configure: Regenerate.
1110
39a59cf8
MR
11112005-04-14 Maciej W. Rozycki <macro@linux-mips.org>
1112
1113 * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP
1114 optimization for constant addresses.
1115
f7a568ea
NC
11162005-04-14 Nick Clifton <nickc@redhat.com>
1117
1118 * as.c (main): Move parse_args before symbol_begin and frag_init
1119 so that the hash table size can be set before it is used.
1120 * hash.c: Use an unsigned long type for the size of the hash
1121 tables.
3c9d25f4 1122 * hash.h (set_gas_hash_table_size): Update the prototype.
f7a568ea 1123
9e9b66a9
AM
11242005-04-14 Alan Modra <amodra@bigpond.net.au>
1125
1126 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1127 * acinclude.m4: Include ../bfd/warning.m4.
1128 * configure.in: Invoke AM_BINUTILS_WARNINGS.
1129 * Makefile.in: Regenerate.
1130 * configure: Regenerate.
1131 * doc/Makefile.in: Regenerate.
1132
2051e8c4
MR
11332005-04-13 Maciej W. Rozycki <macro@linux-mips.org>
1134
1135 * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro.
1136 (normalize_address_expr): New function to sign-extend address
1137 offsets that fit into 32 bits in 32-bit mode.
1138 (macro_build_ldst_constoffset): Use normalize_address_expr()
1139 instead of a handcoded sequence.
1140 (load_register): Likewise. Report oversized numbers in a useful
1141 way.
1142 (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only
1143 for constant addresses. Report oversized numbers in a useful way.
1144 (mips_ip): Use normalize_address_expr() for addresses.
1145
bc4bd9ab
MK
11462005-04-12 Mark Kettenis <kettenis@gnu.org>
1147
1148 * config/tc-i386.c (output_insn): Handle VIA PadLock instructions
1149 similar to other instructions now that they're marked as ImmExt.
1150
4bdd3565
NC
11512005-04-12 Nick Clifton <nickc@redhat.com>
1152
1153 * hash.c (DEFAULT_SIZE): Delete. Replace with:
1154 (gas_hash_table_size): New static variable.
1155 (set_gas_hash_table_size): New function: Records a requested size
1156 for the hash tables.
1157 (get_gas_hash_table_size): New function: Return a prime number
1158 near the requested size of the hash table.
1159 (hash_new): Use get_gas_hash_table_size.
1160 * hash.h: Add a prototype for set_gas_hash_table_size.
1161 * as.c (show_usage): Add description of new switches: --hash-size
1162 and --reduce-memory-overheads.
1163 (option_values): Add OPTION_HASH_TABLE_SIZE and
1164 OPTION_REDUCE_MEMORY_OVERHEADS.
1165 (std_longpopts): Add entries for the new options.
1166 (parse_args): Handle the new options.
1167 * Makefile.am: Add a dependency of as.c on hash.h.
1168 * Makefile.in: Regenerate.
1169 * doc/as.texinfo: Document the new switches.
1170 * NEWS: Mention the new switches.
1171
f394e3dd
NC
11722005-04-12 Nick Clifton <nickc@redhat.com>
1173
1174 PR gas/818
1175 * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3]
1176 synonyms.
1177
ceae3e33
AM
11782005-04-12 Alan Modra <amodra@bigpond.net.au>
1179
1180 * Makefile.am: Run "make dep-am".
1181 * Makefile.in: Regenerate.
1182
2eccd1b4
BW
11832005-04-11 Sterling Augustine <sterling@tensilica.com>
1184 Bob Wilson <bob.wilson@acm.org>
1185
1186 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.
1187
333f7af7
MK
11882005-04-11 Mark Kettenis <kettenis@gnu.org>
1189
1190 * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
1191
5e75c3ab
JB
11922005-04-11 Jan Beulich <jbeulich@novell.com>
1193
1194 * NEWS: Mention these changes and their effects.
1195 * macro.c (get_token): Use is_name_beginner/is_part_of_name/
1196 is_name_ender.
1197 (check_macro): Likewise.
1198 (buffer_and_nest): Likewise. Permit multiple labels. Don't discard
1199 labels together with the closing pseudo-op.
1200 (macro_expand_body): Adjust comment. Range-check input before use.
1201 Adjust mis-spelled diagnostic. Use is_name_beginner.
1202 * read.c (try_macro): New.
1203 (read_a_source_file): New static variable last_eol. Don't list
1204 macro expansion lines more than once. Call try_macro.
1205 (s_macro): Set section of line_label to absolute instead of undefined.
1206 * doc/as.texinfo: Add information on the caveats of these changes.
1207
514d955d
AM
12082005-04-11 Alan Modra <amodra@bigpond.net.au>
1209
1210 * symbols.c (symbol_X_add_number): Change return type to "offsetT *".
1211 * symbols.h (symbol_X_add_number): Update prototype.
1212
a9fcb2a9
EC
12132005-04-10 Eric Christopher <echristo@redhat.com>
1214
1215 * symbols.c (symbol_X_add_number): Fix warning.
1216
045b540e
L
12172005-04-10 H.J. Lu <hongjiu.lu@intel.com>
1218
1219 * config/tc-m68k.c (md_begin): Support 64bit host.
1220 (get_num): Support 64bit BFD on 32bit host.
1221
b215186b
L
12222005-04-10 H.J. Lu <hongjiu.lu@intel.com>
1223
1224 * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
1225
be95a9c1
AM
12262005-04-09 Alan Modra <amodra@bigpond.net.au>
1227
31d20a21
AM
1228 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
1229 call. Don't do the COFF hacks for multi-emulation gas. Move
1230 demand_empty_rest_of_line back to caller.
1231 (s_set, equals): demand_empty_rest_of_line here.
1232
be95a9c1
AM
1233 PR gas/827
1234 * as.h (rs_dummy): Define.
1235 * symbols.c (symbol_X_add_number): New function.
1236 * symbols.h (symbol_X_add_number): Declare.
1237 * stabs.c (aout_process_stab): Tidy symbol frag setting.
1238 * read.c (assign_symbol): New function, split out from s_set.
1239 Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy.
1240 Fix COFF hacks for multi-emulation gas.
1241 (s_set): Call assign_symbol. Remove "register" keyword.
1242 (set_zero_frag): New function.
1243 (pseudo_set): Always check for assignment to section syms.
1244 Always set segment and frag of symbol, and likewise extern for
1245 aout/bout. Handle assignment of sym=sym+/-const specially. Don't
1246 special case exp.X_add_number non-zero for O_symbol expressions.
1247 (equals): Use assign_symbol.
1248
6624cbde
BW
12492005-04-08 Bob Wilson <bob.wilson@acm.org>
1250
1251 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
1252 SEC_MERGE sections.
1253
dbbaec26
L
12542005-04-06 H.J. Lu <hongjiu.lu@intel.com>
1255
1256 * config/tc-i386.c (tc_gen_reloc): Don't turn
1257 BFD_RELOC_X86_64_32S into BFD_RELOC_32.
1258
0d6af1ab
NC
12592005-04-06 Nick Clifton <nickc@redhat.com>
1260
1261 * po/rw.po: New translation: Kinyarwanda
1262 * configure.in (ALL_LINGUAS): Add rw
1263 * configure: Regenerate.
1264
664df4e4
BW
12652005-04-05 Sterling Augustine <sterling@tensilica.com>
1266 Bob Wilson <bob.wilson@acm.org>
1267
1268 * config/tc-xtensa.c (branch_align_power): New.
1269 (xtensa_find_unaligned_branch_targets, get_aligned_diff,
1270 future_alignment_required): Use branch_align_power to check section
1271 alignment as well as xtensa_fetch_width when aligning branch targets.
1272
d77b99c9
BW
12732005-04-05 Bob Wilson <bob.wilson@acm.org>
1274
1275 * config/tc-xtensa.c: Warning fixes throughout.
1276 (xtensa_fetch_width): Change to unsigned.
1277 (assemble_nop, xtensa_find_unaligned_branch_targets,
1278 xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
1279 is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
1280 min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
1281 unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
1282 count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
1283 get_text_align_max_fill_size, get_text_align_nop_count,
1284 get_text_align_nth_nop_size, get_noop_aligned_address,
1285 get_aligned_diff, convert_frag_align_next_opcode,
1286 convert_frag_immed_finish_loop, xtensa_create_property_segments,
1287 xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
1288 types, avoiding size_t and using offsetT and addressT appropriately.
1289 (get_text_align_power): Clean up types. Avoid incorrect bound.
1290 (get_text_align_fill_size): Clean up types. Restructure for clarity.
1291
da9f89d4
L
12922005-04-04 H.J. Lu <hongjiu.lu@intel.com>
1293
1294 * config/tc-ia64.c (start_unwind_section): Undo the change
1295 of 2004-08-18.
1296 (generate_unwind_image, dot_endp): Likewise.
1297
f6fe78d6
JW
12982005-04-01 David Mosberger <davidm@hpl.hp.com>
1299
1300 * config/tc-ia64.c (ia64_handle_align): Move le_nop and
1301 le_nop_stop arrays and initializers to file scope.
1302 (md_begin): When generating code for anything other than
1303 Itanium 1, use MMI instead of MFI NOP bundles as a filler.
1304
a7d61044
JB
13052005-04-01 Jan Beulich <jbeulich@novell.com>
1306
1307 * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
1308 immediates.
1309
d2c5f73e
NC
13102005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1311
1312 * NEWS: Mention [fdgh]_floating.
1313 * config/atof-vax.c: Fix some whitespace.
1314 * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
1315
56f36663
NC
13162005-04-01 Nick Clifton <nickc@redhat.com>
1317
1318 * configure.in: Add a check for <unistd.h> providing a prototype
1319 for getopt() which is compatible with the one in
1320 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1321 * configure: Regenerate.
1322 * config.in (HAVE_DECL_GETOPT): Add.
1323
8a75718c
JB
13242005-04-01 Jan Beulich <jbeulich@novell.com>
1325
1326 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
1327
ae8887b5
JB
13282005-04-01 Jan Beulich <jbeulich@novell.com>
1329
1330 * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
1331 (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
1332
05ea83ed
JB
13332005-03-30 Julian Brown <julian@codesourcery.com>
1334
1335 * config/tc-arm.c (arm_adjust_symtab): Rename
1336 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
1337
9d2da7ca
JB
13382005-03-30 Julian Brown <julian@codesourcery.com>
1339
1340 * config/tc-arm.c (mapping_state): Change documentation in function
1341 comment to cross-reference spec instead. Change type of mapping symbols
1342 to BSF_NO_TYPE.
1343 (arm_adjust_symtab): Don't change type of mapping symbols here.
1344
e8a38df5
AL
13452005-03-30 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1346
1347 * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
1348 * config.in: Regenerate.
1349 * configure: Regenerate.
1350 * configure.in: Check for ffs decl and alphabetize.
1351
ba93b8ac
DJ
13522005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1353 Phil Blundell <philb@gnu.org>
1354
1355 * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
1356 (md_apply_fix3): Mark TLS symbols.
1357 (tc_gen_reloc): Handle TLS relocations.
1358 (arm_fix_adjustable): Ignore TLS relocations.
1359 (s_arm_elf_cons): Support expressions after decorated symbols.
1360
84798bd6
JB
13612005-03-29 Julian Brown <julian@codesourcery.com>
1362
1363 * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
1364 whether personality routine index N has been output for this section.
1365 (mapping_state): tc_segment_info_data now struct not enum.
1366 (arm_elf_change_section): Likewise, and marked_pr_dependency is now
1367 handled on section change.
1368 (create_unwind_entry): Previous code to output dependency removed.
1369 (s_arm_unwind_fnend): Output dependency if it hasn't been done already
1370 for this section.
1371 * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
1372 arm_segment_info_type.
1373 (arm_segment_info_type): New struct.
84798bd6 1374
7b1cc377
BW
13752005-03-28 Sterling Augustine <sterling@tensilica.com>
1376 Bob Wilson <bob.wilson@acm.org>
1377
1378 * config/tc-xtensa.c (do_align_targets): Update comment.
1379 (xtensa_frob_label): Compute "freq" before possibly switching frags.
1380 Insert a LOOP_END frag before every loop target, and do not overload
1381 DESIRE_ALIGN_IF_TARGET frags with loop end information.
1382 (xg_assemble_vliw_tokens): Use do_align_targets.
1383 (xtensa_fix_target_frags): Remove code to convert a
1384 DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
1385 negatable branch at the end of a loop.
1386 (frag_can_negate_branch): Delete.
1387
8c2fda1d
L
13882005-03-28 David Mosberger <davidm@hpl.hp.com>
1389 H.J. Lu <hongjiu.lu@intel.com>
1390
1391 PR 803
1392 NEWS: Mention "-mtune=[itanium1|itanium2]".
1393
1394 * config/tc-ia64.c (md): Add tune.
1395 (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
1396 (md_show_usage): Add "-mtune=[itanium1|itanium2]".
1397 (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
1398 B unit NOPs are discouraged for McKinley-derived cores.
1399 (md_begin): Don't hardcode the "extra_goodness()" function in
1400 the comment...
1401 (ia64_init): Set md.tune to itanium2.
1402
1403 * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
1404 * doc/c-ia64.texi: Likewise.
1405
161840f9
ILT
14062005-03-27 Ian Lance Taylor <ian@airs.com>
1407
1408 * config/obj-coff.c (coff_frob_symbol): When crashing because of a
1409 bad C_EFCN symbol, print its name.
1410
7c834684
BW
14112005-03-25 Bob Wilson <bob.wilson@acm.org>
1412
1413 * config/tc-xtensa.c (use_longcalls): Delete.
1414 (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
1415 the use_longcalls flag is set. Do this before checking the segment.
1416 (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never
1417 expand direct calls at this point.
1418 (xtensa_set_frag_assembly_state): Set use_longcalls flag.
1419 (xtensa_find_unmarked_state_frags): Likewise.
1420 (md_assemble): Do not disable longcalls by setting is_specific_opcode.
1421 (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
1422 (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
1423 * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
1424
ff1e783f
HPN
14252005-03-25 Hans-Peter Nilsson <hp@bitrange.com>
1426
1427 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
1428
695a4822
HPN
14292005-03-25 Hans-Peter Nilsson <hp@axis.com>
1430
1431 * config/tc-cris.h: Convert to ISO C90.
1432 * config/tc-cris.c: Ditto.
1433 (md_estimate_size_before_relax): Remove obsolete comment for
1434 parameter "segment_type".
1435 (md_begin): Document reason for cast of hash_insert argument.
1436 (md_atof): Correct type of parameter "type".
1437
ea1562b3
NC
14382005-03-24 Nick Clifton <nickc@redhat.com>
1439
1440 * write.h (bit_fix_new): Remove redundant prototype.
1441 * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
1442 * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
1443 * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
1444 * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
1445 * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
1446 * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
1447 * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
1448 * config/obj-som.c: Convert to ISO-C90 and fix formatting.
1449 * config/obj-som.h: Convert to ISO-C90 and fix formatting.
1450 * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
1451 * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
1452 * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
1453 * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
1454 * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
1455 * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
1456 * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
1457 * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
1458 * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
1459 * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
1460 * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
1461 * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
1462 * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
1463 * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
1464 * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
1465 * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
1466 * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
1467 * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
1468 * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
1469 * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
1470 * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
1471 * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
1472 * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
1473 * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
1474 * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
1475 * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
1476 * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
1477 * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
1478 * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
1479 * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
1480 * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
1481 * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
1482 * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
1483 * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
1484 * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
1485 * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
1486 * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
1487 * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
1488 * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
1489 * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
1490 * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
1491 * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
1492 * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
1493 * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
1494 * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
3c9d25f4 1495 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
ea1562b3 1496
d110d6a2
JB
14972005-03-23 Jim Blandy <jimb@redhat.com>
1498
1499 * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
1500 attributes properly.
1501
ed84e695
NC
15022005-03-23 Mike Frysinger <vapier@gentoo.org>
1503 Nick Clifton <nickc@redhat.com>
1504
1505 * configure.tgt: Accept any C library to accompany a GNU Linux
1506 implementation, not just the GNU C library.
1507 * configure.in: Likewise.
1508 * configure: Regenerate.
1509
4d5f9b2a
NC
15102005-03-23 Nick Clifton <nickc@redhat.com>
1511
1512 * config/tc-tic30.c: Convert to ISO C90 formatting.
1513 * config/tc-tic30.h: Convert to ISO C90 formatting.
1514 * config/tc-pdp11.c: Convert to ISO C90 formatting.
1515 * config/atof-vax.c: Convert to ISO C90 formatting.
1516
704803a9
MR
15172005-03-21 Maciej W. Rozycki <macro@mips.com>
1518
1519 * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
1520 relocations correctly as well.
1521 (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
1522 relocations in mergeable sections section-relative either.
1523
6e2a91a3
BW
15242005-03-21 Bob Wilson <bob.wilson@acm.org>
1525
1526 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
1527
3d063691
NC
15282005-03-21 Nick Clifton <nickc@redhat.com>
1529
1a66a017
NC
1530 * config/tc-sh.c (sh_elf_final_processing): Fix compile time
1531 warning by providing a prototype for sh_symbian_find_elf_flags.
1532
3d063691
NC
1533 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
1534 previous delta.
1535
6f19c13c
AM
15362005-03-21 Alan Modra <amodra@bigpond.net.au>
1537
1538 * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
1539 along with other formats that set bfd_gas. Remove unnecessary
1540 setting of bfd_gas. Delete strongarm cases in generic_target
1541 switch.
1542
bd17c2c3
AM
15432005-03-21 Alan Modra <amodra@bigpond.net.au>
1544
1545 PR gas/780
1546 * config/tc-m68k.c (TRUNC, SEXT): Define.
1547 (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
1548 (m68k_ip): Truncate or sign extend expressions as appropriate.
1549 (get_num): Likewise.
1550 (md_apply_fix3): Use SEXT.
1551
ec91a2c2
AM
15522005-03-21 Alan Modra <amodra@bigpond.net.au>
1553
1554 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
1555 (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
1556 (obj-vms.o): Delete rule.
1557 Run "make dep-am".
1558 * Makefile.in: Regenerate.
1559 * aclocal.m4: Regenerate.
1560 * doc/Makefile.in: Regenerate.
1561 * po/POTFILES.in: Regenerate.
1562
238d258f
NC
15632005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
1564
1565 * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
1566 flag for coldfire v4e.
1567
30f725a1
BW
15682005-03-17 Bob Wilson <bob.wilson@acm.org>
1569
1570 * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
1571 xg_apply_fix_value and return a value to indicate success.
1572 (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative.
1573 (xtensa_force_relocation): Remove checks for VTABLE relocs.
1574 (xtensa_validate_fix_sub): New.
1575 (xtensa_fix_adjustable): Remove check for external or weak symbols.
1576 (tc_gen_reloc): Move code to handle difference of symbols and code to
1577 apply tentative fix values to ...
1578 (md_apply_fix3): ...here. Enable standard overflow checks for simple
1579 8, 16, and 32 bit relocations. Apply fixes for slot-specific
1580 relocations when linkrelax flag is not set.
1581 * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
1582 (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
1583
a724f0f4
JB
15842005-03-17 Jan Beulich <jbeulich@novell.com>
1585
1586 * config/tc-i386.c (i386_scale): Beautify error message.
1587 (Intel syntax comments): Update.
1588 (struct intel_parser_s): Add fields in_offset, in_bracket, and
1589 next_operand.
1590 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
1591 Remove declarations.
1592 (intel_bracket_expr): Declare.
1593 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
1594 of the function body in a loop allowing to split an operand into two.
1595 Replace calls to malloc and checks of it returning non-NULL with
1596 calls to xmalloc/xstrdup.
1597 (intel_expr): SHORT no longer handled here. Add comment indicating
1598 comparison ops need implementation.
1599 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
1600 Check right operand of - does not specify a register when parsing
1601 the address of a memory reference.
1602 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
1603 Check operands do not specify a register when parsing the address of
1604 a memory reference.
1605 (intel_e06, intel_e06_1): Likewise.
1606 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
1607 handle SHORT as well as unary + and -. Don't accept : except for
1608 segment overrides or in direct far jump/call insns.
1609 (intel_brack_expr): New.
1610 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
1611 intel_brack_expr.
1612 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
1613 through in certain cases. Use intel_brack_expr. Add new diagnostics.
1614 Allow symbolic constants as register scale value.
1615 (intel_get_token): Replace call to malloc and check of return value
1616 with call to xmalloc. Change handling for FLAT to match MASM's.
1617 (intel_putback_token): Don't try to back up/free current token if
1618 that is T_NIL.
1619
deeaaff8
DJ
16202005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
1621
1622 * configure.tgt: Set emulation for arm-*-eabi*.
1623 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
1624 * config/te-armeabi.h: New file.
1625 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
1626 * config/te-symbian.h: Include "te-armeabi.h".
1627
199fea98
NC
16282005-03-16 Nick Clifton <nickc@redhat.com>
1629
1630 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
1631 local variable in case it is clobbered by the setjmp.
1632
1ad12f97
NC
16332005-03-16 Nick Clifton <nickc@redhat.com>
1634 Ben Elliston <bje@au.ibm.com>
1635
569acd2c 1636 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 1637 compiler command line. Enabled by default. Disable via
569acd2c 1638 --disable-werror.
1ad12f97
NC
1639 * configure: Regenerate.
1640
a5324a3e
NC
16412005-03-16 Nick Clifton <nickc@redhat.com>
1642
1643 * config/obj-coff.h: Convert to ISO C90 formatting.
1644 * config/obj-coff.c: Convert to ISO C90 formatting.
1645
b05fe5cf
ZW
16462005-03-15 Zack Weinberg <zack@codesourcery.com>
1647
1648 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
1649 is_mls parameter; do not diagnose Rm==Rd when is_mls.
1650 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
1651 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
1652 (insns): Add ARMv6T2 instructions:
1653 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
1654 (arm_archs): Add V6T2 variants.
1655
957d91c1
NC
16562005-03-15 Nick Clifton <nickc@redhat.com>
1657
1658 * NEWS: Add cutoff for changes in 2.16 release.
1659
43c3ab55
JB
16602005-03-15 Jan Beulich <jbeulich@novell.com>
1661
1662 * expr.c (operand): Merge handling of unary + into that for unary
1663 -, !, and ~.
1664
5862107c
EC
16652005-03-14 Eric Christopher <echristo@redhat.com>
1666
1667 * config/tc-mips.c: Include dw2gencfi.h.
1668 (mips_cfi_frame_initial_instructions): New.
1669 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
1670 (tc_cfi_frame_initial_instructions): Ditto.
1671 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
1672 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
1673 * Makefile.am: Update dependencies.
1674 * Makefile.in: Regenerate.
1675
729ae8d2
AM
16762005-03-15 Alan Modra <amodra@bigpond.net.au>
1677
1678 * po/es.po: Commit new Spanish translation.
1679
882cb63e
AM
16802005-03-14 Alan Modra <amodra@bigpond.net.au>
1681
1682 * po/tr.po: Commit new Turkish translation.
1683
885fc257
ZW
16842005-03-12 Zack Weinberg <zack@codesourcery.com>
1685
1686 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
1687 wfi, yield.
1688
e330299e
DJ
16892005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1690
1691 * config-gas.com: Mark vax-vms as obsolete.
1692 * configure.in: Remove fmt=vms support.
1693 * config.in: Regenerate.
1694 * configure: Regenerate.
1695 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
1696
7b1cc377
BW
16972005-03-10 Sterling Augustine <sterling@tensilica.com>
1698 Bob Wilson <bob.wilson@acm.org>
0fa77c95
BW
1699
1700 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
1701 when checking if xg_resolve_literals needs to be called.
1702 * config/tc-xtensa.h: Fix spelling typo in a comment.
1703
4962e196
JB
17042005-03-10 Jan Beulich <jbeulich@novell.com>
1705
1706 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
1707 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
1708 crafted structure declarations with the types from macro.h.
1709
4184909a
RS
17102005-03-09 Richard Sandiford <rsandifo@redhat.com>
1711
1712 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
1713 for -mno-shared optimization.
1714
7d8e00cf
RS
17152005-03-09 Richard Sandiford <rsandifo@redhat.com>
1716
1717 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
1718 (MAX_NOPS): Bump to 4.
1719 (mips_fix_vr4130): New variable.
1720 (nops_for_vr4130): New function.
1721 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
1722 nops_for_vr4130 if working around VR4130 errata.
1723 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
1724 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
1725 (md_parse_option): Handle them.
1726 (md_show_usage): Print them.
1727 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
1728
dc36a61f
RS
17292005-03-09 Richard Sandiford <rsandifo@redhat.com>
1730
1731 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
1732 branch delay code.
1733
7d10b47d
RS
17342005-03-09 Richard Sandiford <rsandifo@redhat.com>
1735
1736 * config/tc-mips.h (mips_flush_pending_output): Delete.
1737 (mips_emit_delays): Declare.
1738 (md_flush_pending_output): Use mips_emit_delays.
1739 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
1740 the previous instructions.
1741 (md_begin, append_insn, md_parse_option): Update callers.
1742 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
1743 start_noreorder.
1744 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
1745 (s_gpdword): Update callers.
1746 (start_noreorder, end_noreorder): New functions.
1747 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
1748 manipulating mips_opts or prev_nop_frag directly.
1749 (mips_flush_pending_output): Delete.
1750
404a8071
RS
17512005-03-09 Richard Sandiford <rsandifo@redhat.com>
1752
1753 * config/tc-mips.c (mips_move_labels): New function, taken from...
1754 (append_insn, mips_emit_delays): ...here.
1755
71400594
RS
17562005-03-09 Richard Sandiford <rsandifo@redhat.com>
1757
1758 * config/tc-mips.c (MAX_NOPS): New macro.
1759 (history): Resize to 1 + MAX_NOPS.
1760 (fix_vr4120_class): New enumeration.
1761 (vr4120_conflicts): New variable.
1762 (init_vr4120_conflicts): New function.
1763 (md_begin): Call it.
1764 (insn_uses_reg): Constify first argument.
1765 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
1766 (nops_for_insn_or_target): New functions.
1767 (append_insn): Use the new nops_for_* functions instead of inline
1768 delay checks. Generalize prev_nop_frag handling to handle an
1769 arbitrary history length. Insert nops into the history buffer
1770 once the number of nops in prev_nop_frag is fixed.
1771 (emit_delays): Use nops_for_insn instead of inline delay checks.
1772
9b91f544
RS
17732005-03-09 Richard Sandiford <rsandifo@redhat.com>
1774
1775 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
1776 check from branch delay code. Remove unnecessary check for branches.
1777
1e915849
RS
17782005-03-09 Richard Sandiford <rsandifo@redhat.com>
1779
1780 * config/tc-mips.c (dummy_opcode): Delete.
1781 (nop_insn, mips16_nop_insn): New variables.
1782 (NOP_INSN): New macro.
1783 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
1784 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
1785 (md_begin): Initialize nop_insn and mips16_nop_insn.
1786 (append_insn): Use the new emit_nop function to add nops, recording
1787 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
1788 to reserve room for the instruction and install_insn to install the
1789 final form. Use insert_into_history to record the instruction in
1790 the history buffer. Use move_insn to do delay slot filling.
1791 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
1792 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
1793 (mips16_ip): Use create_insn to initialize mips_cl_insns.
1794
bf12938e
RS
17952005-03-09 Richard Sandiford <rsandifo@redhat.com>
1796
1797 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
1798 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
1799 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
1800 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
1801 (mips16_ip): Use the new macros instead of explicit masks and shifts.
1802
a38419a5
RS
18032005-03-09 Richard Sandiford <rsandifo@redhat.com>
1804
1805 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
1806 and extended_p fields with a single fixed_p field.
1807 (append_insn, mips_no_prev_insn): Adjust accordingly.
1808
2fa15973
RS
18092005-03-09 Richard Sandiford <rsandifo@redhat.com>
1810
1811 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
1812 a single mips16_absolute_jump_p bit.
1813 (append_insn): Adjust accordingly.
1814
47e39b9d
RS
18152005-03-09 Richard Sandiford <rsandifo@redhat.com>
1816
1817 * config/tc-mips.h (mips_cl_insn): Move definition to...
1818 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
1819 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
1820 and extended_p.
1821 (history): New variable.
1822 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
1823 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
1824 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
1825 (prev_prev_insn_unreordered): Delete.
1826 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
1827 (macro_start): Replace uses of prev_insn* with the equivalent history[]
1828 field.
1829
399132af
DJ
18302005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
1831
1832 * doc/Makefile.am: Update as.info dependencies.
1833 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
1834
18352005-03-08 Jan Beulich <jbeulich@novell.com>
fffeaa5f
JB
1836
1837 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
1838 error, and point to .purgem documentation if someone really needs
1839 re-definitions.
1840 * NEWS: Mention macro redefinition is now an error.
1841
9b505842
JB
18422005-03-08 Jan Beulich <jbeulich@novell.com>
1843
1844 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
1845 emitted to. Add more precise diagnostics for non-fitting insns based
1846 on that. Eliminate now superfluous special casing of MLX. Clear out
1847 slot information when dropping an insn.
1848
ef6a2b41
JB
18492005-03-08 Jan Beulich <jbeulich@novell.com>
1850
1851 * config/tc-ia64.c (parse_section_name): Rename to...
1852 (cross_section): In addition to separating the name from the rest of
1853 the arguments, also carry out the operation.
1854 (dot_xdata): Use cross_section.
1855 (dot_float_cons): Likewise.
1856 (dot_xstringer): Likewise.
1857 (dot_xdata_ua): Likewise.
1858 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
1859
06647dfd
AM
18602005-03-05 Alan Modra <amodra@bigpond.net.au>
1861
1862 * po/gas.pot: Regenerate.
1863
bbe506e8
TS
18642005-03-04 David Daney <ddaney@avtrex.com>
1865
1866 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
1867 instead of '_gp' for -mno-shared optimization.
1868 (s_cpload): Ditto.
1869 (s_abicalls): Document it in the comment.
1870 (md_show_usage): Document the -mno-shared option.
1871
aed1a261
RS
18722005-03-04 Richard Sandiford <rsandifo@redhat.com>
1873
1874 * config/tc-mips.c (mips_set_options): Add sym32 field.
1875 (mips_opts): Initialize it.
1876 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
1877 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
1878 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
1879 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
1880 when deciding whether to use a symbolic %highest/%higher expansion.
1881 (macro): Likewise. Remove o64/n32 linux hack. Always use
1882 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
1883 and "la". Handle constants separately from symbolic expressions in
1884 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
1885 and using load_register to load the high part of the address.
1886 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
1887 (OPTION_ELF_BASE): Bump by 2.
1888 (md_longopts): Add entries for -msym32 and -mno-sym32.
1889 (md_parse_option): Handle them.
1890 (usage): Document them.
1891 (s_mipsset): Handle ".set sym32" and ".set nosym32".
1892 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
1893 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
1894 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
1895 -msym32 and -mno-sym32.
1896
6caf9ef4
TS
18972005-03-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1898
1899 * config/tc-mips.c (load_address): Implement GP optimization
1900 for 64bit address space non-PIC. Fix formatting.
1901 (macro): Likewise. Simplify code.
1902 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
1903 (mips_after_parse_args): Simplify code.
1904
406a7f05
NC
19052005-03-03 Nick Clifton <nickc@redhat.com>
1906
fbacee5b
NC
1907 * expr.c (operand): Remove redundant code enclosed by #ifdef
1908 RELAX_PAREN_GROUPING....#endif.
1909
77ccfee5
NC
1910 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
1911 reloc is the difference of two symbols defined in the same
1912 section.
1913
406a7f05
NC
1914 * config/tc-iq2000.c (line_comment_chars): Include the # character
1915 as otherwise this breaks #APP/#NO_APP processing.
1916
2f12d57f
RR
19172005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1918
1919 * config/tc-arc.c(md_assemble): Remove dead code for handling
1920 immediate indexing of ld and st .
1921
3f98094e
DJ
19222005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
1923 Joseph Myers <joseph@codesourcery.com>
1924
1925 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
1926 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
1927 (parse_relocation): Check for a word break after a relocation
1928 operator.
1929 (md_apply_fix3): Handle TLS relocations, and mark thread-local
1930 symbols.
1931
ab1e9ef7
AM
19322005-03-02 Alan Modra <amodra@bigpond.net.au>
1933
1934 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
1935
bb14f524
JB
19362005-03-02 Jan Beulich <jbeulich@novell.com>
1937
1938 * as.c (main): Use unlink_if_ordinary instead of unlink.
1939 * messages.c (as_fatal): Likewise.
1940
c4a530c5
JB
19412005-03-02 Jan Beulich <jbeulich@novell.com>
1942
1943 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
1944 accesses.
1945 (parse_register): Allow cr8...15 in all modes.
1946
167c3097
JB
19472005-03-02 Jan Beulich <jbeulich@novell.com>
1948
1949 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
1950 etc. like normal symbol references (T_ID).
1951
71ba24a1
AM
19522005-03-02 Alan Modra <amodra@bigpond.net.au>
1953
1954 * symbols.c (fb_label_name): Fix silly thinko in last change.
1955
a76903bf
AM
19562005-03-02 Alan Modra <amodra@bigpond.net.au>
1957
9d0e75cb
AM
1958 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
1959 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
1960
a76903bf
AM
1961 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
1962
19632005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
b15c27d7
RR
1964
1965 PR gas/708
a76903bf 1966 * config/tc-arc.c (md_assemble): Initialize suffix for extension
b15c27d7 1967 suffixes also.
b15c27d7 1968
c9dea48b
AM
19692005-03-01 Alan Modra <amodra@bigpond.net.au>
1970
c7f17d46
AM
1971 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
1972
c9dea48b
AM
1973 * as.h (assert): Warning fix.
1974 * expr.c (expr): Correct assertion.
1975 * read.c (s_comm_internal): Remove assertion.
1976 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
1977 (fixup_segment): Remove assertion.
1978 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
1979 (md_apply_fix3): Likewise.
1980 * config/tc-i370.c (md_begin): Correct assertion.
1981 (i370_macro): Warning fix for assertion.
1982
44f2f9d2
AM
19832005-03-01 Alan Modra <amodra@bigpond.net.au>
1984
1985 * configure.in (AC_C_BIGENDIAN): Invoke.
1986 * configure: Regenerate.
1987 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
1988 host variable to set string header size.
1989 * config/obj-aout.c (obj_header_append): Don't use host structs.
1990 (obj_symbol_to_chars): Likewise.
1991 (obj_emit_strings): Likewise. Use the passed in output pointer.
1992 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
1993 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
1994 not sizeof host struct.
1995 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
1996 (obj_emit_strings): Likewise.
1997 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
1998 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
1999 sizeof host struct.
2000 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
2001 sizeof host struct.
2002 (host_number_to_chars): Define.
2003 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
2004 host internal struct to set header sizes.
2005 * config/tc-i960.c (md_number_to_field): Warning fix.
2006 (md_ri_to_chars): Use host byte order.
2007 (get_cdisp, md_apply_fix3): Warning fix.
055d1eb0 2008 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
44f2f9d2 2009
802a113d
NC
20102005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2011
2012 * doc/c-arc.texi: Update documentation about ARC's extension
2013 instructions.
2014
e5f129ad
SS
20152005-02-27 Svein E. Seldal <svein@dev.seldal.com>
2016
2017 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
2018 address for myself.
2019
2132e3a3
AM
20202005-02-23 Alan Modra <amodra@bigpond.net.au>
2021
2022 * cgen.c: Warning fixes.
2023 * config/tc-arc.c: Likewise.
2024 * config/tc-arm.c: Likewise.
2025 * config/tc-avr.c: Likewise.
2026 * config/tc-d10v.c: Likewise.
2027 * config/tc-d30v.c: Likewise.
2028 * config/tc-frv.c: Likewise.
2029 * config/tc-frv.h: Likewise.
2030 * config/tc-h8300.c: Likewise.
2031 * config/tc-h8500.c: Likewise.
2032 * config/tc-i370.c: Likewise.
2033 * config/tc-i960.c: Likewise.
2034 * config/tc-ia64.c: Likewise.
2035 * config/tc-ip2k.c: Likewise.
2036 * config/tc-m68hc11.c: Likewise.
2037 * config/tc-maxq.c: Likewise.
2038 * config/tc-mcore.c: Likewise.
2039 * config/tc-mips.c: Likewise.
2040 * config/tc-msp430.c: Likewise.
2041 * config/tc-pj.c: Likewise.
2042 * config/tc-ppc.c: Likewise.
2043 * config/tc-ppc.h: Likewise.
2044 * config/tc-s390.c: Likewise.
2045 * config/tc-sh.c: Likewise.
2046 * config/tc-sh64.c: Likewise.
2047 * config/tc-tic4x.c: Likewise.
2048 * config/tc-tic80.c: Likewise.
2049 * config/tc-v850.c: Likewise.
2050 * config/tc-vax.c: Likewise.
2051 * config/tc-w65.c: Likewise.
2052 * config/tc-xstormy16.c: Likewise.
2053 * config/tc-z8k.c: Likewise.
2054
ee3c9814
CM
20552005-02-22 Catherine Moore <clm@cm00re.com>
2056
2057 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
2058 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
2059
9b2f1d35
EC
20602005-02-22 Eric Christopher <echristo@redhat.com>
2061
2062 * config/tc-mips.c (struct proc): Change isym to
2063 func_sym. New member func_end_sym.
2064 (s_mips_ent): Update.
2065 (s_mips_end): Ditto. Add code to compute function size.
2066
b7712f8d
AM
20672005-02-22 Alan Modra <amodra@bigpond.net.au>
2068
2069 * read.c: Warning fixes.
2070 * config/obj-elf.c: Likewise.
2071
58e2ea4d
MR
20722005-02-22 Maciej W. Rozycki <macro@mips.com>
2073
2074 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
2075 emitting insn.
2076
ebe372c1
L
20772005-02-21 H.J. Lu <hongjiu.lu@intel.com>
2078
2079 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
2080 SEC_COFF_SHARED.
2081
2082 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
2083 SEC_TIC54X_BLOCK.
2084 (demand_empty_rest_of_line): Likewise.
2085 (tic54x_sblock): Likewise.
2086 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
2087
cc1bc22a
AM
20882005-02-21 Alan Modra <amodra@bigpond.net.au>
2089
2090 * read.c (address_bytes): New function.
2091 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
2092 (potable): Add "dc.a".
2093 (cons_worker): Handle "dc.a".
2094 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
2095
ac4528d2
AM
20962005-02-21 Alan Modra <amodra@bigpond.net.au>
2097
2098 * input-file.c (input_file_open): Rearrange to avoid warning.
2099
b5682e56
AM
21002005-02-19 Alan Modra <amodra@bigpond.net.au>
2101
2102 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
2103 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
2104 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
2105
8fc2e39e
TS
21062005-02-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2107
2108 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
2109 uses after .set noat.
2110 (load_address): Likewise.
2111 (macro): Likewise. Don't try to avoid $at use by sacrificing
2112 the target register before it is stored, it won't work.
2113
744b6414
JW
21142005-02-17 James E Wilson <wilson@specifixinc.com>
2115
2116 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
2117 see an instruction that specifies a template.
2118
30eb9c17
AM
21192005-02-18 Alan Modra <amodra@bigpond.net.au>
2120
2121 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
2122 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
2123 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
2124
91d777ee
L
21252005-02-17 H.J. Lu <hongjiu.lu@intel.com>
2126
2127 * NEWS: Mention "-mhint.b=[ok|warning|error]".
2128
2129 * config/tc-ia64.c (md): Add hint_b.
2130 (emit_one_bundle): Handle md.hint_b for "hint".
2131 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
2132 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
2133 (ia64_init): Set md.hint_b to error.
2134 (md_assemble): Handle md.hint_b for "hint.b".
2135
2136 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
2137 * doc/c-ia64.texi: Likewise.
2138
f17c130b
AM
21392005-02-17 Alan Modra <amodra@bigpond.net.au>
2140
2141 * tc.h (struct relax_type, relax_typeS): Move from here..
2142 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
2143 * ecoff.c (ecoff_new_file): Add appfile param.
2144 * ecoff.h (ecoff_new_file): Likewise.
2145 * itbl-lex.h: New file.
2146 * itbl-lex.l: Include itbl-lex.h.
2147 * itbl-parse.y: Likewise.
2148 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
2149 * read.c (s_app_file_string): Mark appfile possibly unused.
2150 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
2151 * subsegs.h (struct seg_info_trash): Delete.
2152 (seg_info): Use segment_info_type instead.
2153 * config/obj-coff.c (struct filename_list): Make filename const char *.
2154 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
2155 * config/obj-elf.c (elf_file_symbol): Similarly.
2156 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
2157 signed right shift.
2158 * config/tc-arc.c (md_operand): Warning fix.
2159 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
2160 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
2161 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
2162 * config/tc-frv.c (frv_force_relocation): Warning fix.
2163 * config/tc-m68k.c (md_parse_option): Delete unused var.
2164 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
2165 * config/tc-sparc.c: Likewise.
2166 (s_common): Warning fix.
2167 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
2168 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
2169 addressT.
2170 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
2171 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
2172 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
2173 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
2174 (tic4x_do_align): Use TIC_NOP_OPCODE.
2175 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
2176 * config/tc-vax.c: Include netinet/in.h.
2177 (tc_headers_hook): Formatting.
2178 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
2179
26b810ce
JB
21802005-02-17 Jan Beulich <jbeulich@novell.com>
2181
2182 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
2183 parsing inN, locN, outN. Set 'idx' to offset register number starts
2184 at. Don't handle numbers with leading zeroes or beyond 95. Remove
2185 pointless cast.
2186
b8285c27
TS
21872005-02-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2188
2189 * config/tc-mips.c (load_address): Fix formatting.
2190 (macro): Don't use AT if .set noat is in effect. Fix formatting.
2191 Catch macros which are unexpandable without AT. Remove duplicate
2192 zeroing of used_at.
2193 (macro2): Remove duplicate zeroing of used_at.
2194
4df6ce47
AM
21952005-02-16 Alan Modra <amodra@bigpond.net.au>
2196
2197 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
2198 than zero.
2199
d6f16593 22002005-02-15 Nigel Stephens <nigel@mips.com>
4df6ce47 2201 Maciej W. Rozycki <macro@mips.com>
d6f16593
MR
2202
2203 * config/tc-mips.c (reloc_needs_lo_p): Handle
2204 BFD_RELOC_MIPS16_HI16_S.
2205 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
2206 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
2207 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
2208 complaints on.
2209 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
2210 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
2211 Call my_getSmallExpression() to parse percent operators.
2212 (percent_op_match, mips_percent_op): Separate definitions.
2213 (mips16_percent_op): Define percent operators for the MIPS16 mode.
2214 (parse_relocation): Handle the MIPS16 mode using
2215 mips16_percent_op.
2216 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
2217 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
2218
7b347e43
JB
22192005-02-15 Jan Beulich <jbeulich@novell.com>
2220
2221 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
2222 instead of explicitly dealing with the translation; exclude
2223 relocations that are already pcrel, however.
2224
a66d2bb7
JB
22252005-02-15 Jan Beulich <jbeulich@novell.com>
2226
2227 * config/tc-ia64.c: Include limits.h (if available).
2228 (gr_values[0]): Set path to INT_MAX.
2229 (dot_reg_val): Don't allow changing value of r0. Limit range of
2230 general registers at r127.
2231 (specify_resource): Default resource index is -1. Don't set resource
2232 index (in case IA64_RS_RSE) without setting the specific flag.
2233 (note_register_values): Check operand is O_constant before tracking
2234 input value of moves. Add tracking for dep.z with constant inputs.
2235 (print_dependency): Resource index of specific resource may be zero.
2236 (check_dependencies): Likewise.
2237
4b09e828
JB
22382005-02-15 Jan Beulich <jbeulich@novell.com>
2239
2240 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
2241 reg_class. Check operands and emit diagnostics for illegal use of
2242 registers.
2243
0ca3e455
JB
22442005-02-15 Jan Beulich <jbeulich@novell.com>
2245
2246 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
2247 new variables type, suffix, and width. Handle
2248 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
2249 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
2250 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
2251 FUNC_DTP_RELATIVE case. Return incoming relocation type if
2252 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
2253 if unable to translate relocation type, using the new variables.
2254
2fac3d48
JB
22552005-02-15 Jan Beulich <jbeulich@novell.com>
2256
2257 * config/tc-ia64.h (ia64_symbol_chars): Declare.
2258 (ty_symbol_chars): Define.
2259 * config/tc-ia64.c (ia64_symbol_chars): Define.
2260
2f6d622e
JB
22612005-02-15 Jan Beulich <jbeulich@novell.com>
2262
2263 * config/tc-ia64.c (ia64_parse_name): Only update next character if
2264 input_line_pointer was advanced.
2265
28013b5c
KK
22662005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2267
2268 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
2269 within |.
2270
f1dab70d
JB
22712005-02-13 Jan Beulich <jbeulich@novell.com>
2272
2273 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
2274 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
2275 indicator.
2276 (ia64_init): Set md.detect_dv.
2277 (ia64_start_line): New static variable warned. Warn only once when
2278 encountering explicit stops in automatic mode.
2279 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
2280 * NEWS: Mention new default mode.
2281
20b36a95
JB
22822005-02-13 Jan Beulich <jbeulich@novell.com>
2283
2284 * config/tc-ia64.c (dot_rot): Add comment that name strings should
2285 be freed when wiping out previous state. Canonicalize names before
2286 use. Free name string when detecting redefinition.
2287 (dot_pred_rel): Call generic expression parser to process arguments.
2288 Handle O_register case for individual predicates and O_subtract for
2289 ranges.
2290 (ia64_parse_name): Canonicalize name before looking it up in dynamic
2291 register hash.
2292 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
2293 Warn if multiple found, issue error if resulting symbol name has zero
2294 length.
2295 (dot_alias): Canonicalize name before use.
2296
07450571
L
22972005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2298
2299 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
2300 and 0 for error.
2301 (in_procedure): Return -1 for warning.
2302 (in_prologue): Likewise.
2303 (in_body): Likewise.
2304
01b91374
L
23052005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2306
ac4528d2 2307 * config/tc-ia64.c (dot_xdata): Undo the last change.
01b91374
L
2308 (dot_float_cons): Likewise.
2309 (dot_xstringer): Likewise.
2310 (dot_xdata_ua): Likewise.
2311 (dot_float_cons_ua): Likewise.
2312
970d6792
L
23132005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2314
2315 * NEWS: Mention "-munwind-check=[warning|error]".
2316
2317 * config/tc-ia64.c (md): Add unwind_check.
2318 (unwind_diagnostic): New.
2319 (in_procedure): Call unwind_diagnostic when a directive isn't
2320 in procedure.
2321 (in_prologue): Call unwind_diagnostic when a directive isn't in
2322 prologue.
2323 (in_body): Call unwind_diagnostic when a directive isn't in
2324 body region.
2325 (dot_endp): Set md.unwind_check to error before calling
2326 in_procedure and restore it after. When the name is missing or
2327 couldn't be found, use the one from the last .proc if
2328 md.unwind_check isn't error. Warn if md.unwind_check is
2329 warning.
2330 (md_parse_option): Handle "-munwind-check=[warning|error]".
2331 (md_show_usage): Add "-munwind-check=[warning|error]".
2332 (ia64_init): Set md.unwind_check to warning.
2333
2334 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
2335 * doc/c-ia64.texi: Likewise.
2336
16a48f83
JB
23372005-02-11 Jan Beulich <jbeulich@novell.com>
2338
2339 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
2340 (LEX_QM): Likewise.
2341 (ia64_parse_name): New third parameter.
2342 (md_parse_name): Pass third argument.
2343 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
2344 (md_operand): Handling of '@'-prefixed symbols moved from here...
2345 (ia64_parse_name): ...to here.
2346
a911c10a
JB
23472005-02-11 Jan Beulich <jbeulich@novell.com>
2348
2349 * config/tc-ia64.c (md): Remove last_groups and group_idx.
2350 (errata_nop_necessary_p): Remove declaraction and definition.
2351 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
2352 update md.group_idx. Don't reset md.last_groups.
2353
b3f19c14
JB
23542005-02-11 Jan Beulich <jbeulich@novell.com>
2355
2356 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
2357 argument.
2358 (dot_xdata): Free section name after use.
2359 (dot_float_cons): Likewise.
2360 (dot_xstringer): Likewise.
2361 (dot_xdata_ua): Likewise.
2362 (dot_float_cons_ua): Likewise.
2363 (md_pseudo_table): Add xdata16 and xdata16.ua.
2364
5cb53c21
L
23652005-02-10 H.J. Lu <hongjiu.lu@intel.com>
2366
2367 * doc/all.texi: Add IA64.
2368 * doc/as.texinfo: Likewise.
2369
2370 * doc/c-ia64.texi: Fix typos.
2371
620b81c1
JB
23722005-02-10 Julian Brown <julian@codesourcery.com>
2373
2374 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
2375 BFD_RELOC_UNUSED.
2376 (do_t_push_pop): Likewise.
2377 (md_assemble): Likewise.
2378 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
2379 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
2380 (create_unwind_entry): Output dependency on the required personality
2381 routines.
620b81c1 2382
4ee4d249
NS
23832005-02-07 Nathan Sidwell <nathan@codesourcery.com>
2384
2385 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
2386 * subsegs.c (seg_not_empty_p): Likewise.
2387
9f5083a4
NC
23882005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
2389
2390 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
4df6ce47 2391 relative jump calculation.
9f5083a4
NC
2392 <md_convert_frag) : Likewise.
2393 <output_disp): Likewise.
2394
aaac53f5
HPN
23952005-02-07 Hans-Peter Nilsson <hp@axis.com>
2396
2397 * write.c (write_object_file): Recognize warning-symbol construct
2398 and skip object- and target- handling for the second symbol.
2399
05ee4b0f
JB
24002005-02-02 Jan Beulich <jbeulich@novell.com>
2401
2402 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
2403 designators along with quoted ones. Free copy of quoted designator
2404 when done.
2405
65ec77d2
BE
24062005-02-01 Ben Elliston <bje@au.ibm.com>
2407
2408 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
2409 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
2410 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
2411 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
2412 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
2413 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
2414 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
2415 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
2416 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
2417 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
2418 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
2419 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
2420 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
2421 #if 0'd code throughout.
2422
d342277e
NC
24232005-01-31 Nick Clifton <nickc@redhat.com>
2424
2425 * as.c (parse_args): Bump copyright date reported by --version to
2426 2005.
2427
d6486796
NC
24282005-01-31 Nick Clifton <nickc@redhat.com>
2429
2430 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
2431 and vax-vms.
2432
ca3bc58f
JB
24332005-01-31 Jan Beulich <jbeulich@novell.com>
2434
2435 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
2436 that can end with .endr in that case. Make requiring/permitting
2437 pseudo-ops without leading dot closer to the logic in read.c serving
2438 the same purpose.
2439 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
2440 ignored.
2441
057f53c1
JB
24422005-01-31 Jan Beulich <jbeulich@novell.com>
2443
2444 * macro.c (do_formals): Adjust to no longer accept empty parameter
2445 names.
2446 (define_macro): Adjust to no longer accept empty macro name, garbage
2447 following the parameters, or macros that were previously defined.
2448 * read.c (s_bad_end): Declare.
2449 (potable): Add endm. Handler for endr and endm is s_bad_end.
2450 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
2451 and .endr.
2452 * read.h (s_bad_endr): Remove.
2453
d3156ecc
JB
24542005-01-31 Jan Beulich <jbeulich@novell.com>
2455
2456 * config/tc-ia64.c (parse_operands): Parse all specified operands,
2457 immediately discarding (but counting) those exceeding the maximum
2458 possible amount. Track whether output and input operand counts ever
2459 matched, and use this to better indicate which of the operands/
2460 operand types was wrong; specifically don't default to pointing to
2461 the first operand.
2462
75e09913
JB
24632005-01-31 Jan Beulich <jbeulich@novell.com>
2464
2465 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
2466 variable in dot_endp). Add body and insn. Make prologue,
2467 prologue_mask, body, and insn bitfields.
2468 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
2469 messages.
2470 (in_procedure, in_prologue, in_body): New.
2471 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
2472 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
2473 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
2474 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
2475 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
2476 dot_personality): Use the appropriate one of the above.
2477 (dot_proc): Clear unwind.proc_start; set to current location only if
2478 none of the entry points were valid. Check for non-zero-length entry
2479 point names. Check that entry points aren't defined, yet. Clear
2480 unwind.prologue, unwind.body, and unwind.insn.
2481 (dot_body): Call in_procedure. Check that first directive in procedure
2482 had no insns emitted before. Set unwind.body.
2483 (dot_prologue): Call in_procedure. Check that not already in prologue.
2484 Check that first directive in procedure had no insns emitted before.
2485 Clear unwind.body.
2486 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
2487 length entry point names. Check that entry points became defined.
2488 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
2489
f4660e2c
JB
24902005-01-31 Jan Beulich <jbeulich@novell.com>
2491
2492 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
2493 before actually using it. Don't generate an error in manual bundling
2494 mode when looking at an insn requiring slot 2 but not yet at slot 2.
2495 Don't generate an error in manual bundling mode when looking at an
2496 insn required to be last in its group but the required slot hasn't
2497 been reached, yet. Allow conversion from MII to MI;I for bundle
2498 consisting of only 2 insns with the stop between them. Suppress
2499 various meaningless errors resulting from detecting earlier ones.
2500
60b9a617
JB
25012005-01-31 Jan Beulich <jbeulich@novell.com>
2502
2503 * config/tc-ia64.c (parse_operands): Also handle alloc without first
2504 input being ar.pfs.
2505
7af0dfc7
CG
25062005-01-28 Christian Groessler <chris@groessler.org>
2507
2508 * config/tc-z8k.c (md_assemble): Improve error detection.
2509
f7e323d5
JB
25102005-01-28 Jan Beulich <jbeulich@novell.com>
2511
2512 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
2513 for personality routine pointer only if there is one.
2514 (ia64_convert_frag): Likewise.
2515 (generate_unwind_image): Likewise.
2516
f87a1e0c
CG
25172005-01-27 Christian Groessler <chris@groessler.org>
2518
2519 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
2520 (md_apply_fix3): Make relative branches out of range an error
2521 instead of a warning. Display correct line number for out of
2522 range branches/calls/memory accesses.
2523
c6cb92c5
NS
25242005-01-27 Nathan Sidwell <nathan@codesourcery.com>
2525
2526 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
2527 to emit .debug_line and other debug sections.
2528 * as.h (seg_not_empty_p): Declare.
2529 * subsegs.c (seg_not_empty_p): New predicate.
2530
e8093792
AC
25312005-01-27 Andrew Cagney <cagney@gnu.org>
2532
2533 * configure: Regenerate to track ../gettext.m4 change.
2534
09124b3f
JB
25352005-01-27 Jan Beulich <jbeulich@novell.com>
2536
2537 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
2538
25392005-01-27 Jan Beulich <jbeulich@novell.com>
97762d08
JB
2540
2541 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
2542 to/from application registers dynamic insns.
2543 (md_assemble): Defer resolution of move to/from application registers
2544 dynamic insns when they can be issued on either the I- or M-units.
2545
90219bd0
AO
25462005-01-25 Alexandre Oliva <aoliva@redhat.com>
2547
2548 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
2549 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
2550 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
2551 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
2552 * cgen.c (gas_cgen_parse_operand): Handle
2553 CGEN_PARSE_OPERAND_SYMBOLIC.
2554 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
2555 (frv_force_relocation): Likewise. Fix handling of PIC
2556 relocations.
2557 (md_apply_fix3): Likewise.
2558
59c871b4
BE
25592005-01-21 Ben Elliston <bje@au.ibm.com>
2560
2561 * as.h: Remove #if 0'd code.
2562 * atof-generic.c (atof_generic): Likewise.
2563 * ecoff.c (ecoff_directive_frame): Likewise.
2564 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
2565 * itbl-ops.c (itbl_add_reg): Likewise.
2566 * listing.c (calc_hex): Likewise.
2567 * read.c (MASK_CHAR): Likewise.
2568 * subsegs.c (subsegs_print_statistics): Likewise.
2569 * symbols.c (indent): Likewise.
2570 * write.c (write_relocs): Likewise.
2571 (write_object_file): Likewise.
2572 (relax_frag): Likewise.
2573
fb767913
NC
25742005-01-20 Nick Clifton <nickc@redhat.com>
2575
2576 * as.c (std_longopts): Add an entry for "--a" in order to prevent
2577 getopt_long_only() from considering -a as an abbreviation for
2578 --alternate.
2579 (parse_args): Fix the parsing of -a=<file>.
2580
c556cc9c
AM
25812005-01-20 Alan Modra <amodra@bigpond.net.au>
2582
2583 PR gas/684
2584 * read.c (s_incbin): Adjust default count for skip. Check validity
2585 of count and skip rigorously.
2586
9c6ed8e6
FF
25872005-01-19 Fred Fish <fnf@specifixinc.com>
2588
2589 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
2590
e5604d79
RS
25912005-01-19 Richard Sandiford <rsandifo@redhat.com>
2592
2593 * read.c (convert_to_bignum): New function, split out from...
2594 (emit_expr): ...here. Handle the case where X_add_number is
2595 positive and the input value is negative.
2596 (output_big_sleb128): Fix setting of continuation bit. Check whether
2597 the final byte needs to be sign-extended. Fix size-shrinking loop.
2598 (emit_leb128_expr): When generating a signed leb128, see whether the
2599 sign of an O_constant's X_add_number matches the sign of the input
2600 value. Use a bignum if not.
2601
e38bc3b5
NC
26022005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
2603
2604 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
2605 arch_sh_up in order to match the external name and make the
2606 testsuite's job easier.
2607
df227444
L
26082005-01-14 H.J. Lu <hongjiu.lu@intel.com>
2609
4df6ce47 2610 PR 659
df227444
L
2611 * config/tc-i386.c (i386_scale): Disallow 0 scale.
2612
b8b80cf7
NC
26132005-01-12 Nick Clifton <nickc@redhat.com>
2614
2615 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
2616 ignored_arguments array.
2617
324007b9
L
26182005-01-10 H.J. Lu <hongjiu.lu@intel.com>
2619
2620 * write.c (write_object_file): Disallow a symbol equated to
2621 common symbol.
2622
5c4504f7
NC
26232005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
2624
2625 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
2626 bfd_mach_maxq20.
2627 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
2628 (maxq_target): New function: Set the machine type.
2629
4e7fd91e
PB
26302005-01-06 Paul Brook <paul@codesourcery.com>
2631
2632 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
2633 (md_begin): Handle TE_VXWORKS for FP defaults.
2634 (md_apply_fix3): Correct rela offsets.
2635 (elf32_arm_target_format): Add VxWorks targets.
2636
ea3eed15
PB
26372005-01-06 Paul Brook <paul@codesourcery.com>
2638
2639 * configure.tgt: Set em=vxworks for *-*-vxworks.
2640 * config/te-vxworks.h: New File.
2641
5dc1606f
PB
26422005-01-06 Paul Brook <paul@codesourcery.com>
2643
2644 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
2645
18af0b39
NC
26462005-01-04 Dmitry Diky <diwil@spec.ru>
2647
2648 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
2649 global label.
2650
196e8040
JW
26512005-01-03 David Mosberger <davidm@hpl.hp.com>
2652
2653 * config/tc-ia64.c (md): Add member "loc_directive_seen".
2654 (dot_loc): New function.
2655 (md_pseudo_table): Add entry to map .loc to dot_loc().
2656 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
2657 seen a .loc directive or we're generating DWARF2 debug info for
2658 assembly source.
2659
a207757e
AM
26602004-12-29 Alan Modra <amodra@bigpond.net.au>
2661
2662 PR gas/619
2663 * read.c (s_comm_internal): Don't zero end of name until size
2664 expression has been parsed.
2665
71d7ecf2
MM
26662004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
2667
2668 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
2669
30c62922
TL
26702004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
2671
2672 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
2673 case).
2674
14ee9f48
ILT
26752004-12-22 Ian Lance Taylor <ian@airs.com>
2676
2677 * configure.tgt: New.
2678 * configure.in: Move setting of cpu_type, fmt, etc., to
2679 configure.tgt.
2680 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
2681 $(srcdir)/configure.tgt.
2682 * configure, Makefile.in: Rebuild.
2683
750bce0e 26842004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
4df6ce47 2685
750bce0e
NC
2686 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
2687 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
2688 instructions.
2689 (avr_offset_expression): New function to parse offsets for LDI
2690 instructions.
2691 (avr_operand): Use it.
2692 (md_apply_fix3): Generate the relocs.
2693
9d2be1ee
JR
26942004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
2695
2696 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
2697 BFD_RELOC_SH_IMMS10BY8 relocation.
2698
2699 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
2700 than just ignoring bad code.
2701
1e50d24d
RS
27022004-12-16 Richard Sandiford <rsandifo@redhat.com>
2703
2704 * config/tc-v850.c (handle_lo16): New function.
2705 (v850_reloc_prefix): Use it to check lo().
2706 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
2707
2fbd2a87
NC
27082004-12-14 P.J. Darcy <darcypj@us.ibm.com>
2709
2710 * configure.in: Add s390x-ibm-tpf support.
2711 * configure: Regenerate.
2712
7a6d0b32
JB
27132004-12-15 Jan Beulich <jbeulich@novell.com>
2714
2715 * config/obj-elf.c (obj_elf_change_section): Only set type and
2716 attributes on new sections. Emit warning when type of re-declared
2717 section doesn't match.
2718
5b9d23c6
JB
27192004-12-15 Jan Beulich <jbeulich@novell.com>
2720
2721 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
2722 '.cfi_startproc simple' doesn't inherit the old value.
2723
dcb45a06
JB
27242004-12-15 Jan Beulich <jbeulich@novell.com>
2725
2726 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
2727 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
2728 generation to emit a factored offset.
2729
aa6975fb
ILT
27302004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
2731
6943caf0
ILT
2732 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
2733 which is too large in the case of NO_PIC without 64-bit
2734 addresses.
2735
aa6975fb
ILT
2736 * config/tc-mips.c (mips_in_shared): New static variable.
2737 (macro_build_lui): Permit "_gp" if !mips_in_shared.
2738 (md_longopts): Add -mshared and -mno-shared.
2739 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
2740 (s_cpload): Implement !mips_in_shared case.
2741 (s_cpsetup): Likewise.
2742 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
2743 * NEWS: Mention -mno-shared.
2744
be1b2b4b
PB
27452004-12-09 Paul Brook <paul@codesourcery.com>
2746
2747 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
2748 for function start.
2749
9a92f48d
ILT
27502004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
2751
dd22970f
ILT
2752 * config/tc-mips.c (append_insn): If we emit a nop during a relax
2753 sequence, increase the size of the sequence.
2754
9a92f48d
ILT
2755 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
2756 use CPU_RM9000.
2757
b617dc20
BE
27582004-12-07 Ben Elliston <bje@gnu.org>
2759
2760 * read.c (s_align): Use an align_limit temporary to allay a GCC
2761 signed/unsigned comparison warning.
2762
c820d418
MM
27632004-12-01 Mark Mitchell <mark@codesourcery.com>
2764
2765 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
2766 * configure.in: Use it for arm*-*-linux-gnueabi*.
2767 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
2768 * config/te-armlinuxeabi.h: New file.
2769 * Makefile.in: Regenerated.
2770 * aclocal.m4: Likewise.
2771 * configure: Likewise.
4df6ce47 2772 * doc/Makefile.in: Regenerated.
c820d418 2773
2b0210eb
BW
27742004-12-02 Bob Wilson <bob.wilson@acm.org>
2775
2776 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
2777 (xtensa_restore_emit_state): Likewise.
2778
9ebd302d
AM
27792004-12-02 Alan Modra <amodra@bigpond.net.au>
2780
2781 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
2782 (s_align): Use it.
2783
32118081
NC
27842004-11-30 Tero Niemela <tero_niemela@yahoo.com>
2785
2786 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
2787 * Makefile.in: Regenerate.
2788
3f414718
TL
27892004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
2790
9ebd302d
AM
2791 * config/tc-crx.c: Major code cleanup. Remove unused variables and
2792 functions, give functions a meaningful name, add comments.
2793 (check_range): New function - Replace operand size calculation
3f414718
TL
2794 with range checking.
2795 (assemble_insn): Update Algorithm, improve error issuing.
9ebd302d 2796 (enum op_err): New.
3f414718
TL
2797 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
2798 handling.
2799
a7498ae6
NC
28002004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2801
2802 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
2803 miss between different section in the same module.
2804 (tc_gen_reloc): Likewise.
2805
5c54fd37
NC
28062004-11-25 Theodore A. Roth <troth@openavr.org>
2807
2808 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
2809 atmega325, atmega3250, atmega645 and atmega6450.
2810
37edbb65
JB
28112004-11-25 Jan Beulich <jbeulich@novell.com>
2812
2813 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
2814 permissible for the selected instruction suffix.
2815 (process_suffix): For DefaultSize instructions, suppressing the
2816 guessing of a 'q' suffix if the instruction doesn't support it is
2817 pointless, because only an 'l' suffix can be guessed in this place.
2818
5515a510
NC
28192004-11-24 Nick Clifton <nickc@redhat.com>
2820
2821 * config/tc-iq2000.c: Remove support for IQ10 processor.
2822 Convert to ISO C90 formatting.
2823 * config/tc-iq2000.h: Likewise.
2824
dae1b34e
NC
28252004-11-23 Nick Clifton <nickc@redhat.com>
2826
2827 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
2828 in this table. They should be correct now.
2829
5c6af06e
JB
28302004-11-23 Jan Beulich <jbeulich@novell.com>
2831
2832 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
2833 indicate the MMX extensions added by both SSE and 3DNow!A.
2834 (Cpu3dnowA): Declare.
2835 (CpuUnknownFlags): Update.
2836 * config/tc-i386.c (cpu_sub_arch_name): Declare.
2837 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
2838 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
2839 3DNow!. Athlon additionally implies 3DNow!A. Several new
2840 entries (those starting with a dot are for sub-arch specification).
2841 (set_cpu_arch): Handle sub-arch specifications.
2842 (parse_insn): Distinguish between instructions not supported because
2843 of insufficient CPU features and because of 64-bit mode.
2844 * doc/c-i386.texi: Describe enhanced .arch directive.
2845
d9740523
BW
28462004-11-22 Bob Wilson <bob.wilson@acm.org>
2847
2848 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
2849
3120ef82
BW
28502004-11-22 Bob Wilson <bob.wilson@acm.org>
2851
2852 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
2853 without a corresponding .debug_info section.
2854
d190d046
HPN
28552004-11-22 Hans-Peter Nilsson <hp@axis.com>
2856
2857 * read.c (potable): Add "error" and "warning".
2858 (s_errwarn): New function.
2859 * read.h (s_errwarn): Declare.
2860 * doc/as.texinfo (Error, Warning): Document .error and .warning.
2861
5519f6ea
NC
28622004-11-22 Nick Clifton <nickc@redhat.com>
2863
2864 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
2865 c_dot_file_symbol.
2866
f5c7edf4
AM
28672004-11-19 Alan Modra <amodra@bigpond.net.au>
2868
2869 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
2870 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
2871
a4528eeb
AM
28722004-11-19 Alan Modra <amodra@bigpond.net.au>
2873
2874 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
2875 (coff_adjust_symtab): Adjust call.
2876 (crawl_symbols): Likewise.
2877 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
2878 (obj_app_file): Adjust.
2879
444bf5f3
NC
28802004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
2881
2882 * configure.in: Enable bfd_assember for the MAXQ port.
2883 * configure: Regenerate.
2884
a1ace8d8 28852004-11-12 Bob Wilson <bob.wilson@acm.org>
88ac794e 2886 Sterling Augustine <sterling@tensilica.com>
a1ace8d8
BW
2887
2888 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
2889 there is a conflict.
2890 (check_t1_t2_reads_and_writes): Check for both reads and writes to
2891 interfaces that are related as determined by xtensa_interface_class_id.
2892
30e857fc
NC
28932004-11-12 Nick Clifton <nickc@redhat.com>
2894
2895 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
2896 offsets for conditional branches.
2897
a67517f4
BW
28982004-11-11 Bob Wilson <bob.wilson@acm.org>
2899
2900 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
2901
1d19a770
BW
29022004-11-10 Bob Wilson <bob.wilson@acm.org>
2903
2904 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
2905 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
2906 MAYBE_UNREACHABLE.
2907 (relax_frag_immed): Update call to update_next_frag_state.
2908
c04f5787
AM
29092004-11-10 Alan Modra <amodra@bigpond.net.au>
2910
2911 * obj.h (struct format_ops <app_file>): Add int param.
2912 * read.h (s_app_file_string): Likewise.
2913 * read.c (s_app_file_string): Likewise.
2914 (s_app_file): Adjust s_app_file_string call.
2915 * config/tc-mips.c (s_mips_file): Likewise.
2916 * config/obj-coff.h (obj_app_file): Add app param.
2917 * config/obj-ecoff.h (obj_app_file): Likewise.
2918 * config/obj-multi.h (obj_app_file): Likewise.
2919 * config/obj-elf.h (elf_file_symbol): Likewise.
2920 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
2921 if called for # preprocessor lines.
2922
a77a9021
L
29232004-11-08 H.J. Lu <hongjiu.lu@intel.com>
2924
2925 PR 528
2926 * symbols.c (resolve_symbol_value): Convert weak symbols only
2927 for Windows PECOFF.
2928 (symbol_equated_reloc_p): Don't equate weaks when relocating
2929 only for Windows PECOFF.
2930
aea44f62
TL
29312004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
2932
2933 * config/tc-crx.c (print_insn): Check and set insn_addr.
2934 * config/tc-crx.h (md_frag_check): Define.
2935
7499d566
NC
29362004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
2937 Vineet Sharma <vineets@noida.hcltech.com>
2938
2939 * configure.in: Add support for new target maxq-coff.
2940 * configure: Regenerate.
2941 * NEWS: Mention new support.
2942 * config/tc-maxq.c: New file.
2943 * config/tc-maxq.h: New file.
2944 * config/obj-coff.h: Add support for maxq-coff.
2945
977cdf5a
NC
29462004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2947
2948 * symbols.c (any_external_name): Define.
a77a9021 2949 (resolve_symbol_value): Convert weak symbols.
977cdf5a
NC
2950 (S_SET_EXTERNAL): Support any_external_name.
2951 (S_SET_NAME): Qualify parameter const.
316f3bf8 2952 (symbol_equated_reloc_p): Equate to weaks when relocating.
977cdf5a
NC
2953 * symbols.h (S_SET_NAME): Qualfiy parameter const.
2954 * tc.h (any_external_name): Declare.
2955 * config/obj-coff.c ("coff/pe.h"): Include for BFD
2956 assemblers also.
2957 (weak_is_altname): Declare and define.
2958 (weak_name2altname): Same.
2959 (weak_altname2name): Same.
2960 (weak_uniquify): Same.
2961 (weak_altprefix): Define.
2962 (obj_coff_weak): Change .weak syntax and handling.
2963 (coff_frob_symbol): Fix PE weak symbol alternates.
2964 * config/obj-coff.h (USE_UNIQUE): Define.
2965 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
2966 are in another segment.
2967 (tc_gen_reloc): Remove broken addend hack.
2968 doc/as.texinfo: Update.
2969
34e41783
BW
29702004-11-05 Sterling Augustine <sterling@tensilica.com>
2971
2972 * config/tc-xtensa.c (total_frag_text_expansion): New.
2973 (md_estimate_size_before_relax): Use it.
2974 (find_address_of_next_align_frag): Likewise.
2975
dcd46b4e
TL
29762004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
2977
2978 * config/tc-crx.c: Rename argument types.
2979 (processing_arg_number): Rename to 'cur_arg_num'.
2980 (get_number_of_bits): Rename to 'set_operand_size'.
2981 (get_operandtype): Rename to 'parse_operand', totally rewrite.
2982 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
2983 (set_indexmode_parameters): Remove function, integrate its code into
2984 'set_operand'.
2985 (set_operand_size): Get rid of 'Operand Number' function parameter -
2986 use global variable 'cur_arg_num' instead.
2987 Use a local 'argument' pointer to reference the current argument.
2988 (parse_operand): Likewise.
2989 (set_operand): Likewise.
2990 (process_label_constant): Likewise.
2991
9456465c
BW
29922004-11-04 Bob Wilson <bob.wilson@acm.org>
2993
2994 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
2995 (add_section_rename): Delete. Inlined into...
2996 (build_section_rename): ...here. Use xstrdup instead of strdup.
2997 (xtensa_section_rename): Drop "const" from argument and return types.
2998 (md_show_usage): Indent to match show_usage().
2999 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
3000 (tc_canonicalize_section_name): Define.
3001 (md_elf_section_rename): Remove unused macro.
3002 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
3003 * doc/c-xtensa.texi (Xtensa Options): Likewise.
3004 (Frame Directive): Delete.
3005
7f266840
DJ
30062004-11-04 Daniel Jacobowitz <dan@debian.org>
3007
3008 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
3009 * config/tc-arm.c (target_oabi): Delete.
3010 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
3011 (arm_opts): Remove moabi.
3012 * doc/as.texinfo (Overview): Remove documentation of -moabi.
3013 * doc/c-arm.texi (ARM Options): Likewise.
3014 * configure: Regenerated.
3015
ae57792d
HPN
30162004-11-04 Hans-Peter Nilsson <hp@axis.com>
3017
3018 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
3019 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
3020 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
3021 * configure: Regenerate.
3022 * config/tc-cris.c (enum cris_archs): New.
3023 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
3024 (cris_insn_ver_valid_for_arch): New functions.
3025 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
3026 (cris_arch): New variable.
3027 (md_pseudo_table): New pseudo .arch.
3028 (err_for_dangerous_mul_placement): Initialize according to
3029 DEFAULT_CRIS_ARCH.
3030 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
3031 All users changed.
3032 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
3033 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
3034 (BRANCH_WF_V32, BRANCH_WB_V32): New.
3035 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
3036 use in md_cris_relax_table.
3037 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
3038 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3039 Update and improve head comment.
3040 (OPTION_PIC): Define in terms of previous option, OPTION_US.
3041 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
3042 (OPTION_ARCH): New.
3043 (md_longopts): New option --march=...
3044 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
3045 macros.
3046 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
3047 (HANDLE_RELAXABLE): New macro.
3048 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
3049 cases. Check for weak symbols and assume not relaxable. Handle
3050 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
3051 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
3052 fragP->fr_symbol.
3053 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
3054 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3055 (cris_create_short_jump): Adjust for CRISv32.
5664e9a7 3056 (cris_relax_frag): Handle new states.
ae57792d
HPN
3057 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
3058 (md_begin): Define symbols "..asm.arch.cris.v32",
3059 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
3060 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
3061 when entering opcode table entry points.
3062 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
3063 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
3064 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
3065 (cris_process_instruction): Initialize out_insnp->insn_type to
3066 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
3067 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
3068 cases.
3069 <case 'm'>: Check that modified_char == '.'.
3070 <invalid operands>: Consume the rest of the line.
3071 When operands don't match, skip over subsequent insns with
3072 non-matching version specifier but same mnemonic.
3073 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
3074 special registers in CRISv32 are always 32 bit long.
3075 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
3076 New cases.
3077 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
3078 and compatible. Recognize "ACR" for v32, unless followed by "+".
3079 (get_spec_reg): Consider cris_arch when looking up register.
3080 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
3081 v32 or compatible.
3082 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
3083 (cris_get_expression): Restore input_line_pointer if failing "early".
3084 (get_flags): Consider cris_arch and recognize flags accordingly.
3085 (branch_disp): Adjust for CRISv32.
3086 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
3087 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
3088 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
3089 resolved. Don't enter zeros in object file for
3090 BFD_RELOC_32_PCREL.
3091 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
3092 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
3093 (md_parse_option): Break out "return 1".
3094 <OPTION_ARCH> New case.
3095 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
3096 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
3097 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
3098 <case BFD_RELOC_32_PCREL>: New cases.
3099 Addends for non-zero fx_pcrel are too in fx_offset.
3100 (md_show_usage): Show --march=<arch>.
3101 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
3102 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
3103 (s_syntax) <struct syntaxes>: Properly constify member operand.
3104 * config/tc-cris.h (TARGET_MACH): Define.
3105 (cris_mach): Declare.
3106 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
3107 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
3108 (CRIS-Opts): Document --march=...
3109 (CRIS-Pseudos): Document .arch.
3110
9306ca4a
JB
31112004-11-04 Jan Beulich <jbeulich@novell.com>
3112
3113 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
3114 intel syntax and no register prefix, allow $ in symbol names when
3115 intel syntax.
3116 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
3117 (intel_float_operand): Add fourth return value indicating math control
3118 operations. Make classification more precise.
3119 (md_assemble): Complain if memory operand of mov[sz]x has no size
3120 specified.
3121 (parse_insn): Translate word operands to floating point instructions
3122 operating on integers as well as control instructions to short ones
3123 as expected by AT&T syntax. Translate 'd' suffix to short one only for
3124 floating point instructions operating on non-integer operands.
3125 (match_template): Remove fldcw special case. Adjust q-suffix handling
3126 to permit it on fild/fistp/fisttp in AT&T mode.
3127 (process_suffix): Don't guess DefaultSize insns' suffix from
3128 stackop_size for certain floating point control instructions. Guess
3129 suffix for branch and [ls][gi]dt based on flag_code. Split error
3130 messages for Intel and AT&T syntax, and make the condition more strict
3131 for the former. Adjust suppressing of generation of operand size
3132 overrides.
3133 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
3134 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
3135 more error checking.
3136 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
3137 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
3138
2b4f075a
HPN
31392004-11-03 Hans-Peter Nilsson <hp@axis.com>
3140
3141 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
3142 md_short_jump_size, md_long_jump_size.
3143 * write.c [!WORKING_DOT_WORD]: Ditto.
3144 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
3145 qualifier.
3146 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
3147 declare.
3148 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
3149 const qualifier in these definitions.
3150 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
3151 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
3152
ddbc47ac
NC
31532004-11-02 Nick Clifton <nickc@redhat.com>
3154
3155 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
3156 table before deciding to produce a .debug_line section to match up
3157 with a user provided .debug_info section.
3158
3ad3f5ad
TL
31592004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
3160
3161 * config/tc-crx.c (getreg_image): Bug fix, a return value was
3162 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
3163
c815a616
TL
31642004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
3165
3166 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
3167 (get_flags): New function.
c04f5787
AM
3168 (get_number_of_bits): Edit comments, update numeric values to
3169 supported sizes.
3170 (process_label_constant): Don't support the colon
3171 format (SYMBOL:[s|m|l]).
c815a616
TL
3172 (set_cons_rparams): Support argument type 'arg_rbase'.
3173 (get_operandtype): Bug fix in 'rbase' operand type parsing.
3174 (handle_LoadStor): Bug fix, first handle post-increment mode.
c04f5787
AM
3175 (getreg_image): Remove redundant code, update according to latest
3176 CRX spec.
c815a616 3177 (print_constant): Bug fix relate to 3-word instructions.
c04f5787 3178 (assemble_insn): Bug fix, when matching instructions, verify also
c815a616
TL
3179 instruction type (not only mnemonic).
3180 Add various error checking.
3181 (preprocess_reglist): Support HI/LO and user registers.
3182
ed7af9f9
L
31832004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
3184
c04f5787 3185 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
ed7af9f9
L
3186 in an epilogue directive go negative.
3187
ac025970
L
31882004-10-25 H.J. Lu <hongjiu.lu@intel.com>
3189
3190 PR 474
3191 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
3192 after reporting template error during manual bundling. Reported
3193 by Michael Dupont, michaelx.dupont@intel.com.
3194
a394c00f
NC
31952004-10-25 Daniel Jacobowitz <dan@debian.org>
3196
3197 * Makefile.am: Run dep-am.
3198 * aclocal.m4: Regenerate with automake 1.9.2.
3199 * Makefile.in: Regenerate with automake 1.9.2.
3200 * doc/Makefile.in: Likewise.
3201
3202 * config/tc-arm.c: Include "dw2gencfi.h".
3203 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
3204 New functions.
3205 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
3206 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
3207 (tc_cfi_frame_initial_instructions): Define.
3208 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
3209 Add prototypes.
3210
23d83918
TL
32112004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
3212
3213 * config/tc-crx.c (assemble_insn): Check unsigned immediate
3214 operands validity.
3215 Update coprocessor id to be unsigned immediate.
3216
bb41ade5
AM
32172004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3218
3219 * config/tc-i386.c (O_secrel): Delete.
3220 (tc_pe_dwarf2_emit_offset): New function.
3221 * config/tc-i386.h (O_secrel): Define as O_md1.
3222 (TC_DWARF2_EMIT_OFFSET): Define.
3223
87e62348
NC
32242004-10-18 Nick Clifton <nickc@redhat.com>
3225
3226 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
3227 ignore @fptr() directives for 4-byte fixups.
3228
3c55da70
AM
32292004-10-15 Alan Modra <amodra@bigpond.net.au>
3230
3231 * Makefile.am: Run "make dep-am"
3232 * Makefile.in: Regenerate.
3233
40e7b7b9
BW
32342004-10-14 Bob Wilson <bob.wilson@acm.org>
3235
3236 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
3237 Remove comments about placement of literal pools.
3238 (Literal Directive): Update description of literal placement.
3239 (Literal Prefix Directive): Remove statement that this does not apply
3240 to absolute-mode literals. Describe new section naming scheme.
3241
b08b5071
BW
32422004-10-12 Bob Wilson <bob.wilson@acm.org>
3243
3244 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
3245 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
3246 is_windowed_return_opcode): Delete.
3247 (xtensa_frob_label): Use get_subseg_target_freq.
3248 (md_assemble): Inline call to is_entry_opcode.
3249 (xtensa_handle_align): Inline call to get_frag_is_literal.
3250 (relaxation_requirements): Inline call to is_jx_opcode.
3251 (emit_single_op): Inline call to is_movi_opcode.
3252 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
3253 get_frag_is_no_transform, is_entry_opcode, and
3254 set_frag_is_specific_opcode. Use get_subseg_total_freq.
3255 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
3256 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
3257 Inline calls to get_frag_is_no_transform.
3258 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
3259 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
3260 get_frag_is_no_transform.
3261 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
3262 and set_frag_is_no_transform.
3263 (get_expression_value): Delete.
3264 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
3265 cur_target_freq to target_freq.
3266 (get_subseg_info): Split out code to create a new map entry into ...
3267 (add_subseg_info): ... this new function.
3268 (get_last_insn_flags): Check if get_subseg_info succeeded.
3269 (set_last_insn_flags): Call add_subseg_info if needed.
3270 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
3271 (xtensa_reorder_segments): Compute last_sec while counting sections.
3272 Remove call to get_last_sec.
3273 (get_last_sec): Delete.
3274 (cache_literal_section): Inline call to retrieve_literal_seg and its
3275 callees, seg_present and add_seg_list.
3276 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
3277 (get_frag_is_insn, get_frag_is_no_transform,
3278 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
3279 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
3280
7fa3d080
BW
32812004-10-12 Bob Wilson <bob.wilson@acm.org>
3282
3283 * config/tc-xtensa.c: Use ISO C90 formatting.
3284 * config/tc-xtensa.h: Likewise.
3285 * config/xtensa-istack.h: Likewise.
3286 * config/xtensa-relax.c: Likewise.
3287 * config/xtensa-relax.h: Likewise.
3288
8cb51566
PB
32892004-10-12 Paul Brook <paul@codesourcery.com>
3290
3291 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
3292 EF_ARM_EABI_VER4.
3293 (arm_eabis): Ditto.
3294 * doc/c-arm.texi: Document that we actually support -meabi=4, not
3295 -meabi=3.
3296
653cfe85
BW
32972004-10-08 Bob Wilson <bob.wilson@acm.org>
3298
3299 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
3300 entries.
3301 (Acknowledgements): Use "GAS" instead of AS variable.
3302
d2b2c203
DJ
33032004-10-08 Daniel Jacobowitz <dan@debian.org>
3304
3305 * config/tc-i386.c: Include "elf/x86-64.h".
3306 (i386_elf_section_type): New function.
3307 * config/tc-i386.h (md_elf_section_type): Define.
3308 (i386_elf_section_type): New prototype.
3309
e80e0390
NC
33102004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
3311
3312 * config/m68k-parse.h (enum m68k_register): New control register,
3313 MBAR2 (for MCF5249)
3314 * config/tc-m68k.c: Correct control register set for MCF5249.
3315
43cd72b9 33162004-10-07 Bob Wilson <bob.wilson@acm.org>
85a5ac80 3317 Sterling Augustine <sterling@tensilica.com>
43cd72b9
BW
3318
3319 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
3320 (UNREACHABLE_MAX_WIDTH): Define.
3321 (XTENSA_FETCH_WIDTH): Delete.
3322 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
3323 prefer_const16, prefer_l32r): New global variables.
3324 (LIT4_SECTION_NAME): Define.
3325 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
3326 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
3327 (frag_flags struct): New.
c04f5787 3328 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
43cd72b9
BW
3329 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
3330 (bitfield, bit_is_set, set_bit, clear_bit): Define.
3331 (MAX_FORMATS): Define.
3332 (op_placement_info struct, op_placement_table): New.
3333 (O_pltrel, O_hi16, O_lo16): Define.
3334 (directiveE enum): Rename directive_generics to directive_transform.
3335 Delete directive_relax. Add directive_schedule,
3336 directive_absolute_literals, and directive_last_directive.
3337 (directive_info): Rename "generics" to "transform". Delete "relax".
3338 Add "schedule" and "absolute-literals".
3339 (directive_state): Adjust entries to match changes in directive_info.
3340 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
3341 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
3342 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
3343 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
3344 (align_only_targets, software_a0_b_retw_interlock,
3345 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
3346 software_avoid_short_loop, software_avoid_close_loop_end,
3347 software_avoid_all_short_loops, specific_opcode): Delete.
3348 (warn_unaligned_branch_targets): New.
3349 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
3350 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
3351 (option_[no_]link_relax, option_[no_]transform,
3352 option_[no_]absolute_literals, option_warn_unaligned_targets,
3353 option_prefer_l32r, option_prefer_const16, option_target_hardware):
3354 New enum values.
3355 (option_[no_]align_only_targets, option_literal_section_name,
3356 option_text_section_name, option_data_section_name,
3357 option_bss_section_name, option_eb, option_el): Delete.
3358 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
3359 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
3360 and target-hardware. Delete entries for [no-]target-align-only,
3361 literal-section-name, text-section-name, data-section-name, and
3362 bss-section-name.
3363 (md_parse_option): Handle new options and remove old ones. Accept but
3364 ignore [no-]density options. Warn for [no-]generics and [no-]relax
3365 and treat them as [no-]transform.
3366 (md_show_usage): Add new options and remove old ones.
3367 (xtensa_setup_hw_workarounds): New.
3368 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
3369 "long", "short", "loc" and "frequency" entries.
3370 (use_generics): Rename to ...
3371 (use_transform): ... this function. Add past_xtensa_end check.
3372 (use_longcalls): Add past_xtensa_end check.
3373 (code_density_available, can_relax): Delete.
3374 (do_align_targets): New.
3375 (get_directive): Accept dashes in directive names. Warn about
3376 [no-]generics and [no-]relax directives and treat them as
c04f5787 3377 [no-]transform.
43cd72b9
BW
3378 (xtensa_begin_directive): Call md_flush_pending_output only for some
3379 directives. Check for directives inside instruction bundles. Warn
3380 about deprecated ".begin literal" usage. Warn and ignore [no-]density
3381 directives. Handle new directives. Check generating_literals flag
3382 for literal_prefix.
3383 (xtensa_end_directive): Check for directives inside instruction
3384 bundles. Warn and ignore [no-]density directives. Handle new
3385 directives. Call xtensa_set_frag_assembly_state.
3386 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
3387 xtensa_dwarf2_emit_insn): New.
3388 (xtensa_literal_position): Call md_flush_pending_output. Do not check
3389 use_literal_section flag.
3390 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
3391 literals. Use xtensa_elf_cons to parse the expression.
3392 (xtensa_literal_prefix): Do not check use_literal_section. Support
3393 ".lit4" sections for absolute literals. Change prefix convention to
3394 replace ".text" (or ".t" in a linkonce section). No need to call
3395 subseg_set.
3396 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
3397 (expression_end): Handle closing braces and colons.
3398 (PLT_SUFFIX, plt_suffix): Delete.
3399 (expression_maybe_register): Use new xtensa-isa.h functions. Use
3400 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
3401 and O_hi16 expressions as well.
3402 (tokenize_arguments): Handle closing braces and colons.
3403 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
3404 operands and paired register syntax.
3405 (get_invisible_operands): New.
3406 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
3407 new xtensa-isa.h functions.
3408 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
3409 (xg_translate_idioms): Check if inside bundle. Use use_transform.
3410 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
3411 instructions. Use xtensa_translate_zero_immed.
3412 (operand_is_immed, operand_is_pcrel_label): Delete.
3413 (get_relaxable_immed): Use new xtensa-isa.h functions.
3414 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
3415 functions.
3416 (xtensa_print_insn_table, print_vliw_insn): New.
3417 (is_direct_call_opcode): Use new xtensa-isa.h functions.
3418 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
3419 is_branch_or_jump_opcode): Delete.
3420 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
3421 (opnum_to_reloc, reloc_to_opnum): Delete.
3422 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
3423 xtensa-isa.h functions. Operate on one slot of an instruction.
3424 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
3425 xg_get_insn_size): Delete.
3426 (xg_get_build_instr_size): Use xg_get_single_size.
3427 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
3428 xg_build_widen_table. Use xg_get_single_size.
3429 (xg_get_max_narrow_insn_size): Delete.
3430 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
3431 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
3432 xg_get_single_size.
3433 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
3434 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
3435 (xg_expand_to_stack, xg_expand_narrow): Update calls to
3436 xg_build_widen_table. Use xg_get_single_size.
3437 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
3438 xg_check_operand.
3439 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
3440 treat weak symbols conservatively.
3441 (xg_check_operand): Use new xtensa-isa.h functions.
3442 (is_dnrange): Delete.
3443 (xg_assembly_relax): Inline previous calls to tinsn_copy.
3444 (xg_finish_frag): Specify separate relax states for the frag and slot0.
3445 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
3446 xtensa-isa.h functions.
3447 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
3448 xg_instruction_matches_options): New.
3449 (xg_instruction_matches_rule): Handle O_register expressions. Call
3450 xg_instruction_matches_options.
3451 (transition_rule_cmp): New.
3452 (xg_instruction_match): Update call to xg_build_simplify_table.
3453 (xg_build_token_insn): Record loc fields.
3454 (xg_simplify_insn): Check is_specific_opcode field and
3455 density_supported flag.
3456 (xg_expand_assembly_insn): Skip checking code_density_available. Use
3457 new xtensa-isa.h functions. Call use_transform instead of can_relax.
3458 (xg_assemble_literal): Add error handling for O_big. Call
3459 record_alignment. Handle O_pltrel.
3460 (xg_valid_literal_expression): New.
3461 (xg_assemble_literal_space): Add slot parameter. Remove call to
3462 set_expr_symbol_offset. Add call to record_alignment. Update call to
3463 xg_finish_frag.
3464 (xg_emit_insn): Delete.
3465 (xg_emit_insn_to_buf): Add format parameter. Update calls to
3466 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
3467 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
3468 and slot parameters. Handle new "alternate" relocations for absolute
3469 literals and CONST16 instructions. Check for bad uses of O_lo16 and
3470 O_hi16. Use new xtensa-isa.h functions.
3471 (xg_assemble_tokens): Delete.
3472 (is_register_writer): Use new xtensa-isa.h functions.
3473 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
3474 old-style RSR from LCOUNT.
3475 (next_frag_opcode): Delete.
3476 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
3477 update_next_frag_state): New.
3478 (update_next_frag_nop_state): Delete.
3479 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
3480 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
3481 the state of the absolute-literals directive. Add calls to
3482 record_alignment and xtensa_set_frag_assembly_state. Call
3483 xtensa_switch_to_non_abs_literal_fragment instead of
3484 xtensa_switch_to_literal_fragment.
3485 (build_nop): New.
3486 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
3487 (get_expanded_loop_offset): Change check for undefined opcode to an
3488 assertion.
3489 (xtensa_set_frag_assembly_state, relaxable_section,
3490 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
3491 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
3492 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
3493 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
3494 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
3495 (xtensa_init_fix_data): New.
3496 (xtensa_frob_label): Reset label symbol to the current frag. Check
3497 do_align_targets and generating_literals flag. Propagate frequency
3498 info to new alignment frag. Call xtensa_set_frag_assembly_state.
3499 (xtensa_unrecognized_line): New.
3500 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
3501 to xtensa_set_frag_assembly_state.
3502 (error_reset_cur_vinsn): New.
3503 (md_assemble): Remove check for literal frag. Remove call to
3504 istack_init. Call use_transform instead of use_generics. Parse
3505 explicit instruction format specifiers. Move code for
3506 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
3507 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
3508 Add dwarf2_where call. Remote automatic alignment for ENTRY
3509 instructions. Move call to xtensa_clear_insn_labels to the end.
3510 Rearrange to handle bundles.
3511 (xtensa_cons_fix_new): Delete.
3512 (xtensa_handle_align): New.
3513 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
3514 assignment to is_no_density field.
3515 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
3516 instead of reloc_to_opnum. Handle "alternate" relocations.
3517 (xtensa_force_relocation, xtensa_check_inside_bundle,
3518 xtensa_elf_section_change_hook): New.
3519 (xtensa_symbol_new_hook): Delete.
3520 (xtensa_fix_adjustable): Check for difference of symbols with an
3521 offset. Check for external and weak symbols.
3522 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
3523 (md_estimate_size_before_relax): Return expansion for the first slot.
3524 (tc_gen_reloc): Handle difference of symbols by producing
3525 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
3526 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
3527 tentative values into the output when linkrelax is set.
3528 (XTENSA_PROP_SEC_NAME): Define.
3529 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
3530 Create literal tables only if using literal sections. Create new
3531 property tables instead of old instruction tables. Check for unaligned
3532 branch targets and loops.
3533 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
3534 new_resource_table, clear_resource_table, resize_resource_table,
3535 resources_available, reserve_resources, release_resources,
3536 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
3537 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
3538 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
3539 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
3540 flag. Update checks for workaround options. Call
3541 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
3542 (xtensa_cleanup_align_frags): Add special case for branch targets.
3543 Check for and mark unreachable frags.
3544 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
3545 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
3546 end of a zero-overhead loop body.
3547 (frag_can_negate_branch): Handle instructions with multiple slots.
3548 Use new xtensa-isa.h functions
3549 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
3550 xtensa_mark_zcl_first_insns): New.
3551 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
3552 transformations are disabled.
3553 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
3554 multislot instructions.
3555 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
3556 Likewise. Also error if transformations are disabled.
3557 (unrelaxed_frag_max_size): New.
3558 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
3559 xtensa-isa.h functions.
3560 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
3561 xtensa_opcode_is_loop instead of is_loop_opcode.
3562 (get_text_align_power): Replace as_fatal with assertion.
3563 (get_text_align_fill_size): Iterate instead of using modulus when
3564 use_nops is false.
3565 (get_noop_aligned_address): Assert that this is for a machine-dependent
3566 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
3567 xg_get_single_size, and frag_format_size.
3568 (get_widen_aligned_address): Rename to ...
3569 (get_aligned_diff): ... this function. Add max_diff parameter.
3570 Remove handling of rs_align/rs_align_code frags. Use
3571 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
3572 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
3573 and pass it back to caller.
3574 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
3575 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
3576 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
3577 (relax_frag_text_align): Rename to ...
3578 (relax_frag_loop_align): ... this function. Assume loops can only be
3579 in the first slot of an instruction.
3580 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
3581 instruction. Remove call to frag_wane.
3582 (relax_frag_narrow): Rename to ...
3583 (relax_frag_for_align): ... this function. Extend to handle
3584 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
3585 RELAX_NARROW for the first slot.
3586 (find_address_of_next_align_frag, bytes_to_stretch): New.
3587 (future_alignment_required): Use find_address_of_next_align_frag and
3588 bytes_to_stretch. Look ahead to subsequent frags to make smarter
3589 alignment decisions.
3590 (relax_frag_immed): Add format, slot, and estimate_only parameters.
3591 Check if transformations are enabled for b_j_loop_end workaround.
3592 Use new xtensa-isa.h functions and handle multislot instructions.
3593 Update call to xg_assembly_relax.
3594 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
3595 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
3596 frag types.
3597 (convert_frag_narrow): Add segP, format and slot parameters. Call
3598 convert_frag_immed for branch instructions. Adjust calls to
3599 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
3600 xg_get_single_size and xg_get_single_format.
3601 (convert_frag_fill_nop): New.
3602 (convert_frag_immed): Add format and slot parameters. Handle multislot
3603 instructions and use new xtensa-isa.h functions. Update calls to
3604 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
3605 enabled for b_j_loop_end workaround. Use build_nop instead of
3606 assemble_nop. Check is_specific_opcode flag. Check for unreachable
3607 frags. Use xg_get_single_size. Handle O_pltrel.
3608 (fix_new_exp_in_seg): Remove check for old plt flag.
3609 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
3610 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
3611 for loop opcode to an assertion. Mark all frags up to the end of the
3612 loop as not transformable.
3613 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
3614 (get_subseg_info): New.
3615 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
3616 check for dest_seg.
3617 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
3618 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
3619 (xtensa_switch_to_non_abs_literal_fragment): New.
3620 (cache_literal_section): Add is_code parameter and pass it through to
3621 retrieve_literal_seg.
3622 (retrieve_literal_seg): Add is_code parameter and use it to set the
3623 flags on the literal section. Handle case where head parameter is 0.
3624 (get_frag_is_no_transform, set_frag_is_specific_opcode,
3625 set_frag_is_no_transform): New.
3626 (xtensa_create_property_segments): Add end_property_function parameter
3627 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
3628 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
3629 (xtensa_create_xproperty_segments, section_has_xproperty): New.
3630 (add_xt_block_frags): Add end_property_function parameter and call it
3631 if it is non-zero. Call xtensa_frag_flags_init.
3632 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
3633 get_frag_property_flags, frag_flags_to_number,
3634 xtensa_frag_flags_combinable, xt_block_aligned_size,
3635 xtensa_xt_block_combine, add_xt_prop_frags,
3636 init_op_placement_info_table, opcode_fits_format_slot,
3637 xg_get_single_size, xg_get_single_format): New.
3638 (istack_push): Inline call to tinsn_copy.
3639 (tinsn_copy): Delete.
3640 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
3641 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
3642 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
3643 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
3644 functions. Handle invisible operands.
3645 (tinsn_to_slotbuf): New.
3646 (tinsn_check_arguments): Use new xtensa-isa.h functions.
3647 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
3648 vinsn_from_chars, and xg_free_vinsn.
3649 (tinsn_from_insnbuf): New.
3650 (tinsn_immed_from_frag): Add slot parameter and handle multislot
3651 instructions. Handle symbol differences.
3652 (get_num_stack_text_bytes): Use xg_get_single_size.
3653 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
3654 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
3655 get_expr_register, set_expr_symbol_offset_diff): New.
3656 * config/tc-xtensa.h (MAX_SLOTS): Define.
3657 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
3658 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
3659 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
3660 RELAX_NONE types.
3661 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
3662 (xtensa_frag_type struct): Add is_assembly_state_set,
3663 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
3664 is_align, is_text_align, alignment, and is_first_loop_insn fields.
3665 Replace is_generics and is_relax fields by is_no_transform field.
3666 Delete is_text and is_longcalls fields. Change text_expansion and
3667 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
3668 per-slot information: literal_frags, slot_subtypes, slot_symbols,
3669 slot_sub_symbols, and slot_offsets. Add fr_prev field.
3670 (xtensa_fix_data struct): New.
3671 (xtensa_symfield_type struct): Delete plt field.
3672 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
3673 forward declaration here.
3674 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
3675 (XTENSA_SECTION_RENAME): Undefine.
3676 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
3677 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
3678 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
3679 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
3680 (unit_num_copies_func, opcode_num_units_func,
3681 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
3682 (resource_table struct): New.
3683 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
3684 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
3685 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
3686 (tinsn_copy): Delete prototype.
3687 (vliw_insn struct): New.
3688 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
3689 (widen_spec_list): Add option conditions for density and boolean
3690 instructions. Add expansions using CONST16 and conditions for using
3691 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
3692 predicted branches.
3693 (simplify_spec_list): Add option conditions for density instructions.
3694 Add entry for NOP instruction.
3695 (append_transition): Add cmp function pointer parameter and use it to
3696 insert the new entry in order.
3697 (operand_function_LOW16U, operand_function_HI16U): New.
3698 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
3699 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
3700 (enter_opname, split_string): Use xstrdup instead of strdup.
3701 (init_insn_pattern): Initialize new options field.
3702 (clear_req_or_option_list, clear_req_option_list,
3703 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
3704 New.
3705 (parse_insn_pattern): Parse option conditions.
3706 (transition_applies): New.
3707 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
3708 swapped last arguments in calls to append_constant_value_condition.
3709 Call clone_req_option_list. Add warning about invalid opcode.
3710 Handle LOW16U and HI16U function names.
3711 (build_transition_table): Add cmp parameter and use it in calls to
3712 append_transition. Use new xtensa-isa.h functions. Check
3713 transition_applies before adding entries.
3714 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
3715 pass it through to build_transition_table.
3716 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
3717 ReqOption, transition_cmp_fn): New types.
3718 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
3719 (transition_rule struct): Add options field.
3720 * doc/as.texinfo (Overview): Update Xtensa options.
3721 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
3722 --[no-]relax, and --[no-]generics options. Update descriptions of
3723 --text-section-literals and --[no-]longcalls. Add
3724 --[no-]absolute-literals and --[no-]transform.
3725 (Xtensa Syntax): Add description of syntax for FLIX instructions.
3726 Remove use of "generic" and "specific" terminology for opcodes.
3727 (Xtensa Registers): Generalize the syntax description to include
3728 user-defined register files.
3729 (Xtensa Automatic Alignment): Update.
3730 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
3731 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
3732 (Xtensa Directives): Remove confusing rules about precedence.
3733 (Density Directive, Relax Directive): Delete.
3734 (Schedule Directive): New.
3735 (Generics Directive): Rename to ...
3736 (Transform Directive): ... this node.
3737 (Literal Directive): Update for absolute literals. Missing
3738 literal_position directive is now an error.
3739 (Literal Position Directive): Update for absolute literals.
3740 (Freeregs Directive): Delete.
3741 (Absolute Literals Directive): New.
3742 (Frame Directive): Minor editing.
3743 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
3744 Update dependencies.
3745 * Makefile.in: Regenerate.
3746
6e1304d8
RS
37472004-10-07 Richard Sandiford <rsandifo@redhat.com>
3748
3749 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
3750 to build the second and third fixups for a composite relocation.
3751 (macro_read_relocs): New function.
3752 (macro_build): Use it.
3753 (s_cpsetup): Pass all three composite relocation codes to macro_build.
3754 Simplify fragging code accordingly.
3755 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
3756 of the composite relocation. Set fx_tcbit in both fixups.
3757
b1dca8ee
RS
37582004-10-07 Richard Sandiford <rsandifo@redhat.com>
3759
3760 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
3761 (md_apply_fix3): Don't treat composite relocs as done.
3762
89658e52
NC
37632004-10-07 Jan Beulich <jbeulich@novell.com>
3764
3765 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
3766 prefix for symbol names generated from the LOCAL macro directive.
3767
289040ca
NC
3768 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
3769 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
3770
48c9f030
NC
37712004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
3772
3773 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
c04f5787 3774 Special registers.
5c5054ab 3775 (md_assemble): Add error checking for Co-Processor instructions.
48c9f030
NC
3776 (get_cinv_parameters): Add 'b' option to invalidate the
3777 branch-target cache.
3778
7ed4c4c5
NC
37792004-10-05 Paul Brook <paul@codesourcery.com>
3780
3781 * config/tc-arm.c (unwind): New variable.
3782 (vfp_sp_encode_reg): New function.
3783 (vfp_sp_reg_required_here): Use it.
3784 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
3785 (vfp_parse_reg_list): New function.
3786 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
3787 s_arm_unwind_personality, s_arm_unwind_personalityindex,
3788 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
3789 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
3790 functions.
3791 (md_pseudo_table): Add them.
3792 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
3793 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
3794 (set_section, add_unwind_adjustsp, flush_pending_unwind,
3795 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
3796 require_hashconst, add_unwind_opcode): New functions.
ab1e9ef7 3797 * doc/c-arm.texi: Document unwinding opcodes.
7ed4c4c5
NC
3798 * NEWS: Mention the new feature.
3799
04ca8703
EC
38002004-10-04 Eric Christopher <echristo@redhat.com>
3801
3802 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
3803
7c1d0959
L
38042004-10-01 H.J. Lu <hongjiu.lu@intel.com>
3805
3806 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
3807 TLS relocations.
3808 * config/tc-s390.c (md_apply_fix3): Likewise.
3809 * config/tc-sparc.c (md_apply_fix3): Likewise.
3810
40a18ebd
NC
38112004-10-01 Paul Brook <paul@codesourcery.com>
3812
3813 * config/tc-arm.c (arm_elf_section_type): New function.
3814 (arm_elf_change_section): Set section link for exidx sections.
3815 * config/tc-arm.h (arm_elf_section_type): Add prototype.
3816 (md_elf_section_type): Define.
3817
14127cc4
NC
38182004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
3819
3820 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
3821 instruction's offset.
3822
b7c92712
NC
38232004-10-01 Adam Nemet <anemet@lnxw.com>
3824
3825 * (TARGET_FORMAT): Remove LynxOS COFF definition.
3826
65555e64
AM
38272004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
3828
3829 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
3830 asymbol *, instead use symbol_get_bfdsym.
3831
9fe0b840
NC
38322004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
3833
3834 * config/tc-m68k.c (select_control_regs): Add mcf5249.
3835
0dd132b6
NC
38362004-09-30 Paul Brook <paul@codesourcery.com>
3837
3838 * config/tc-arm.c (do_smi, do_nop): New functions.
3839 (insns): Add ARMv6ZK instructions.
3840 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
3841 (tc_gen_reloc): Ditto.
3842 (arm_cpus): Add mpcore and arm1176.
3843 (arm_archs): Add armv6{k,z,zk}.
3844 * doc/c-arm.texi: Document new cores and architectures.
3845
a737bd4d
NC
38462004-09-30 Nick Clifton <nickc@redhat.com>
3847
3848 * config/tc-arm.c: Use ISO C90 formatting.
3849
3631a3c8
NC
38502004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
3851
a737bd4d 3852 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
3631a3c8
NC
3853 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
3854 REG_TYPE_MVDX is expected.
3855
d5f0cf92
AM
38562004-09-29 Marc Bevand <m.bevand@gmail.com>
3857
3858 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
3859
9f9a069e
JW
38602004-09-21 James E Wilson <wilson@specifixinc.com>
3861
3862 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
3863 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
3864 output_spill_base, output_unat_psprel, output_lc_psprel,
3865 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
3866 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
3867 output_spill_psprel_p): Use it.
3868
4b778c88
TL
38692004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
3870
c04f5787 3871 * config/tc-crx.c (handle_LoadStor): New function.
04ca8703 3872 Handle load/stor unique instructions before parsing.
4b778c88 3873
eb043451
PB
38742004-09-17 Paul Brook <paul@codesourcery.com>
3875
3876 * config/tc-arm.c (s_arm_rel31): New funciton.
3877 (md_pseudo_table): Add .rel31.
04ca8703 3878 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
eb043451
PB
3879 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
3880 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
3881 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
3882 (arm_parse_reloc): Add (target2).
3883
8ea2b00f
AM
38842004-09-17 Alan Modra <amodra@bigpond.net.au>
3885
3886 * Makefile.am: Run "make dep-am".
3887 * Makefile.in: Regenerate.
3888 * aclocal.m4: Regenerate.
3889 * configure: Regenerate.
3890 * doc/Makefile.in: Regenerate.
3891 * po/POTFILES.in: Regenerate.
3892 * po/gas.pot: Regenerate.
3893
7e1792e0
HPN
38942004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
3895
3896 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
3897 [!LLONG_MAX]: Ditto.
3898
9c504268
PB
38992004-09-13 Paul Brook <paul@codesourcery.com>
3900
3901 * config/tc-arm.c: Rename RELABS to TARGET1.
3902
2159ac21
AM
39032004-09-13 Alan Modra <amodra@bigpond.net.au>
3904
3905 * messages.c (as_internal_value_out_of_range): Cast values passed
3906 to as_bad_where or as_warn_where to proper type.
3907
23794b24
MM
39082004-09-11 Theodore A. Roth <troth@openavr.org>
3909
3910 * config/tc-avr.c: Add support for
3911 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
3912
e9fad691
AM
39132004-09-09 Alan Modra <amodra@bigpond.net.au>
3914
3915 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
3916 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
3917
10b016c2
PB
39182004-09-08 Paul Brook <paul@codesourcery.com>
3919
3920 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
3921 fini_array and preinit_array section types.
3922 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
3923 and fini_array.
3924 * doc/as.texinfo: Document extra section types.
3925
e5a52504
MM
39262004-09-02 Mark Mitchell <mark@codesourcery.com>
3927
3928 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
3929 * Makefile.in: Regenerated.
3930 * configure.in: Set em for arm*-*-symbianelf*.
3931 * configure: Regenerated.
3932 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
3933 vectors when appropriate.
3934 * config/te-symbian.h: New file.
3935
42851540
NC
39362004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
3937
3938 * config/tc-crx.c (gettrap): Exception vector can be case
3939 insensitive.
04ca8703 3940 (process_label_constant): Fix a 32-bit displacement bug in branch
42851540
NC
3941 instructions.
3942 (get_operandtype) : Bug fix, wrong operand was used.
04ca8703 3943 (process_label_constant): Initialize relocation type to
42851540
NC
3944 BFD_RELOC_NONE
3945
8783612f
RE
39462004-09-01 Richard Earnshaw < reanrsha@arm.com>
3947
3948 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
3949 for synthesizable cores.
3950
1ff4677c
RE
3951 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
3952
b18c562e
NC
39532004-08-25 Dmitry Diky <diwil@spec.ru>
3954
3955 * config/tc-msp430.c: Clean-up the code.
3956 (md_relax_table): New relax table.
3957 (mcu_types): Sort MCU types.
3958 (md_pseudo_table): Add .profiler pseudo handler.
3959 (pow2value): New function.
3960 (msp430_profiler): New function.
3961 (msp430_operands): Add new insns handlers.
3962 (msp430_srcoperand): Add register operand handler, allow complex
3963 expressions.
3964 (md_estimate_size_before_relax): Rewritten.
3965 (md_convert_frag): Rewritten.
3966 (msp430_relax_frag): New function.
3967 * config/tc-msp430.h (md_relax_frag): define macro
3968 * doc/c-msp430.texi: Update information.
3969
8f94ae4d
NC
39702004-08-24 Nick Clifton <nickc@redhat.com>
3971
3972 * as.c (std_shortopts): Allow -g to take an optional argument.
3973 (parse_args): Pass any switch starting with -g on to the backend
3974 for parsing.
3975
e51dace8
MM
39762004-08-18 Mark Mitchell <mark@codesourcery.com>
3977
3978 * configure.in (arm*-*-symbianelf*): New target.
3979 (arm*-*-eabi*): Likewise.
3980 * configure: Regenerated.
3981
f7870c8d
TS
39822004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3983 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
3984 correctly.
3985
d6afba4b
JJ
39862004-08-18 Jakub Jelinek <jakub@redhat.com>
3987
3988 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
3989 argument, don't do anything if current section is not
3990 .gnu.linkonce.t.* and linkonce_empty is set.
3991 (generate_unwind_image, dot_endp): Adjust callers, call
3992 start_unwind_section (*, 1) if nothing will be put into the
3993 section.
3994
329e276d
NC
39952004-08-17 Nick Clifton <nickc@redhat.com>
3996
3997 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
3998 (show_usage): Add -g.
3999 (std_longopts): Add --gen-debug. Alpha sort the table.
4000 (parse_args): Print an error message if a switch is not handled.
4001 Handle the -g switch, calling md_debug_format_selector() if
4002 necessary.
4003 * NEWS: Mention new feature.
4004 * doc/as.texinfo: Document new switch.
4005 * doc/internals.texi: Document behaviour of md_parse_option.
04ca8703 4006
329e276d
NC
4007 * config/tc-arm.c (md_parse_option): Do not issue an error message
4008 if the switch is not recognised.
4009 * config/tc-m68k.c (md_parse_option): Likewise.
4010 * config/tc-pdp11.c (md_parse_option): Likewise.
4011 * config/tc-v850.c (md_parse_option): Likewise.
4012
4013 * as.h: Fix up formatting.
4014 * tc.h: Likewise.
4015
4101eec8
NC
40162004-08-16 Nick Clifton <nickc@redhat.com>
4017
2766e5e4
NC
4018 * macro.c (macro_set_alternate): Use ISO C90 formatting.
4019
4101eec8
NC
4020 * configure.in: Sort architecture based tables alphabetically.
4021 * configure: Regenerate.
4022
80f846b6
AM
40232004-08-16 Alan Modra <amodra@bigpond.net.au>
4024
4025 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
4026 { "cc", 68 }, with { "cr", 70 }.
4027
caa32fe5
NC
40282004-08-13 Jan Beulich <jbeulich@novell.com>
4029 Nick Clifton <nickc@redhat.com>
4030
4031 * as.c: Add and handle new --alternate command line option.
4032 * macro.c (macro_set_alternate): New.
4033 * macro.h (macro_set_alternate): Declare.
4034 * read.c: Add and handle new .altmacro and .noaltmacro directives.
4035 * doc/as.texinfo: Document new command line option and pseudo-ops
4036 as well as insert documentation originating from gasp about
4037 alternate macro syntax.
4038 * NEWS: Mention new command line option and pseudo-ops.
4039
b2221023
MM
40402004-08-10 Mark Mitchell <mark@codesourcery.com>
4041
4042 * expr.c (operand): Handle the "~", "-", and "!" operators applied
4043 to bignums.
4044
db6579d4
PB
40452004-08-06 Paul Brook <paul@codesourcery.com>
4046
4047 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
4048 Handle new relocations.
4049 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
4050
e750405d
BW
40512004-08-05 Bob Wilson <bob.wilson@acm.org>
4052
4053 * write.c (relax_segment): Use was_address instead of address when
4054 setting fr_fix field for align frag due to backwards .org.
4055
1d70c7fb
AO
40562004-07-29 Alexandre Oliva <aoliva@redhat.com>
4057
4058 Introduce SH2a support.
4059 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
4060 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
4061 arch_sh2a_nofpu_up.
4062 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
4063 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
4064 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
4065 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
4066 to end of conditional expression.
4067 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
4068 * config/tc-sh.c: Add sh2a-nofpu support.
4069 2003-12-29 DJ Delorie <dj@redhat.com>
4070 * tc-sh.c: Add sh2a support.
4071 (parse_reg): Add tbr.
4072 (parse_at): Support @@(disp,tbr).
4073 (get_specific): Support sh2a opcodes.
4074 (insert4): New, for 4 byte relocs.
4075 (build_Mytes): Support sh2a opcodes.
4076 (md_apply_fix3_Mytes): Support sh2a opcodes.
4077 2003-12-02 Michael Snyder <msnyder@redhat.com>
4078 * config/tc-sh.c (md_parse_option): Handle sh2a.
4079 (sh_elf_final_processing): Ditto.
4080
e7fbc2bf
JT
40812004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
4082
4083 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
4084 for TE_NetBSD.
4085
9232bbb0
AM
40862004-07-27 Alan Modra <amodra@bigpond.net.au>
4087
4088 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
4089 (ppc_arch): Expand comment.
4090
670ec21d
NC
40912004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
4092
4093 * config/tc-crx.c: Support evaluating the difference between two
4094 symbols.
4095 * config/tc-crx.h: Likewise.
4096
406f8ff9 40972004-07-26 H.J. Lu <hongjiu.lu@intel.com>
38ce5b11
L
4098
4099 * config/tc-ia64.c (start_unwind_section): Set the linked-to
4100 section.
4101 (ia64_elf_section_change_hook): Set the linked-to section for
4102 SHT_IA_64_UNWIND.
4103
c05e9f04
NC
41042004-07-26 Dmitry Diky <diwil@spec.ru>
4105
4106 * config/tc-msp430.c: Add new subtargets: msp430x1610,
4107 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
4108 msp430xG438, msp430xG439.
4109
e9863d7f
DJ
41102004-07-25 Daniel Jacobowitz <dan@debian.org>
4111
4112 * doc/as.texinfo (Section, PushSection): Correct documentation
4113 for ELF.
4114
543613e9 41152004-07-21 Jan Beulich <jbeulich@novell.com>
20f0a1fc
NC
4116
4117 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
4118 permissible for the selected instruction suffix.
4119 (match_template): Don't permit 64-bit general purpose operands in
4120 32-bit mode.
4121 (finalize_imm): Permit 64-bit immediates.
4122 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
4123 specially except for the width of the used base and/or index
4124 registers. For 32-bit displacements, use sign-extended
4125 relocations only when using 64-bit addressing.
4126 Force zero displacement on rip-relative addressing when there is
4127 no other displacement.
4128 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
4129 specially except for the width of the used base and/or index
4130 registers.
4131 (parse_register): Disallow Reg64 registers in 32-bit mode.
4132
543613e9
NC
4133 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
4134 suffix if the instruction doesn't support it.
04ca8703 4135
01a3f561
MR
41362004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
4137
4138 * config/tc-mips.c (append_insn): Handle constant expressions with
4139 no associated relocation.
4140 (mips_ip): Cancel the expression after use for the Q format
4141 specifier.
4142 (parse_relocation): Return no relocation for unsupported
4143 operators.
4144 (my_getSmallExpression): Return no relocation if no relocation
4145 operators are used.
4146
e12904d2
DA
41472004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4148
4149 * config/obj-som.c (adjust_stab_sections): Add prototype.
4150 (obj_som_compiler, obj_som_version, obj_som_copyright,
4151 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
4152 * config/tc-hppa.c (update_subspace): Likewise.
4153 (is_defined_subspace): Amplify comment.
4154 * config/obj-som.h (som_frob_file): Add prototype.
4155
90c1602c
L
41562004-07-19 Christopher Faylor <cgf@timesys.com>
4157 H.J. Lu <hongjiu.lu@intel.com>
4158
4159 * subsegs.c (section_symbol): Don't create a new segment when
4160 existing segment is undefined.
4161
f263249b
RE
41622004-07-16 Richard Earnshaw <rearnsha@arm.com>
4163
4164 * config/tc-arm.c: Include include/opcode/arm.h.
4165 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
4166 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
4167 (FPU_ARCH_*): Delete.
4168 * Makefile.am: Update dependencies.
4169 * Makefile.in: Regenerate.
4170
152c65b9
NC
41712004-07-15 Nick Clifton <nickc@redhat.com>
4172
4173 * configure.in: Accept armbe as a big-endian arm configuration.
4174 * configure: Regenerate.
4175
0477af35
NC
41762004-07-13 Thomas Nystrom <thn@saeab.se>
4177
4178 * config/tc-i386.c (T_SHIFTOP): New constant.
4179 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
4180 (intel_el1): Handle '~'.
4181 (intel_get_token): Handle '<>', '&', '|' and '~'.
4182
41832004-07-13 Nick Clifton <nickc@redhat.com>
4184
4185 (md_assemble): Remove spurious newline from end of as_bad error
4186 message.
4187 (intel_e05_1): Likewise.
4188 (intel_e11): Likewise.
4189 (intel_match_token): Likewise.
4190
31302357
AS
41912004-07-11 Andreas Schwab <schwab@suse.de>
4192
4193 * config/tc-m68k.c: Convert to C90. Remove redundant
4194 declarations. Indentation fixup.
4195 [M68KCOFF]: Include "obj-coff.h" instead of declaring
4196 obj_coff_section ourselves.
04ca8703 4197
549f748d
JW
41982004-07-09 James E Wilson <wilson@specifixinc.com>
4199
4200 * config/tc-ia64.c (default_big_endian): New.
4201 (dot_byteorder, md_begin): Use it.
4202 (md_parse_option): Set it.
04ca8703 4203
1a320fbb
NC
42042004-07-09 Nick Clifton <nickc@redhat.com>
4205
4206 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
4207 * configure: Regenerate.
4208 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
4209 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
4210 sh_find_elf_flags if necessary.
4211
de7e6852
RS
42122004-07-08 Richard Sandiford <rsandifo@redhat.com>
4213
4214 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
4215 going to be split into more than one in-place addend, return 0
4216 for relocations against mergeable sections. Associate comments
4217 with code.
4218
1fe1f39c
NC
42192004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
4220
4221 * Makefile.am (CPU_TYPES): Add crx.
4222 (TARGET_CPU_CFILES): Add config/tc-crx.c.
4223 (TARGET_CPU_HFILES): Add config/tc-crx.h.
4224 (DEPTC_crx_elf): New target.
4225 (DEPOBJ_crx_elf): Likewise.
4226 (DEP_crx_elf): Likewise.
4227 * Makefile.in: Regenerate.
4228 * configure.in: Add crx* target.
4229 * configure: Regenerate.
4230 * config/tc-crx.c: New file.
4231 * config/tc-crx.h: New file.
4232 * NEWS: Mention new target.
4233
d9895649
NC
42342004-07-06 Nick Clifton <nickc@redhat.com>
4235
85fbca6a 4236 * config.in: Undefine TARGET_SYMBIAN by default.
c04f5787
AM
4237 * configure.in:
4238 * configure: Regenerate. Add sh-symbian-elf target. If
4239 selected define TARGET_SYMBIAN.
4240 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
4241 format if TARGET_SYMBIAN has been defined.
04ca8703 4242
e7bd9ea0
NC
4243 * output-file.c (output_file_create): Report the target format
4244 chosen when bfd_openw reports that it is invalid.
4245
d9895649
NC
4246 * config/obj-coff.c (coff_pseudo_table): Only define the weak
4247 pseudo for BFD based assemblers.
4248
871ec896
JR
42492004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
4250
4251 gas:
4252 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
4253 (md_parse_option): Remove redundant -isa testing.
4254 Make bfd_arch variable const.
4255 (md_show_usage): Make bfd_arch variable const.
4256
5a9ff93d
JW
42572004-07-03 James E Wilson <wilson@specifixinc.com>
4258
4259 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
4260 * config/tc-ia64.h (md_frag_check): Define.
4261
c87db184
CF
42622004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4263
4264 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
4265 externals.
4266 * doc/as.texinfo (Weak): Document PE weak symbols.
4267
3b91255e
RS
42682004-07-03 Richard Sandiford <rsandifo@redhat.com>
4269
4270 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
4271 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
4272 (mips_frob_file): Rework so that only a single pass through the
4273 relocs is needed. Allow %lo()s to have higher offsets than their
4274 corresponding %hi()s or %got()s.
4275
310ea308
NC
42762004-07-02 Nick Clifton <nickc@redhat.com>
4277
4278 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
4279 allow values which have come from undefined symbols.
4280 Always consider this fixup to have been processed as a reloc
4281 cannot be generated for it.
4282
09b935ac
AM
42832004-07-02 Alan Modra <amodra@bigpond.net.au>
4284
4285 * frags.h (struct frag): Add has_code and insn_addr fields.
4286 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
4287 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
4288 * config/tc-ppc.h (md_frag_check): Define.
4289
4d1cd5c7
MR
42902004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
4291
4292 * doc/Makefile.am (info): Rename goal to...
4293 (info-local): ... this, to preserve implicit dependencies.
4294 * doc/Makefile.in: Regenerate with automake 1.8.5.
4295
097f809a
NC
42962004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4297
4298 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
4299 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
4300 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
4301 (tc_gen_reloc): Likewise.
4302 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
4303 (m32r_parse_name): Likewise.
4304 (m32r_cgen_parse_fix_exp): Likewise.
4305 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
4306 (O_PIC_reloc): Likewise.
4307 (TC_CGEN_PARSE_FIX_EXP): Likewise..
4308 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
4309 for @GOTOFF, @GOT, @PLT.
4310
bb82af9f
NC
43112004-06-21 Jan Beulich <jbeulich@novell.com>
4312
4313 * gas/symbols.c: While discarding ordinary local absolute symbols
4314 when --strip-local-absolute is in effect, retain file symbols.
4315
990ae22a
AS
43162004-06-20 Andreas Schwab <schwab@suse.de>
4317
4318 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
4319 (md_parse_option): Likewise.
4320
32137342
NC
43212004-06-17 Jan Beulich <jbeulich@novell.com>
4322
4323 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
4324 * config/te-netware.h: New file.
4325 * config/te-ppcnw.h: Delete: Obsolete.
4326 * configure.in: Eliminate ill NetWare targets. Make generic
4327 NetWare target use proper emulation.
4328 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
4329 reference to new te-netware.h.
4330 * configure: Regenerate.
4331 * Makefile.in: Regenerate.
4332
f84d8e26
MS
43332004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
4334
4335 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
4336 comparison in .insn pseudo operation.
4337
587aac4e
AM
43382004-06-15 Alan Modra <amodra@bigpond.net.au>
4339
4340 * config/obj-coff.c (coff_adjust_section_syms): Use
4341 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
4342 (coff_frob_section): Likewise.
4343 * config/tc-mips.c (md_apply_fix3): Likewise.
4344 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
4345 (elf_frob_file_after_relocs): Likewise.
4346
2337eb33
DA
43472004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4348
b8fc22bc
DA
4349 * config/tc-hppa.c (log2): Rename to exact_log2.
4350 (pa_next_subseg): Delete unused function.
4351 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
4352 (create_new_subspace): Likewise.
4353
2337eb33
DA
4354 Bug gas/213
4355 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
4356 labels. Fix warning.
4357
53cb0362
DD
43582004-05-28 DJ Delorie <dj@redhat.com>
4359
4360 * config/tc-mn10300.h (tc_fix_adjustable): Define.
4361 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
4362 or non-merged symbols.
4363
888a75be
L
43642004-05-28 H.J. Lu <hongjiu.lu@intel.com>
4365
4366 * config/tc-ia64.c (remove_marked_resource): Save, clear and
4367 restore the old slot when inserting srlz.i/srlz.d.
4368
f6f9408f
JR
43692004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
4370
4371 * Makefile.am: Regenerate dependecies.
4372 * Makefile.in: Regenerate.
4373 * config/tc-sh.c (valid_arch): Make unsigned.
4374 (preset_target_arch): Likewise.
4375 (md_begin): Use new architecture flags system.
4376 (get_specific): Likewise.
4377 (assemble_ppi): Likewise.
4378 (md_assemble): Likewise. Also fix error check for bad opcodes.
4379 (md_parse_option): Likewise. Also generate -isa values according
4380 to the table in bfd/cpu-sh.c instead of just constants. Also
4381 allow <arch>-up ISA variants.
4382 (sh_elf_final_processing): Replace if-else chain with a call to
4383 sh_find_elf_flags().
f6f9408f 4384
580b9172
NC
43852004-05-28 Peter Barada <peter@the-baradas.com>
4386
4387 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
4388 with zero offset into mode 2 addressing to save a word.
4389
652ca075
L
43902004-05-27 H.J. Lu <hongjiu.lu@intel.com>
4391
4392 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
4393 (ar_is_only_in_integer_unit): New.
4394 (ar_is_only_in_memory_unit): New.
4395 (generate_unwind_image): Silence gcc on 32bit host.
4396 (md_assemble): Use ar_is_only_in_integer_unit instead of
4397 ar_is_in_integer_unit. Check AR access.
4398
60fed2d3
NC
43992004-05-27 Peter Barada <peter@the-baradas.com>
4400
4401 * config/tc-m68k.c (md_begin): Sort the opcode table into
4402 alphabetical order.
4403 (m68k_compare_opcode): New function to do the sorting.
4404
be8c092b
NC
44052004-05-24 Peter Barada <peter@the-baradas.com>
4406
4407 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
4408 addressing on MIT style operands.
4409 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
4410 w/mask addressing.
4411 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
4412 operands.
4413
1181c20e
AM
44142004-05-23 Alan Modra <amodra@bigpond.net.au>
4415
4416 * expr.c (operand, operator): Don't reject '++' and '--'.
4417
20e56c33
RS
44182004-05-20 Richard Sandiford <rsandifo@redhat.com>
4419
4420 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
4421 dwarf tables.
4422
04ca8703 44232004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
4424
4425 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
4426 * configure: Regenerate.
4427
0da76f83
NC
44282004-05-13 Paul Brook <paul@codesourcery.com>
4429
4430 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
4431
4b363073
NC
44322004-05-13 Joel Sherrill <joel@oarcorp.com>
4433
4434 * configure.in (or32-*-rtems*): Switch to elf.
4435 * configure: Regenerate.
4436
9598fbe5
NC
44372004-05-13 Nick Clifton <nickc@redhat.com>
4438
4439 * po/fr.po: Updated French translation.
4440
22fe14ad
NC
44412004-05-11 Nick Clifton <nickc@redhat.com>
4442
4443 * doc/as.texinfo (Section): Document G and T flags to .section
4444 directive. Document the extra arguments that the G flag
4445 requires. Document the #tls flag.
4446
44472004-05-11 H.J. Lu <hongjiu.lu@intel.com>
4448
4449 * subsegs.c (section_symbol): Create a new section symbol if
4450 the existing one doesn't match.
4451 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
4452
532c738a
RS
44532004-05-07 Richard Sandiford <rsandifo@redhat.com>
4454
4455 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
4456 to cope with VR4181A errata MD(1) and MD(4).
4457
0503b355
BF
44582004-05-07 Brian Ford <ford@vss.fsi.com>
4459
4460 * NEWS: Mention .secrel32 for pe[i]-i386.
4461
daeea990
AO
44622004-05-07 Alexandre Oliva <aoliva@redhat.com>
4463
4464 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
4465 (HANDLE_ALIGN): New.
4466
bfbdcf04
DJ
44672004-05-06 Daniel Jacobowitz <dan@debian.org>
4468
4469 * Makefile.am (DIST_SUBDIRS): Define.
4470 * aclocal.m4: Regenerate with automake 1.8.4.
4471 * Makefile.in: Likewise.
4472 * doc/Makefile.in: Likewise.
4473
5e819f9c
JW
44742004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
4475
4476 * config/tc-ia64.c (dot_serialize): Declare.
4477 (dot_serialize): New function.
4478 (md_pseudo_table): Add ".serialize.data" and
4479 ".serialize.instruction" directives.
4480
e5976317
NC
44812004-05-06 Nick Clifton <nickc@redhat.com>
4482
4483 * messages (as_internal_value_out_of_range): Print a message about
4484 a value being out of range. Be consistent about whether the
4485 values are printed in decimal or hexadecimal.
4486 (as_warn_value_out_of_range): Generate a warning message about an
4487 out of range value.
4488 (as_bad_value_out_of_range): Generate an error message about an
4489 out of range value.
4490 * as.h: Prototype the new functions.
4491 * config/tc-alpha.c (insert_operand): Use new function.
4492 * config/tc-arc.c (arc_insert_operand): Likewise.
4493 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
4494 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
4495 * config/tc-ppc.c (ppc_insert_operand): Likewise.
4496 * config/tc-s390.c (s390_insert_operand): Likewise.
4497 * config/tc-v850.c (v850_insert_operand): Likewise.
4498
996991aa
AO
44992004-05-05 Alexandre Oliva <aoliva@redhat.com>
4500
4501 * configure.in: Set em=linux for frv-*-*linux*.
4502 * configure: Rebuilt.
4503 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
4504 (frv_md_fdpic_enabled): New.
4505 * config/tc-frv.c (frv_md_fdpic_enabled): New.
4506 (DEFAULT_FDPIC): New.
4507 (frv_flags): Use DEFAULT_FDPIC.
4508 (frv_pic_flag): Likewise.
4509 (OPTION_NOPIC): New.
4510 (md_longopts): Add -mnopic.
4511 (md_parse_option): Handle it.
4512 (md_show_usage): Add -mfdpic and -mnopic.
4513
6b6e92f4
NC
45142004-05-05 Peter Barada <peter@the-baradas.com>
4515
4516 * config/tc-m68k.c: Add find_cf_chip to print list of valid
4517 chips for invalid coldfire instructions, rename selectors
4518 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
4519 add current_chip to track which chip is referred to(including save/restore),
4520 use current_chip to select control registers, not current_arch.
4521 (md_show_usage): Add new chips.
4522 * doc/c-m68k.texi: Document new command line switches.
4523
6f079ae3
JJ
45242004-05-05 Jakub Jelinek <jakub@redhat.com>
4525
4526 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
4527 (NOP_OPCODE): Define.
4528 (s390_align_code): Remove prototype.
4529 * tc-s390.c (s390_align_code): Remove.
4530
2d6ed997
L
45312004-05-04 H.J. Lu <hongjiu.lu@intel.com>
4532
4533 * config/tc-ia64.c (make_unw_section_name): Removed.
4534 (start_unwind_section): New function.
4535 (generate_unwind_image): Take const segT instead of const
4536 char *.
4537 (dot_handlerdata): Adjusted.
4538 (dot_endp): Likewise.
4539
b9f18452
L
45402004-05-02 H.J. Lu <hongjiu.lu@intel.com>
4541
4542 * config/obj-elf.c (obj_elf_change_section): Allow the
4543 ".note.GNU-stack" section has SHF_EXECINSTR.
4544
fafe6678
L
45452004-05-02 H.J. Lu <hongjiu.lu@intel.com>
4546
4547 * config/obj-elf.c (get_section): Return bfd_boolean.
4548 (obj_elf_change_section): Call bfd_get_section_by_name_if
4549 instead of bfd_map_over_sections.
4550
86654c12
L
45512004-04-30 H.J. Lu <hongjiu.lu@intel.com>
4552
4553 * config/obj-elf.c (get_section): New function.
4554 (obj_elf_change_section): Support multiple sections with same
4555 name.
4556
376eb240
NC
45572004-04-30 Nick Clifton <nickc@redhat.com>
4558
4559 * config/tc-arm.c (create_register_alias): Fix typo checking for
4560 case sensitive register aliases.
4561 (co_proc_number): Use error message string in all_reg_maps[]
4562 array.
4563 (cp_reg_required_here): Likewise.
4564 (fp_reg_required_here): Likewise.
4565
8a7140c3
NC
45662004-04-29 Brian Ford <ford@vss.fsi.com>
4567
4568 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
4569
3e722fb5
CD
45702004-04-28 Chris Demetriou <cgd@broadcom.com>
4571
4572 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
4573 (load_address, macro, mips_ip, md_parse_option)
4574 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
4575 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
4576 embedded-PIC handling, and update comments.
4577 (SWITCH_TABLE): Remove.
4578 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
4579 (enum mips_pic_level): Remove EMBEDDED_PIC.
4580 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
4581 (TC_FORCE_RELOCATION): Update comment.
4582 * ecoff.c (ecoff_build_lineno): Add comment about some code that
4583 might be safe to remove now that MIPS embedded-PIC is gone.
4584
351e2b5a
DA
45852004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4586
4587 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
4588 call to obj_set_subsection_attributes.
4589 (obj_som_init_stab_section): Likewise.
4590 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
4591 (pa_def_subspaces): Provide comdat default.
4592 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
4593 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
4594 calls to create_new_subspace and update_subspace to pass comdat flag.
4595 (create_new_subspace, update_subspace): Add new comdat argument. Use
4596 it in calls to obj_set_subsection_attributes.
4597 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
4598 and use of comdat, common and dup_comm parameters.
4599
f5842774
L
46002004-04-26 H.J. Lu <hongjiu.lu@intel.com>
4601
4602 * config/obj-elf.c (obj_elf_change_section): Check if the old
4603 group name is NULL before comparison.
4604
558fe4a7
CD
46052004-04-23 Chris Demetriou <cgd@broadcom.com>
4606
4607 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
4608
81a21e38
TS
46092004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4610
4611 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
4612
46132004-04-23 Chris Demetriou <cgd@broadcom.com>
1ffcab4b
CD
4614
4615 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
4616 (OPTION_MEMBEDDED_PIC): Remove.
4617 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
4618 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
4619 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
4620 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
4621 (OPTION_ELF_BASE): Renumber.
4622 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
4623 (md_show_usage): Remove mention of -membedded-pic.
4624 * doc/as.texinfo: Remove mention of -membedded-pic.
4625
4d0d148d
TS
46262004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4627
4628 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
4629 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
4630 a.out support.
4631 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
4632 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
4633 USE_GLOBAL_POINTER_OPT.
4634
017315e4
TS
46352004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4636
4637 * config/tc-mips.c (macro): One more use of load_delay_nop.
4638
269137b2
TS
46392004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
4640
4641 * config/tc-mips.c (load_delay_nop): New function.
4642 (load_address, macro): Use load_delay_nop() to build a nop
4643 which can be omitted with gpr_interlocks.
4644
24772049
TS
46452004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4646
4647 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
4648 cop_interlocks): Remove superfluous CPU entries.
4649
06516a5e
PB
46502004-04-22 Paul Brook <paul@codesourcery.com>
4651
4652 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
4653
fd99574b
NC
46542004-04-22 Peter Barada <peter@the-baradas.com>
4655
4656 * NEWS: Added support for EMAC instructions and MAC/EMAC
4657 Motorola syntax.
4658 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
4659 scale factor tokens, trailing_ampersand to mark mask addressing
4660 for MAC/EMAC instructions.
4661 * config/m68k-parse.y: Add options_ampersand clause, '<<',
4662 '>>'.
4663 (yylex): Handle '>', '<', and '&' following '+'.
4664 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
04ca8703 4665 architectures in archs[].
fd99574b
NC
4666 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
4667 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
4668 respectively.
4669 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
4670 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
4671 cases.
4672 Add EMAC operands to init_table[].
4673
69b97547
NC
46742004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
4675
4676 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
4677 state.
4678 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
4679 * config/tc-arm.c (enum mstate): Delete from here.
4680 (mapping_state): Remove the static mapstate variable and instead
4681 store the state in the segment. This allows a per-section mapping
4682 state. Handle and ignore MAP_UNDEFINED states.
4683 (arm_elf_change_section): Get the current mapping state from the
4684 new section.
4685 (s_ltorg): Set the mapping state to MAP_DATA.
4686 (arm_cleanup): Use arm_elf_change_section to get the mapping state
4687 for each pool as it is emitted.
4688
46892004-04-22 Nick Clifton <nickc@redhat.com>
4690
4691 * config/tc-arm.h: Formatting tidy ups.
4692
7a7f4e42
CD
46932004-04-20 Chris Demetriou <cgd@broadcom.com>
4694
4695 * NEWS: Note that MIPS -membedded-pic option is deprecated.
4696
6482c264
NC
46972004-04-20 DJ Delorie <dj@redhat.com>
4698
4699 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
4700 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
4701 [TE_PE] (O_secrel): Define.
4702 [TE_PE] (x86_pe_cons_fix_new): New.
4703 [TE_PE] (pe_directive_secrel): Likewise.
4704 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
4705
5bf10039
EC
47062004-04-19 Eric Christopher <echristo@redhat.com>
4707
c04f5787
AM
4708 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
4709 of previous patch for fix in gcc.
5bf10039 4710
77cd6497
JJ
47112004-04-19 Jakub Jelinek <jakub@redhat.com>
4712
4713 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
4714
b8861cfb
NS
47152004-04-19 Nathan Sidwell <nathan@codesourcery.com>
4716
4717 * read.c (do_align): Call md_flush_pending_output, if defined.
4718
f4c724fc
AM
47192004-04-16 Alan Modra <amodra@bigpond.net.au>
4720
4721 * expr.c (operand): Correct checks for ++ and --.
4722
a4b6e8f6
L
47232004-04-14 H.J. Lu <hongjiu.lu@intel.com>
4724
4725 * config/tc-generic.c: Add some comments.
4726
d766e8ec
RS
47272004-04-14 Richard Sandiford <rsandifo@redhat.com>
4728
4729 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
4730 -{no-}mfix-vr4122-bugs.
4731 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
4732 (append_insn, mips_emit_delays): Update accordingly.
4733 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
4734 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
4735 (md_parse_option): Update after above changes.
4736 (md_show_usage): Add -mfix-vr4120.
4737
ed9589d4
BW
47382004-04-13 Bob Wilson <bob.wilson@acm.org>
4739
4740 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
4741 of .section directive; add a reference to the ELF .subsection
4742 directive.
4743
097dba13
NC
47442004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4745
4746 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
4747 in parallel.
4748
279500de
TS
47492004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4750
4751 * Makefile.am: Remove mips from aout targets.
4752 * Makefile.in: Regenerate.
4753 * configure.in: Remove mips-dec-bsd* target.
4754 * configure: Regenerate.
4755
b7d7dc63
AM
47562004-04-07 Alan Modra <amodra@bigpond.net.au>
4757
4758 PR 96
4759 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
4760 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
4761 Update "mapping". Restrict some @ modifiers to 32 bit.
4762
f55629b8
KK
47632004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
4764 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4765
4766 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
4767 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
4768 dont_adjust_reloc_32 is set.
4769 (md_longopts): Add option -renesas.
4770 (md_parse_option, md_show_usage): Likewise.
4771 * doc/c-sh.texi: Likewise.
4772
a7844384
NC
47732004-04-01 Dave Korn <dk@artimi.com>
4774
4775 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
4776 hi16 and lo16 fixS structs.
4777 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
4778 exactly the same way as for RELOC_DLX_REL16.
4779 (machine_ip): properly respect LO flag in the_insn and
4780 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
4781 (md_apply_fix3): apply RELOC_DLX_LO16.
4782
6c71dbc4
SS
47832004-03-30 Stan Shebs <shebs@apple.com>
4784
4785 Remove long-obsolete MPW support.
4786 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
4787 * configure.in: Remove mention of ppc-*-mpw* config.
4788 * configure.in: Likewise.
4789
7cc69913
NC
47902004-03-30 Nick Clifton <nickc@redhat.com>
4791
4792 * config/tc-arm.c (meabi_flags): Make its use conditional upon
4793 OBJ_ELF being defined.
4794
53fbb48a
AM
47952004-03-27 Alan Modra <amodra@bigpond.net.au>
4796
4797 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
4798
d507cf36
PB
47992004-03-23 Paul Brook <paul@codesourcery.com>
4800
4801 * config/tc-arm.c (meabi_flags): New variable.
4802 (arm_parse_eabi): New function.
4803 (md_begin): Set flags for EABI v3.
4804 (arm_eabis): Add.
4805 (arm_long_opts): Add meabi.
ab1e9ef7 4806 * doc/as.texinfo <ARM>: Document -meabi.
d507cf36
PB
4807 * doc/c-arm.texi: Ditto.
4808
88d65ad6
BW
48092004-03-22 Bob Wilson <bob.wilson@acm.org>
4810
4811 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
4812 tables even when use_literal_section flag is not set.
4813
13ef8878
AM
48142004-03-22 Alan Modra <amodra@bigpond.net.au>
4815
4816 * config/tc-sh.c: Remove trailing whitespace.
4817
1048a9ba
HPN
48182004-03-22 Hans-Peter Nilsson <hp@axis.com>
4819
4820 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
4821 --mul-bug-abort and the default behavior.
4822 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
4823 (err_for_dangerous_mul_placement): New variable.
4824 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
4825 macros.
4826 (md_cris_relax_table): Have placeholder for STATE_MUL.
4827 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
4828 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
4829 case doing nothing.
4830 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
4831 STATE_BYTE)>: Ditto.
4832 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
4833 alignment and position of this frag, emit error message if
4834 suspicious.
4835 (md_assemble): For a multiply insn and when checking it,
4836 transform the current frag into a special frag for that purpose.
4837 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
4838 OPTION_MULBUG_ABORT_ON>: Handle new options.
4839
a7877748
BW
48402004-03-19 Bob Wilson <bob.wilson@acm.org>
4841
4842 * config/tc-xtensa.c (mark_literal_frags): New function.
4843 (xtensa_move_literals): Call mark_literal_frags for all literal
4844 segments, including init and fini literal segments.
4845 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
4846
9992270f
DA
48472004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4848
4849 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
4850 (pa_comm): Set BSF_OBJECT in symbol flags.
4851
6e1772d5
AM
48522004-03-19 Alan Modra <amodra@bigpond.net.au>
4853
4854 * Makefile.am: Run "make dep-am".
4855 * Makefile.in: Regenerate.
4856 * doc/Makefile.in: Regenerate.
4857 * config.in: Regenerate.
4858 * po/gas.pot: Regenerate.
4859
3e4caed2
NS
48602004-03-18 Nathan Sidwell <nathan@codesourcery.com>
4861
c95b35a9
NS
4862 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
4863 (demand_empty_rest_of_line): Issue an error here.
4864 (ignore_rest_of_line): Silently skip to end.
4865 (demand_copy_string): Issue an error, not warning.
4866 (equals): Likewise.
4867 * config/obj-elf.c (obj_elf_section_name): Likewise.
4868 (obj_elf_section): Likewise.
4869 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
4870 (arc_extinst): Likewise.
4871 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
4872 (dot_spill): Likewise.
4873 (dot_unwabi): Likewise.
4874 (dot_prologue): Likewise.
4875
3e4caed2
NS
4876 * expr.c (operand): Reject ++ and --.
4877 (operator): Likewise.
4878
2ce4cc60
KK
48792004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4880
4881 * config/tc-sh.c: Include dw2gencfi.h.
4882 (sh_cfi_frame_initial_instructions): New function.
4883 (sh_regname_to_dw2regnum): Likewise.
4884 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
4885 file.
4886 (TARGET_USE_CFIPOP): Define.
4887 (tc_cfi_frame_initial_instructions): Likewise.
4888 (tc_regname_to_dw2regnum): Likewise.
4889 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
4890 * Makefile.am: Update dependencies.
4891 * Makefile.in: Regenerate.
4892
9183ed4b
AM
48932004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4894
4895 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
4896 * configure: Regenerate.
4897
00bbdfe7
BW
48982004-03-12 Bob Wilson <bob.wilson@acm.org>
4899
4900 * read.c (s_leb128): Call md_flush_pending_output.
4901
0f10071e
ML
49022004-03-12 Michal Ludvig <mludvig@suse.cz>
4903
4904 * config/tc-i386.c (output_insn): Handle PadLock instructions.
4905 * config/tc-i386.h (CpuPadLock): New define.
4906 (CpuUnknownFlags): Added CpuPadLock.
4907
84c84759
AS
49082004-03-07 Andreas Schwab <schwab@suse.de>
4909
4910 * doc/c-hppa.texi (HPPA Directives): Fix typo.
4911
6ec51dba
RH
49122004-03-07 Richard Henderson <rth@redhat.com>
4913
4914 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
4915 (cfi_finish): Likewise for fde.
4916
bae25f19
L
49172004-03-05 H.J. Lu <hongjiu.lu@intel.com>
4918
4919 * config/tc-ia64.c (md_assemble): Properly handle NULL
4920 align_frag.
4921 (ia64_handle_align): Don't abort if failed to add a stop bit.
4922
ab509236
L
49232004-03-04 H.J. Lu <hongjiu.lu@intel.com>
4924
4925 * Makefile.in: Regenerated.
4926 * aclocal.m4: Likewise.
4927 * configure: Likewise.
4928 * doc/Makefile.in: Likewise.
4929
d9201763
L
49302004-03-03 H.J. Lu <hongjiu.lu@intel.com>
4931
4932 * config/tc-ia64.c (dot_align): New.
4933 (ia64_do_align): Make it static.
4934 (md_pseudo_table): Use "dot_align" for "align".
4935 (ia64_md_do_align): Don't set align_frag here.
4936 (ia64_handle_align): Add a stop bit to the previous bundle if
4937 needed.
4938
4939 * config/tc-ia64.h (ia64_do_align): Removed.
4940
ae51a426
JR
49412003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
4942
4943 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
4944 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
4945 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
4946 the most general type or the user specifically requested it.
4947 (md_assemble): Add a new error message for when an instruction
4948 is understood, but is not allowed due to an -isa option.
4949
9545c4ce
L
49502004-03-02 H.J. Lu <hongjiu.lu@intel.com>
4951
4952 * config/tc-ia64.c (align_frag): New.
4953 (md_assemble): Set the tc_frag_data field in align_frag for
4954 IA64_OPCODE_FIRST instructions.
4955 (ia64_md_do_align): Set align_frag.
4956 (ia64_handle_align): Add a stop bit if needed.
4957
4958 * config/tc-ia64.h (TC_FRAG_TYPE): New.
4959 (TC_FRAG_INIT): New.
4960
676a64f4
RS
49612004-03-01 Richard Sandiford <rsandifo@redhat.com>
4962
4963 * config/tc-frv.c (fr400_audio): New variable.
4964 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
4965 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
4966 (target_implements_insn_p): New function.
4967 (md_assemble): Report an error if the processor doesn't implement
4968 the instruction.
4969
bd337dde
NC
49702004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4971
4972 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
4973 (md_parse_option): Ditto.
4974 (OPTION_NO_SPECIAL_M32R): Added.
4975 (md_show_usage): Document it.
4976 (enable_speial_m32r): Changed a default value from 0 to 1.
4977 * doc/c-m32r.texi: Document the -no-bitinst option.
4978
78878175
NC
49792004-02-27 Nick Clifton <nickc@redhat.com>
4980
4981 * config/tc-sh.c (get_operand): Revert previous delta.
4982 (tc_gen_reloc): Check for an unknown reloc type before processing
4983 the addend.
4984
1d6d62a4
MS
49852004-02-27 Hannes Reinecke <hare@suse.de>
4986
4987 * config/tc-s390.c (s390_insn): Correct range check for opcode in
4988 .insn pseudo operation.
4989
4aa3e325
NC
49902004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
4991
4992 * config/tc-sh.c (get_operand): In case of #Imm, check has been
4993 added for wrong syntax.
4994
73369e65
EC
49952004-02-26 Eric Christopher <echristo@redhat.com>
4996
4997 * config/tc-mips.c (mips_dwarf2_addr_size): New.
4998 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
4999
6a5709a5
JR
50002004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
5001
5002 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
5003 nibble types to assembler.
5004
95385380
FF
50052004-02-25 Fred Fish <fnf@redhat.com>
5006
5007 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
5008
b5e0fabd
JW
50092004-02-20 James E Wilson <wilson@specifixinc.com>
5010
5011 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
5012 finalize_syms.
5013 (fixup_unw_records): New arg before_relax. Pass to slot_index.
5014 (ia64_estimate_size_before_relax): New.
5015 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
5016 (generate_unwind_image): Pass 1 to fixup_unw_records.
5017 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
5018 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
5019
2f01ffbf
JJ
50202004-02-19 Jakub Jelinek <jakub@redhat.com>
5021
5022 * stabs.c (generate_asm_file): Avoid warning about use of
5023 uninitialized variable.
5024
9c59842f
JW
50252004-02-18 David Mosberger <davidm@hpl.hp.com>
5026
5027 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
5028 body, and endp, allow unwind records which do not have a "t"
5029 (time/instruction) field.
5030
34920d91
NC
50312004-02-17 Petko Manolov <petkan@nucleusys.com>
5032
5033 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
5034 (do_mav_dspsc_2): Likewise.
5035 Fix accumulator registers move opcodes.
5036
4dde8e61 50372004-02-13 Hannes Reinecke <hare@suse.de>
13ef8878 5038 Jakub Jelinek <jakub@redhat.com>
4dde8e61
AJ
5039
5040 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
5041
936cf02e
JW
50422004-02-10 Steve Ellcey <sje@cup.hp.com>
5043
5044 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
5045 (tc_frob_symbol): New macro definition.
5046 * config/tc-ia64.c (ia64_frob_symbol): New routine.
5047
e41f12f3
DJ
50482004-02-09 Daniel Jacobowitz <drow@mvista.com>
5049
5050 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
5051 read-only.
5052
a8a3b3b2
NS
50532004-02-09 Nathan Sidwell <nathan@codesourcery.com>
5054
5055 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
5056 (TC_CASE_SENSITIVE): ... this.
5057 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
5058 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
5059
c97b7ef6
JW
50602004-02-06 James E Wilson <wilson@specifixinc.com>
5061
5062 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
5063 (generate_unwind_image): Re-add it here.
5064
e4475e39
NS
50652004-02-06 Nathan Sidwell <nathan@codesourcery.com>
5066
5067 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
5068 * read.h (SKIP_WHITESPACE): Turn into an expression.
5069 * read.c (read_a_source_file): A pseudo is removed by having a
5070 NULL handler.
5071
5738bc24
JW
50722004-02-05 James E Wilson <wilson@specifixinc.com>
5073
5074 * config/tc-ia64.c (output_endp): New.
5075 (count_bits): Delete.
5076 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
5077 endp unwind records.
5078 (fixup_unw_records): Handle endp unwind records. Delete code for
5079 shortening prologue regions not followed by a body record.
5080 (dot_endp): Call add_unwind_entry to emit endp unwind record.
5081 * config/tc-ia64.h (unw_record_type): Add endp.
5082
d6e78c11
JW
50832004-02-03 James E Wilson <wilson@specifixinc.com>
5084
5085 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
5086 fill padding bytes with zeroes.
5087 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
5088 sets unwind_record slot_number and slot_frag fields.
5089
f6a22291
MR
50902004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5091
5092 * config/tc-mips.c (add_got_offset_hilo): New function.
5093 (macro): Use load_register() and add_got_offset_hilo() to load
5094 constants instead of hardcoding code sequences throughout.
5095
127cab00
L
50962004-01-28 H.J. Lu <hongjiu.lu@intel.com>
5097
5098 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
5099
6358301e
NC
51002004-01-26 Bernardo Innocenti <bernie@develer.com>
5101
5102 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
5103 like m68k-elf.
5104 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
5105 of hard-coded test for TARGET_OS=elf.
5106
c8978940
CD
51072004-01-24 Chris Demetriou <cgd@broadcom.com>
5108
5109 * config/tc-mips.c (hilo_interlocks): Change definition
5110 so that MIPS32, MIPS64 and later ISAs are included, along with
5111 the already-included machines. Update comments.
5112
c3ba240c
DJ
51132004-01-23 Daniel Jacobowitz <drow@mvista.com>
5114
5115 * config/tc-arm.c (tc_gen_reloc): Improve error message for
5116 undefined local labels.
5117
e864ceca
RS
51182004-01-23 Richard Sandiford <rsandifo@redhat.com>
5119
5120 * config/tc-mips.c (load_address, macro): Update comments about
5121 NewABI GP relaxation.
5122
67c0d1eb
RS
51232004-01-23 Richard Sandiford <rsandifo@redhat.com>
5124
5125 * config/tc-mips.c (macro_build): Remove place and counter arguments.
5126 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
5127 (mips16_macro_build, macro_build_jalr): Remove counter argument.
5128 (set_at, load_register, load_address, move_register): Likewise.
5129 (load_got_offset, add_got_offset): Likewise.
5130 Update all calls and tidy accordingly.
5131
584892a6
RS
51322004-01-23 Richard Sandiford <rsandifo@redhat.com>
5133
5134 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
5135 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
5136 (RELAX_USE_SECOND): Bump to 0x10000.
5137 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
5138 (mips_macro_warning): New variable.
5139 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
5140 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
5141 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
5142 of RELAX_ENCODE.
5143 (append_insn): Update mips_macro_warning.sizes.
5144 (macro_start, macro_warning, macro_end): New functions.
5145 (macro_build): Don't emit warnings here.
5146 (macro_build_lui, md_estimate_size_before_relax): ...or here.
5147 (md_convert_frag): Check for cases where one macro alternative
5148 needs a warning and the other doesn't. Emit a warning if the
5149 longer sequence was chosen.
5150
4d7206a2
RS
51512004-01-23 Richard Sandiford <rsandifo@redhat.com>
5152
5153 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
5154 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
5155 the first sequence, the size of the second sequence, and a flag
5156 that says whether we should warn.
5157 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
5158 (RELAX_FIRST, RELAX_SECOND): New.
5159 (mips_relax): New variable.
5160 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
5161 (append_insn): Remove "place" argument. Use mips_relax.sequence
5162 rather than "place" to check whether we're expanding the second
5163 alternative of a relaxable macro. Remove redundant check for
5164 branch relaxation. If generating a normal insn, and there
5165 is not enough room in the current frag, call relax_close_frag()
5166 to close it. Update mips_relax.sizes[]. Emit fixups for the
5167 second version of a relaxable macro. Record the first relaxable
5168 fixup in mips_relax. Remove tc_gen_reloc workaround.
5169 (macro_build): Remove all uses of "place". Use mips_relax.sequence
5170 in the same way as in append_insn.
5171 (mips16_macro_build): Remove "place" argument.
5172 (macro_build_lui): As for macro_build. Don't drop the add_symbol
5173 when generating the second version of a relaxable macro.
5174 (load_got_offset, add_got_offset): New functions.
5175 (load_address, macro): Use new relaxation machinery. Remove
5176 tc_gen_reloc workarounds.
5177 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
5178 version of a relaxable macro is needed. Return -RELAX_SECOND if the
5179 first version is needed.
5180 (tc_gen_reloc): Remove relaxation handling.
5181 (md_convert_frag): Go through the fixups for a relaxable macro and
5182 mark those that belong to the unneeded alternative as done. If the
5183 second alternative is needed, adjust the fixup addresses to account
5184 for the deleted first alternative.
5185
0530d30a
RS
51862004-01-23 Richard Sandiford <rsandifo@redhat.com>
5187
5188 * frags.h (frag_room): Declare.
5189 * frags.c (frag_room): New function.
5190 * doc/internals.texi: Document it.
5191
048cdf86
TS
51922004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5193
5194 * config/tc-mips.c (append_insn): Don't do r3900 interlock
5195 optimization for -mtune=r3900, as this will break on other CPUs.
5196
28d39d1a
NC
51972004-01-11 Tom Rix <tcrix@worldnet.att.net>
5198
5199 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
73369e65 5200 be relaxed, use fixup.
28d39d1a
NC
5201 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
5202
26664553
JJ
52032004-01-19 Jakub Jelinek <jakub@redhat.com>
5204
5205 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
5206 precision operands.
5207
895921c9
MR
52082004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5209
5210 * config/tc-mips.c (append_insn): Properly detect variant frags
5211 that preclude swapping of relaxed branches. Correctly swap
5212 instructions between frags when dealing with relaxed branches.
5213
f8b73030
MR
52142004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5215
5216 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
5217 throughout.
5218 * aclocal.m4: Regenerate.
5219 * configure: Regenerate.
5220
ca9a79a1 52212004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
73369e65 5222
ca9a79a1
NC
5223 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
5224 manipulation insns.
5225
cc3d92a5
RS
52262004-01-12 Richard Sandiford <rsandifo@redhat.com>
5227
5228 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
5229 reloc, reserve space for the delay slot as well as the jalr itself.
5230
e45d0630
PB
52312004-01-09 Paul Brook <paul@codesourcery.com>
5232
5233 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
5234 (do_vfp_sp2_from_reg2): New function.
5235 (insns): Use them.
5236 (do_vfp_dp_from_reg2): Check return values properly.
5237
81912461
ILT
52382004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
5239
78849248
ILT
5240 * config/tc-mips.c (warn_nops): Remove static variable.
5241 (macro): Remove test of warn_nops.
5242 (md_shortops): Remove 'n'.
5243 (md_parse_option): Remove 'n' case.
5244 (md_show_usage): Remove -n.
5245 * doc/as.texinfo (Overview): Remove MIPS -n option.
5246 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
5247 * NEWS: Mention removal of MIPS -n option.
5248
81912461
ILT
5249 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
5250 (cop_interlocks): Check ISA level.
5251 (cop_mem_interlocks): Define.
5252 (reg_needs_delay): Check cop_interlocks rather than
5253 ISA_HAS_COPROC_DELAYS.
5254 (append_insn): Likewise. Use cop_mem_interlocks rather than
5255 directly checking mips_opts.isa.
5256 (mips_emit_delays): Likewise.
5257
73f20958
L
52582004-01-07 H.J. Lu <hongjiu.lu@intel.com>
5259
5260 * config/tc-ia64.c (unwind): Move next_slot_number and
5261 next_slot_frag to ...
5262 (unw_rec_list): Here.
5263 (free_list_records): Removed.
5264 (output_unw_records): Likewise.
5265 (generate_unwind_image): Make it void.
5266 (alloc_record): Initialize next_slot_number and next_slot_frag.
5267 (slot_index): Take .org, .space and .align into account.
5268 (fixup_unw_records): Don't set slot_number to 0. Use
5269 list->next_slot_number and list->next_slot_frag instead of
5270 unwind.next_slot_number and unwind.next_slot_frag.
5271 (ia64_convert_frag): New.
5272 (generate_unwind_image): Generate a rs_machine_dependent frag
5273 for unwind record.
5274 (emit_one_bundle): Use list->next_slot_number and
5275 list->next_slot_frag instead of unwind.next_slot_number and
5276 unwind.next_slot_frag.
5277
5278 * config/tc-ia64.h (md_convert_frag): Defined as
5279 ia64_convert_frag.
5280 (md_estimate_size_before_relax): Defined as (f)->fr_var.
5281
99d09cdb
AO
52822004-01-06 Alexandre Oliva <aoliva@redhat.com>
5283
5284 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
5285 * config/tc-frv.h (md_apply_fix3): Don't define.
5286 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
5287 operands.
5288 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
5289 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
5290 * config/tc-frv.c (line_separator_chars): Add `!'.
5291 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
5292 * config/tc-frv.c (md_assemble): Clear insn upfront.
5293 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
5294 * config/tc-frv.c (OPTION_FDPIC): New macro.
5295 (md_longopts): Add mfdpic.
5296 (md_parse_option): Handle it.
5297 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
5298 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
5299 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
5300 (frv_pic_ptr): Parse funcdesc.
5301
4a4c4a1d
MR
53022004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5303
5304 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
5305 gasver.texi. Remove duplicate symbol definitions for texi2pod.
5306
2251dd89
MR
53072004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5308
5309 * Makefile.am (Makefile): Move the dependency on
5310 $(BFDDIR)/configure.in to...
5311 (CONFIG_STATUS_DEPENDENCIES): ... here.
5312 (AUTOMAKE_OPTIONS): Require automake 1.8.
5313 * Makefile.in: Regenerate.
5314 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
5315 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
5316 $(BFDDIR)/configure.in here as well.
5317 * doc/Makefile.in: Regenerate.
5318
c6581168
MR
53192004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5320
5321 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
5322 * Makefile.in: Regenerate.
5323 * aclocal.m4: Regenerate.
5324 * doc/Makefile.am (install, install-info): Remove.
5325 (install-data-local): A new hook for install-info.
5326 (AUTOMAKE_OPTIONS): Require automake 1.8.
5327 * doc/Makefile.in: Regenerate.
5328
303e7b79
NC
53292004-01-02 Nutan Singh <nutan@kpitcummins.com>
5330
5331 * doc/c-sh.texi: Update description about floating point behavior
5332 of SH family.
5333
b50c15dc
NC
53342004-01-02 Bernardo Innocenti <bernie@develer.com>
5335
5336 * configure.in: Add m68k-uClinux target.
5337 * configure: Regenerate.
7de9afa2 5338
c9e214e5 5339For older changes see ChangeLog-0203
08d56133
NC
5340\f
5341Local Variables:
5342mode: change-log
5343left-margin: 8
5344fill-column: 74
5345version-control: never
5346End:
This page took 0.521056 seconds and 4 git commands to generate.