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