2005-08-12 Kris Warkentin <kewarken@qnx.com>
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
77592908
DD
12005-08-12 Dmitry Diky <diwil@spec.ru>
2 * config/tc-msp430.c (msp430_enable_relax): New flag.
3 (msp430_enable_polys): Likewise.
4 (OPTION_RELAX): New option.
5 (OPTION_POLYMORPHS): Likewise.
6 (md_longopts): New long options.
7 (md_show_usage): Updated.
8 (md_parse_option): Add new options handler.
9 (msp430_operands): Add check if polymorph insns are enabled.
10 (msp430_force_relocation_local): New function.
11 (md_apply_fix): Now delete relocs according to new flags combination.
12 (msp430_relax_frag): Convert long branches to short branches only if
13 flag msp430_enable_relax is set.
14 * config/tc-msp430.h (TC_FORCE_RELOCATION_LOCAL): Defined.
15 (msp430_force_relocation_local): Likewise.
16 * doc/c-msp430.texi: Describe new options.
17
e079bef8
ILT
182005-08-11 Ian Lance Taylor <ian@airs.com>
19
20 * Makefile.am ($(srcdir)/make-gas.com): Remove target.
21 (stamp-mk.com): Likewise.
22 (EXTRA_DIST): Remove make-gas.com from list.
23 (MOSTLYCLEANFILES): Remove stamp-mk.com from list.
24 * Makefile.in: Regenerate.
25
4924bf8f
HPN
262005-08-11 Hans-Peter Nilsson <hp@axis.com>
27
28 * subsegs.c (subseg_change): Move declaration of seginfo to before
29 first statement.
30
7be1c489
AM
312005-08-11 Alan Modra <amodra@bigpond.net.au>
32
33 * README-vms: Delete.
34 * config-gas.com: Delete.
35 * makefile.vms: Delete.
36 * vmsconf.sh: Delete.
37 * config/atof-tahoe.c: Delete.
38 * config/m88k-opcode.h: Delete.
39 * config/obj-bout.c: Delete.
40 * config/obj-bout.h: Delete.
41 * config/obj-hp300.c: Delete.
42 * config/obj-hp300.h: Delete.
43 * config/tc-a29k.c: Delete.
44 * config/tc-a29k.h: Delete.
45 * config/tc-h8500.c: Delete.
46 * config/tc-h8500.h: Delete.
47 * config/tc-m88k.c: Delete.
48 * config/tc-m88k.h: Delete.
49 * config/tc-tahoe.c: Delete.
50 * config/tc-tahoe.h: Delete.
51 * config/tc-tic80.c: Delete.
52 * config/tc-tic80.h: Delete.
53 * config/tc-w65.c: Delete.
54 * config/tc-w65.h: Delete.
55 * config/te-aux.h: Delete.
56 * config/te-delt88.h: Delete.
57 * config/te-delta.h: Delete.
58 * config/te-dpx2.h: Delete.
59 * config/te-hp300.h: Delete.
60 * config/te-ic960.h: Delete.
61 * config/vms-a-conf.h: Delete.
62 * doc/c-a29k.texi: Delete.
63 * doc/c-h8500.texi: Delete.
64 * doc/c-m88k.texi: Delete.
65 * README: Remove obsolete examples, and list of supported targets.
66 * Makefile.am: Remove a29k, h8500, m88k, tahoe, tic80, w65,
67 bout and hp300 support.
68 (DEP_FLAGS): Don't define BFD_ASSEMBLER.
69 * configure.in: Remove --enable-bfd-assembler, need_bfd,
70 primary_bfd_gas.
71 * configure.tgt: Remove a29k, h8300-coff, h8500-*, i960 non-elf,
72 m68k non bfd, m88k, or32-coff, tic80-*, vax non-bfd, w65k-*, *-nindy.
73 * as.c: Remove all non-BFD_ASSEMBLER code, support for above targets.
74 * as.h: Likewise.
75 * dw2gencfi.c: Likewise.
76 * dwarf2dbg.c: Likewise.
77 * ehopt.c: Likewise.
78 * input-file.c: Likewise.
79 * listing.c: Likewise.
80 * literal.c: Likewise.
81 * messages.c: Likewise.
82 * obj.h: Likewise.
83 * output-file.c: Likewise.
84 * read.c: Likewise.
85 * stabs.c: Likewise.
86 * struc-symbol.h: Likewise.
87 * subsegs.c: Likewise.
88 * subsegs.h: Likewise.
89 * symbols.c: Likewise.
90 * symbols.h: Likewise.
91 * tc.h: Likewise.
92 * write.c: Likewise.
93 * write.h: Likewise.
94 * config/aout_gnu.h: Likewise.
95 * config/obj-aout.c: Likewise.
96 * config/obj-aout.h: Likewise.
97 * config/obj-coff.c: Likewise.
98 * config/obj-coff.h: Likewise.
99 * config/obj-evax.h: Likewise.
100 * config/obj-ieee.h: Likewise.
101 * config/tc-arm.c: Likewise.
102 * config/tc-arm.h: Likewise.
103 * config/tc-avr.c: Likewise.
104 * config/tc-avr.h: Likewise.
105 * config/tc-crx.h: Likewise.
106 * config/tc-d10v.h: Likewise.
107 * config/tc-d30v.h: Likewise.
108 * config/tc-dlx.h: Likewise.
109 * config/tc-fr30.h: Likewise.
110 * config/tc-frv.h: Likewise.
111 * config/tc-h8300.c: Likewise.
112 * config/tc-h8300.h: Likewise.
113 * config/tc-hppa.h: Likewise.
114 * config/tc-i370.h: Likewise.
115 * config/tc-i386.c: Likewise.
116 * config/tc-i386.h: Likewise.
117 * config/tc-i860.h: Likewise.
118 * config/tc-i960.c: Likewise.
119 * config/tc-i960.h: Likewise.
120 * config/tc-ip2k.h: Likewise.
121 * config/tc-iq2000.h: Likewise.
122 * config/tc-m32c.h: Likewise.
123 * config/tc-m32r.h: Likewise.
124 * config/tc-m68hc11.h: Likewise.
125 * config/tc-m68k.c: Likewise.
126 * config/tc-m68k.h: Likewise.
127 * config/tc-maxq.c: Likewise.
128 * config/tc-maxq.h: Likewise.
129 * config/tc-mcore.c: Likewise.
130 * config/tc-mcore.h: Likewise.
131 * config/tc-mn10200.h: Likewise.
132 * config/tc-mn10300.c: Likewise.
133 * config/tc-mn10300.h: Likewise.
134 * config/tc-ms1.h: Likewise.
135 * config/tc-msp430.c: Likewise.
136 * config/tc-msp430.h: Likewise.
137 * config/tc-ns32k.c: Likewise.
138 * config/tc-ns32k.h: Likewise.
139 * config/tc-openrisc.h: Likewise.
140 * config/tc-or32.c: Likewise.
141 * config/tc-or32.h: Likewise.
142 * config/tc-ppc.c: Likewise.
143 * config/tc-ppc.h: Likewise.
144 * config/tc-s390.h: Likewise.
145 * config/tc-sh.c: Likewise.
146 * config/tc-sh.h: Likewise.
147 * config/tc-sparc.c: Likewise.
148 * config/tc-tic30.c: Likewise.
149 * config/tc-tic30.h: Likewise.
150 * config/tc-tic4x.c: Likewise.
151 * config/tc-tic4x.h: Likewise.
152 * config/tc-tic54x.c: Likewise.
153 * config/tc-tic54x.h: Likewise.
154 * config/tc-v850.h: Likewise.
155 * config/tc-vax.c: Likewise.
156 * config/tc-vax.h: Likewise.
157 * config/tc-xstormy16.h: Likewise.
158 * config/tc-xtensa.h: Likewise.
159 * config/tc-z8k.c: Likewise.
160 * config/tc-z8k.h: Likewise.
161 * config/vms-a-conf.h
162 * doc/Makefile.am: Likewise.
163 * doc/all.texi: Likewise.
164 * doc/as.texinfo: Likewise.
829c3ed3 165 * doc/internals.texi: Likewise.
7be1c489
AM
166 * doc/Makefile.in: Regenerate.
167 * Makefile.in: Regenerate.
168 * configure: Regenerate.
169 * config.in: Regenerate.
170 * po/POTFILES.in: Regenerate.
171
2f6178c1
NC
1722005-08-09 Nick Clifton <nickc@redhat.com>
173
174 PR 1070
175 * macro.c (getstring): Do not treat round parentheses exactly the
176 same as angle brackets - the parentheses need to be preserved and
177 passed on to the macro processing code.
178
44c86e8c
NC
1792005-08-08 Nick Clifton <nickc@redhat.com>
180
181 * config/tc-msp430.c (MSP430_ISA_21): Define.
182 (mcu_types): Add entries for msp430x21xx variants.
183
df40eaf9
NC
1842005-08-08 Nick Clifton <nickc@redhat.com>
185
186 PR 1070
187 * macro.c (getstring): Treat round parentheses in the same way as
188 angle brackets.
189 (get_any_string): Likewise.
190
5a14ab23
L
1912005-08-07 H.J. Lu <hongjiu.lu@intel.com>
192
193 PR gas/1118
194 * as.c (parse_args): Handle -al=<FILE>.
195
47837f8e
NC
1962005-08-07 Nick Clifton <nickc@redhat.com>
197
198 * read.c (s_app_line): Accept a line number of 0 for compatibility
199 with gcc's output for assembler-with-cpp files.
200
e27ec89e
PB
2012005-08-05 Paul Brook <paul@codesourcery.com>
202
203 * config/tc-arm.c (current_it_mask, current_cc): New variables.
204 (do_t_add_sub): Use correct encodings inside IT block.
205 (do_t_arit3c): Ditto.
206 (do_t_it): Simplify logic. Set current_it_mask and current_cc.
207 (md_assemble): Verify conditional suffixes agains IT blocks.
208
9c3c69f2
PB
2092005-08-05 Paul Brook <paul@codesourcery.com>
210
211 * config/tc-arm.c (encode_thumb32_immediate): Only accept shifted
212 constants.
213 (encode_thumb32_shifted_operand): Prohibit register shifts.
214 (encode_thumb32_addr_mode): Fix typo.
215 (insns): Correct thumb2 ldm and stm opcodes.
216
f2184508
NC
2172005-08-02 Khem Raj <kraj@mvista.com>
218
219 * config/tc-arm.c (do_iwmmxt_wldstd): Correct the offset range for
220 WLDRD/WSTRD instruction.
221
4e6935a6
AM
2222005-08-02 Alan Modra <amodra@bigpond.net.au>
223
224 * config/tc-ppc.c (md_apply_fix <ELF>): Don't warn on overflow
225 if emitting a reloc.
226
8a06b769
TS
2272005-07-29 Thiemo Seufer <ths@networkno.de>
228
229 * config/tc-mips.c (s_mips_globl): Allow multiple symbols per .globl.
230
e9f89963
PB
2312005-07-29 Paul Brook <paul@codesourcery.com>
232
233 * config/tc-arm.c (T16_32_TAB): Add "addr". Fix encoding of push and
234 pop.
235 (do_t_addr): Implement 32-bit variant.
236 (do_t_push_pop): Make some errors warnings. Handle single register
237 32-bit case.
238 (insns): Use tCE for adr.
239 (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_ADD_PC12.
240 (md_apply_fix): Ditto.
241
92e90b6e
PB
2422005-07-29 Paul Brook <paul@codesourcery.com>
243
244 * config/tc-arm.c (parse_tb): New function.
245 (enum operand_parse_code): Add OP_TB.
246 (parse_operands): Handle OP_TB.
247 (do_t_add_sub_w, do_t_tb): New functions.
248 (insns): Add entries for addw, subw, tbb and tbh.
249 (md_apply_fix): Handle BFD_RELOC_ARM_T32_IMM12.
250
0a7b9ba6
NC
2512005-07-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
252
253 * config/tc-m32r.c (m32r_check_fixup): Fixed X_op check.
254
17d4e2a2
L
2552007-07-27 H.J. Lu <hongjiu.lu@intel.com>
256
257 * config/tc-i386.c (handle_large_common): Declare only for ELF.
258
ba825241
JB
2592005-07-27 Jan Beulich <jbeulich@novell.com>
260
261 * config/tc-ia64.h (unw_r_record): Change type of fr_mem to unsigned
262 int.
263 (unw_p_record): Remove unused/redundant fields imask and rmask.
264 Combine spoff and pspoff into a union. Combine gr and br into a
265 union. Change type of grmask and brmask to unsigned char. Change type
266 of frmask to unsigned int.
267 (unw_x_record): Combine spoff, pspoff, and treg into a union.
268 * config/tc-ia64.c (unwind): New field 'pending_saves'.
269 (check_pending_save): New.
270 (alloc_record): Clear out entire record.
271 (output_psp_gr): Use renamed structure fields.
272 (output_psp_sprel): Likewise.
273 (output_rp_gr): Likewise.
274 (output_rp_br): Likewise.
275 (output_rp_psprel): Likewise.
276 (output_rp_sprel): Likewise.
277 (output_pfs_gr): Likewise.
278 (output_pfs_psprel): Likewise.
279 (output_pfs_sprel): Likewise.
280 (output_preds_gr): Likewise.
281 (output_preds_psprel): Likewise.
282 (output_preds_sprel): Likewise.
283 (output_spill_base): Likewise.
284 (output_unat_gr): Likewise.
285 (output_unat_psprel): Likewise.
286 (output_unat_sprel): Likewise.
287 (output_lc_gr): Likewise.
288 (output_lc_psprel): Likewise.
289 (output_lc_sprel): Likewise.
290 (output_fpsr_gr): Likewise.
291 (output_fpsr_psprel): Likewise.
292 (output_fpsr_sprel): Likewise.
293 (output_priunat_gr): Likewise.
294 (output_priunat_psprel): Likewise.
295 (output_priunat_sprel): Likewise.
296 (output_bsp_gr): Likewise.
297 (output_bsp_psprel): Likewise.
298 (output_bsp_sprel): Likewise.
299 (output_bspstore_gr): Likewise.
300 (output_bspstore_psprel): Likewise.
301 (output_bspstore_sprel): Likewise.
302 (output_rnat_gr): Likewise.
303 (output_rnat_psprel): Likewise.
304 (output_rnat_sprel): Likewise.
305 (output_spill_psprel): Likewise.
306 (output_spill_sprel): Likewise.
307 (output_spill_reg): Likewise.
308 (output_fr_mem): Likewise. Allocate one unwind record per set mask
309 bit.
310 (output_frgr_mem): Likewise.
311 (output_gr_mem): Likewise.
312 (output_br_mem): Likewise.
313 (output_gr_gr): Likewise.
314 (output_br_gr): Likewise.
315 (fixup_unw_records): Likewise.
316 (process_one_record): Use renamed structure fields. For gr_gr and
317 br_gr, collect mask from chain of records before output.
318 (in_prologue): Simplify and eliminate early returns. Call
319 check_pending_save.
320 (in_body): Simplify and eliminate early returns.
321 (dot_body): Call check_pending_save.
322 (md_assemble): Update comment. Deal with pending saves.
323
9cd96992
JB
3242005-07-26 Jan Beulich <jbeulich@novell.com>
325
326 * config/tc-i386.c (optimize_imm): Calculate candidate immediates
327 mask from guessed suffix, but mask out other immediate types only
328 if at least on candidate is valid for the insn.
329
fd54057a
DD
3302005-07-25 DJ Delorie <dj@redhat.com>
331
332 * config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
333 Support %mod() modifiers from opcodes.
334 * doc/c-m32c.texi (M32C-Modifiers): New section.
335
3b22753a
L
3362005-07-25 Jan Hubicka <jh@suse.cz>
337 H.J. Lu <hongjiu.lu@intel.com>
338
339 * config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is
340 defined.
341 (elf_com_section_ptr): New.
342 (elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr.
343 (elf_common_parse): Make it global. Use elf_com_section_ptr
344 instead of bfd_com_section_ptr.
345 (obj_elf_change_section): Handle x86-64 large bss sections.
346
347 * config/obj-elf.h (elf_com_section_ptr): New.
348 (elf_common_parse): New.
349
350 * config/tc-i386.c (handle_large_common): New.
351 (md_pseudo_table): Add "largecomm".
352 (x86_64_section_letter): New.
353 (x86_64_section_word): New.
354
355 * config/tc-i386.h (x86_64_section_word): New.
356 (x86_64_section_letter): New.
357 (md_elf_section_letter): New. Defined.
358 (md_elf_section_word): Likewise.
359
9f971fcb
NC
3602005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
361
362 * configure.tgt: Remove i386-*-rtemself*.
363 Remove sparc-*-rtemself*.
364
240a3425
BE
3652005-07-21 Ben Elliston <bje@gnu.org>
366
367 * config/tc-m68k.h: Remove TE_LYNX conditional code.
368
c160f130
PB
3692005-07-21 Paul Brook <paul@codesourcery.com>
370
371 * config/tc-arm.c (encode_thumb32_addr_mode): Don't set
372 inst.reloc.pc_rel.
373
a9bfff94
NC
3742005-07-20 Tavis Ormandy <taviso@gentoo.org>
375
376 * messages.c: Use vsnprintf instead of vsprintf.
377
157e7bd1
NC
3782005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
379
380 * config/tc-m32r.c (tc_gen_reloc): Check BFD_RELOC_32_PCREL and
381 BFD_RELOC_16_PCREL to Support R_M32R_REL32.
382
85da3a56
NC
3832005-07-18 Nick Clifton <nickc@redhat.com>
384
385 * configure.tgt: Restore alpha ordering to list of arches.
386
71e17562
DA
3872005-07-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
388
389 * tc-hppa.c (pa_ip): Reject match for '#' immediate if not pa20.
390
718ddfc0
JB
3912005-07-18 Jan Beulich <jbeulich@novell.com>
392
393 * config/tc-i386.c (md_begin): Use IS_ELF.
394 (tc_i386_fix_adjustable): Likewise.
395 (md_estimate_size_before_relax): Likewise.
396 (md_apply_fix): Likewise.
397 (i386_target_format): Likewise.
398 (lex_got): Define to NULL when not ELF or when LEX_AT. Check IS_ELF.
399 (i386_immediate): Remove #ifdef LEX_AT.
400 (i386_displacement): Likewise.
401 * config/tc-i386.h (x86_cons): Prototype only when ELF and when not
402 LEX_AT.
403
3956db08
JB
4042005-07-18 Jan Beulich <jbeulich@novell.com>
405
406 * config/tc-i386.c (reloc): Convert to ISO C90. Change first
407 parameter to unsigned. Parameter sign now is tristate - zero/
408 positive mean unsigned/signed, negative means signedness doesn't
409 matter. Check field size,
410 signedness, and pcrel-ness are in agreement between relocated field
411 and relocation type. Adjust diagnostics.
412 (optimize_imm): And type mask of operand instead of overwriting it.
413 (lex_got): Convert to ISO C90. Add third parameter. Add new field to
414 local structure and initialize gotrel accordingly. Pass caller as
415 mask of types that the operator can match.
416 (x86_cons_fix_new): Let reloc know that signedness of relocation
417 doesn't matter.
418 (x86_pe_cons_fix_new): Likewise.
419 (x86_cons): Pass additional argument to lex_got.
420 (i386_immediate): New local variable 'types'. Pass its address as
421 additional argument to lex_got. Mask out operand types not supported
422 befoe returning.
423 (i386_displacement): Likewise. Set bigdisp to all types supported in
424 64-bit mode, combining the previously split initialization.
425
2dd88dca
JB
4262005-07-18 Jan Beulich <jbeulich@novell.com>
427
428 * config/tc-i386.c (parse_insn): Reject prefix if unavailable in
429 current mode.
430
8126167b
DA
4312005-07-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
432
433 * config/tc-hppa.c (pa_ip): Search entire mnemonic before considering
434 promoted match.
435
0f82ff91
AM
4362005-07-16 Alan Modra <amodra@bigpond.net.au>
437
438 * Makefile.am: Run "make dep-am".
439 * Makefile.in: Regenerate.
440
90700ea2
L
4412007-07-15 H.J. Lu <hongjiu.lu@intel.com>
442
443 * gas/config/tc-i386.h (CpuVMX): New.
444 (CpuUnknownFlags): Add CpuVMX.
445
49f58d10
JB
4462005-07-14 Jim Blandy <jimb@redhat.com>
447
448 Add support for the Renesas M32C.
449 * Makefile.am (CPU_TYPES): List m32c.
450 (TARGET_CPU_CFILES): List config/tc-m32c.c.
451 (TARGET_CPU_HFILES): List config/tc-m32c.h.
452 * configure.in: Add case for m32c.
453 * configure.tgt: Add cases for m32c and m32c-*-elf.
454 * configure: Regenerated.
455 * config/tc-m32c.c, config/tc-m32c.h: New files.
456 * doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
457 * doc/Makefile.in: Regenerated.
458 * doc/all.texi: Set M32C.
459 * doc/as.texinfo: Add text for the M32C-specific options and line
460 comment characters, and refer to c-m32c.texi.
461 * doc/c-m32c.texi: New file.
462
6c5cf62c
NC
4632005-07-14 Nick Clifton <nickc@redhat.com>
464
465 PR 1069
466 * config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing
467 the ins_parse buffer.
468
14c194bb
NC
4692005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
470
471 * configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
472 i386-*-rtemscoff*, sparc-*-rtemsaout*.
473
28a9d8f5
L
4742005-07-10 H.J. Lu <hongjiu.lu@intel.com>
475
476 * config/tc-i386.c (optimize_disp): Optimize signed 32bit
477 displacements.
478
b4f261e0
BE
4792005-07-08 Ben Elliston <bje@au.ibm.com>
480
481 * frags.h: Remove ANSI_PROTOTYPES conditional code.
482 * config/obj-elf.h: Likewise.
483 * config/tc-h8300.h: Likewise.
484 * config/tc-h8500.h: Likewise.
485 * config/tc-i370.h: Likewise.
486 * config/tc-i386.h: Likewise.
487 * config/tc-m68hc11.h: Likewise.
488 * config/tc-m68k.h: Likewise.
489 * config/tc-ppc.h: Likewise.
490 * config/tc-s390.h: Likewise.
491 * config/tc-sh.h: Likewise.
492 * config/tc-sparc.h: Likewise.
493 * config/tc-tic30.c: Likewise.
494 * config/tc-w65.h: Likewise.
495 * config/tc-xtensa.h: Likewise.
496
d8b19f1a
HPN
4972005-07-08 Hans-Peter Nilsson <hp@axis.com>
498
499 PR gas/1049
500 * config/tc-cris.h (MD_APPLY_SYM_VALUE): Define.
501
0fd3a477
JW
5022005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
503
504 * config/tc-tic30.c (debug): Add format attribute. Fix format
505 bugs.
506
bf50992e
L
5072005-07-06 H.J. Lu <hongjiu.lu@intel.com>
508
509 * config/tc-i386.c (cpu_arch): Add sse3.
510
511 * config/tc-i386.h (CpuSSE3): Renamed from ...
512 (CpuPNI): This. Defined as CpuSSE3.
513
514 * doc/c-i386.texi: Document .sse3.
515
5d5e6db9
JB
5162005-07-06 Jan Beulich <jbeulich@novell.com>
517
518 * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop.
519
3ec2b351
NC
5202005-07-05 Nick Clifton <nickc@redhat.com>
521
522 * config/tc-pdp11.c (md_apply_fix): Cast first argument to
523 md_chars_to_numbers to an unsigned pointer in order to avoid a
524 compile time warning.
525
9d8504b1
PB
5262005-07-05 Paul Brook <paul@codesourcery.com>
527
528 * config/tc-ppc.c (ppc_target_format): Add VxWorks.
529
a0defb2e
AH
5302005-07-05 Aldy Hernandez <aldyh@redhat.com>
531
532 * config/tc-ms1.c: New.
533 * config/tc-ms1.h: New.
534 * testsuite/gas/ms1/allinsn.d: New.
535 * testsuite/gas/ms1/allinsn.s: New.
536 * testsuite/gas/ms1/badinsn.s: New.
537 * testsuite/gas/ms1/badinsn1.s: New.
538 * testsuite/gas/ms1/badoffsethigh.s: New.
539 * testsuite/gas/ms1/badoffsetlow.s: New.
540 * testsuite/gas/ms1/badorder.s: New.
541 * testsuite/gas/ms1/badreg.s: New.
542 * testsuite/gas/ms1/badsignedimmhigh.s: New.
543 * testsuite/gas/ms1/badsignedimmlow.s: New.
544 * testsuite/gas/ms1/badsyntax.s: New.
545 * testsuite/gas/ms1/badsyntax1.s: New.
546 * testsuite/gas/ms1/badunsignedimmhigh.s: New.
547 * testsuite/gas/ms1/badunsignedimmlow.s: New.
548 * testsuite/gas/ms1/errors.exp: New.
549 * testsuite/gas/ms1/ldst.s: New.
550 * testsuite/gas/ms1/misc.d: New.
551 * testsuite/gas/ms1/misc.s: New.
552 * testsuite/gas/ms1/ms1-16-003.d: New.
553 * testsuite/gas/ms1/ms1-16-003.s: New.
554 * testsuite/gas/ms1/ms1.exp: New.
555 * testsuite/gas/ms1/msys.d: New.
556 * testsuite/gas/ms1/msys.s: New.
557 * testsuite/gas/ms1/relocs.d: New.
558 * testsuite/gas/ms1/relocs.exp: New.
559 * testsuite/gas/ms1/relocs1.s: New.
560 * testsuite/gas/ms1/relocs2.s: New.
561
30123838
JB
5622005-07-05 Jan Beulich <jbeulich@novell.com>
563
564 * config/tc-i386.h (CpuSVME): New.
565 (CpuUnknownFlags): Include CpuSVME.
566 * config/tc-i386.c (cpu_arch): Add .pacifica and .svme. Add opteron
567 as alias of sledgehammer.
568 (md_assemble): Include invlpga in the check for insns with two source
569 operands.
570 (process_operands): Include SVME insns in the check for ignored
571 segment overrides. Adjust diagnostic.
572 (i386_index_check): Special-case SVME insns with memory operands.
573
ca3f61f7
NC
5742005-07-04 Khem Raj <kraj@mvista.com>
575 Nick Clifton <nickc@redhat.com>
576
577 * tc-arm.c (struct arm_it): Make operands.imm signed to match its
578 use an immediate value.
579 (parse_vfp_reg_list): Make the 2nd parameter an unsigned pointer
580 since the register field of the operands structure is unsigned.
581 (s_arm_unwind_save_vfp): Make "reg" unsigned.
582 (parse_operands): Make the 2ns parameter an unsigned pointer to
583 match its use.
584 (do_ldrd): When using the imm field of the operands structure as a
585 second register field, treat it as unsigned.
586
551b43fd
AM
5872005-07-04 Alan Modra <amodra@bigpond.net.au>
588
589 PR 1004
590 * config/obj-elf.c (obj_elf_change_section): Use backend
591 get_sec_type_attr.
592
e4e8248d
JB
5932005-07-01 Jan Beulich <jbeulich@novell.com>
594
595 * config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
596 (output_spill_psprel, output_spill_psprel_p): Combine.
597 (output_spill_sprel, output_spill_sprel_p): Combine.
598 (output_spill_reg, output_spill_regp_p): Combine.
599 (process_one_record): Handle psp_psprel.
600 (parse_predicate_and_operand): New.
601 (convert_expr_to_ab_reg): Two new parameters. Return void. Always
602 initialize output values. Emit diagnostic case here.
603 (convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
604 (add_unwind_entry): New second parameter. Allow first parameter to
605 be NULL. Parse optional tag, emit warning about further support for
606 it otherwise being missing. Check end-of-line when requested.
607 (dot_fframe): Clear operand when wrong. Allow tag.
608 (dot_vframe): Likewise.
609 (dot_vframesp): Likewise. Rename parameter, issue warning when psp
610 relative.
611 (dot_vframepsp): Remove.
612 (dot_altrp): Clear operand when wrong. Allow tag.
613 (dot_save): Likewise. Let default case also go through
614 add_unwind_entry.
615 (dot_savemem): Likewise.
616 (dot_restore): Don't return when wrong operand. Allow tag.
617 (dot_spillreg, dot_spillreg_p): Combine. Simplify by using
618 parse_predicate_and_operand and the new arguments to
619 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
620 when wrong operand. Allow tag.
621 (dot_restorereg, dot_restorereg_p): Likewise.
622 (dot_spillmem, dot_spillmem_p): Likewise.
623 (dot_saveg): Clear operand when wrong. Perform tighter operand
624 checks. Allow tag.
625 (dot_savef): Likewise.
626 (dot_saveb): Likewise.
627 (dot_savegf): Likewise.
628 (dot_spill): Remove end-of-line check. Combine. Simplify by using
629 parse_predicate_and_operand and the new arguments to
630 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
631 when wrong operand. Allow tag.
632 (popcount): New.
633 (dot_label_state): Don't return when wrong operand.
634 (dot_copy_state): Likewise.
635 (dot_unwabi): Likewise. Check if in prologue.
636 (dot_body): Don't call demand_empty_rest_of_line.
637 (dot_prologue): Type of mask and grsave is unsigned. Perform tighter
638 operand checks.
639 (md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
640 use dot_spillreg for .spillreg.p. Also use dot_spillmem for
641 .spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
642 (parse_operand): New second parameter. Don't deal with '}' here
643 anymore. Don't advance past end-of-line.
644 (parse_operands): Pass second argument to parse_operand.
645 (ia64_start_line): Prevent out-of-bounds access through
646 input_line_pointer. Deal with '}' here.
647 (ia64_unrecognized_line): Don't deal with '}' here.
648 (dot_alias): Use ignore_rest_of_line not its deprecated alias
649 discard_rest_of_line.
650
2fc8bdac
ZW
6512005-06-30 Zack Weinberg <zack@codesourcery.com>
652
653 * config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
654 (encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
655 (do_t_branch, insns [b, bl]): Don't encode pipeline offset.
0d828caf 656 (do_branch): Always set inst.reloc.pc_rel.
2fc8bdac
ZW
657 (s_arm_elf_cons): Disallow use of (plt) suffix.
658 (do_adrl): Adjust X_add_number unconditionally.
659 (md_pcrel_from): Rename md_pcrel_from_section, add second segT
660 argument. Handle all adjustment for pipeline offset here.
661 (md_apply_fix): No need to undo work of md_pcrel_from. No
662 need to extract pre-encoded pipeline adjustments from various
663 branch instructions. Generally, assume instructions are already
664 all-bits-zero in the field being fixed up. Remove all OBJ_ELF
665 special cases. Handle BFD_RELOC_ARM_PLT32 like
666 BFD_RELOC_ARM_PCREL_BRANCH.
667 (tc_gen_reloc): Remove OBJ_ELF special case.
668 * config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
669
b753922c
BE
6702005-06-30 Ben Elliston <bje@gnu.org>
671
672 * Makefile.am (check-DEJAGNU): Don't search for expect.
673 * Makefile.in: Regenerate.
674
c3298874
BE
6752005-06-30 Ben Elliston <bje@gnu.org>
676
677 * Makefile.am (EXPECT): Set to expect.
678 (RUNTEST): Likewise, set to runtest.
679 * Makefile.in: Regenerate.
680
8f738565
BE
6812005-06-23 Ben Elliston <bje@gnu.org>
682
683 * config/m68k-parse.h: Use ISO C90.
684 * config/m68k-parse.y: Likewise.
685 * config/tc-m68k.h: Likewise.
686
b300c311
L
6872005-06-20 H.J. Lu <hongjiu.lu@intel.com>
688
689 PR 1013
690 * config/tc-i386.c (md_assemble): Don't call optimize_disp on
691 movabs.
692 (optimize_disp): Optimize only if possible. Don't use 64bit
693 displacement on non-constants and do same on constants if
694 possible.
695
d6ab8113
JB
6962005-06-17 Jan Beulich <jbeulich@novell.com>
697
698 * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
699 (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
700 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
701 (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
702 and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
703 aborting.
704 (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
705 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
706 (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
707 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
708 BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
709 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
710 convert 8-byte pc-relative relocations.
711 (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
712 (i386_validate_fix): Likewise.
713 (x86_cons): Also handle quad values in 64-bit mode.
714 (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
715 (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
716 BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
717 to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
718
37f6032b
ZW
7192005-06-13 Zack Weinberg <zack@codesourcery.com>
720
721 * config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
722 symbolP as well as for names with a leading dot. Use ACONCAT.
723 (md_apply_fix): For branch relocations, only replace value
724 with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
725 (arm_force_relocation): Remove #ifdef OBJ_ELF case.
726 * config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
727 (LOCAL_LABEL_PREFIX): Don't define.
728
6bdb6dec
AM
7292005-06-10 Alan Modra <amodra@bigpond.net.au>
730
731 * config/tc-hppa.c (pa_block): Allocate just one byte for the
732 fill pattern.
733
4dddc1d1
JW
7342005-06-08 James E Wilson <wilson@specifixinc.com>
735
736 PR 994
737 * config/tc-ia64.c (slot_index): Revert last change. If first_frag
738 is NULL, then emit a warning, and return the current index.
739
03b13e59
NC
7402005-06-08 Tomas Hurka <tom@hukatronic.cz>
741
6bdb6dec 742 PR 991
03b13e59
NC
743 * config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a
744 temporary copy of the operands array so that changes can be safely
745 backed out if the insn does not match.
746 (m68k_compare_opcode): Shortcut the test when the parameters are
747 the same. Return 1 if the names match but the second opcode is
748 further on in the array than the first.
749
985d9490
NC
7502005-06-08 Nick Clifton <nickc@redhat.com>
751
752 PR 994
753 * config/tc-ia64.c (slot_index): Check for a NULL first_frag.
754
6858915a
NC
7552005-06-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
756
757 * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
758
047af9ef
AH
7592005-06-07 Aldy Hernandez <aldyh@redhat.com>
760 Michael Snyder <msnyder@redhat.com>
761 Stan Cox <scox@redhat.com>
762
763 * configure.in: Add ms1 case.
764
765 * configure: Regenerate.
766
767 * configure.tgt: Add ms1 case.
768
0bf60745
BW
7692005-06-07 Bob Wilson <bob.wilson@acm.org>
770
771 * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
772 * config/tc-xtensa.c (new_resource_table): Likewise.
773 (resize_resource_table): Likewise.
774 (release_resources): Fix assertion for unsigned values.
775
55cf6793
ZW
7762005-06-07 Zack Weinberg <zack@codesourcery.com>
777
778 * cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
779 * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
780 * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
781 * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
782 * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
783 * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
784 * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
785 * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
786 * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
787 * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
788 * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
789 * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
790 * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
791 * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
792 * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
793 * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
794 * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
795 * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
796 * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
797 * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
798 * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
799 * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
800 * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
801 * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
802 * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
803 * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
804 * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
805 * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
806 * config/tc-xtensa.c, config/tc-z8k.c:
807 Replace all instances of the string "_apply_fix3" with
808 "_apply_fix".
809 * po/POTFILES.in, po/gas.pot: Regenerate.
810
620c54b3
AM
8112005-06-08 Alan Modra <amodra@bigpond.net.au>
812
813 * Makefile.am: Run "make dep-am".
814 (POTFILES): Remove GAS_CFILES.
815 * Makefile.in: Regenerate.
816
32b26a03
MR
8172005-06-07 David Ung <davidu@mips.com>
818
819 * config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
820 24kc, 24kf and 24kfx under MIPS32 release 2.
821
6a86118a
NC
8222005-06-04 Nick Clifton <nickc@redhat.com>
823
824 * config/tc-arm.c (CE, C3, CM, UE, UF): Redefine without reference
825 to their Thumb-enabled equivalents.
826
20e1fcfd
MR
8272005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
828
829 * config/tc-mips.c (load_register): Add leading "0x" to the
830 output of sprintf_vma().
831 (macro): Likewise.
832
1887dd22
NC
8332005-06-01 Nick Clifton <nickc@redhat.com>
834
835 * config/tc-arm.c (TxCE, TxC3, TxCM, TUE, TUF): Remove redundant
836 test for the presence of thumb version of the parsing functions
837 since they must always exist and the test generates a compile time
838 warning message.
839
04fe8f58
RH
8402005-05-31 Richard Henderson <rth@redhat.com>
841
842 * config/tc-alpha.c (O_lituse_jsrdirect): New.
843 (alpha_reloc_op): Add it.
844 (debug_exp): Handle it.
845 (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
846 (emit_insn): Handle it.
847 * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.
848
988392e2
CG
8492005-05-31 Christian Groessler <chris@groessler.org>
850
851 * write.c (dump_section_relocs): Convert to ISO-C.
852 (write_relocs): Avoid signed/unsigned and fprintf argument
853 warnings in debug code.
854
adbaf948
ZW
8552005-05-26 Zack Weinberg <zack@codesourcery.com>
856
857 * config/tc-arm.h (TC_FIX_TYPE): Change to int.
858 (TC_INIT_FIX_DATA): Initialize to 0, not NULL.
859 * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
860 (md_apply_fix3): Delete fix_is_thumb variable; refer to
861 fixP->tc_fix_data directly in the sole place it was used.
862 Explicitly truncate value, *valP, fixP->fx_addnumber, and
863 fixP->fx_offset to 32 bits, for consistent behavior between 32-
864 and 64-bit hosts.
865
5656b6b8
JB
8662005-05-27 Jan Beulich <jbeulich@novell.com>
867
868 * config/tc-ia64.c (struct proc_pending): New.
869 (unwind): Replace proc_start with proc_pending.
870 (unwind_diagnostic): Check unwind.proc_pending.sym.
871 (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
872 Check if previous proc not closed. Record all entry points.
873 (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
874 Set symbol sizes for entry points recorded in dot_proc. Check
875 arguments for consistency with respective .proc's.
876 (md_assemble): Replace unwind.proc_start with
877 unwind.proc_pending.sym.
878
75214fb0
JB
8792005-05-27 Jan Beulich <jbeulich@novell.com>
880
881 * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
882 and last_ptr. Check all in-use slots for first one with non-NULL
883 unwind_record. Don't reload end_ptr before second update round.
884
7c06efaa
JW
8852005-05-26 James E Wilson <wilson@specifixinc.com>
886
887 * config/tc-ia64.c (extra_goodness): Update comment.
888 (md_begin): Add debugging code to print best_template table.
889
286cee81
JB
8902005-05-25 Jan Beulich <jbeulich@novell.com>
891
892 * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
893 template.
894
30ad6cb9
JB
8952005-05-25 Jan Beulich <jbeulich@novell.com>
896
897 * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
898 BFD_RELOC_UNUSED when determining the width of the reloc.
899
6baf2b51
JB
9002005-05-25 Jan Beulich <jbeulich@novell.com>
901
902 * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
903 section entry.
904
fa30c84f
JB
9052005-05-25 Jan Beulich <jbeulich@novell.com>
906
907 * config/tc-ia64.c (dot_radix): Rewrite.
908
1055c30c
JB
9092005-05-25 Jan Beulich <jbeulich@novell.com>
910
911 * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
912 and next_slot_frag.
913 (alloc_record): Remove references to next_slot_number and
914 next_slot_frag.
915 (emit_one_bundle): Likewise.
916
45d18c80
NC
9172005-05-22 Nick Clifton <nickc@redhat.com>
918
919 * config/tc-v850.c (md_apply_fix3): Pass the address of the
920 message buffer when invoking the insert function.
921
9f45e54b
DA
9222005-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
923
924 * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
925 only if an instruction match is found.
926
47e70edb
BW
9272005-05-20 Bob Wilson <bob.wilson@acm.org>
928
929 * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
930 to addition in argument to xtensa_dwarf2_emit_insn.
931
e3e71e27
ZW
9322005-05-19 Zack Weinberg <zack@codesourcery.com>
933
934 * Makefile.am: Have 'all' depend on 'info'.
935 * Makefile.in: Regenerate.
936
c744ecf2
AM
9372005-05-19 Alan Modra <amodra@bigpond.net.au>
938
939 * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
940
b0648eec
AM
9412005-05-19 Anton Blanchard <anton@samba.org>
942
943 * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
944 (md_show_usage): Document it.
945 (ppc_setup_opcodes): Insert POWER5 mnemonics.
946 * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
947
4600db48
JB
9482005-05-19 Jan Beulich <jbeulich@novell.com>
949
950 * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
951 relocations in unwind section.
952
a0ef61f7
NC
9532005-05-18 Nick Clifton <nickc@redhat.com>
954
955 * config/tc-v850.c (md_apply_fix3): Only use the insertion routine
956 if one exists. Ignore any error messages it may produce, just
957 allow it to perform the insertion.
958
c19d1205
ZW
9592005-05-17 Zack Weinberg <zack@codesourcery.com>
960
961 * hash.c (hash_lookup): Add len parameter. All callers changed.
962 (hash_find_n): New interface.
963 * hash.h: Prototype hash_find_n.
964 * sb.c: Include as.h.
965 (scrub_from_sb, sb_to_scrub, scrub_position): New statics.
966 (sb_scrub_and_add_sb): New interface.
967 * sb.h: Prototype sb_scrub_and_add_sb.
968 * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
969
970 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
971 reference to BFD_RELOC_ARM_GOT12 which is never generated.
972 * config/tc-arm.c: Rewrite, adding Thumb-2 support.
973
970c3dbc
DJ
9742005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
975
976 * doc/Makefile.am (gasver.texi): Don't use $<.
977 * doc/Makefile.in: Regenerated.
978
ec7ef033
NC
9792005-05-17 Nick Clifton <nickc@redhat.com>
980
981 PR 876
982 * symbols.c (resolve_symbol_value): Do not move symbols whose
983 value expression has not been resolved or finalized into the
984 absolute section as this will confuse other parts of the assembler
985 into thinking that their value is zero.
986
40a4d956
JB
9872005-05-17 Jan Beulich <jbeulich@novell.com>
988
989 * read.c (_find_end_of_line): New.
990 (find_end_of_line): New.
991 (HANDLE_CONDITIONAL_ASSEMBLY): Use it.
992 (read_a_source_file): Use it.
993 (s_globl): Use it.
994 (s_macro): Use it.
995 (get_line_sb): Use it.
996 (s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line.
997 (s_comm_internal): Likewise.
998 (s_lsym): Likewise.
999 (s_macro): Likewise.
1000 (s_ignore): Use ignore_rest_of_line.
1001 * read.h (find_end_of_line): Prototype.
1002 (discard_rest_of_line): Remove prototype. #define to
1003 ignore_rest_of_line.
1004
2d034539
NC
10052005-05-17 Nick Clifton <nickc@redhat.com>
1006
1007 * config/tc-v850,h (TC_FIX_TYPE): Define.
1008 (TC_INIT_FIX_TYPE): Define.
1009 * config/tc-v850.c (md_assemble): When creating a fix record the
1010 operand in the tc_fix_data field.
1011 (md_apply_fix3): When applying a resolved fix use the operand's
1012 insertion procedure to store the value, if the operand has been
1013 recorded.
1014
42ecbf5e
DJ
10152005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1016
1017 * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap
1018 invocation.
1019 * Makefile.in: Regenerated.
1020
d7c531cd
BW
10212005-05-13 Sterling Augustine <sterling@tensilica.com>
1022 Bob Wilson <bob.wilson@acm.org>
1023
1024 * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
1025 message.
1026 (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional
1027 for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
1028
3c9d25f4
AM
10292005-05-11 Alan Modra <amodra@bigpond.net.au>
1030
1031 * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
1032 BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
1033
ee192366
MM
10342005-05-10 Michael Matz <matz@suse.de>
1035
1036 * frags.c (frag_grow): Don't be too greedy in allocating memory.
1037
1038 * config/tc-hppa.c (pa_block): Check arguments to .block[z].
1039
20d7ce9b
HPN
10402005-05-10 Hans-Peter Nilsson <hp@bitrange.com>
1041
1042 PR binutils/886
1043 * config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly.
1044 Handle label-without-colon before ordinary dot-pseudo as an
1045 ordinary label. Don't leak memory for label-without-colon alone
1046 on a line. Don't mmixal-munge operands for dot-pseudos.
1047
be03cc84
JB
10482005-05-10 Jan Beulich <jbeulich@novell.com>
1049
1050 * macro.c (get_any_string): Remove the two last parameters. Replace
1051 references to the former expand parameter by using macro_alternate.
1052 Simplify loop condition for checking for end-of-string.
1053 (get_string): Remove redunant call to sb_skip_white.
1054 (do_formals): Remove two last arguments to get_any_string.
1055 (macro_expand): Likewise.
1056 (expand_irp): Likewise.
1057
360e86f1
JB
10582005-05-10 Jan Beulich <jbeulich@novell.com>
1059
1060 * read.c (s_macro): Move local variable 'local' to smaller scope.
1061 Call sb_kill on it when done.
1062
34d9ee9e
JB
10632005-05-09 Jan Beulich <jbeulich@novell.com>
1064
ee192366
MM
1065 * config/tc-i386.c (optimize_disp): Discard displacement entirely
1066 when zero and not required by encoding constraints.
34d9ee9e 1067
c9cd7160
L
10682005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1069
1070 PR 936
1071 * config/tc-sh64.c (sh64_fake_label): New.
1072
1073 * config/tc-sh64.h (TC_FAKE_LABEL): New.
1074
1075 * doc/internals.texi (TC_FAKE_LABEL): Document.
1076
1077 * write.c (TC_FAKE_LABEL): New.
1078 (adjust_reloc_syms): Use it.
1079 (write_object_file): Likewise.
1080
e44823cf
JB
10812005-05-09 Jan Beulich <jbeulich@novell.com>
1082
1083 * config/tc-i386.c (parse_insn): Disallow use of prefix separator
1084 and comma in Intel mode.
1085
089dfecd
JB
10862005-05-09 Jan Beulich <jbeulich@novell.com>
1087
1088 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
1089 names to match ABI. Add more registers for 32-bit and 64-bit modes.
1090 Make name array static and const. Adjust lookup to account for NULL
1091 entries (standing for unused register numbers).
1092
f41bbced
JB
10932005-05-09 Jan Beulich <jbeulich@novell.com>
1094
1095 * config/tc-i386.c (parse_insn): Consider all matching instructions
1096 when checking for string instruction after string-only prefix.
1097
6e3f953d
L
10982005-05-07 H.J. Lu <hongjiu.lu@intel.com>
1099
1100 PR 940
1101 * config/tc-ia64.c (start_unwind_section): Properly check
1102 comdat group with SHF_GROUP.
1103
0c6c36d5
BW
11042005-05-06 Bob Wilson <bob.wilson@acm.org>
1105
1106 * doc/c-xtensa.texi (Literal Directive): Spelling correction.
1107
c138bc38
BW
11082005-05-06 Bob Wilson <bob.wilson@acm.org>
1109
1110 * config/tc-xtensa.c: Remove excess whitespace.
1111 * config/tc-xtensa.h: Likewise.
1112 * config/xtensa-istack.h: Likewise.
1113 * config/xtensa-relax.c: Likewise.
1114 * config/xtensa-relax.h: Likewise.
1115
93a9f991
NC
11162005-05-06 Nick Clifton <nickc@redhat.com>
1117
1118 * sb.h: Fix formatting of comments.
1119 * sb.c: Fix formatting of comments.
1120
3c9aabc7
JB
11212005-05-06 Jan Beulich <jbeulich@novell.com>
1122
1123 * sb.h (sb_add_buffer): Reintroduce.
1124 * sb.c (sb_add_buffer): Likewise.
1125
6eaeac8a
JB
11262005-05-06 Jan Beulich <jbeulich@novell.com>
1127
1128 * macro.c (new_formal, del_formal): New.
1129 (do_formals): Use new_formal. Check for and parse qualifier. Warn if
1130 required argument has default value. Stop looking for more formal
1131 when there was a vararg one.
1132 (macro_expand_body): Use new_formal and del_formal.
1133 (macro_expand): Likewise. Initialize local variable err. Don't
1134 return immediately when encountering an error. Warn when keyword
1135 argument already had a value assigned. Eliminate duplicate clearing
1136 of argument value. When current positional argument matches parameter
1137 of vararg type, assign to it all the remaining arguments. Issue error
1138 when required parameter does not have value.
1139 (free_macro): Use del_formal.
1140 (expand_irp): Initialize formal type. Free buffers associated with
1141 formal prior to returning.
1142 * macro.h (struct formal_struct): Add new field 'type' with new
1143 enumeration type 'formal_type'.
1144 * doc/as.texinfo: Document macro parameter qualifiers.
1145 * NEWS: Mention new functionality.
1146
26aca5f6
JB
11472005-05-06 Jan Beulich <jbeulich@novell.com>
1148
1149 * cond.c (s_ifb): New.
1150 * read.c (potable): Add s_ifb as handler for .ifb and .ifnb.
1151 * read.h (s_ifb): Prototype.
1152 * doc/as.texinfo: Document .ifb and .ifnb.
1153
5faa8e39
JW
11542005-05-05 Steve Ellcey <sje@cup.hp.com>
1155
1156 * config/tc-ia64.c (MIN): Undef.
1157
eac338cf
PB
11582005-05-05 Paul Brook <paul@codesourcery.com>
1159
1160 * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS.
1161
d8244a4a
NC
11622005-05-05 Matt Thomas <matt@3am-software.com>
1163
1164 * config/tc-vax.c (md_assemble): Don't assume a valueT is 4
1165 bytes.
1166
4b4da160
NC
11672005-05-05 Nick Clifton <nickc@redhat.com>
1168
1169 * Update the address and phone number of the FSF organization in
1170 the GPL notices in the following files:
1171 COPYING, app.c, as.c, as.h, asintl.h, atof-generic.c, bignum.h,
1172 bit_fix.h, cgen.c, cgen.h, cond.c, debug.c, depend.c, dw2gencfi.c,
1173 dw2gencfi.h, dwarf2dbg.c, dwarf2dbg.h, ecoff.c, ecoff.h, ehopt.c,
1174 emul-target.h, emul.h, expr.c, expr.h, flonum-copy.c,
1175 flonum-konst.c, flonum.h, frags.c, frags.h, hash.c, hash.h,
1176 input-file.c, input-file.h, input-scrub.c, itbl-lex.h, itbl-lex.l,
1177 itbl-ops.c, itbl-ops.h, itbl-parse.y, listing.c, listing.h,
1178 literal.c, macro.c, macro.h, messages.c, obj.h, output-file.c,
1179 output-file.h, read.c, read.h, sb.c, sb.h, stabs.c,
1180 struc-symbol.h, subsegs.c, subsegs.h, symbols.c, symbols.h, tc.h,
1181 write.c, write.h, config/aout_gnu.h, config/atof-ieee.c,
1182 config/atof-vax.c, config/itbl-mips.h, config/m68k-parse.h,
1183 config/m68k-parse.y, config/m88k-opcode.h, config/obj-aout.c,
1184 config/obj-aout.h, config/obj-bout.c, config/obj-bout.h,
1185 config/obj-coff.c, config/obj-coff.h, config/obj-ecoff.c,
1186 config/obj-ecoff.h, config/obj-elf.c, config/obj-elf.h,
1187 config/obj-evax.c, config/obj-evax.h, config/obj-hp300.c,
1188 config/obj-hp300.h, config/obj-ieee.c, config/obj-ieee.h,
1189 config/obj-multi.h, config/obj-som.c, config/obj-som.h,
1190 config/tc-a29k.c, config/tc-a29k.h, config/tc-alpha.c,
1191 config/tc-alpha.h, config/tc-arc.c, config/tc-arc.h,
1192 config/tc-arm.h, config/tc-avr.c, config/tc-avr.h,
1193 config/tc-cris.c, config/tc-cris.h, config/tc-crx.c,
1194 config/tc-crx.h, config/tc-d10v.c, config/tc-d10v.h,
1195 config/tc-d30v.c, config/tc-d30v.h, config/tc-dlx.c,
1196 config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1197 config/tc-frv.c, config/tc-frv.h, config/tc-generic.c,
1198 config/tc-generic.h, config/tc-h8300.c, config/tc-h8300.h,
1199 config/tc-h8500.c, config/tc-h8500.h, config/tc-hppa.c,
1200 config/tc-hppa.h, config/tc-i370.c, config/tc-i370.h,
1201 config/tc-i386.c, config/tc-i386.h, config/tc-i860.c,
1202 config/tc-i860.h, config/tc-i960.c, config/tc-i960.h,
1203 config/tc-ia64.c, config/tc-ia64.h, config/tc-ip2k.c,
1204 config/tc-ip2k.h, config/tc-iq2000.c, config/tc-iq2000.h,
1205 config/tc-m32r.c, config/tc-m32r.h, config/tc-m68851.h,
1206 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c,
1207 config/tc-m68k.h, config/tc-m88k.c, config/tc-m88k.h,
1208 config/tc-maxq.c, config/tc-maxq.h, config/tc-mcore.c,
1209 config/tc-mcore.h, config/tc-mips.c, config/tc-mips.h,
1210 config/tc-mmix.c, config/tc-mmix.h, config/tc-mn10200.c,
1211 config/tc-mn10200.h, config/tc-mn10300.c, config/tc-mn10300.h,
1212 config/tc-msp430.c, config/tc-msp430.h, config/tc-ns32k.c,
1213 config/tc-ns32k.h, config/tc-openrisc.c, config/tc-openrisc.h,
1214 config/tc-or32.c, config/tc-or32.h, config/tc-pdp11.c,
1215 config/tc-pdp11.h, config/tc-pj.c, config/tc-pj.h,
1216 config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c,
1217 config/tc-s390.h, config/tc-sh.c, config/tc-sh.h,
1218 config/tc-sh64.c, config/tc-sh64.h, config/tc-sparc.c,
1219 config/tc-sparc.h, config/tc-tahoe.c, config/tc-tahoe.h,
1220 config/tc-tic30.c, config/tc-tic30.h, config/tc-tic4x.c,
1221 config/tc-tic4x.h, config/tc-tic54x.c, config/tc-tic54x.h,
1222 config/tc-tic80.c, config/tc-tic80.h, config/tc-v850.c,
1223 config/tc-v850.h, config/tc-vax.c, config/tc-vax.h,
1224 config/tc-w65.c, config/tc-w65.h, config/tc-xstormy16.c,
1225 config/tc-xstormy16.h, config/tc-xtensa.c, config/tc-xtensa.h,
1226 config/tc-z8k.c, config/tc-z8k.h, config/te-386bsd.h,
1227 config/te-freebsd.h, config/te-hp300.h, config/te-hppa.h,
1228 config/te-ic960.h, config/te-irix.h, config/te-nbsd.h,
1229 config/te-netware.h, config/te-sparcaout.h, config/te-sun3.h,
1230 config/te-tmips.h, config/te-vxworks.h, config/vax-inst.h,
1231 config/xtensa-istack.h, config/xtensa-relax.c,
2b8725e7 1232 config/xtensa-relax.h, doc/fdl.texi
4b4da160 1233
699d2810
NC
12342005-05-05 Nick Clifton <nickc@redhat.com>
1235
1236 * config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
1237 the target_big_endian variable to false.
1238
69852798
AM
12392005-05-04 Alan Modra <amodra@bigpond.net.au>
1240
1241 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct section
1242 list traversal. Use bfd_section_list_prepend.
1243 * config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate
1244 over the section list.
1245 * config/tc-xtensa.c (xtensa_remove_section): Delete.
1246 (xtensa_insert_section): Delete.
1247 (xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove
1248 and bfd_section_list_prepend.
1249 (xtensa_reorder_seg_list): Use bfd_section_list_remove and
1250 bfd_section_list_insert_after.
1251
c1d05a60
NC
12522005-05-03 Nick Clifton <nickc@redhat.com>
1253
1254 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations
1255 of bfd_section_list... macros.
1256 * config/tc-mmix.c (mmix_frob_file): Likewise.
1257 * config/tc-xtensa.c (xtensa_remove_section): Likewise.
1258 (xtensa_insert_section): Likewise.
1259
1260 * macro.c (macro_hash): Remove static.
1261 * macro.h (macro_hash): Provide an external declaration.
1262
5daa8fe7
L
12632005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1264
1265 * write.c (write_object_file): Use bfd_section_double_list_remove
1266 to remove sections.
1267
475bf943
DJ
12682005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1269
1270 * doc/Makefile.am (gasver.texi): Correct quoting.
1271 * doc/Makefile.in: Regenerated.
1272
009b6a7a
DJ
12732005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1274
1275 * configure.tgt: Add h8300*-*-rtemscoff.
1276 Switch h8300*-*-rtems* to elf.
1277
7e70f1af
L
12782005-04-29 H.J. Lu <hongjiu.lu@intel.com>
1279
1280 * hash.c: Undo the last change.
1281 * hash.h: Likewise.
1282
aa7eb06d
DJ
12832005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
1284
1285 * doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
1286 of Makefile.
1287 (DISTCLEANFILES): Remove.
1288 (MAINTAINERCLEANFILES): Add asconfig.texi.
1289 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
1290
87c245cc
BE
12912005-04-29 Ben Elliston <bje@au.ibm.com>
1292
1293 * Makefile.am (GAS_CFILES): Remove bignum-copy.c.
1294 (GENERIC_OBJS): Likewise, remove bignum-copy.o.
1295 (bignum-copy.o): Remove.
1296 * Makefile.in: Regenerate.
1297 * makefile.vms (OBJS): Remove bignum-copy.obj.
1298 * symbols.h (local_symbol_make): Remove declaration.
1299 (verify_symbol_chain_2): Likewise.
1300 * symbols.c (local_symbol_make): Make static.
1301 (max_indent_level): Likewise.
1302 (verify_symbol_chain_2): Remove.
1303 * macro.c (macro_hash): Make static.
1304 * messages.c (fprint_value): Remove.
1305 * read.h (get_absolute_expr): Remove.
1306 (emit_leb128_expr): Likewise.
1307 (do_s_func): Likewise.
1308 * read.c (do_s_func): Make static.
1309 (emit_leb128_expr): Likewise.
1310 (get_absolute_expr): Likewise.
1311 * as.h (as_howmuch): Remove declaration.
1312 (fprint_value): Likewise.
1313 * as.c (myname): Make static.
1314 * input-scrub.c (as_howmuch): Remove.
1315 (as_1_char): Likewise.
1316 * input-file.h (input_file_is_open): Remove.
1317 * input-file.c (input_file_is_open): Likewise.
1318 * expr.h (expr_build_unary): Remove declaration.
1319 (expr_build_binary): Likewise.
1320 * expr.c (expr_build_unary): Remove.
1321 (expr_build_binary): Likewise.
1322 * hash.h (hash_replace): Remove declaration.
1323 (hash_delete): Likewise.
1324 * hash.c (hash_replace): Remove.
1325 (hash_delete): Likewise.
1326 * bignum-copy.c (bignum_copy): Move from here ..
1327 * config/tc-vax.c (bignum_copy): .. to here.
1328 * bignum.h (LOG_TO_BASE_2_OF_10): Remove.
1329 (bignum_copy): Remove extern declaration.
1330 * sb.h (string_count): Remove extern declaration.
1331 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1332 (sb_name): Likewise.
1333 * sb.c (dsize): Replace preprocessor macro with static int.
1334 (string_count): Make static.
1335 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1336 (sb_name): Likewise.
1337 * config/obj-coff.c (dim_index): Make static.
1338 * config/tc-i386.c (GOT_symbol): Likewise.
1339 (output_invalid_buf): Likewise.
1340 * doc/internals.texi (Warning and error messages): Remove the
1341 prototype for fprint_value.
1342
f3429a74
BE
13432005-04-27 Ben Elliston <bje@au.ibm.com>
1344
1345 * link.cmd: Remove.
1346
60938e80
L
13472005-04-26 H.J. Lu <hongjiu.lu@intel.com>
1348
1349 * config/obj-multi.h (FAKE_LABEL_NAME): Defined.
1350
1351 * read.c (pseudo_set): Disallow symbol set to common symbol.
1352
1353 PR 857
1354 * write.c (write_object_file): Report common symbol name when
1355 disallowing local symbol set to common symbol.
1356 (adjust_reloc_syms): Disallow local symbol set to undefined
1357 symbol.
1358
02ddf156
JB
13592005-04-25 Jan Beulich <jbeulich@novell.com>
1360
1361 * macro.c (macro_expand_body): Replace locals indicator parameters
1362 with actual macro_entry. New local variables macro_line and err.
1363 Don't return when encountering an error, just record the fact.
1364 Detect local symbol name colliding with parameter. Track line number
1365 inside of macro expansion.
1366 (do_formals): Move local variable name to wider scope. Check
1367 parameter of the same name doesn't already exist. In MRI mode, also
1368 check it doesn't collide with the argument count pseudo-parameter).
1369 (define_macro): Add file and line number parameters. Remove local
1370 variable namestr. New local variable error. Initialize macro_entry
1371 members file, line, and name. Don't return when encountering an
1372 error, just record the fact. Use %s in some diagnostics for read.c
1373 to insert the macro name. Free macro_entry on error.
1374 (macro_expand): Pass macro_entry to macro_epand_body. Don't return
1375 when encountering an error, just record the fact.
1376 (expand_irp): Don't return when encountering an error, just record
1377 the fact.
1378 * macro.h (macro_struct): New members name, file, and line.
1379 (define_macro): Add file and line number parameters.
1380 * read.c (s_macro): Pass file and line to define_macro. Tag warning
1381 regarding pseudo-op redefinition with the file/line that macro
1382 definition started at.
1383
d2a033cd
BW
13842005-04-22 Bob Wilson <bob.wilson@acm.org>
1385
1386 * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.
1387 (future_alignment_required): Remove ifdefs that use it.
1388
84b08ed9
BW
13892005-04-22 Bob Wilson <bob.wilson@acm.org>
1390
1391 * config/tc-xtensa.c (xg_get_build_instr_size): Remove.
1392 (xg_is_narrow_insn, xg_expand_narrow): Remove. Merge into...
1393 (xg_is_single_relaxable_insn): ...here. Add "targ" and "narrow_only"
1394 parameters.
1395 (xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements,
1396 convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
1397
d8cbebfd
CG
13982005-04-21 Christian Groessler <chris@groessler.org>
1399
1400 * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
1401 array.
1402
e97b3f28
L
14032005-04-20 H.J. Lu <hongjiu.lu@intel.com>
1404
1405 * config/obj-aout.h (S_IS_EXTERN): Removed.
1406 * config/obj-bout.h (S_IS_EXTERN): Likewise.
1407 * config/obj-coff.h (S_IS_EXTERN): Likewise.
1408 * symbols.c (S_IS_EXTERN): Likewise.
1409 * symbols.h (S_IS_EXTERN): Likewise.
1410
1411 * config/tc-alpha.c (tc_gen_reloc): Replace S_IS_EXTERN with
1412 S_IS_EXTERNAL.
1413 * config/tc-d10v.c (md_apply_fix3): Likewise.
1414 * config/tc-ia64.c (ia64_fix_adjustable): Likewise.
1415 * config/tc-iq2000.c (iq2000_fix_adjustable): Likewise.
1416 * config/tc-m32r.c (m32r_fix_adjustable): Likewise.
1417 * config/tc-mmix.c (mmix_adjust_symtab): Likewise.
1418 * config/tc-sh64.c (shmedia_frob_file_before_adjust): Likewise.
1419 (shmedia_md_convert_frag): Likewise.
1420 * symbols.c (print_symbol_value_1): Likewise.
1421 * write.c (write_object_file): Likewise.
1422
55e08f71
NC
14232005-04-20 Nick Clifton <nickc@redhat.com>
1424
5f9084e9
NC
1425 * config/tc-xtensa.c (get_aligned_diff): Change type of
1426 branch_align to offsetT so that its signedness matches that of
1427 target_size.
1428
55e08f71
NC
1429 * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
1430 number into a readable string.
1431 (load_register): Likewise.
1432
1f8b1395
AS
14332005-04-20 Andreas Schwab <schwab@suse.de>
1434
1435 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
1436
b0825cc2
DM
14372005-04-19 David S. Miller <davem@davemloft.net>
1438
1439 * config/tc-sparc.c (md_assemble): If sparc_ip gives us a
1440 NULL insn, exit early. Remove now spurious NULL checks.
1441 (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn
1442 to NULL and exit.
1443
91c4c449
JB
14442005-04-19 Jan Beulich <jbeulich@novell.com>
1445
1446 * symbols.h (symbol_find_base): Remove prototype.
1447 * symbols.c (save_symbol_name): Remove code section conditional upon
1448 STRIP_UNDERSCORE.
1449 (symbol_find): Remove.
1450 (symbol_find_base): Rename to symbol_find.
1451 * subsegs.c (section_symbol): Replace use of symbol_find_base with
1452 symbol_find.
1453 * config/obj-coff.c (tag_insert): Remove code section conditional
1454 upon STRIP_UNDERSCORE.
1455 (obj_coff_def): Likewise.
1456 (obj_coff_endef): Replace use of symbol_find_base with symbol_find.
1457 (coff_frob_symbol): Likewise.
1458 (yank_symbols): Likewise.
1459 (c_section_symbol): Likewise.
1460 * config/obj-coff.h (DO_NOT_STRIP): Remove.
1461 * config/tc-arm.c (symbol_locate): Remove code section conditional
1462 upon STRIP_UNDERSCORE.
1463 * config/tc-h8300.h (DO_NOT_STRIP): Remove.
1464 * config/tc-h8500.h (DO_NOT_STRIP): Remove.
1465 * config/tc-sh.h (DO_NOT_STRIP): Remove.
1466 * config/tc-w65.h (DO_NOT_STRIP): Remove.
1467 * config/tc-z8k.h (DO_NOT_STRIP): Remove.
1468
80b8152b
AS
14692005-04-19 Andreas Schwab <schwab@suse.de>
1470
1471 * config/tc-ia64.c (md_assemble): Fix error message for wrong
1472 access to application registers.
1473
4d56c0a0
JB
14742005-04-19 Jan Beulich <jbeulich@novell.com>
1475
1476 * config/te-sysv32.h: Remove.
1477 * Makefile.am (TARG_ENV_HFILES): Remove reference to
1478 config/te-sysv32.h.
1479 * Makefile.in (TARG_ENV_HFILES): Likewise.
1480
4fdd1e4f
JB
14812005-04-19 Jan Beulich <jbeulich@novell.com>
1482
1483 PR/847
1484 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero-
1485 length symbols.
1486
791fe849
MK
14872005-04-18 Mark Kettenis <kettenis@gnu.org>
1488
1489 * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
1490
9ee2a2d4
MR
14912005-04-18 Maciej W. Rozycki <macro@linux-mips.org>
1492
1493 * config/tc-mips.c (normalize_constant_expr): Don't check for
1494 HAVE_32BIT_GPRS.
1495 (check_absolute_expr): Only call normalize_constant_expr() if
1496 HAVE_32BIT_GPRS.
1497 (mips_ip): Likewise.
1498
1499 * config/tc-mips.c (check_absolute_expr): Fix formatting.
1500
e6ca91be
JB
15012005-04-18 Jan Beulich <jbeulich@novell.com>
1502
1503 * macro.c (free_token): New, freeing all the memory associated with a
1504 macro.
1505 (do_formals): Move initializers to ...
1506 (define_macro): ... here.
1507 (delete_macro): Convert passed in name to lower case. Warn when
1508 purging macro that doesn't exist. Use hash_jam instead of hash_delete.
1509
9f872bbe
MR
15102005-04-15 Maciej W. Rozycki <macro@linux-mips.org>
1511
1512 * config/tc-mips.c (normalize_constant_expr): Fix formatting.
1513
8fe53b44
JB
15142005-04-15 Jan Beulich <jbeulich@novell.com>
1515
1516 * config/obj-elf.c (obj_elf_struct): New.
1517 (elf_pseudo_table). Use it for .offset and .struct.
1518
0e5cd789 15192005-04-14 Bob Wilson <bob.wilson@acm.org>
140fe8df 1520 Sterling Augustine <sterling@tensilica.com>
0e5cd789
BW
1521
1522 * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
1523 than the section alignment.
1524
dd49a749
BW
15252005-04-14 Bob Wilson <bob.wilson@acm.org>
1526 H.J. Lu <hongjiu.lu@intel.com>
1527
1528 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.
1529 * config/tc-xtensa.c (xg_translate_sysreg_op,
1530 xtensa_translate_old_userregs_ops,
1531 xtensa_find_unaligned_branch_targets,
1532 xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags,
1533 relax_frag_add_nop): Support 64-bit host.
1534 (xtensa_mark_literal_pool_location, xtensa_move_literals): Use
1535 tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
1536
26eebcf5
MK
15372005-04-14 Mark Kettenis <kettenis@gnu.org>
1538
64efe625
MK
1539 * configure.tgt: Add support for OpenBSD/sparc ELF.
1540
26eebcf5
MK
1541 * configure.tgt: Set emulation for mips-*-openbsd*.
1542 Remove broken mips-dec-openbsd* config.
1543 * configure.in: Set default ABI for mips64-*-openbsd*.
1544 * configure: Regenerate.
1545
39a59cf8
MR
15462005-04-14 Maciej W. Rozycki <macro@linux-mips.org>
1547
1548 * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP
1549 optimization for constant addresses.
1550
f7a568ea
NC
15512005-04-14 Nick Clifton <nickc@redhat.com>
1552
1553 * as.c (main): Move parse_args before symbol_begin and frag_init
1554 so that the hash table size can be set before it is used.
1555 * hash.c: Use an unsigned long type for the size of the hash
1556 tables.
3c9d25f4 1557 * hash.h (set_gas_hash_table_size): Update the prototype.
f7a568ea 1558
9e9b66a9
AM
15592005-04-14 Alan Modra <amodra@bigpond.net.au>
1560
1561 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1562 * acinclude.m4: Include ../bfd/warning.m4.
1563 * configure.in: Invoke AM_BINUTILS_WARNINGS.
1564 * Makefile.in: Regenerate.
1565 * configure: Regenerate.
1566 * doc/Makefile.in: Regenerate.
1567
2051e8c4
MR
15682005-04-13 Maciej W. Rozycki <macro@linux-mips.org>
1569
1570 * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro.
1571 (normalize_address_expr): New function to sign-extend address
1572 offsets that fit into 32 bits in 32-bit mode.
1573 (macro_build_ldst_constoffset): Use normalize_address_expr()
1574 instead of a handcoded sequence.
1575 (load_register): Likewise. Report oversized numbers in a useful
1576 way.
1577 (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only
1578 for constant addresses. Report oversized numbers in a useful way.
1579 (mips_ip): Use normalize_address_expr() for addresses.
1580
bc4bd9ab
MK
15812005-04-12 Mark Kettenis <kettenis@gnu.org>
1582
1583 * config/tc-i386.c (output_insn): Handle VIA PadLock instructions
1584 similar to other instructions now that they're marked as ImmExt.
1585
4bdd3565
NC
15862005-04-12 Nick Clifton <nickc@redhat.com>
1587
1588 * hash.c (DEFAULT_SIZE): Delete. Replace with:
1589 (gas_hash_table_size): New static variable.
1590 (set_gas_hash_table_size): New function: Records a requested size
1591 for the hash tables.
1592 (get_gas_hash_table_size): New function: Return a prime number
1593 near the requested size of the hash table.
1594 (hash_new): Use get_gas_hash_table_size.
1595 * hash.h: Add a prototype for set_gas_hash_table_size.
1596 * as.c (show_usage): Add description of new switches: --hash-size
1597 and --reduce-memory-overheads.
1598 (option_values): Add OPTION_HASH_TABLE_SIZE and
1599 OPTION_REDUCE_MEMORY_OVERHEADS.
1600 (std_longpopts): Add entries for the new options.
1601 (parse_args): Handle the new options.
1602 * Makefile.am: Add a dependency of as.c on hash.h.
1603 * Makefile.in: Regenerate.
1604 * doc/as.texinfo: Document the new switches.
1605 * NEWS: Mention the new switches.
1606
f394e3dd
NC
16072005-04-12 Nick Clifton <nickc@redhat.com>
1608
1609 PR gas/818
1610 * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3]
1611 synonyms.
1612
ceae3e33
AM
16132005-04-12 Alan Modra <amodra@bigpond.net.au>
1614
1615 * Makefile.am: Run "make dep-am".
1616 * Makefile.in: Regenerate.
1617
2eccd1b4
BW
16182005-04-11 Sterling Augustine <sterling@tensilica.com>
1619 Bob Wilson <bob.wilson@acm.org>
1620
1621 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.
1622
333f7af7
MK
16232005-04-11 Mark Kettenis <kettenis@gnu.org>
1624
1625 * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
1626
5e75c3ab
JB
16272005-04-11 Jan Beulich <jbeulich@novell.com>
1628
1629 * NEWS: Mention these changes and their effects.
1630 * macro.c (get_token): Use is_name_beginner/is_part_of_name/
1631 is_name_ender.
1632 (check_macro): Likewise.
1633 (buffer_and_nest): Likewise. Permit multiple labels. Don't discard
1634 labels together with the closing pseudo-op.
1635 (macro_expand_body): Adjust comment. Range-check input before use.
1636 Adjust mis-spelled diagnostic. Use is_name_beginner.
1637 * read.c (try_macro): New.
1638 (read_a_source_file): New static variable last_eol. Don't list
1639 macro expansion lines more than once. Call try_macro.
1640 (s_macro): Set section of line_label to absolute instead of undefined.
1641 * doc/as.texinfo: Add information on the caveats of these changes.
1642
514d955d
AM
16432005-04-11 Alan Modra <amodra@bigpond.net.au>
1644
1645 * symbols.c (symbol_X_add_number): Change return type to "offsetT *".
1646 * symbols.h (symbol_X_add_number): Update prototype.
1647
a9fcb2a9
EC
16482005-04-10 Eric Christopher <echristo@redhat.com>
1649
1650 * symbols.c (symbol_X_add_number): Fix warning.
1651
045b540e
L
16522005-04-10 H.J. Lu <hongjiu.lu@intel.com>
1653
1654 * config/tc-m68k.c (md_begin): Support 64bit host.
1655 (get_num): Support 64bit BFD on 32bit host.
1656
b215186b
L
16572005-04-10 H.J. Lu <hongjiu.lu@intel.com>
1658
1659 * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
1660
be95a9c1
AM
16612005-04-09 Alan Modra <amodra@bigpond.net.au>
1662
31d20a21
AM
1663 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
1664 call. Don't do the COFF hacks for multi-emulation gas. Move
1665 demand_empty_rest_of_line back to caller.
1666 (s_set, equals): demand_empty_rest_of_line here.
1667
be95a9c1
AM
1668 PR gas/827
1669 * as.h (rs_dummy): Define.
1670 * symbols.c (symbol_X_add_number): New function.
1671 * symbols.h (symbol_X_add_number): Declare.
1672 * stabs.c (aout_process_stab): Tidy symbol frag setting.
1673 * read.c (assign_symbol): New function, split out from s_set.
1674 Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy.
1675 Fix COFF hacks for multi-emulation gas.
1676 (s_set): Call assign_symbol. Remove "register" keyword.
1677 (set_zero_frag): New function.
1678 (pseudo_set): Always check for assignment to section syms.
1679 Always set segment and frag of symbol, and likewise extern for
1680 aout/bout. Handle assignment of sym=sym+/-const specially. Don't
1681 special case exp.X_add_number non-zero for O_symbol expressions.
1682 (equals): Use assign_symbol.
1683
6624cbde
BW
16842005-04-08 Bob Wilson <bob.wilson@acm.org>
1685
1686 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
1687 SEC_MERGE sections.
1688
dbbaec26
L
16892005-04-06 H.J. Lu <hongjiu.lu@intel.com>
1690
1691 * config/tc-i386.c (tc_gen_reloc): Don't turn
1692 BFD_RELOC_X86_64_32S into BFD_RELOC_32.
1693
0d6af1ab
NC
16942005-04-06 Nick Clifton <nickc@redhat.com>
1695
1696 * po/rw.po: New translation: Kinyarwanda
1697 * configure.in (ALL_LINGUAS): Add rw
1698 * configure: Regenerate.
1699
664df4e4
BW
17002005-04-05 Sterling Augustine <sterling@tensilica.com>
1701 Bob Wilson <bob.wilson@acm.org>
1702
1703 * config/tc-xtensa.c (branch_align_power): New.
1704 (xtensa_find_unaligned_branch_targets, get_aligned_diff,
1705 future_alignment_required): Use branch_align_power to check section
1706 alignment as well as xtensa_fetch_width when aligning branch targets.
1707
d77b99c9
BW
17082005-04-05 Bob Wilson <bob.wilson@acm.org>
1709
1710 * config/tc-xtensa.c: Warning fixes throughout.
1711 (xtensa_fetch_width): Change to unsigned.
1712 (assemble_nop, xtensa_find_unaligned_branch_targets,
1713 xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
1714 is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
1715 min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
1716 unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
1717 count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
1718 get_text_align_max_fill_size, get_text_align_nop_count,
1719 get_text_align_nth_nop_size, get_noop_aligned_address,
1720 get_aligned_diff, convert_frag_align_next_opcode,
1721 convert_frag_immed_finish_loop, xtensa_create_property_segments,
1722 xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
1723 types, avoiding size_t and using offsetT and addressT appropriately.
1724 (get_text_align_power): Clean up types. Avoid incorrect bound.
1725 (get_text_align_fill_size): Clean up types. Restructure for clarity.
1726
da9f89d4
L
17272005-04-04 H.J. Lu <hongjiu.lu@intel.com>
1728
1729 * config/tc-ia64.c (start_unwind_section): Undo the change
1730 of 2004-08-18.
1731 (generate_unwind_image, dot_endp): Likewise.
1732
f6fe78d6
JW
17332005-04-01 David Mosberger <davidm@hpl.hp.com>
1734
1735 * config/tc-ia64.c (ia64_handle_align): Move le_nop and
1736 le_nop_stop arrays and initializers to file scope.
1737 (md_begin): When generating code for anything other than
1738 Itanium 1, use MMI instead of MFI NOP bundles as a filler.
1739
a7d61044
JB
17402005-04-01 Jan Beulich <jbeulich@novell.com>
1741
1742 * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
1743 immediates.
1744
d2c5f73e
NC
17452005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1746
1747 * NEWS: Mention [fdgh]_floating.
1748 * config/atof-vax.c: Fix some whitespace.
1749 * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
1750
56f36663
NC
17512005-04-01 Nick Clifton <nickc@redhat.com>
1752
1753 * configure.in: Add a check for <unistd.h> providing a prototype
1754 for getopt() which is compatible with the one in
1755 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1756 * configure: Regenerate.
1757 * config.in (HAVE_DECL_GETOPT): Add.
1758
8a75718c
JB
17592005-04-01 Jan Beulich <jbeulich@novell.com>
1760
1761 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
1762
ae8887b5
JB
17632005-04-01 Jan Beulich <jbeulich@novell.com>
1764
1765 * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
1766 (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
1767
05ea83ed
JB
17682005-03-30 Julian Brown <julian@codesourcery.com>
1769
1770 * config/tc-arm.c (arm_adjust_symtab): Rename
1771 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
1772
9d2da7ca
JB
17732005-03-30 Julian Brown <julian@codesourcery.com>
1774
1775 * config/tc-arm.c (mapping_state): Change documentation in function
1776 comment to cross-reference spec instead. Change type of mapping symbols
1777 to BSF_NO_TYPE.
1778 (arm_adjust_symtab): Don't change type of mapping symbols here.
1779
e8a38df5
AL
17802005-03-30 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1781
1782 * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
1783 * config.in: Regenerate.
1784 * configure: Regenerate.
1785 * configure.in: Check for ffs decl and alphabetize.
1786
ba93b8ac
DJ
17872005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1788 Phil Blundell <philb@gnu.org>
1789
1790 * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
1791 (md_apply_fix3): Mark TLS symbols.
1792 (tc_gen_reloc): Handle TLS relocations.
1793 (arm_fix_adjustable): Ignore TLS relocations.
1794 (s_arm_elf_cons): Support expressions after decorated symbols.
1795
84798bd6
JB
17962005-03-29 Julian Brown <julian@codesourcery.com>
1797
1798 * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
1799 whether personality routine index N has been output for this section.
1800 (mapping_state): tc_segment_info_data now struct not enum.
1801 (arm_elf_change_section): Likewise, and marked_pr_dependency is now
1802 handled on section change.
1803 (create_unwind_entry): Previous code to output dependency removed.
1804 (s_arm_unwind_fnend): Output dependency if it hasn't been done already
1805 for this section.
1806 * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
1807 arm_segment_info_type.
1808 (arm_segment_info_type): New struct.
84798bd6 1809
7b1cc377
BW
18102005-03-28 Sterling Augustine <sterling@tensilica.com>
1811 Bob Wilson <bob.wilson@acm.org>
1812
1813 * config/tc-xtensa.c (do_align_targets): Update comment.
1814 (xtensa_frob_label): Compute "freq" before possibly switching frags.
1815 Insert a LOOP_END frag before every loop target, and do not overload
1816 DESIRE_ALIGN_IF_TARGET frags with loop end information.
1817 (xg_assemble_vliw_tokens): Use do_align_targets.
1818 (xtensa_fix_target_frags): Remove code to convert a
1819 DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
1820 negatable branch at the end of a loop.
1821 (frag_can_negate_branch): Delete.
1822
8c2fda1d
L
18232005-03-28 David Mosberger <davidm@hpl.hp.com>
1824 H.J. Lu <hongjiu.lu@intel.com>
1825
1826 PR 803
1827 NEWS: Mention "-mtune=[itanium1|itanium2]".
1828
1829 * config/tc-ia64.c (md): Add tune.
1830 (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
1831 (md_show_usage): Add "-mtune=[itanium1|itanium2]".
1832 (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
1833 B unit NOPs are discouraged for McKinley-derived cores.
1834 (md_begin): Don't hardcode the "extra_goodness()" function in
1835 the comment...
1836 (ia64_init): Set md.tune to itanium2.
1837
1838 * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
1839 * doc/c-ia64.texi: Likewise.
1840
161840f9
ILT
18412005-03-27 Ian Lance Taylor <ian@airs.com>
1842
1843 * config/obj-coff.c (coff_frob_symbol): When crashing because of a
1844 bad C_EFCN symbol, print its name.
1845
7c834684
BW
18462005-03-25 Bob Wilson <bob.wilson@acm.org>
1847
1848 * config/tc-xtensa.c (use_longcalls): Delete.
1849 (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
1850 the use_longcalls flag is set. Do this before checking the segment.
1851 (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never
1852 expand direct calls at this point.
1853 (xtensa_set_frag_assembly_state): Set use_longcalls flag.
1854 (xtensa_find_unmarked_state_frags): Likewise.
1855 (md_assemble): Do not disable longcalls by setting is_specific_opcode.
1856 (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
1857 (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
1858 * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
1859
ff1e783f
HPN
18602005-03-25 Hans-Peter Nilsson <hp@bitrange.com>
1861
1862 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
1863
695a4822
HPN
18642005-03-25 Hans-Peter Nilsson <hp@axis.com>
1865
1866 * config/tc-cris.h: Convert to ISO C90.
1867 * config/tc-cris.c: Ditto.
1868 (md_estimate_size_before_relax): Remove obsolete comment for
1869 parameter "segment_type".
1870 (md_begin): Document reason for cast of hash_insert argument.
1871 (md_atof): Correct type of parameter "type".
1872
ea1562b3
NC
18732005-03-24 Nick Clifton <nickc@redhat.com>
1874
1875 * write.h (bit_fix_new): Remove redundant prototype.
1876 * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
1877 * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
1878 * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
1879 * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
1880 * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
1881 * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
1882 * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
1883 * config/obj-som.c: Convert to ISO-C90 and fix formatting.
1884 * config/obj-som.h: Convert to ISO-C90 and fix formatting.
1885 * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
1886 * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
1887 * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
1888 * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
1889 * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
1890 * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
1891 * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
1892 * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
1893 * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
1894 * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
1895 * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
1896 * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
1897 * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
1898 * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
1899 * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
1900 * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
1901 * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
1902 * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
1903 * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
1904 * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
1905 * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
1906 * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
1907 * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
1908 * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
1909 * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
1910 * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
1911 * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
1912 * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
1913 * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
1914 * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
1915 * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
1916 * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
1917 * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
1918 * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
1919 * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
1920 * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
1921 * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
1922 * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
1923 * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
1924 * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
1925 * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
1926 * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
1927 * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
1928 * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
1929 * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
3c9d25f4 1930 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
ea1562b3 1931
d110d6a2
JB
19322005-03-23 Jim Blandy <jimb@redhat.com>
1933
1934 * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
1935 attributes properly.
1936
ed84e695
NC
19372005-03-23 Mike Frysinger <vapier@gentoo.org>
1938 Nick Clifton <nickc@redhat.com>
1939
1940 * configure.tgt: Accept any C library to accompany a GNU Linux
1941 implementation, not just the GNU C library.
1942 * configure.in: Likewise.
1943 * configure: Regenerate.
1944
4d5f9b2a
NC
19452005-03-23 Nick Clifton <nickc@redhat.com>
1946
1947 * config/tc-tic30.c: Convert to ISO C90 formatting.
1948 * config/tc-tic30.h: Convert to ISO C90 formatting.
1949 * config/tc-pdp11.c: Convert to ISO C90 formatting.
1950 * config/atof-vax.c: Convert to ISO C90 formatting.
1951
704803a9
MR
19522005-03-21 Maciej W. Rozycki <macro@mips.com>
1953
1954 * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
1955 relocations correctly as well.
1956 (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
1957 relocations in mergeable sections section-relative either.
1958
6e2a91a3
BW
19592005-03-21 Bob Wilson <bob.wilson@acm.org>
1960
1961 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
1962
3d063691
NC
19632005-03-21 Nick Clifton <nickc@redhat.com>
1964
1a66a017
NC
1965 * config/tc-sh.c (sh_elf_final_processing): Fix compile time
1966 warning by providing a prototype for sh_symbian_find_elf_flags.
1967
3d063691
NC
1968 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
1969 previous delta.
1970
6f19c13c
AM
19712005-03-21 Alan Modra <amodra@bigpond.net.au>
1972
1973 * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
1974 along with other formats that set bfd_gas. Remove unnecessary
1975 setting of bfd_gas. Delete strongarm cases in generic_target
1976 switch.
1977
bd17c2c3
AM
19782005-03-21 Alan Modra <amodra@bigpond.net.au>
1979
1980 PR gas/780
1981 * config/tc-m68k.c (TRUNC, SEXT): Define.
1982 (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
1983 (m68k_ip): Truncate or sign extend expressions as appropriate.
1984 (get_num): Likewise.
1985 (md_apply_fix3): Use SEXT.
1986
ec91a2c2
AM
19872005-03-21 Alan Modra <amodra@bigpond.net.au>
1988
1989 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
1990 (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
1991 (obj-vms.o): Delete rule.
1992 Run "make dep-am".
1993 * Makefile.in: Regenerate.
1994 * aclocal.m4: Regenerate.
1995 * doc/Makefile.in: Regenerate.
1996 * po/POTFILES.in: Regenerate.
1997
238d258f
NC
19982005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
1999
2000 * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
2001 flag for coldfire v4e.
2002
30f725a1
BW
20032005-03-17 Bob Wilson <bob.wilson@acm.org>
2004
2005 * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
2006 xg_apply_fix_value and return a value to indicate success.
2007 (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative.
2008 (xtensa_force_relocation): Remove checks for VTABLE relocs.
2009 (xtensa_validate_fix_sub): New.
2010 (xtensa_fix_adjustable): Remove check for external or weak symbols.
2011 (tc_gen_reloc): Move code to handle difference of symbols and code to
2012 apply tentative fix values to ...
2013 (md_apply_fix3): ...here. Enable standard overflow checks for simple
2014 8, 16, and 32 bit relocations. Apply fixes for slot-specific
2015 relocations when linkrelax flag is not set.
2016 * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
2017 (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
2018
a724f0f4
JB
20192005-03-17 Jan Beulich <jbeulich@novell.com>
2020
2021 * config/tc-i386.c (i386_scale): Beautify error message.
2022 (Intel syntax comments): Update.
2023 (struct intel_parser_s): Add fields in_offset, in_bracket, and
2024 next_operand.
2025 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
2026 Remove declarations.
2027 (intel_bracket_expr): Declare.
2028 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
2029 of the function body in a loop allowing to split an operand into two.
2030 Replace calls to malloc and checks of it returning non-NULL with
2031 calls to xmalloc/xstrdup.
2032 (intel_expr): SHORT no longer handled here. Add comment indicating
2033 comparison ops need implementation.
2034 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
2035 Check right operand of - does not specify a register when parsing
2036 the address of a memory reference.
2037 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
2038 Check operands do not specify a register when parsing the address of
2039 a memory reference.
2040 (intel_e06, intel_e06_1): Likewise.
2041 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
2042 handle SHORT as well as unary + and -. Don't accept : except for
2043 segment overrides or in direct far jump/call insns.
2044 (intel_brack_expr): New.
2045 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
2046 intel_brack_expr.
2047 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
2048 through in certain cases. Use intel_brack_expr. Add new diagnostics.
2049 Allow symbolic constants as register scale value.
2050 (intel_get_token): Replace call to malloc and check of return value
2051 with call to xmalloc. Change handling for FLAT to match MASM's.
2052 (intel_putback_token): Don't try to back up/free current token if
2053 that is T_NIL.
2054
deeaaff8
DJ
20552005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
2056
2057 * configure.tgt: Set emulation for arm-*-eabi*.
2058 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
2059 * config/te-armeabi.h: New file.
2060 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
2061 * config/te-symbian.h: Include "te-armeabi.h".
2062
199fea98
NC
20632005-03-16 Nick Clifton <nickc@redhat.com>
2064
2065 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
2066 local variable in case it is clobbered by the setjmp.
2067
1ad12f97
NC
20682005-03-16 Nick Clifton <nickc@redhat.com>
2069 Ben Elliston <bje@au.ibm.com>
2070
569acd2c 2071 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 2072 compiler command line. Enabled by default. Disable via
569acd2c 2073 --disable-werror.
1ad12f97
NC
2074 * configure: Regenerate.
2075
a5324a3e
NC
20762005-03-16 Nick Clifton <nickc@redhat.com>
2077
2078 * config/obj-coff.h: Convert to ISO C90 formatting.
2079 * config/obj-coff.c: Convert to ISO C90 formatting.
2080
b05fe5cf
ZW
20812005-03-15 Zack Weinberg <zack@codesourcery.com>
2082
2083 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
2084 is_mls parameter; do not diagnose Rm==Rd when is_mls.
2085 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
2086 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
2087 (insns): Add ARMv6T2 instructions:
2088 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
2089 (arm_archs): Add V6T2 variants.
2090
957d91c1
NC
20912005-03-15 Nick Clifton <nickc@redhat.com>
2092
2093 * NEWS: Add cutoff for changes in 2.16 release.
2094
43c3ab55
JB
20952005-03-15 Jan Beulich <jbeulich@novell.com>
2096
2097 * expr.c (operand): Merge handling of unary + into that for unary
2098 -, !, and ~.
2099
5862107c
EC
21002005-03-14 Eric Christopher <echristo@redhat.com>
2101
2102 * config/tc-mips.c: Include dw2gencfi.h.
2103 (mips_cfi_frame_initial_instructions): New.
2104 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
2105 (tc_cfi_frame_initial_instructions): Ditto.
2106 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
2107 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
2108 * Makefile.am: Update dependencies.
2109 * Makefile.in: Regenerate.
2110
729ae8d2
AM
21112005-03-15 Alan Modra <amodra@bigpond.net.au>
2112
2113 * po/es.po: Commit new Spanish translation.
2114
882cb63e
AM
21152005-03-14 Alan Modra <amodra@bigpond.net.au>
2116
2117 * po/tr.po: Commit new Turkish translation.
2118
885fc257
ZW
21192005-03-12 Zack Weinberg <zack@codesourcery.com>
2120
2121 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
2122 wfi, yield.
2123
e330299e
DJ
21242005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
2125
2126 * config-gas.com: Mark vax-vms as obsolete.
2127 * configure.in: Remove fmt=vms support.
2128 * config.in: Regenerate.
2129 * configure: Regenerate.
2130 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
2131
7b1cc377
BW
21322005-03-10 Sterling Augustine <sterling@tensilica.com>
2133 Bob Wilson <bob.wilson@acm.org>
0fa77c95
BW
2134
2135 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
2136 when checking if xg_resolve_literals needs to be called.
2137 * config/tc-xtensa.h: Fix spelling typo in a comment.
2138
4962e196
JB
21392005-03-10 Jan Beulich <jbeulich@novell.com>
2140
2141 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
2142 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
2143 crafted structure declarations with the types from macro.h.
2144
4184909a
RS
21452005-03-09 Richard Sandiford <rsandifo@redhat.com>
2146
2147 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
2148 for -mno-shared optimization.
2149
7d8e00cf
RS
21502005-03-09 Richard Sandiford <rsandifo@redhat.com>
2151
2152 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
2153 (MAX_NOPS): Bump to 4.
2154 (mips_fix_vr4130): New variable.
2155 (nops_for_vr4130): New function.
2156 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
2157 nops_for_vr4130 if working around VR4130 errata.
2158 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
2159 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
2160 (md_parse_option): Handle them.
2161 (md_show_usage): Print them.
2162 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
2163
dc36a61f
RS
21642005-03-09 Richard Sandiford <rsandifo@redhat.com>
2165
2166 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
2167 branch delay code.
2168
7d10b47d
RS
21692005-03-09 Richard Sandiford <rsandifo@redhat.com>
2170
2171 * config/tc-mips.h (mips_flush_pending_output): Delete.
2172 (mips_emit_delays): Declare.
2173 (md_flush_pending_output): Use mips_emit_delays.
2174 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
2175 the previous instructions.
2176 (md_begin, append_insn, md_parse_option): Update callers.
2177 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
2178 start_noreorder.
2179 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
2180 (s_gpdword): Update callers.
2181 (start_noreorder, end_noreorder): New functions.
2182 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
2183 manipulating mips_opts or prev_nop_frag directly.
2184 (mips_flush_pending_output): Delete.
2185
404a8071
RS
21862005-03-09 Richard Sandiford <rsandifo@redhat.com>
2187
2188 * config/tc-mips.c (mips_move_labels): New function, taken from...
2189 (append_insn, mips_emit_delays): ...here.
2190
71400594
RS
21912005-03-09 Richard Sandiford <rsandifo@redhat.com>
2192
2193 * config/tc-mips.c (MAX_NOPS): New macro.
2194 (history): Resize to 1 + MAX_NOPS.
2195 (fix_vr4120_class): New enumeration.
2196 (vr4120_conflicts): New variable.
2197 (init_vr4120_conflicts): New function.
2198 (md_begin): Call it.
2199 (insn_uses_reg): Constify first argument.
2200 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
2201 (nops_for_insn_or_target): New functions.
2202 (append_insn): Use the new nops_for_* functions instead of inline
2203 delay checks. Generalize prev_nop_frag handling to handle an
2204 arbitrary history length. Insert nops into the history buffer
2205 once the number of nops in prev_nop_frag is fixed.
2206 (emit_delays): Use nops_for_insn instead of inline delay checks.
2207
9b91f544
RS
22082005-03-09 Richard Sandiford <rsandifo@redhat.com>
2209
2210 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
2211 check from branch delay code. Remove unnecessary check for branches.
2212
1e915849
RS
22132005-03-09 Richard Sandiford <rsandifo@redhat.com>
2214
2215 * config/tc-mips.c (dummy_opcode): Delete.
2216 (nop_insn, mips16_nop_insn): New variables.
2217 (NOP_INSN): New macro.
2218 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
2219 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
2220 (md_begin): Initialize nop_insn and mips16_nop_insn.
2221 (append_insn): Use the new emit_nop function to add nops, recording
2222 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
2223 to reserve room for the instruction and install_insn to install the
2224 final form. Use insert_into_history to record the instruction in
2225 the history buffer. Use move_insn to do delay slot filling.
2226 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
2227 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
2228 (mips16_ip): Use create_insn to initialize mips_cl_insns.
2229
bf12938e
RS
22302005-03-09 Richard Sandiford <rsandifo@redhat.com>
2231
2232 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
2233 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
2234 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
2235 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
2236 (mips16_ip): Use the new macros instead of explicit masks and shifts.
2237
a38419a5
RS
22382005-03-09 Richard Sandiford <rsandifo@redhat.com>
2239
2240 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
2241 and extended_p fields with a single fixed_p field.
2242 (append_insn, mips_no_prev_insn): Adjust accordingly.
2243
2fa15973
RS
22442005-03-09 Richard Sandiford <rsandifo@redhat.com>
2245
2246 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
2247 a single mips16_absolute_jump_p bit.
2248 (append_insn): Adjust accordingly.
2249
47e39b9d
RS
22502005-03-09 Richard Sandiford <rsandifo@redhat.com>
2251
2252 * config/tc-mips.h (mips_cl_insn): Move definition to...
2253 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
2254 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
2255 and extended_p.
2256 (history): New variable.
2257 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
2258 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
2259 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
2260 (prev_prev_insn_unreordered): Delete.
2261 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
2262 (macro_start): Replace uses of prev_insn* with the equivalent history[]
2263 field.
2264
399132af
DJ
22652005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2266
2267 * doc/Makefile.am: Update as.info dependencies.
2268 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
2269
22702005-03-08 Jan Beulich <jbeulich@novell.com>
fffeaa5f
JB
2271
2272 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
2273 error, and point to .purgem documentation if someone really needs
2274 re-definitions.
2275 * NEWS: Mention macro redefinition is now an error.
2276
9b505842
JB
22772005-03-08 Jan Beulich <jbeulich@novell.com>
2278
2279 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
2280 emitted to. Add more precise diagnostics for non-fitting insns based
2281 on that. Eliminate now superfluous special casing of MLX. Clear out
2282 slot information when dropping an insn.
2283
ef6a2b41
JB
22842005-03-08 Jan Beulich <jbeulich@novell.com>
2285
2286 * config/tc-ia64.c (parse_section_name): Rename to...
2287 (cross_section): In addition to separating the name from the rest of
2288 the arguments, also carry out the operation.
2289 (dot_xdata): Use cross_section.
2290 (dot_float_cons): Likewise.
2291 (dot_xstringer): Likewise.
2292 (dot_xdata_ua): Likewise.
2293 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
2294
06647dfd
AM
22952005-03-05 Alan Modra <amodra@bigpond.net.au>
2296
2297 * po/gas.pot: Regenerate.
2298
bbe506e8
TS
22992005-03-04 David Daney <ddaney@avtrex.com>
2300
2301 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
2302 instead of '_gp' for -mno-shared optimization.
2303 (s_cpload): Ditto.
2304 (s_abicalls): Document it in the comment.
2305 (md_show_usage): Document the -mno-shared option.
2306
aed1a261
RS
23072005-03-04 Richard Sandiford <rsandifo@redhat.com>
2308
2309 * config/tc-mips.c (mips_set_options): Add sym32 field.
2310 (mips_opts): Initialize it.
2311 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
2312 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
2313 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
2314 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
2315 when deciding whether to use a symbolic %highest/%higher expansion.
2316 (macro): Likewise. Remove o64/n32 linux hack. Always use
2317 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
2318 and "la". Handle constants separately from symbolic expressions in
2319 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
2320 and using load_register to load the high part of the address.
2321 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
2322 (OPTION_ELF_BASE): Bump by 2.
2323 (md_longopts): Add entries for -msym32 and -mno-sym32.
2324 (md_parse_option): Handle them.
2325 (usage): Document them.
2326 (s_mipsset): Handle ".set sym32" and ".set nosym32".
2327 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
2328 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
2329 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
2330 -msym32 and -mno-sym32.
2331
6caf9ef4
TS
23322005-03-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2333
2334 * config/tc-mips.c (load_address): Implement GP optimization
2335 for 64bit address space non-PIC. Fix formatting.
2336 (macro): Likewise. Simplify code.
2337 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
2338 (mips_after_parse_args): Simplify code.
2339
406a7f05
NC
23402005-03-03 Nick Clifton <nickc@redhat.com>
2341
fbacee5b
NC
2342 * expr.c (operand): Remove redundant code enclosed by #ifdef
2343 RELAX_PAREN_GROUPING....#endif.
2344
77ccfee5
NC
2345 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
2346 reloc is the difference of two symbols defined in the same
2347 section.
2348
406a7f05
NC
2349 * config/tc-iq2000.c (line_comment_chars): Include the # character
2350 as otherwise this breaks #APP/#NO_APP processing.
2351
2f12d57f
RR
23522005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2353
2354 * config/tc-arc.c(md_assemble): Remove dead code for handling
2355 immediate indexing of ld and st .
2356
3f98094e
DJ
23572005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2358 Joseph Myers <joseph@codesourcery.com>
2359
2360 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
2361 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
2362 (parse_relocation): Check for a word break after a relocation
2363 operator.
2364 (md_apply_fix3): Handle TLS relocations, and mark thread-local
2365 symbols.
2366
ab1e9ef7
AM
23672005-03-02 Alan Modra <amodra@bigpond.net.au>
2368
2369 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
2370
bb14f524
JB
23712005-03-02 Jan Beulich <jbeulich@novell.com>
2372
2373 * as.c (main): Use unlink_if_ordinary instead of unlink.
2374 * messages.c (as_fatal): Likewise.
2375
c4a530c5
JB
23762005-03-02 Jan Beulich <jbeulich@novell.com>
2377
2378 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
2379 accesses.
2380 (parse_register): Allow cr8...15 in all modes.
2381
167c3097
JB
23822005-03-02 Jan Beulich <jbeulich@novell.com>
2383
2384 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
2385 etc. like normal symbol references (T_ID).
2386
71ba24a1
AM
23872005-03-02 Alan Modra <amodra@bigpond.net.au>
2388
2389 * symbols.c (fb_label_name): Fix silly thinko in last change.
2390
a76903bf
AM
23912005-03-02 Alan Modra <amodra@bigpond.net.au>
2392
9d0e75cb
AM
2393 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
2394 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
2395
a76903bf
AM
2396 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
2397
23982005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
b15c27d7
RR
2399
2400 PR gas/708
a76903bf 2401 * config/tc-arc.c (md_assemble): Initialize suffix for extension
b15c27d7 2402 suffixes also.
b15c27d7 2403
c9dea48b
AM
24042005-03-01 Alan Modra <amodra@bigpond.net.au>
2405
c7f17d46
AM
2406 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
2407
c9dea48b
AM
2408 * as.h (assert): Warning fix.
2409 * expr.c (expr): Correct assertion.
2410 * read.c (s_comm_internal): Remove assertion.
2411 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
2412 (fixup_segment): Remove assertion.
2413 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
2414 (md_apply_fix3): Likewise.
2415 * config/tc-i370.c (md_begin): Correct assertion.
2416 (i370_macro): Warning fix for assertion.
2417
44f2f9d2
AM
24182005-03-01 Alan Modra <amodra@bigpond.net.au>
2419
2420 * configure.in (AC_C_BIGENDIAN): Invoke.
2421 * configure: Regenerate.
2422 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
2423 host variable to set string header size.
2424 * config/obj-aout.c (obj_header_append): Don't use host structs.
2425 (obj_symbol_to_chars): Likewise.
2426 (obj_emit_strings): Likewise. Use the passed in output pointer.
2427 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
2428 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
2429 not sizeof host struct.
2430 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
2431 (obj_emit_strings): Likewise.
2432 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
2433 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
2434 sizeof host struct.
2435 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
2436 sizeof host struct.
2437 (host_number_to_chars): Define.
2438 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
2439 host internal struct to set header sizes.
2440 * config/tc-i960.c (md_number_to_field): Warning fix.
2441 (md_ri_to_chars): Use host byte order.
2442 (get_cdisp, md_apply_fix3): Warning fix.
055d1eb0 2443 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
44f2f9d2 2444
802a113d
NC
24452005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2446
2447 * doc/c-arc.texi: Update documentation about ARC's extension
2448 instructions.
2449
e5f129ad
SS
24502005-02-27 Svein E. Seldal <svein@dev.seldal.com>
2451
2452 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
2453 address for myself.
2454
2132e3a3
AM
24552005-02-23 Alan Modra <amodra@bigpond.net.au>
2456
2457 * cgen.c: Warning fixes.
2458 * config/tc-arc.c: Likewise.
2459 * config/tc-arm.c: Likewise.
2460 * config/tc-avr.c: Likewise.
2461 * config/tc-d10v.c: Likewise.
2462 * config/tc-d30v.c: Likewise.
2463 * config/tc-frv.c: Likewise.
2464 * config/tc-frv.h: Likewise.
2465 * config/tc-h8300.c: Likewise.
2466 * config/tc-h8500.c: Likewise.
2467 * config/tc-i370.c: Likewise.
2468 * config/tc-i960.c: Likewise.
2469 * config/tc-ia64.c: Likewise.
2470 * config/tc-ip2k.c: Likewise.
2471 * config/tc-m68hc11.c: Likewise.
2472 * config/tc-maxq.c: Likewise.
2473 * config/tc-mcore.c: Likewise.
2474 * config/tc-mips.c: Likewise.
2475 * config/tc-msp430.c: Likewise.
2476 * config/tc-pj.c: Likewise.
2477 * config/tc-ppc.c: Likewise.
2478 * config/tc-ppc.h: Likewise.
2479 * config/tc-s390.c: Likewise.
2480 * config/tc-sh.c: Likewise.
2481 * config/tc-sh64.c: Likewise.
2482 * config/tc-tic4x.c: Likewise.
2483 * config/tc-tic80.c: Likewise.
2484 * config/tc-v850.c: Likewise.
2485 * config/tc-vax.c: Likewise.
2486 * config/tc-w65.c: Likewise.
2487 * config/tc-xstormy16.c: Likewise.
2488 * config/tc-z8k.c: Likewise.
2489
ee3c9814
CM
24902005-02-22 Catherine Moore <clm@cm00re.com>
2491
2492 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
2493 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
2494
9b2f1d35
EC
24952005-02-22 Eric Christopher <echristo@redhat.com>
2496
2497 * config/tc-mips.c (struct proc): Change isym to
2498 func_sym. New member func_end_sym.
2499 (s_mips_ent): Update.
2500 (s_mips_end): Ditto. Add code to compute function size.
2501
b7712f8d
AM
25022005-02-22 Alan Modra <amodra@bigpond.net.au>
2503
2504 * read.c: Warning fixes.
2505 * config/obj-elf.c: Likewise.
2506
58e2ea4d
MR
25072005-02-22 Maciej W. Rozycki <macro@mips.com>
2508
2509 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
2510 emitting insn.
2511
ebe372c1
L
25122005-02-21 H.J. Lu <hongjiu.lu@intel.com>
2513
2514 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
2515 SEC_COFF_SHARED.
2516
2517 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
2518 SEC_TIC54X_BLOCK.
2519 (demand_empty_rest_of_line): Likewise.
2520 (tic54x_sblock): Likewise.
2521 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
2522
cc1bc22a
AM
25232005-02-21 Alan Modra <amodra@bigpond.net.au>
2524
2525 * read.c (address_bytes): New function.
2526 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
2527 (potable): Add "dc.a".
2528 (cons_worker): Handle "dc.a".
2529 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
2530
ac4528d2
AM
25312005-02-21 Alan Modra <amodra@bigpond.net.au>
2532
2533 * input-file.c (input_file_open): Rearrange to avoid warning.
2534
b5682e56
AM
25352005-02-19 Alan Modra <amodra@bigpond.net.au>
2536
2537 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
2538 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
2539 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
2540
8fc2e39e
TS
25412005-02-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2542
2543 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
2544 uses after .set noat.
2545 (load_address): Likewise.
2546 (macro): Likewise. Don't try to avoid $at use by sacrificing
2547 the target register before it is stored, it won't work.
2548
744b6414
JW
25492005-02-17 James E Wilson <wilson@specifixinc.com>
2550
2551 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
2552 see an instruction that specifies a template.
2553
30eb9c17
AM
25542005-02-18 Alan Modra <amodra@bigpond.net.au>
2555
2556 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
2557 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
2558 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
2559
91d777ee
L
25602005-02-17 H.J. Lu <hongjiu.lu@intel.com>
2561
2562 * NEWS: Mention "-mhint.b=[ok|warning|error]".
2563
2564 * config/tc-ia64.c (md): Add hint_b.
2565 (emit_one_bundle): Handle md.hint_b for "hint".
2566 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
2567 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
2568 (ia64_init): Set md.hint_b to error.
2569 (md_assemble): Handle md.hint_b for "hint.b".
2570
2571 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
2572 * doc/c-ia64.texi: Likewise.
2573
f17c130b
AM
25742005-02-17 Alan Modra <amodra@bigpond.net.au>
2575
2576 * tc.h (struct relax_type, relax_typeS): Move from here..
2577 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
2578 * ecoff.c (ecoff_new_file): Add appfile param.
2579 * ecoff.h (ecoff_new_file): Likewise.
2580 * itbl-lex.h: New file.
2581 * itbl-lex.l: Include itbl-lex.h.
2582 * itbl-parse.y: Likewise.
2583 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
2584 * read.c (s_app_file_string): Mark appfile possibly unused.
2585 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
2586 * subsegs.h (struct seg_info_trash): Delete.
2587 (seg_info): Use segment_info_type instead.
2588 * config/obj-coff.c (struct filename_list): Make filename const char *.
2589 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
2590 * config/obj-elf.c (elf_file_symbol): Similarly.
2591 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
2592 signed right shift.
2593 * config/tc-arc.c (md_operand): Warning fix.
2594 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
2595 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
2596 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
2597 * config/tc-frv.c (frv_force_relocation): Warning fix.
2598 * config/tc-m68k.c (md_parse_option): Delete unused var.
2599 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
2600 * config/tc-sparc.c: Likewise.
2601 (s_common): Warning fix.
2602 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
2603 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
2604 addressT.
2605 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
2606 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
2607 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
2608 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
2609 (tic4x_do_align): Use TIC_NOP_OPCODE.
2610 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
2611 * config/tc-vax.c: Include netinet/in.h.
2612 (tc_headers_hook): Formatting.
2613 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
2614
26b810ce
JB
26152005-02-17 Jan Beulich <jbeulich@novell.com>
2616
2617 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
2618 parsing inN, locN, outN. Set 'idx' to offset register number starts
2619 at. Don't handle numbers with leading zeroes or beyond 95. Remove
2620 pointless cast.
2621
b8285c27
TS
26222005-02-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2623
2624 * config/tc-mips.c (load_address): Fix formatting.
2625 (macro): Don't use AT if .set noat is in effect. Fix formatting.
2626 Catch macros which are unexpandable without AT. Remove duplicate
2627 zeroing of used_at.
2628 (macro2): Remove duplicate zeroing of used_at.
2629
4df6ce47
AM
26302005-02-16 Alan Modra <amodra@bigpond.net.au>
2631
2632 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
2633 than zero.
2634
d6f16593 26352005-02-15 Nigel Stephens <nigel@mips.com>
4df6ce47 2636 Maciej W. Rozycki <macro@mips.com>
d6f16593
MR
2637
2638 * config/tc-mips.c (reloc_needs_lo_p): Handle
2639 BFD_RELOC_MIPS16_HI16_S.
2640 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
2641 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
2642 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
2643 complaints on.
2644 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
2645 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
2646 Call my_getSmallExpression() to parse percent operators.
2647 (percent_op_match, mips_percent_op): Separate definitions.
2648 (mips16_percent_op): Define percent operators for the MIPS16 mode.
2649 (parse_relocation): Handle the MIPS16 mode using
2650 mips16_percent_op.
2651 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
2652 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
2653
7b347e43
JB
26542005-02-15 Jan Beulich <jbeulich@novell.com>
2655
2656 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
2657 instead of explicitly dealing with the translation; exclude
2658 relocations that are already pcrel, however.
2659
a66d2bb7
JB
26602005-02-15 Jan Beulich <jbeulich@novell.com>
2661
2662 * config/tc-ia64.c: Include limits.h (if available).
2663 (gr_values[0]): Set path to INT_MAX.
2664 (dot_reg_val): Don't allow changing value of r0. Limit range of
2665 general registers at r127.
2666 (specify_resource): Default resource index is -1. Don't set resource
2667 index (in case IA64_RS_RSE) without setting the specific flag.
2668 (note_register_values): Check operand is O_constant before tracking
2669 input value of moves. Add tracking for dep.z with constant inputs.
2670 (print_dependency): Resource index of specific resource may be zero.
2671 (check_dependencies): Likewise.
2672
4b09e828
JB
26732005-02-15 Jan Beulich <jbeulich@novell.com>
2674
2675 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
2676 reg_class. Check operands and emit diagnostics for illegal use of
2677 registers.
2678
0ca3e455
JB
26792005-02-15 Jan Beulich <jbeulich@novell.com>
2680
2681 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
2682 new variables type, suffix, and width. Handle
2683 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
2684 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
2685 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
2686 FUNC_DTP_RELATIVE case. Return incoming relocation type if
2687 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
2688 if unable to translate relocation type, using the new variables.
2689
2fac3d48
JB
26902005-02-15 Jan Beulich <jbeulich@novell.com>
2691
2692 * config/tc-ia64.h (ia64_symbol_chars): Declare.
2693 (ty_symbol_chars): Define.
2694 * config/tc-ia64.c (ia64_symbol_chars): Define.
2695
2f6d622e
JB
26962005-02-15 Jan Beulich <jbeulich@novell.com>
2697
2698 * config/tc-ia64.c (ia64_parse_name): Only update next character if
2699 input_line_pointer was advanced.
2700
28013b5c
KK
27012005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2702
2703 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
2704 within |.
2705
f1dab70d
JB
27062005-02-13 Jan Beulich <jbeulich@novell.com>
2707
2708 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
2709 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
2710 indicator.
2711 (ia64_init): Set md.detect_dv.
2712 (ia64_start_line): New static variable warned. Warn only once when
2713 encountering explicit stops in automatic mode.
2714 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
2715 * NEWS: Mention new default mode.
2716
20b36a95
JB
27172005-02-13 Jan Beulich <jbeulich@novell.com>
2718
2719 * config/tc-ia64.c (dot_rot): Add comment that name strings should
2720 be freed when wiping out previous state. Canonicalize names before
2721 use. Free name string when detecting redefinition.
2722 (dot_pred_rel): Call generic expression parser to process arguments.
2723 Handle O_register case for individual predicates and O_subtract for
2724 ranges.
2725 (ia64_parse_name): Canonicalize name before looking it up in dynamic
2726 register hash.
2727 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
2728 Warn if multiple found, issue error if resulting symbol name has zero
2729 length.
2730 (dot_alias): Canonicalize name before use.
2731
07450571
L
27322005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2733
2734 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
2735 and 0 for error.
2736 (in_procedure): Return -1 for warning.
2737 (in_prologue): Likewise.
2738 (in_body): Likewise.
2739
01b91374
L
27402005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2741
ac4528d2 2742 * config/tc-ia64.c (dot_xdata): Undo the last change.
01b91374
L
2743 (dot_float_cons): Likewise.
2744 (dot_xstringer): Likewise.
2745 (dot_xdata_ua): Likewise.
2746 (dot_float_cons_ua): Likewise.
2747
970d6792
L
27482005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2749
2750 * NEWS: Mention "-munwind-check=[warning|error]".
2751
2752 * config/tc-ia64.c (md): Add unwind_check.
2753 (unwind_diagnostic): New.
2754 (in_procedure): Call unwind_diagnostic when a directive isn't
2755 in procedure.
2756 (in_prologue): Call unwind_diagnostic when a directive isn't in
2757 prologue.
2758 (in_body): Call unwind_diagnostic when a directive isn't in
2759 body region.
2760 (dot_endp): Set md.unwind_check to error before calling
2761 in_procedure and restore it after. When the name is missing or
2762 couldn't be found, use the one from the last .proc if
2763 md.unwind_check isn't error. Warn if md.unwind_check is
2764 warning.
2765 (md_parse_option): Handle "-munwind-check=[warning|error]".
2766 (md_show_usage): Add "-munwind-check=[warning|error]".
2767 (ia64_init): Set md.unwind_check to warning.
2768
2769 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
2770 * doc/c-ia64.texi: Likewise.
2771
16a48f83
JB
27722005-02-11 Jan Beulich <jbeulich@novell.com>
2773
2774 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
2775 (LEX_QM): Likewise.
2776 (ia64_parse_name): New third parameter.
2777 (md_parse_name): Pass third argument.
2778 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
2779 (md_operand): Handling of '@'-prefixed symbols moved from here...
2780 (ia64_parse_name): ...to here.
2781
a911c10a
JB
27822005-02-11 Jan Beulich <jbeulich@novell.com>
2783
2784 * config/tc-ia64.c (md): Remove last_groups and group_idx.
2785 (errata_nop_necessary_p): Remove declaraction and definition.
2786 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
2787 update md.group_idx. Don't reset md.last_groups.
2788
b3f19c14
JB
27892005-02-11 Jan Beulich <jbeulich@novell.com>
2790
2791 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
2792 argument.
2793 (dot_xdata): Free section name after use.
2794 (dot_float_cons): Likewise.
2795 (dot_xstringer): Likewise.
2796 (dot_xdata_ua): Likewise.
2797 (dot_float_cons_ua): Likewise.
2798 (md_pseudo_table): Add xdata16 and xdata16.ua.
2799
5cb53c21
L
28002005-02-10 H.J. Lu <hongjiu.lu@intel.com>
2801
2802 * doc/all.texi: Add IA64.
2803 * doc/as.texinfo: Likewise.
2804
2805 * doc/c-ia64.texi: Fix typos.
2806
620b81c1
JB
28072005-02-10 Julian Brown <julian@codesourcery.com>
2808
2809 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
2810 BFD_RELOC_UNUSED.
2811 (do_t_push_pop): Likewise.
2812 (md_assemble): Likewise.
2813 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
2814 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
2815 (create_unwind_entry): Output dependency on the required personality
2816 routines.
620b81c1 2817
4ee4d249
NS
28182005-02-07 Nathan Sidwell <nathan@codesourcery.com>
2819
2820 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
2821 * subsegs.c (seg_not_empty_p): Likewise.
2822
9f5083a4
NC
28232005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
2824
2825 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
4df6ce47 2826 relative jump calculation.
9f5083a4
NC
2827 <md_convert_frag) : Likewise.
2828 <output_disp): Likewise.
2829
aaac53f5
HPN
28302005-02-07 Hans-Peter Nilsson <hp@axis.com>
2831
2832 * write.c (write_object_file): Recognize warning-symbol construct
2833 and skip object- and target- handling for the second symbol.
2834
05ee4b0f
JB
28352005-02-02 Jan Beulich <jbeulich@novell.com>
2836
2837 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
2838 designators along with quoted ones. Free copy of quoted designator
2839 when done.
2840
65ec77d2
BE
28412005-02-01 Ben Elliston <bje@au.ibm.com>
2842
2843 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
2844 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
2845 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
2846 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
2847 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
2848 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
2849 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
2850 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
2851 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
2852 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
2853 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
2854 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
2855 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
2856 #if 0'd code throughout.
2857
d342277e
NC
28582005-01-31 Nick Clifton <nickc@redhat.com>
2859
2860 * as.c (parse_args): Bump copyright date reported by --version to
2861 2005.
2862
d6486796
NC
28632005-01-31 Nick Clifton <nickc@redhat.com>
2864
2865 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
2866 and vax-vms.
2867
ca3bc58f
JB
28682005-01-31 Jan Beulich <jbeulich@novell.com>
2869
2870 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
2871 that can end with .endr in that case. Make requiring/permitting
2872 pseudo-ops without leading dot closer to the logic in read.c serving
2873 the same purpose.
2874 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
2875 ignored.
2876
057f53c1
JB
28772005-01-31 Jan Beulich <jbeulich@novell.com>
2878
2879 * macro.c (do_formals): Adjust to no longer accept empty parameter
2880 names.
2881 (define_macro): Adjust to no longer accept empty macro name, garbage
2882 following the parameters, or macros that were previously defined.
2883 * read.c (s_bad_end): Declare.
2884 (potable): Add endm. Handler for endr and endm is s_bad_end.
2885 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
2886 and .endr.
2887 * read.h (s_bad_endr): Remove.
2888
d3156ecc
JB
28892005-01-31 Jan Beulich <jbeulich@novell.com>
2890
2891 * config/tc-ia64.c (parse_operands): Parse all specified operands,
2892 immediately discarding (but counting) those exceeding the maximum
2893 possible amount. Track whether output and input operand counts ever
2894 matched, and use this to better indicate which of the operands/
2895 operand types was wrong; specifically don't default to pointing to
2896 the first operand.
2897
75e09913
JB
28982005-01-31 Jan Beulich <jbeulich@novell.com>
2899
2900 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
2901 variable in dot_endp). Add body and insn. Make prologue,
2902 prologue_mask, body, and insn bitfields.
2903 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
2904 messages.
2905 (in_procedure, in_prologue, in_body): New.
2906 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
2907 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
2908 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
2909 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
2910 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
2911 dot_personality): Use the appropriate one of the above.
2912 (dot_proc): Clear unwind.proc_start; set to current location only if
2913 none of the entry points were valid. Check for non-zero-length entry
2914 point names. Check that entry points aren't defined, yet. Clear
2915 unwind.prologue, unwind.body, and unwind.insn.
2916 (dot_body): Call in_procedure. Check that first directive in procedure
2917 had no insns emitted before. Set unwind.body.
2918 (dot_prologue): Call in_procedure. Check that not already in prologue.
2919 Check that first directive in procedure had no insns emitted before.
2920 Clear unwind.body.
2921 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
2922 length entry point names. Check that entry points became defined.
2923 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
2924
f4660e2c
JB
29252005-01-31 Jan Beulich <jbeulich@novell.com>
2926
2927 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
2928 before actually using it. Don't generate an error in manual bundling
2929 mode when looking at an insn requiring slot 2 but not yet at slot 2.
2930 Don't generate an error in manual bundling mode when looking at an
2931 insn required to be last in its group but the required slot hasn't
2932 been reached, yet. Allow conversion from MII to MI;I for bundle
2933 consisting of only 2 insns with the stop between them. Suppress
2934 various meaningless errors resulting from detecting earlier ones.
2935
60b9a617
JB
29362005-01-31 Jan Beulich <jbeulich@novell.com>
2937
2938 * config/tc-ia64.c (parse_operands): Also handle alloc without first
2939 input being ar.pfs.
2940
7af0dfc7
CG
29412005-01-28 Christian Groessler <chris@groessler.org>
2942
2943 * config/tc-z8k.c (md_assemble): Improve error detection.
2944
f7e323d5
JB
29452005-01-28 Jan Beulich <jbeulich@novell.com>
2946
2947 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
2948 for personality routine pointer only if there is one.
2949 (ia64_convert_frag): Likewise.
2950 (generate_unwind_image): Likewise.
2951
f87a1e0c
CG
29522005-01-27 Christian Groessler <chris@groessler.org>
2953
2954 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
2955 (md_apply_fix3): Make relative branches out of range an error
2956 instead of a warning. Display correct line number for out of
2957 range branches/calls/memory accesses.
2958
c6cb92c5
NS
29592005-01-27 Nathan Sidwell <nathan@codesourcery.com>
2960
2961 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
2962 to emit .debug_line and other debug sections.
2963 * as.h (seg_not_empty_p): Declare.
2964 * subsegs.c (seg_not_empty_p): New predicate.
2965
e8093792
AC
29662005-01-27 Andrew Cagney <cagney@gnu.org>
2967
2968 * configure: Regenerate to track ../gettext.m4 change.
2969
09124b3f
JB
29702005-01-27 Jan Beulich <jbeulich@novell.com>
2971
2972 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
2973
29742005-01-27 Jan Beulich <jbeulich@novell.com>
97762d08
JB
2975
2976 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
2977 to/from application registers dynamic insns.
2978 (md_assemble): Defer resolution of move to/from application registers
2979 dynamic insns when they can be issued on either the I- or M-units.
2980
90219bd0
AO
29812005-01-25 Alexandre Oliva <aoliva@redhat.com>
2982
2983 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
2984 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
2985 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
2986 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
2987 * cgen.c (gas_cgen_parse_operand): Handle
2988 CGEN_PARSE_OPERAND_SYMBOLIC.
2989 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
2990 (frv_force_relocation): Likewise. Fix handling of PIC
2991 relocations.
2992 (md_apply_fix3): Likewise.
2993
59c871b4
BE
29942005-01-21 Ben Elliston <bje@au.ibm.com>
2995
2996 * as.h: Remove #if 0'd code.
2997 * atof-generic.c (atof_generic): Likewise.
2998 * ecoff.c (ecoff_directive_frame): Likewise.
2999 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
3000 * itbl-ops.c (itbl_add_reg): Likewise.
3001 * listing.c (calc_hex): Likewise.
3002 * read.c (MASK_CHAR): Likewise.
3003 * subsegs.c (subsegs_print_statistics): Likewise.
3004 * symbols.c (indent): Likewise.
3005 * write.c (write_relocs): Likewise.
3006 (write_object_file): Likewise.
3007 (relax_frag): Likewise.
3008
fb767913
NC
30092005-01-20 Nick Clifton <nickc@redhat.com>
3010
3011 * as.c (std_longopts): Add an entry for "--a" in order to prevent
3012 getopt_long_only() from considering -a as an abbreviation for
3013 --alternate.
3014 (parse_args): Fix the parsing of -a=<file>.
3015
c556cc9c
AM
30162005-01-20 Alan Modra <amodra@bigpond.net.au>
3017
3018 PR gas/684
3019 * read.c (s_incbin): Adjust default count for skip. Check validity
3020 of count and skip rigorously.
3021
9c6ed8e6
FF
30222005-01-19 Fred Fish <fnf@specifixinc.com>
3023
3024 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
3025
e5604d79
RS
30262005-01-19 Richard Sandiford <rsandifo@redhat.com>
3027
3028 * read.c (convert_to_bignum): New function, split out from...
3029 (emit_expr): ...here. Handle the case where X_add_number is
3030 positive and the input value is negative.
3031 (output_big_sleb128): Fix setting of continuation bit. Check whether
3032 the final byte needs to be sign-extended. Fix size-shrinking loop.
3033 (emit_leb128_expr): When generating a signed leb128, see whether the
3034 sign of an O_constant's X_add_number matches the sign of the input
3035 value. Use a bignum if not.
3036
e38bc3b5
NC
30372005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
3038
3039 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
3040 arch_sh_up in order to match the external name and make the
3041 testsuite's job easier.
3042
df227444
L
30432005-01-14 H.J. Lu <hongjiu.lu@intel.com>
3044
4df6ce47 3045 PR 659
df227444
L
3046 * config/tc-i386.c (i386_scale): Disallow 0 scale.
3047
b8b80cf7
NC
30482005-01-12 Nick Clifton <nickc@redhat.com>
3049
3050 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
3051 ignored_arguments array.
3052
324007b9
L
30532005-01-10 H.J. Lu <hongjiu.lu@intel.com>
3054
3055 * write.c (write_object_file): Disallow a symbol equated to
3056 common symbol.
3057
5c4504f7
NC
30582005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
3059
3060 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
3061 bfd_mach_maxq20.
3062 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
3063 (maxq_target): New function: Set the machine type.
3064
4e7fd91e
PB
30652005-01-06 Paul Brook <paul@codesourcery.com>
3066
3067 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
3068 (md_begin): Handle TE_VXWORKS for FP defaults.
3069 (md_apply_fix3): Correct rela offsets.
3070 (elf32_arm_target_format): Add VxWorks targets.
3071
ea3eed15
PB
30722005-01-06 Paul Brook <paul@codesourcery.com>
3073
3074 * configure.tgt: Set em=vxworks for *-*-vxworks.
3075 * config/te-vxworks.h: New File.
3076
5dc1606f
PB
30772005-01-06 Paul Brook <paul@codesourcery.com>
3078
3079 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
3080
18af0b39
NC
30812005-01-04 Dmitry Diky <diwil@spec.ru>
3082
3083 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
3084 global label.
3085
196e8040
JW
30862005-01-03 David Mosberger <davidm@hpl.hp.com>
3087
3088 * config/tc-ia64.c (md): Add member "loc_directive_seen".
3089 (dot_loc): New function.
3090 (md_pseudo_table): Add entry to map .loc to dot_loc().
3091 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
3092 seen a .loc directive or we're generating DWARF2 debug info for
3093 assembly source.
3094
a207757e
AM
30952004-12-29 Alan Modra <amodra@bigpond.net.au>
3096
3097 PR gas/619
3098 * read.c (s_comm_internal): Don't zero end of name until size
3099 expression has been parsed.
3100
71d7ecf2
MM
31012004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3102
3103 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
3104
30c62922
TL
31052004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
3106
3107 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
3108 case).
3109
14ee9f48
ILT
31102004-12-22 Ian Lance Taylor <ian@airs.com>
3111
3112 * configure.tgt: New.
3113 * configure.in: Move setting of cpu_type, fmt, etc., to
3114 configure.tgt.
3115 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
3116 $(srcdir)/configure.tgt.
3117 * configure, Makefile.in: Rebuild.
3118
750bce0e 31192004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
4df6ce47 3120
750bce0e
NC
3121 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
3122 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
3123 instructions.
3124 (avr_offset_expression): New function to parse offsets for LDI
3125 instructions.
3126 (avr_operand): Use it.
3127 (md_apply_fix3): Generate the relocs.
3128
9d2be1ee
JR
31292004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
3130
3131 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
3132 BFD_RELOC_SH_IMMS10BY8 relocation.
3133
3134 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
3135 than just ignoring bad code.
3136
1e50d24d
RS
31372004-12-16 Richard Sandiford <rsandifo@redhat.com>
3138
3139 * config/tc-v850.c (handle_lo16): New function.
3140 (v850_reloc_prefix): Use it to check lo().
3141 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
3142
2fbd2a87
NC
31432004-12-14 P.J. Darcy <darcypj@us.ibm.com>
3144
3145 * configure.in: Add s390x-ibm-tpf support.
3146 * configure: Regenerate.
3147
7a6d0b32
JB
31482004-12-15 Jan Beulich <jbeulich@novell.com>
3149
3150 * config/obj-elf.c (obj_elf_change_section): Only set type and
3151 attributes on new sections. Emit warning when type of re-declared
3152 section doesn't match.
3153
5b9d23c6
JB
31542004-12-15 Jan Beulich <jbeulich@novell.com>
3155
3156 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
3157 '.cfi_startproc simple' doesn't inherit the old value.
3158
dcb45a06
JB
31592004-12-15 Jan Beulich <jbeulich@novell.com>
3160
3161 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
3162 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
3163 generation to emit a factored offset.
3164
aa6975fb
ILT
31652004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
3166
6943caf0
ILT
3167 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
3168 which is too large in the case of NO_PIC without 64-bit
3169 addresses.
3170
aa6975fb
ILT
3171 * config/tc-mips.c (mips_in_shared): New static variable.
3172 (macro_build_lui): Permit "_gp" if !mips_in_shared.
3173 (md_longopts): Add -mshared and -mno-shared.
3174 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
3175 (s_cpload): Implement !mips_in_shared case.
3176 (s_cpsetup): Likewise.
3177 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
3178 * NEWS: Mention -mno-shared.
3179
be1b2b4b
PB
31802004-12-09 Paul Brook <paul@codesourcery.com>
3181
3182 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
3183 for function start.
3184
9a92f48d
ILT
31852004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
3186
dd22970f
ILT
3187 * config/tc-mips.c (append_insn): If we emit a nop during a relax
3188 sequence, increase the size of the sequence.
3189
9a92f48d
ILT
3190 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
3191 use CPU_RM9000.
3192
b617dc20
BE
31932004-12-07 Ben Elliston <bje@gnu.org>
3194
3195 * read.c (s_align): Use an align_limit temporary to allay a GCC
3196 signed/unsigned comparison warning.
3197
c820d418
MM
31982004-12-01 Mark Mitchell <mark@codesourcery.com>
3199
3200 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
3201 * configure.in: Use it for arm*-*-linux-gnueabi*.
3202 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
3203 * config/te-armlinuxeabi.h: New file.
3204 * Makefile.in: Regenerated.
3205 * aclocal.m4: Likewise.
3206 * configure: Likewise.
4df6ce47 3207 * doc/Makefile.in: Regenerated.
c820d418 3208
2b0210eb
BW
32092004-12-02 Bob Wilson <bob.wilson@acm.org>
3210
3211 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
3212 (xtensa_restore_emit_state): Likewise.
3213
9ebd302d
AM
32142004-12-02 Alan Modra <amodra@bigpond.net.au>
3215
3216 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
3217 (s_align): Use it.
3218
32118081
NC
32192004-11-30 Tero Niemela <tero_niemela@yahoo.com>
3220
3221 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
3222 * Makefile.in: Regenerate.
3223
3f414718
TL
32242004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
3225
9ebd302d
AM
3226 * config/tc-crx.c: Major code cleanup. Remove unused variables and
3227 functions, give functions a meaningful name, add comments.
3228 (check_range): New function - Replace operand size calculation
3f414718
TL
3229 with range checking.
3230 (assemble_insn): Update Algorithm, improve error issuing.
9ebd302d 3231 (enum op_err): New.
3f414718
TL
3232 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
3233 handling.
3234
a7498ae6
NC
32352004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3236
3237 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
3238 miss between different section in the same module.
3239 (tc_gen_reloc): Likewise.
3240
5c54fd37
NC
32412004-11-25 Theodore A. Roth <troth@openavr.org>
3242
3243 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
3244 atmega325, atmega3250, atmega645 and atmega6450.
3245
37edbb65
JB
32462004-11-25 Jan Beulich <jbeulich@novell.com>
3247
3248 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
3249 permissible for the selected instruction suffix.
3250 (process_suffix): For DefaultSize instructions, suppressing the
3251 guessing of a 'q' suffix if the instruction doesn't support it is
3252 pointless, because only an 'l' suffix can be guessed in this place.
3253
5515a510
NC
32542004-11-24 Nick Clifton <nickc@redhat.com>
3255
3256 * config/tc-iq2000.c: Remove support for IQ10 processor.
3257 Convert to ISO C90 formatting.
3258 * config/tc-iq2000.h: Likewise.
3259
dae1b34e
NC
32602004-11-23 Nick Clifton <nickc@redhat.com>
3261
3262 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
3263 in this table. They should be correct now.
3264
5c6af06e
JB
32652004-11-23 Jan Beulich <jbeulich@novell.com>
3266
3267 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
3268 indicate the MMX extensions added by both SSE and 3DNow!A.
3269 (Cpu3dnowA): Declare.
3270 (CpuUnknownFlags): Update.
3271 * config/tc-i386.c (cpu_sub_arch_name): Declare.
3272 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
3273 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
3274 3DNow!. Athlon additionally implies 3DNow!A. Several new
3275 entries (those starting with a dot are for sub-arch specification).
3276 (set_cpu_arch): Handle sub-arch specifications.
3277 (parse_insn): Distinguish between instructions not supported because
3278 of insufficient CPU features and because of 64-bit mode.
3279 * doc/c-i386.texi: Describe enhanced .arch directive.
3280
d9740523
BW
32812004-11-22 Bob Wilson <bob.wilson@acm.org>
3282
3283 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
3284
3120ef82
BW
32852004-11-22 Bob Wilson <bob.wilson@acm.org>
3286
3287 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
3288 without a corresponding .debug_info section.
3289
d190d046
HPN
32902004-11-22 Hans-Peter Nilsson <hp@axis.com>
3291
3292 * read.c (potable): Add "error" and "warning".
3293 (s_errwarn): New function.
3294 * read.h (s_errwarn): Declare.
3295 * doc/as.texinfo (Error, Warning): Document .error and .warning.
3296
5519f6ea
NC
32972004-11-22 Nick Clifton <nickc@redhat.com>
3298
3299 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
3300 c_dot_file_symbol.
3301
f5c7edf4
AM
33022004-11-19 Alan Modra <amodra@bigpond.net.au>
3303
3304 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
3305 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
3306
a4528eeb
AM
33072004-11-19 Alan Modra <amodra@bigpond.net.au>
3308
3309 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
3310 (coff_adjust_symtab): Adjust call.
3311 (crawl_symbols): Likewise.
3312 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
3313 (obj_app_file): Adjust.
3314
444bf5f3
NC
33152004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
3316
3317 * configure.in: Enable bfd_assember for the MAXQ port.
3318 * configure: Regenerate.
3319
a1ace8d8 33202004-11-12 Bob Wilson <bob.wilson@acm.org>
88ac794e 3321 Sterling Augustine <sterling@tensilica.com>
a1ace8d8
BW
3322
3323 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
3324 there is a conflict.
3325 (check_t1_t2_reads_and_writes): Check for both reads and writes to
3326 interfaces that are related as determined by xtensa_interface_class_id.
3327
30e857fc
NC
33282004-11-12 Nick Clifton <nickc@redhat.com>
3329
3330 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
3331 offsets for conditional branches.
3332
a67517f4
BW
33332004-11-11 Bob Wilson <bob.wilson@acm.org>
3334
3335 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
3336
1d19a770
BW
33372004-11-10 Bob Wilson <bob.wilson@acm.org>
3338
3339 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
3340 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
3341 MAYBE_UNREACHABLE.
3342 (relax_frag_immed): Update call to update_next_frag_state.
3343
c04f5787
AM
33442004-11-10 Alan Modra <amodra@bigpond.net.au>
3345
3346 * obj.h (struct format_ops <app_file>): Add int param.
3347 * read.h (s_app_file_string): Likewise.
3348 * read.c (s_app_file_string): Likewise.
3349 (s_app_file): Adjust s_app_file_string call.
3350 * config/tc-mips.c (s_mips_file): Likewise.
3351 * config/obj-coff.h (obj_app_file): Add app param.
3352 * config/obj-ecoff.h (obj_app_file): Likewise.
3353 * config/obj-multi.h (obj_app_file): Likewise.
3354 * config/obj-elf.h (elf_file_symbol): Likewise.
3355 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
3356 if called for # preprocessor lines.
3357
a77a9021
L
33582004-11-08 H.J. Lu <hongjiu.lu@intel.com>
3359
3360 PR 528
3361 * symbols.c (resolve_symbol_value): Convert weak symbols only
3362 for Windows PECOFF.
3363 (symbol_equated_reloc_p): Don't equate weaks when relocating
3364 only for Windows PECOFF.
3365
aea44f62
TL
33662004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
3367
3368 * config/tc-crx.c (print_insn): Check and set insn_addr.
3369 * config/tc-crx.h (md_frag_check): Define.
3370
7499d566
NC
33712004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
3372 Vineet Sharma <vineets@noida.hcltech.com>
3373
3374 * configure.in: Add support for new target maxq-coff.
3375 * configure: Regenerate.
3376 * NEWS: Mention new support.
3377 * config/tc-maxq.c: New file.
3378 * config/tc-maxq.h: New file.
3379 * config/obj-coff.h: Add support for maxq-coff.
3380
977cdf5a
NC
33812004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3382
3383 * symbols.c (any_external_name): Define.
a77a9021 3384 (resolve_symbol_value): Convert weak symbols.
977cdf5a
NC
3385 (S_SET_EXTERNAL): Support any_external_name.
3386 (S_SET_NAME): Qualify parameter const.
316f3bf8 3387 (symbol_equated_reloc_p): Equate to weaks when relocating.
977cdf5a
NC
3388 * symbols.h (S_SET_NAME): Qualfiy parameter const.
3389 * tc.h (any_external_name): Declare.
3390 * config/obj-coff.c ("coff/pe.h"): Include for BFD
3391 assemblers also.
3392 (weak_is_altname): Declare and define.
3393 (weak_name2altname): Same.
3394 (weak_altname2name): Same.
3395 (weak_uniquify): Same.
3396 (weak_altprefix): Define.
3397 (obj_coff_weak): Change .weak syntax and handling.
3398 (coff_frob_symbol): Fix PE weak symbol alternates.
3399 * config/obj-coff.h (USE_UNIQUE): Define.
3400 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
3401 are in another segment.
3402 (tc_gen_reloc): Remove broken addend hack.
3403 doc/as.texinfo: Update.
3404
34e41783
BW
34052004-11-05 Sterling Augustine <sterling@tensilica.com>
3406
3407 * config/tc-xtensa.c (total_frag_text_expansion): New.
3408 (md_estimate_size_before_relax): Use it.
3409 (find_address_of_next_align_frag): Likewise.
3410
dcd46b4e
TL
34112004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
3412
3413 * config/tc-crx.c: Rename argument types.
3414 (processing_arg_number): Rename to 'cur_arg_num'.
3415 (get_number_of_bits): Rename to 'set_operand_size'.
3416 (get_operandtype): Rename to 'parse_operand', totally rewrite.
3417 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
3418 (set_indexmode_parameters): Remove function, integrate its code into
3419 'set_operand'.
3420 (set_operand_size): Get rid of 'Operand Number' function parameter -
3421 use global variable 'cur_arg_num' instead.
3422 Use a local 'argument' pointer to reference the current argument.
3423 (parse_operand): Likewise.
3424 (set_operand): Likewise.
3425 (process_label_constant): Likewise.
3426
9456465c
BW
34272004-11-04 Bob Wilson <bob.wilson@acm.org>
3428
3429 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
3430 (add_section_rename): Delete. Inlined into...
3431 (build_section_rename): ...here. Use xstrdup instead of strdup.
3432 (xtensa_section_rename): Drop "const" from argument and return types.
3433 (md_show_usage): Indent to match show_usage().
3434 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
3435 (tc_canonicalize_section_name): Define.
3436 (md_elf_section_rename): Remove unused macro.
3437 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
3438 * doc/c-xtensa.texi (Xtensa Options): Likewise.
3439 (Frame Directive): Delete.
3440
7f266840
DJ
34412004-11-04 Daniel Jacobowitz <dan@debian.org>
3442
3443 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
3444 * config/tc-arm.c (target_oabi): Delete.
3445 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
3446 (arm_opts): Remove moabi.
3447 * doc/as.texinfo (Overview): Remove documentation of -moabi.
3448 * doc/c-arm.texi (ARM Options): Likewise.
3449 * configure: Regenerated.
3450
ae57792d
HPN
34512004-11-04 Hans-Peter Nilsson <hp@axis.com>
3452
3453 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
3454 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
3455 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
3456 * configure: Regenerate.
3457 * config/tc-cris.c (enum cris_archs): New.
3458 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
3459 (cris_insn_ver_valid_for_arch): New functions.
3460 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
3461 (cris_arch): New variable.
3462 (md_pseudo_table): New pseudo .arch.
3463 (err_for_dangerous_mul_placement): Initialize according to
3464 DEFAULT_CRIS_ARCH.
3465 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
3466 All users changed.
3467 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
3468 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
3469 (BRANCH_WF_V32, BRANCH_WB_V32): New.
3470 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
3471 use in md_cris_relax_table.
3472 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
3473 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3474 Update and improve head comment.
3475 (OPTION_PIC): Define in terms of previous option, OPTION_US.
3476 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
3477 (OPTION_ARCH): New.
3478 (md_longopts): New option --march=...
3479 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
3480 macros.
3481 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
3482 (HANDLE_RELAXABLE): New macro.
3483 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
3484 cases. Check for weak symbols and assume not relaxable. Handle
3485 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
3486 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
3487 fragP->fr_symbol.
3488 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
3489 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3490 (cris_create_short_jump): Adjust for CRISv32.
5664e9a7 3491 (cris_relax_frag): Handle new states.
ae57792d
HPN
3492 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
3493 (md_begin): Define symbols "..asm.arch.cris.v32",
3494 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
3495 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
3496 when entering opcode table entry points.
3497 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
3498 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
3499 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
3500 (cris_process_instruction): Initialize out_insnp->insn_type to
3501 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
3502 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
3503 cases.
3504 <case 'm'>: Check that modified_char == '.'.
3505 <invalid operands>: Consume the rest of the line.
3506 When operands don't match, skip over subsequent insns with
3507 non-matching version specifier but same mnemonic.
3508 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
3509 special registers in CRISv32 are always 32 bit long.
3510 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
3511 New cases.
3512 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
3513 and compatible. Recognize "ACR" for v32, unless followed by "+".
3514 (get_spec_reg): Consider cris_arch when looking up register.
3515 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
3516 v32 or compatible.
3517 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
3518 (cris_get_expression): Restore input_line_pointer if failing "early".
3519 (get_flags): Consider cris_arch and recognize flags accordingly.
3520 (branch_disp): Adjust for CRISv32.
3521 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
3522 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
3523 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
3524 resolved. Don't enter zeros in object file for
3525 BFD_RELOC_32_PCREL.
3526 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
3527 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
3528 (md_parse_option): Break out "return 1".
3529 <OPTION_ARCH> New case.
3530 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
3531 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
3532 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
3533 <case BFD_RELOC_32_PCREL>: New cases.
3534 Addends for non-zero fx_pcrel are too in fx_offset.
3535 (md_show_usage): Show --march=<arch>.
3536 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
3537 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
3538 (s_syntax) <struct syntaxes>: Properly constify member operand.
3539 * config/tc-cris.h (TARGET_MACH): Define.
3540 (cris_mach): Declare.
3541 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
3542 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
3543 (CRIS-Opts): Document --march=...
3544 (CRIS-Pseudos): Document .arch.
3545
9306ca4a
JB
35462004-11-04 Jan Beulich <jbeulich@novell.com>
3547
3548 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
3549 intel syntax and no register prefix, allow $ in symbol names when
3550 intel syntax.
3551 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
3552 (intel_float_operand): Add fourth return value indicating math control
3553 operations. Make classification more precise.
3554 (md_assemble): Complain if memory operand of mov[sz]x has no size
3555 specified.
3556 (parse_insn): Translate word operands to floating point instructions
3557 operating on integers as well as control instructions to short ones
3558 as expected by AT&T syntax. Translate 'd' suffix to short one only for
3559 floating point instructions operating on non-integer operands.
3560 (match_template): Remove fldcw special case. Adjust q-suffix handling
3561 to permit it on fild/fistp/fisttp in AT&T mode.
3562 (process_suffix): Don't guess DefaultSize insns' suffix from
3563 stackop_size for certain floating point control instructions. Guess
3564 suffix for branch and [ls][gi]dt based on flag_code. Split error
3565 messages for Intel and AT&T syntax, and make the condition more strict
3566 for the former. Adjust suppressing of generation of operand size
3567 overrides.
3568 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
3569 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
3570 more error checking.
3571 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
3572 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
3573
2b4f075a
HPN
35742004-11-03 Hans-Peter Nilsson <hp@axis.com>
3575
3576 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
3577 md_short_jump_size, md_long_jump_size.
3578 * write.c [!WORKING_DOT_WORD]: Ditto.
3579 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
3580 qualifier.
3581 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
3582 declare.
3583 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
3584 const qualifier in these definitions.
3585 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
3586 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
3587
ddbc47ac
NC
35882004-11-02 Nick Clifton <nickc@redhat.com>
3589
3590 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
3591 table before deciding to produce a .debug_line section to match up
3592 with a user provided .debug_info section.
3593
3ad3f5ad
TL
35942004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
3595
3596 * config/tc-crx.c (getreg_image): Bug fix, a return value was
3597 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
3598
c815a616
TL
35992004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
3600
3601 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
3602 (get_flags): New function.
c04f5787
AM
3603 (get_number_of_bits): Edit comments, update numeric values to
3604 supported sizes.
3605 (process_label_constant): Don't support the colon
3606 format (SYMBOL:[s|m|l]).
c815a616
TL
3607 (set_cons_rparams): Support argument type 'arg_rbase'.
3608 (get_operandtype): Bug fix in 'rbase' operand type parsing.
3609 (handle_LoadStor): Bug fix, first handle post-increment mode.
c04f5787
AM
3610 (getreg_image): Remove redundant code, update according to latest
3611 CRX spec.
c815a616 3612 (print_constant): Bug fix relate to 3-word instructions.
c04f5787 3613 (assemble_insn): Bug fix, when matching instructions, verify also
c815a616
TL
3614 instruction type (not only mnemonic).
3615 Add various error checking.
3616 (preprocess_reglist): Support HI/LO and user registers.
3617
ed7af9f9
L
36182004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
3619
c04f5787 3620 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
ed7af9f9
L
3621 in an epilogue directive go negative.
3622
ac025970
L
36232004-10-25 H.J. Lu <hongjiu.lu@intel.com>
3624
3625 PR 474
3626 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
3627 after reporting template error during manual bundling. Reported
3628 by Michael Dupont, michaelx.dupont@intel.com.
3629
a394c00f
NC
36302004-10-25 Daniel Jacobowitz <dan@debian.org>
3631
3632 * Makefile.am: Run dep-am.
3633 * aclocal.m4: Regenerate with automake 1.9.2.
3634 * Makefile.in: Regenerate with automake 1.9.2.
3635 * doc/Makefile.in: Likewise.
3636
3637 * config/tc-arm.c: Include "dw2gencfi.h".
3638 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
3639 New functions.
3640 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
3641 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
3642 (tc_cfi_frame_initial_instructions): Define.
3643 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
3644 Add prototypes.
3645
23d83918
TL
36462004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
3647
3648 * config/tc-crx.c (assemble_insn): Check unsigned immediate
3649 operands validity.
3650 Update coprocessor id to be unsigned immediate.
3651
bb41ade5
AM
36522004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3653
3654 * config/tc-i386.c (O_secrel): Delete.
3655 (tc_pe_dwarf2_emit_offset): New function.
3656 * config/tc-i386.h (O_secrel): Define as O_md1.
3657 (TC_DWARF2_EMIT_OFFSET): Define.
3658
87e62348
NC
36592004-10-18 Nick Clifton <nickc@redhat.com>
3660
3661 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
3662 ignore @fptr() directives for 4-byte fixups.
3663
3c55da70
AM
36642004-10-15 Alan Modra <amodra@bigpond.net.au>
3665
3666 * Makefile.am: Run "make dep-am"
3667 * Makefile.in: Regenerate.
3668
40e7b7b9
BW
36692004-10-14 Bob Wilson <bob.wilson@acm.org>
3670
3671 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
3672 Remove comments about placement of literal pools.
3673 (Literal Directive): Update description of literal placement.
3674 (Literal Prefix Directive): Remove statement that this does not apply
3675 to absolute-mode literals. Describe new section naming scheme.
3676
b08b5071
BW
36772004-10-12 Bob Wilson <bob.wilson@acm.org>
3678
3679 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
3680 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
3681 is_windowed_return_opcode): Delete.
3682 (xtensa_frob_label): Use get_subseg_target_freq.
3683 (md_assemble): Inline call to is_entry_opcode.
3684 (xtensa_handle_align): Inline call to get_frag_is_literal.
3685 (relaxation_requirements): Inline call to is_jx_opcode.
3686 (emit_single_op): Inline call to is_movi_opcode.
3687 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
3688 get_frag_is_no_transform, is_entry_opcode, and
3689 set_frag_is_specific_opcode. Use get_subseg_total_freq.
3690 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
3691 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
3692 Inline calls to get_frag_is_no_transform.
3693 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
3694 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
3695 get_frag_is_no_transform.
3696 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
3697 and set_frag_is_no_transform.
3698 (get_expression_value): Delete.
3699 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
3700 cur_target_freq to target_freq.
3701 (get_subseg_info): Split out code to create a new map entry into ...
3702 (add_subseg_info): ... this new function.
3703 (get_last_insn_flags): Check if get_subseg_info succeeded.
3704 (set_last_insn_flags): Call add_subseg_info if needed.
3705 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
3706 (xtensa_reorder_segments): Compute last_sec while counting sections.
3707 Remove call to get_last_sec.
3708 (get_last_sec): Delete.
3709 (cache_literal_section): Inline call to retrieve_literal_seg and its
3710 callees, seg_present and add_seg_list.
3711 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
3712 (get_frag_is_insn, get_frag_is_no_transform,
3713 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
3714 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
3715
7fa3d080
BW
37162004-10-12 Bob Wilson <bob.wilson@acm.org>
3717
3718 * config/tc-xtensa.c: Use ISO C90 formatting.
3719 * config/tc-xtensa.h: Likewise.
3720 * config/xtensa-istack.h: Likewise.
3721 * config/xtensa-relax.c: Likewise.
3722 * config/xtensa-relax.h: Likewise.
3723
8cb51566
PB
37242004-10-12 Paul Brook <paul@codesourcery.com>
3725
3726 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
3727 EF_ARM_EABI_VER4.
3728 (arm_eabis): Ditto.
3729 * doc/c-arm.texi: Document that we actually support -meabi=4, not
3730 -meabi=3.
3731
653cfe85
BW
37322004-10-08 Bob Wilson <bob.wilson@acm.org>
3733
3734 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
3735 entries.
3736 (Acknowledgements): Use "GAS" instead of AS variable.
3737
d2b2c203
DJ
37382004-10-08 Daniel Jacobowitz <dan@debian.org>
3739
3740 * config/tc-i386.c: Include "elf/x86-64.h".
3741 (i386_elf_section_type): New function.
3742 * config/tc-i386.h (md_elf_section_type): Define.
3743 (i386_elf_section_type): New prototype.
3744
e80e0390
NC
37452004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
3746
3747 * config/m68k-parse.h (enum m68k_register): New control register,
3748 MBAR2 (for MCF5249)
3749 * config/tc-m68k.c: Correct control register set for MCF5249.
3750
43cd72b9 37512004-10-07 Bob Wilson <bob.wilson@acm.org>
85a5ac80 3752 Sterling Augustine <sterling@tensilica.com>
43cd72b9
BW
3753
3754 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
3755 (UNREACHABLE_MAX_WIDTH): Define.
3756 (XTENSA_FETCH_WIDTH): Delete.
3757 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
3758 prefer_const16, prefer_l32r): New global variables.
3759 (LIT4_SECTION_NAME): Define.
3760 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
3761 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
3762 (frag_flags struct): New.
c04f5787 3763 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
43cd72b9
BW
3764 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
3765 (bitfield, bit_is_set, set_bit, clear_bit): Define.
3766 (MAX_FORMATS): Define.
3767 (op_placement_info struct, op_placement_table): New.
3768 (O_pltrel, O_hi16, O_lo16): Define.
3769 (directiveE enum): Rename directive_generics to directive_transform.
3770 Delete directive_relax. Add directive_schedule,
3771 directive_absolute_literals, and directive_last_directive.
3772 (directive_info): Rename "generics" to "transform". Delete "relax".
3773 Add "schedule" and "absolute-literals".
3774 (directive_state): Adjust entries to match changes in directive_info.
3775 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
3776 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
3777 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
3778 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
3779 (align_only_targets, software_a0_b_retw_interlock,
3780 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
3781 software_avoid_short_loop, software_avoid_close_loop_end,
3782 software_avoid_all_short_loops, specific_opcode): Delete.
3783 (warn_unaligned_branch_targets): New.
3784 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
3785 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
3786 (option_[no_]link_relax, option_[no_]transform,
3787 option_[no_]absolute_literals, option_warn_unaligned_targets,
3788 option_prefer_l32r, option_prefer_const16, option_target_hardware):
3789 New enum values.
3790 (option_[no_]align_only_targets, option_literal_section_name,
3791 option_text_section_name, option_data_section_name,
3792 option_bss_section_name, option_eb, option_el): Delete.
3793 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
3794 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
3795 and target-hardware. Delete entries for [no-]target-align-only,
3796 literal-section-name, text-section-name, data-section-name, and
3797 bss-section-name.
3798 (md_parse_option): Handle new options and remove old ones. Accept but
3799 ignore [no-]density options. Warn for [no-]generics and [no-]relax
3800 and treat them as [no-]transform.
3801 (md_show_usage): Add new options and remove old ones.
3802 (xtensa_setup_hw_workarounds): New.
3803 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
3804 "long", "short", "loc" and "frequency" entries.
3805 (use_generics): Rename to ...
3806 (use_transform): ... this function. Add past_xtensa_end check.
3807 (use_longcalls): Add past_xtensa_end check.
3808 (code_density_available, can_relax): Delete.
3809 (do_align_targets): New.
3810 (get_directive): Accept dashes in directive names. Warn about
3811 [no-]generics and [no-]relax directives and treat them as
c04f5787 3812 [no-]transform.
43cd72b9
BW
3813 (xtensa_begin_directive): Call md_flush_pending_output only for some
3814 directives. Check for directives inside instruction bundles. Warn
3815 about deprecated ".begin literal" usage. Warn and ignore [no-]density
3816 directives. Handle new directives. Check generating_literals flag
3817 for literal_prefix.
3818 (xtensa_end_directive): Check for directives inside instruction
3819 bundles. Warn and ignore [no-]density directives. Handle new
3820 directives. Call xtensa_set_frag_assembly_state.
3821 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
3822 xtensa_dwarf2_emit_insn): New.
3823 (xtensa_literal_position): Call md_flush_pending_output. Do not check
3824 use_literal_section flag.
3825 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
3826 literals. Use xtensa_elf_cons to parse the expression.
3827 (xtensa_literal_prefix): Do not check use_literal_section. Support
3828 ".lit4" sections for absolute literals. Change prefix convention to
3829 replace ".text" (or ".t" in a linkonce section). No need to call
3830 subseg_set.
3831 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
3832 (expression_end): Handle closing braces and colons.
3833 (PLT_SUFFIX, plt_suffix): Delete.
3834 (expression_maybe_register): Use new xtensa-isa.h functions. Use
3835 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
3836 and O_hi16 expressions as well.
3837 (tokenize_arguments): Handle closing braces and colons.
3838 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
3839 operands and paired register syntax.
3840 (get_invisible_operands): New.
3841 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
3842 new xtensa-isa.h functions.
3843 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
3844 (xg_translate_idioms): Check if inside bundle. Use use_transform.
3845 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
3846 instructions. Use xtensa_translate_zero_immed.
3847 (operand_is_immed, operand_is_pcrel_label): Delete.
3848 (get_relaxable_immed): Use new xtensa-isa.h functions.
3849 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
3850 functions.
3851 (xtensa_print_insn_table, print_vliw_insn): New.
3852 (is_direct_call_opcode): Use new xtensa-isa.h functions.
3853 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
3854 is_branch_or_jump_opcode): Delete.
3855 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
3856 (opnum_to_reloc, reloc_to_opnum): Delete.
3857 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
3858 xtensa-isa.h functions. Operate on one slot of an instruction.
3859 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
3860 xg_get_insn_size): Delete.
3861 (xg_get_build_instr_size): Use xg_get_single_size.
3862 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
3863 xg_build_widen_table. Use xg_get_single_size.
3864 (xg_get_max_narrow_insn_size): Delete.
3865 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
3866 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
3867 xg_get_single_size.
3868 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
3869 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
3870 (xg_expand_to_stack, xg_expand_narrow): Update calls to
3871 xg_build_widen_table. Use xg_get_single_size.
3872 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
3873 xg_check_operand.
3874 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
3875 treat weak symbols conservatively.
3876 (xg_check_operand): Use new xtensa-isa.h functions.
3877 (is_dnrange): Delete.
3878 (xg_assembly_relax): Inline previous calls to tinsn_copy.
3879 (xg_finish_frag): Specify separate relax states for the frag and slot0.
3880 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
3881 xtensa-isa.h functions.
3882 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
3883 xg_instruction_matches_options): New.
3884 (xg_instruction_matches_rule): Handle O_register expressions. Call
3885 xg_instruction_matches_options.
3886 (transition_rule_cmp): New.
3887 (xg_instruction_match): Update call to xg_build_simplify_table.
3888 (xg_build_token_insn): Record loc fields.
3889 (xg_simplify_insn): Check is_specific_opcode field and
3890 density_supported flag.
3891 (xg_expand_assembly_insn): Skip checking code_density_available. Use
3892 new xtensa-isa.h functions. Call use_transform instead of can_relax.
3893 (xg_assemble_literal): Add error handling for O_big. Call
3894 record_alignment. Handle O_pltrel.
3895 (xg_valid_literal_expression): New.
3896 (xg_assemble_literal_space): Add slot parameter. Remove call to
3897 set_expr_symbol_offset. Add call to record_alignment. Update call to
3898 xg_finish_frag.
3899 (xg_emit_insn): Delete.
3900 (xg_emit_insn_to_buf): Add format parameter. Update calls to
3901 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
3902 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
3903 and slot parameters. Handle new "alternate" relocations for absolute
3904 literals and CONST16 instructions. Check for bad uses of O_lo16 and
3905 O_hi16. Use new xtensa-isa.h functions.
3906 (xg_assemble_tokens): Delete.
3907 (is_register_writer): Use new xtensa-isa.h functions.
3908 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
3909 old-style RSR from LCOUNT.
3910 (next_frag_opcode): Delete.
3911 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
3912 update_next_frag_state): New.
3913 (update_next_frag_nop_state): Delete.
3914 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
3915 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
3916 the state of the absolute-literals directive. Add calls to
3917 record_alignment and xtensa_set_frag_assembly_state. Call
3918 xtensa_switch_to_non_abs_literal_fragment instead of
3919 xtensa_switch_to_literal_fragment.
3920 (build_nop): New.
3921 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
3922 (get_expanded_loop_offset): Change check for undefined opcode to an
3923 assertion.
3924 (xtensa_set_frag_assembly_state, relaxable_section,
3925 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
3926 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
3927 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
3928 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
3929 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
3930 (xtensa_init_fix_data): New.
3931 (xtensa_frob_label): Reset label symbol to the current frag. Check
3932 do_align_targets and generating_literals flag. Propagate frequency
3933 info to new alignment frag. Call xtensa_set_frag_assembly_state.
3934 (xtensa_unrecognized_line): New.
3935 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
3936 to xtensa_set_frag_assembly_state.
3937 (error_reset_cur_vinsn): New.
3938 (md_assemble): Remove check for literal frag. Remove call to
3939 istack_init. Call use_transform instead of use_generics. Parse
3940 explicit instruction format specifiers. Move code for
3941 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
3942 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
3943 Add dwarf2_where call. Remote automatic alignment for ENTRY
3944 instructions. Move call to xtensa_clear_insn_labels to the end.
3945 Rearrange to handle bundles.
3946 (xtensa_cons_fix_new): Delete.
3947 (xtensa_handle_align): New.
3948 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
3949 assignment to is_no_density field.
3950 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
3951 instead of reloc_to_opnum. Handle "alternate" relocations.
3952 (xtensa_force_relocation, xtensa_check_inside_bundle,
3953 xtensa_elf_section_change_hook): New.
3954 (xtensa_symbol_new_hook): Delete.
3955 (xtensa_fix_adjustable): Check for difference of symbols with an
3956 offset. Check for external and weak symbols.
3957 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
3958 (md_estimate_size_before_relax): Return expansion for the first slot.
3959 (tc_gen_reloc): Handle difference of symbols by producing
3960 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
3961 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
3962 tentative values into the output when linkrelax is set.
3963 (XTENSA_PROP_SEC_NAME): Define.
3964 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
3965 Create literal tables only if using literal sections. Create new
3966 property tables instead of old instruction tables. Check for unaligned
3967 branch targets and loops.
3968 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
3969 new_resource_table, clear_resource_table, resize_resource_table,
3970 resources_available, reserve_resources, release_resources,
3971 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
3972 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
3973 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
3974 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
3975 flag. Update checks for workaround options. Call
3976 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
3977 (xtensa_cleanup_align_frags): Add special case for branch targets.
3978 Check for and mark unreachable frags.
3979 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
3980 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
3981 end of a zero-overhead loop body.
3982 (frag_can_negate_branch): Handle instructions with multiple slots.
3983 Use new xtensa-isa.h functions
3984 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
3985 xtensa_mark_zcl_first_insns): New.
3986 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
3987 transformations are disabled.
3988 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
3989 multislot instructions.
3990 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
3991 Likewise. Also error if transformations are disabled.
3992 (unrelaxed_frag_max_size): New.
3993 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
3994 xtensa-isa.h functions.
3995 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
3996 xtensa_opcode_is_loop instead of is_loop_opcode.
3997 (get_text_align_power): Replace as_fatal with assertion.
3998 (get_text_align_fill_size): Iterate instead of using modulus when
3999 use_nops is false.
4000 (get_noop_aligned_address): Assert that this is for a machine-dependent
4001 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
4002 xg_get_single_size, and frag_format_size.
4003 (get_widen_aligned_address): Rename to ...
4004 (get_aligned_diff): ... this function. Add max_diff parameter.
4005 Remove handling of rs_align/rs_align_code frags. Use
4006 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
4007 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
4008 and pass it back to caller.
4009 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
4010 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
4011 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
4012 (relax_frag_text_align): Rename to ...
4013 (relax_frag_loop_align): ... this function. Assume loops can only be
4014 in the first slot of an instruction.
4015 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
4016 instruction. Remove call to frag_wane.
4017 (relax_frag_narrow): Rename to ...
4018 (relax_frag_for_align): ... this function. Extend to handle
4019 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
4020 RELAX_NARROW for the first slot.
4021 (find_address_of_next_align_frag, bytes_to_stretch): New.
4022 (future_alignment_required): Use find_address_of_next_align_frag and
4023 bytes_to_stretch. Look ahead to subsequent frags to make smarter
4024 alignment decisions.
4025 (relax_frag_immed): Add format, slot, and estimate_only parameters.
4026 Check if transformations are enabled for b_j_loop_end workaround.
4027 Use new xtensa-isa.h functions and handle multislot instructions.
4028 Update call to xg_assembly_relax.
4029 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
4030 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
4031 frag types.
4032 (convert_frag_narrow): Add segP, format and slot parameters. Call
4033 convert_frag_immed for branch instructions. Adjust calls to
4034 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
4035 xg_get_single_size and xg_get_single_format.
4036 (convert_frag_fill_nop): New.
4037 (convert_frag_immed): Add format and slot parameters. Handle multislot
4038 instructions and use new xtensa-isa.h functions. Update calls to
4039 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
4040 enabled for b_j_loop_end workaround. Use build_nop instead of
4041 assemble_nop. Check is_specific_opcode flag. Check for unreachable
4042 frags. Use xg_get_single_size. Handle O_pltrel.
4043 (fix_new_exp_in_seg): Remove check for old plt flag.
4044 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
4045 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
4046 for loop opcode to an assertion. Mark all frags up to the end of the
4047 loop as not transformable.
4048 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
4049 (get_subseg_info): New.
4050 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
4051 check for dest_seg.
4052 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
4053 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
4054 (xtensa_switch_to_non_abs_literal_fragment): New.
4055 (cache_literal_section): Add is_code parameter and pass it through to
4056 retrieve_literal_seg.
4057 (retrieve_literal_seg): Add is_code parameter and use it to set the
4058 flags on the literal section. Handle case where head parameter is 0.
4059 (get_frag_is_no_transform, set_frag_is_specific_opcode,
4060 set_frag_is_no_transform): New.
4061 (xtensa_create_property_segments): Add end_property_function parameter
4062 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
4063 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
4064 (xtensa_create_xproperty_segments, section_has_xproperty): New.
4065 (add_xt_block_frags): Add end_property_function parameter and call it
4066 if it is non-zero. Call xtensa_frag_flags_init.
4067 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
4068 get_frag_property_flags, frag_flags_to_number,
4069 xtensa_frag_flags_combinable, xt_block_aligned_size,
4070 xtensa_xt_block_combine, add_xt_prop_frags,
4071 init_op_placement_info_table, opcode_fits_format_slot,
4072 xg_get_single_size, xg_get_single_format): New.
4073 (istack_push): Inline call to tinsn_copy.
4074 (tinsn_copy): Delete.
4075 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
4076 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
4077 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
4078 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
4079 functions. Handle invisible operands.
4080 (tinsn_to_slotbuf): New.
4081 (tinsn_check_arguments): Use new xtensa-isa.h functions.
4082 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
4083 vinsn_from_chars, and xg_free_vinsn.
4084 (tinsn_from_insnbuf): New.
4085 (tinsn_immed_from_frag): Add slot parameter and handle multislot
4086 instructions. Handle symbol differences.
4087 (get_num_stack_text_bytes): Use xg_get_single_size.
4088 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
4089 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
4090 get_expr_register, set_expr_symbol_offset_diff): New.
4091 * config/tc-xtensa.h (MAX_SLOTS): Define.
4092 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
4093 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
4094 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
4095 RELAX_NONE types.
4096 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
4097 (xtensa_frag_type struct): Add is_assembly_state_set,
4098 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
4099 is_align, is_text_align, alignment, and is_first_loop_insn fields.
4100 Replace is_generics and is_relax fields by is_no_transform field.
4101 Delete is_text and is_longcalls fields. Change text_expansion and
4102 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
4103 per-slot information: literal_frags, slot_subtypes, slot_symbols,
4104 slot_sub_symbols, and slot_offsets. Add fr_prev field.
4105 (xtensa_fix_data struct): New.
4106 (xtensa_symfield_type struct): Delete plt field.
4107 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
4108 forward declaration here.
4109 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
4110 (XTENSA_SECTION_RENAME): Undefine.
4111 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
4112 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
4113 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
4114 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
4115 (unit_num_copies_func, opcode_num_units_func,
4116 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
4117 (resource_table struct): New.
4118 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
4119 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
4120 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
4121 (tinsn_copy): Delete prototype.
4122 (vliw_insn struct): New.
4123 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
4124 (widen_spec_list): Add option conditions for density and boolean
4125 instructions. Add expansions using CONST16 and conditions for using
4126 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
4127 predicted branches.
4128 (simplify_spec_list): Add option conditions for density instructions.
4129 Add entry for NOP instruction.
4130 (append_transition): Add cmp function pointer parameter and use it to
4131 insert the new entry in order.
4132 (operand_function_LOW16U, operand_function_HI16U): New.
4133 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
4134 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
4135 (enter_opname, split_string): Use xstrdup instead of strdup.
4136 (init_insn_pattern): Initialize new options field.
4137 (clear_req_or_option_list, clear_req_option_list,
4138 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
4139 New.
4140 (parse_insn_pattern): Parse option conditions.
4141 (transition_applies): New.
4142 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
4143 swapped last arguments in calls to append_constant_value_condition.
4144 Call clone_req_option_list. Add warning about invalid opcode.
4145 Handle LOW16U and HI16U function names.
4146 (build_transition_table): Add cmp parameter and use it in calls to
4147 append_transition. Use new xtensa-isa.h functions. Check
4148 transition_applies before adding entries.
4149 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
4150 pass it through to build_transition_table.
4151 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
4152 ReqOption, transition_cmp_fn): New types.
4153 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
4154 (transition_rule struct): Add options field.
4155 * doc/as.texinfo (Overview): Update Xtensa options.
4156 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
4157 --[no-]relax, and --[no-]generics options. Update descriptions of
4158 --text-section-literals and --[no-]longcalls. Add
4159 --[no-]absolute-literals and --[no-]transform.
4160 (Xtensa Syntax): Add description of syntax for FLIX instructions.
4161 Remove use of "generic" and "specific" terminology for opcodes.
4162 (Xtensa Registers): Generalize the syntax description to include
4163 user-defined register files.
4164 (Xtensa Automatic Alignment): Update.
4165 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
4166 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
4167 (Xtensa Directives): Remove confusing rules about precedence.
4168 (Density Directive, Relax Directive): Delete.
4169 (Schedule Directive): New.
4170 (Generics Directive): Rename to ...
4171 (Transform Directive): ... this node.
4172 (Literal Directive): Update for absolute literals. Missing
4173 literal_position directive is now an error.
4174 (Literal Position Directive): Update for absolute literals.
4175 (Freeregs Directive): Delete.
4176 (Absolute Literals Directive): New.
4177 (Frame Directive): Minor editing.
4178 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
4179 Update dependencies.
4180 * Makefile.in: Regenerate.
4181
6e1304d8
RS
41822004-10-07 Richard Sandiford <rsandifo@redhat.com>
4183
4184 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
4185 to build the second and third fixups for a composite relocation.
4186 (macro_read_relocs): New function.
4187 (macro_build): Use it.
4188 (s_cpsetup): Pass all three composite relocation codes to macro_build.
4189 Simplify fragging code accordingly.
4190 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
4191 of the composite relocation. Set fx_tcbit in both fixups.
4192
b1dca8ee
RS
41932004-10-07 Richard Sandiford <rsandifo@redhat.com>
4194
4195 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
4196 (md_apply_fix3): Don't treat composite relocs as done.
4197
89658e52
NC
41982004-10-07 Jan Beulich <jbeulich@novell.com>
4199
4200 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
4201 prefix for symbol names generated from the LOCAL macro directive.
4202
289040ca
NC
4203 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
4204 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
4205
48c9f030
NC
42062004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
4207
4208 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
c04f5787 4209 Special registers.
5c5054ab 4210 (md_assemble): Add error checking for Co-Processor instructions.
48c9f030
NC
4211 (get_cinv_parameters): Add 'b' option to invalidate the
4212 branch-target cache.
4213
7ed4c4c5
NC
42142004-10-05 Paul Brook <paul@codesourcery.com>
4215
4216 * config/tc-arm.c (unwind): New variable.
4217 (vfp_sp_encode_reg): New function.
4218 (vfp_sp_reg_required_here): Use it.
4219 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
4220 (vfp_parse_reg_list): New function.
4221 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
4222 s_arm_unwind_personality, s_arm_unwind_personalityindex,
4223 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
4224 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
4225 functions.
4226 (md_pseudo_table): Add them.
4227 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
4228 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
4229 (set_section, add_unwind_adjustsp, flush_pending_unwind,
4230 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
4231 require_hashconst, add_unwind_opcode): New functions.
ab1e9ef7 4232 * doc/c-arm.texi: Document unwinding opcodes.
7ed4c4c5
NC
4233 * NEWS: Mention the new feature.
4234
04ca8703
EC
42352004-10-04 Eric Christopher <echristo@redhat.com>
4236
4237 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
4238
7c1d0959
L
42392004-10-01 H.J. Lu <hongjiu.lu@intel.com>
4240
4241 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
4242 TLS relocations.
4243 * config/tc-s390.c (md_apply_fix3): Likewise.
4244 * config/tc-sparc.c (md_apply_fix3): Likewise.
4245
40a18ebd
NC
42462004-10-01 Paul Brook <paul@codesourcery.com>
4247
4248 * config/tc-arm.c (arm_elf_section_type): New function.
4249 (arm_elf_change_section): Set section link for exidx sections.
4250 * config/tc-arm.h (arm_elf_section_type): Add prototype.
4251 (md_elf_section_type): Define.
4252
14127cc4
NC
42532004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
4254
4255 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
4256 instruction's offset.
4257
b7c92712
NC
42582004-10-01 Adam Nemet <anemet@lnxw.com>
4259
4260 * (TARGET_FORMAT): Remove LynxOS COFF definition.
4261
65555e64
AM
42622004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
4263
4264 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
4265 asymbol *, instead use symbol_get_bfdsym.
4266
9fe0b840
NC
42672004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
4268
4269 * config/tc-m68k.c (select_control_regs): Add mcf5249.
4270
0dd132b6
NC
42712004-09-30 Paul Brook <paul@codesourcery.com>
4272
4273 * config/tc-arm.c (do_smi, do_nop): New functions.
4274 (insns): Add ARMv6ZK instructions.
4275 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
4276 (tc_gen_reloc): Ditto.
4277 (arm_cpus): Add mpcore and arm1176.
4278 (arm_archs): Add armv6{k,z,zk}.
4279 * doc/c-arm.texi: Document new cores and architectures.
4280
a737bd4d
NC
42812004-09-30 Nick Clifton <nickc@redhat.com>
4282
4283 * config/tc-arm.c: Use ISO C90 formatting.
4284
3631a3c8
NC
42852004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
4286
a737bd4d 4287 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
3631a3c8
NC
4288 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
4289 REG_TYPE_MVDX is expected.
4290
d5f0cf92
AM
42912004-09-29 Marc Bevand <m.bevand@gmail.com>
4292
4293 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
4294
9f9a069e
JW
42952004-09-21 James E Wilson <wilson@specifixinc.com>
4296
4297 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
4298 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
4299 output_spill_base, output_unat_psprel, output_lc_psprel,
4300 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
4301 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
4302 output_spill_psprel_p): Use it.
4303
4b778c88
TL
43042004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
4305
c04f5787 4306 * config/tc-crx.c (handle_LoadStor): New function.
04ca8703 4307 Handle load/stor unique instructions before parsing.
4b778c88 4308
eb043451
PB
43092004-09-17 Paul Brook <paul@codesourcery.com>
4310
4311 * config/tc-arm.c (s_arm_rel31): New funciton.
4312 (md_pseudo_table): Add .rel31.
04ca8703 4313 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
eb043451
PB
4314 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
4315 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
4316 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
4317 (arm_parse_reloc): Add (target2).
4318
8ea2b00f
AM
43192004-09-17 Alan Modra <amodra@bigpond.net.au>
4320
4321 * Makefile.am: Run "make dep-am".
4322 * Makefile.in: Regenerate.
4323 * aclocal.m4: Regenerate.
4324 * configure: Regenerate.
4325 * doc/Makefile.in: Regenerate.
4326 * po/POTFILES.in: Regenerate.
4327 * po/gas.pot: Regenerate.
4328
7e1792e0
HPN
43292004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
4330
4331 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
4332 [!LLONG_MAX]: Ditto.
4333
9c504268
PB
43342004-09-13 Paul Brook <paul@codesourcery.com>
4335
4336 * config/tc-arm.c: Rename RELABS to TARGET1.
4337
2159ac21
AM
43382004-09-13 Alan Modra <amodra@bigpond.net.au>
4339
4340 * messages.c (as_internal_value_out_of_range): Cast values passed
4341 to as_bad_where or as_warn_where to proper type.
4342
23794b24
MM
43432004-09-11 Theodore A. Roth <troth@openavr.org>
4344
4345 * config/tc-avr.c: Add support for
4346 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
4347
e9fad691
AM
43482004-09-09 Alan Modra <amodra@bigpond.net.au>
4349
4350 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
4351 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
4352
10b016c2
PB
43532004-09-08 Paul Brook <paul@codesourcery.com>
4354
4355 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
4356 fini_array and preinit_array section types.
4357 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
4358 and fini_array.
4359 * doc/as.texinfo: Document extra section types.
4360
e5a52504
MM
43612004-09-02 Mark Mitchell <mark@codesourcery.com>
4362
4363 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
4364 * Makefile.in: Regenerated.
4365 * configure.in: Set em for arm*-*-symbianelf*.
4366 * configure: Regenerated.
4367 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
4368 vectors when appropriate.
4369 * config/te-symbian.h: New file.
4370
42851540
NC
43712004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
4372
4373 * config/tc-crx.c (gettrap): Exception vector can be case
4374 insensitive.
04ca8703 4375 (process_label_constant): Fix a 32-bit displacement bug in branch
42851540
NC
4376 instructions.
4377 (get_operandtype) : Bug fix, wrong operand was used.
04ca8703 4378 (process_label_constant): Initialize relocation type to
42851540
NC
4379 BFD_RELOC_NONE
4380
8783612f
RE
43812004-09-01 Richard Earnshaw < reanrsha@arm.com>
4382
4383 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
4384 for synthesizable cores.
4385
1ff4677c
RE
4386 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
4387
b18c562e
NC
43882004-08-25 Dmitry Diky <diwil@spec.ru>
4389
4390 * config/tc-msp430.c: Clean-up the code.
4391 (md_relax_table): New relax table.
4392 (mcu_types): Sort MCU types.
4393 (md_pseudo_table): Add .profiler pseudo handler.
4394 (pow2value): New function.
4395 (msp430_profiler): New function.
4396 (msp430_operands): Add new insns handlers.
4397 (msp430_srcoperand): Add register operand handler, allow complex
4398 expressions.
4399 (md_estimate_size_before_relax): Rewritten.
4400 (md_convert_frag): Rewritten.
4401 (msp430_relax_frag): New function.
4402 * config/tc-msp430.h (md_relax_frag): define macro
4403 * doc/c-msp430.texi: Update information.
4404
8f94ae4d
NC
44052004-08-24 Nick Clifton <nickc@redhat.com>
4406
4407 * as.c (std_shortopts): Allow -g to take an optional argument.
4408 (parse_args): Pass any switch starting with -g on to the backend
4409 for parsing.
4410
e51dace8
MM
44112004-08-18 Mark Mitchell <mark@codesourcery.com>
4412
4413 * configure.in (arm*-*-symbianelf*): New target.
4414 (arm*-*-eabi*): Likewise.
4415 * configure: Regenerated.
4416
f7870c8d
TS
44172004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4418 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
4419 correctly.
4420
d6afba4b
JJ
44212004-08-18 Jakub Jelinek <jakub@redhat.com>
4422
4423 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
4424 argument, don't do anything if current section is not
4425 .gnu.linkonce.t.* and linkonce_empty is set.
4426 (generate_unwind_image, dot_endp): Adjust callers, call
4427 start_unwind_section (*, 1) if nothing will be put into the
4428 section.
4429
329e276d
NC
44302004-08-17 Nick Clifton <nickc@redhat.com>
4431
4432 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
4433 (show_usage): Add -g.
4434 (std_longopts): Add --gen-debug. Alpha sort the table.
4435 (parse_args): Print an error message if a switch is not handled.
4436 Handle the -g switch, calling md_debug_format_selector() if
4437 necessary.
4438 * NEWS: Mention new feature.
4439 * doc/as.texinfo: Document new switch.
4440 * doc/internals.texi: Document behaviour of md_parse_option.
04ca8703 4441
329e276d
NC
4442 * config/tc-arm.c (md_parse_option): Do not issue an error message
4443 if the switch is not recognised.
4444 * config/tc-m68k.c (md_parse_option): Likewise.
4445 * config/tc-pdp11.c (md_parse_option): Likewise.
4446 * config/tc-v850.c (md_parse_option): Likewise.
4447
4448 * as.h: Fix up formatting.
4449 * tc.h: Likewise.
4450
4101eec8
NC
44512004-08-16 Nick Clifton <nickc@redhat.com>
4452
2766e5e4
NC
4453 * macro.c (macro_set_alternate): Use ISO C90 formatting.
4454
4101eec8
NC
4455 * configure.in: Sort architecture based tables alphabetically.
4456 * configure: Regenerate.
4457
80f846b6
AM
44582004-08-16 Alan Modra <amodra@bigpond.net.au>
4459
4460 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
4461 { "cc", 68 }, with { "cr", 70 }.
4462
caa32fe5
NC
44632004-08-13 Jan Beulich <jbeulich@novell.com>
4464 Nick Clifton <nickc@redhat.com>
4465
4466 * as.c: Add and handle new --alternate command line option.
4467 * macro.c (macro_set_alternate): New.
4468 * macro.h (macro_set_alternate): Declare.
4469 * read.c: Add and handle new .altmacro and .noaltmacro directives.
4470 * doc/as.texinfo: Document new command line option and pseudo-ops
4471 as well as insert documentation originating from gasp about
4472 alternate macro syntax.
4473 * NEWS: Mention new command line option and pseudo-ops.
4474
b2221023
MM
44752004-08-10 Mark Mitchell <mark@codesourcery.com>
4476
4477 * expr.c (operand): Handle the "~", "-", and "!" operators applied
4478 to bignums.
4479
db6579d4
PB
44802004-08-06 Paul Brook <paul@codesourcery.com>
4481
4482 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
4483 Handle new relocations.
4484 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
4485
e750405d
BW
44862004-08-05 Bob Wilson <bob.wilson@acm.org>
4487
4488 * write.c (relax_segment): Use was_address instead of address when
4489 setting fr_fix field for align frag due to backwards .org.
4490
1d70c7fb
AO
44912004-07-29 Alexandre Oliva <aoliva@redhat.com>
4492
4493 Introduce SH2a support.
4494 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
4495 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
4496 arch_sh2a_nofpu_up.
4497 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
4498 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
4499 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
4500 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
4501 to end of conditional expression.
4502 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
4503 * config/tc-sh.c: Add sh2a-nofpu support.
4504 2003-12-29 DJ Delorie <dj@redhat.com>
4505 * tc-sh.c: Add sh2a support.
4506 (parse_reg): Add tbr.
4507 (parse_at): Support @@(disp,tbr).
4508 (get_specific): Support sh2a opcodes.
4509 (insert4): New, for 4 byte relocs.
4510 (build_Mytes): Support sh2a opcodes.
4511 (md_apply_fix3_Mytes): Support sh2a opcodes.
4512 2003-12-02 Michael Snyder <msnyder@redhat.com>
4513 * config/tc-sh.c (md_parse_option): Handle sh2a.
4514 (sh_elf_final_processing): Ditto.
4515
e7fbc2bf
JT
45162004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
4517
4518 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
4519 for TE_NetBSD.
4520
9232bbb0
AM
45212004-07-27 Alan Modra <amodra@bigpond.net.au>
4522
4523 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
4524 (ppc_arch): Expand comment.
4525
670ec21d
NC
45262004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
4527
4528 * config/tc-crx.c: Support evaluating the difference between two
4529 symbols.
4530 * config/tc-crx.h: Likewise.
4531
406f8ff9 45322004-07-26 H.J. Lu <hongjiu.lu@intel.com>
38ce5b11
L
4533
4534 * config/tc-ia64.c (start_unwind_section): Set the linked-to
4535 section.
4536 (ia64_elf_section_change_hook): Set the linked-to section for
4537 SHT_IA_64_UNWIND.
4538
c05e9f04
NC
45392004-07-26 Dmitry Diky <diwil@spec.ru>
4540
4541 * config/tc-msp430.c: Add new subtargets: msp430x1610,
4542 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
4543 msp430xG438, msp430xG439.
4544
e9863d7f
DJ
45452004-07-25 Daniel Jacobowitz <dan@debian.org>
4546
4547 * doc/as.texinfo (Section, PushSection): Correct documentation
4548 for ELF.
4549
543613e9 45502004-07-21 Jan Beulich <jbeulich@novell.com>
20f0a1fc
NC
4551
4552 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
4553 permissible for the selected instruction suffix.
4554 (match_template): Don't permit 64-bit general purpose operands in
4555 32-bit mode.
4556 (finalize_imm): Permit 64-bit immediates.
4557 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
4558 specially except for the width of the used base and/or index
4559 registers. For 32-bit displacements, use sign-extended
4560 relocations only when using 64-bit addressing.
4561 Force zero displacement on rip-relative addressing when there is
4562 no other displacement.
4563 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
4564 specially except for the width of the used base and/or index
4565 registers.
4566 (parse_register): Disallow Reg64 registers in 32-bit mode.
4567
543613e9
NC
4568 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
4569 suffix if the instruction doesn't support it.
04ca8703 4570
01a3f561
MR
45712004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
4572
4573 * config/tc-mips.c (append_insn): Handle constant expressions with
4574 no associated relocation.
4575 (mips_ip): Cancel the expression after use for the Q format
4576 specifier.
4577 (parse_relocation): Return no relocation for unsupported
4578 operators.
4579 (my_getSmallExpression): Return no relocation if no relocation
4580 operators are used.
4581
e12904d2
DA
45822004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4583
4584 * config/obj-som.c (adjust_stab_sections): Add prototype.
4585 (obj_som_compiler, obj_som_version, obj_som_copyright,
4586 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
4587 * config/tc-hppa.c (update_subspace): Likewise.
4588 (is_defined_subspace): Amplify comment.
4589 * config/obj-som.h (som_frob_file): Add prototype.
4590
90c1602c
L
45912004-07-19 Christopher Faylor <cgf@timesys.com>
4592 H.J. Lu <hongjiu.lu@intel.com>
4593
4594 * subsegs.c (section_symbol): Don't create a new segment when
4595 existing segment is undefined.
4596
f263249b
RE
45972004-07-16 Richard Earnshaw <rearnsha@arm.com>
4598
4599 * config/tc-arm.c: Include include/opcode/arm.h.
4600 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
4601 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
4602 (FPU_ARCH_*): Delete.
4603 * Makefile.am: Update dependencies.
4604 * Makefile.in: Regenerate.
4605
152c65b9
NC
46062004-07-15 Nick Clifton <nickc@redhat.com>
4607
4608 * configure.in: Accept armbe as a big-endian arm configuration.
4609 * configure: Regenerate.
4610
0477af35
NC
46112004-07-13 Thomas Nystrom <thn@saeab.se>
4612
4613 * config/tc-i386.c (T_SHIFTOP): New constant.
4614 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
4615 (intel_el1): Handle '~'.
4616 (intel_get_token): Handle '<>', '&', '|' and '~'.
4617
46182004-07-13 Nick Clifton <nickc@redhat.com>
4619
4620 (md_assemble): Remove spurious newline from end of as_bad error
4621 message.
4622 (intel_e05_1): Likewise.
4623 (intel_e11): Likewise.
4624 (intel_match_token): Likewise.
4625
31302357
AS
46262004-07-11 Andreas Schwab <schwab@suse.de>
4627
4628 * config/tc-m68k.c: Convert to C90. Remove redundant
4629 declarations. Indentation fixup.
4630 [M68KCOFF]: Include "obj-coff.h" instead of declaring
4631 obj_coff_section ourselves.
04ca8703 4632
549f748d
JW
46332004-07-09 James E Wilson <wilson@specifixinc.com>
4634
4635 * config/tc-ia64.c (default_big_endian): New.
4636 (dot_byteorder, md_begin): Use it.
4637 (md_parse_option): Set it.
04ca8703 4638
1a320fbb
NC
46392004-07-09 Nick Clifton <nickc@redhat.com>
4640
4641 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
4642 * configure: Regenerate.
4643 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
4644 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
4645 sh_find_elf_flags if necessary.
4646
de7e6852
RS
46472004-07-08 Richard Sandiford <rsandifo@redhat.com>
4648
4649 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
4650 going to be split into more than one in-place addend, return 0
4651 for relocations against mergeable sections. Associate comments
4652 with code.
4653
1fe1f39c
NC
46542004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
4655
4656 * Makefile.am (CPU_TYPES): Add crx.
4657 (TARGET_CPU_CFILES): Add config/tc-crx.c.
4658 (TARGET_CPU_HFILES): Add config/tc-crx.h.
4659 (DEPTC_crx_elf): New target.
4660 (DEPOBJ_crx_elf): Likewise.
4661 (DEP_crx_elf): Likewise.
4662 * Makefile.in: Regenerate.
4663 * configure.in: Add crx* target.
4664 * configure: Regenerate.
4665 * config/tc-crx.c: New file.
4666 * config/tc-crx.h: New file.
4667 * NEWS: Mention new target.
4668
d9895649
NC
46692004-07-06 Nick Clifton <nickc@redhat.com>
4670
85fbca6a 4671 * config.in: Undefine TARGET_SYMBIAN by default.
c04f5787
AM
4672 * configure.in:
4673 * configure: Regenerate. Add sh-symbian-elf target. If
4674 selected define TARGET_SYMBIAN.
4675 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
4676 format if TARGET_SYMBIAN has been defined.
04ca8703 4677
e7bd9ea0
NC
4678 * output-file.c (output_file_create): Report the target format
4679 chosen when bfd_openw reports that it is invalid.
4680
d9895649
NC
4681 * config/obj-coff.c (coff_pseudo_table): Only define the weak
4682 pseudo for BFD based assemblers.
4683
871ec896
JR
46842004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
4685
4686 gas:
4687 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
4688 (md_parse_option): Remove redundant -isa testing.
4689 Make bfd_arch variable const.
4690 (md_show_usage): Make bfd_arch variable const.
4691
5a9ff93d
JW
46922004-07-03 James E Wilson <wilson@specifixinc.com>
4693
4694 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
4695 * config/tc-ia64.h (md_frag_check): Define.
4696
c87db184
CF
46972004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4698
4699 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
4700 externals.
4701 * doc/as.texinfo (Weak): Document PE weak symbols.
4702
3b91255e
RS
47032004-07-03 Richard Sandiford <rsandifo@redhat.com>
4704
4705 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
4706 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
4707 (mips_frob_file): Rework so that only a single pass through the
4708 relocs is needed. Allow %lo()s to have higher offsets than their
4709 corresponding %hi()s or %got()s.
4710
310ea308
NC
47112004-07-02 Nick Clifton <nickc@redhat.com>
4712
4713 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
4714 allow values which have come from undefined symbols.
4715 Always consider this fixup to have been processed as a reloc
4716 cannot be generated for it.
4717
09b935ac
AM
47182004-07-02 Alan Modra <amodra@bigpond.net.au>
4719
4720 * frags.h (struct frag): Add has_code and insn_addr fields.
4721 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
4722 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
4723 * config/tc-ppc.h (md_frag_check): Define.
4724
4d1cd5c7
MR
47252004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
4726
4727 * doc/Makefile.am (info): Rename goal to...
4728 (info-local): ... this, to preserve implicit dependencies.
4729 * doc/Makefile.in: Regenerate with automake 1.8.5.
4730
097f809a
NC
47312004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4732
4733 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
4734 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
4735 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
4736 (tc_gen_reloc): Likewise.
4737 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
4738 (m32r_parse_name): Likewise.
4739 (m32r_cgen_parse_fix_exp): Likewise.
4740 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
4741 (O_PIC_reloc): Likewise.
4742 (TC_CGEN_PARSE_FIX_EXP): Likewise..
4743 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
4744 for @GOTOFF, @GOT, @PLT.
4745
bb82af9f
NC
47462004-06-21 Jan Beulich <jbeulich@novell.com>
4747
4748 * gas/symbols.c: While discarding ordinary local absolute symbols
4749 when --strip-local-absolute is in effect, retain file symbols.
4750
990ae22a
AS
47512004-06-20 Andreas Schwab <schwab@suse.de>
4752
4753 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
4754 (md_parse_option): Likewise.
4755
32137342
NC
47562004-06-17 Jan Beulich <jbeulich@novell.com>
4757
4758 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
4759 * config/te-netware.h: New file.
4760 * config/te-ppcnw.h: Delete: Obsolete.
4761 * configure.in: Eliminate ill NetWare targets. Make generic
4762 NetWare target use proper emulation.
4763 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
4764 reference to new te-netware.h.
4765 * configure: Regenerate.
4766 * Makefile.in: Regenerate.
4767
f84d8e26
MS
47682004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
4769
4770 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
4771 comparison in .insn pseudo operation.
4772
587aac4e
AM
47732004-06-15 Alan Modra <amodra@bigpond.net.au>
4774
4775 * config/obj-coff.c (coff_adjust_section_syms): Use
4776 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
4777 (coff_frob_section): Likewise.
4778 * config/tc-mips.c (md_apply_fix3): Likewise.
4779 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
4780 (elf_frob_file_after_relocs): Likewise.
4781
2337eb33
DA
47822004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4783
b8fc22bc
DA
4784 * config/tc-hppa.c (log2): Rename to exact_log2.
4785 (pa_next_subseg): Delete unused function.
4786 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
4787 (create_new_subspace): Likewise.
4788
2337eb33
DA
4789 Bug gas/213
4790 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
4791 labels. Fix warning.
4792
53cb0362
DD
47932004-05-28 DJ Delorie <dj@redhat.com>
4794
4795 * config/tc-mn10300.h (tc_fix_adjustable): Define.
4796 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
4797 or non-merged symbols.
4798
888a75be
L
47992004-05-28 H.J. Lu <hongjiu.lu@intel.com>
4800
4801 * config/tc-ia64.c (remove_marked_resource): Save, clear and
4802 restore the old slot when inserting srlz.i/srlz.d.
4803
f6f9408f
JR
48042004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
4805
4806 * Makefile.am: Regenerate dependecies.
4807 * Makefile.in: Regenerate.
4808 * config/tc-sh.c (valid_arch): Make unsigned.
4809 (preset_target_arch): Likewise.
4810 (md_begin): Use new architecture flags system.
4811 (get_specific): Likewise.
4812 (assemble_ppi): Likewise.
4813 (md_assemble): Likewise. Also fix error check for bad opcodes.
4814 (md_parse_option): Likewise. Also generate -isa values according
4815 to the table in bfd/cpu-sh.c instead of just constants. Also
4816 allow <arch>-up ISA variants.
4817 (sh_elf_final_processing): Replace if-else chain with a call to
4818 sh_find_elf_flags().
f6f9408f 4819
580b9172
NC
48202004-05-28 Peter Barada <peter@the-baradas.com>
4821
4822 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
4823 with zero offset into mode 2 addressing to save a word.
4824
652ca075
L
48252004-05-27 H.J. Lu <hongjiu.lu@intel.com>
4826
4827 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
4828 (ar_is_only_in_integer_unit): New.
4829 (ar_is_only_in_memory_unit): New.
4830 (generate_unwind_image): Silence gcc on 32bit host.
4831 (md_assemble): Use ar_is_only_in_integer_unit instead of
4832 ar_is_in_integer_unit. Check AR access.
4833
60fed2d3
NC
48342004-05-27 Peter Barada <peter@the-baradas.com>
4835
4836 * config/tc-m68k.c (md_begin): Sort the opcode table into
4837 alphabetical order.
4838 (m68k_compare_opcode): New function to do the sorting.
4839
be8c092b
NC
48402004-05-24 Peter Barada <peter@the-baradas.com>
4841
4842 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
4843 addressing on MIT style operands.
4844 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
4845 w/mask addressing.
4846 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
4847 operands.
4848
1181c20e
AM
48492004-05-23 Alan Modra <amodra@bigpond.net.au>
4850
4851 * expr.c (operand, operator): Don't reject '++' and '--'.
4852
20e56c33
RS
48532004-05-20 Richard Sandiford <rsandifo@redhat.com>
4854
4855 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
4856 dwarf tables.
4857
04ca8703 48582004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
4859
4860 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
4861 * configure: Regenerate.
4862
0da76f83
NC
48632004-05-13 Paul Brook <paul@codesourcery.com>
4864
4865 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
4866
4b363073
NC
48672004-05-13 Joel Sherrill <joel@oarcorp.com>
4868
4869 * configure.in (or32-*-rtems*): Switch to elf.
4870 * configure: Regenerate.
4871
9598fbe5
NC
48722004-05-13 Nick Clifton <nickc@redhat.com>
4873
4874 * po/fr.po: Updated French translation.
4875
22fe14ad
NC
48762004-05-11 Nick Clifton <nickc@redhat.com>
4877
4878 * doc/as.texinfo (Section): Document G and T flags to .section
4879 directive. Document the extra arguments that the G flag
4880 requires. Document the #tls flag.
4881
48822004-05-11 H.J. Lu <hongjiu.lu@intel.com>
4883
4884 * subsegs.c (section_symbol): Create a new section symbol if
4885 the existing one doesn't match.
4886 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
4887
532c738a
RS
48882004-05-07 Richard Sandiford <rsandifo@redhat.com>
4889
4890 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
4891 to cope with VR4181A errata MD(1) and MD(4).
4892
0503b355
BF
48932004-05-07 Brian Ford <ford@vss.fsi.com>
4894
4895 * NEWS: Mention .secrel32 for pe[i]-i386.
4896
daeea990
AO
48972004-05-07 Alexandre Oliva <aoliva@redhat.com>
4898
4899 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
4900 (HANDLE_ALIGN): New.
4901
bfbdcf04
DJ
49022004-05-06 Daniel Jacobowitz <dan@debian.org>
4903
4904 * Makefile.am (DIST_SUBDIRS): Define.
4905 * aclocal.m4: Regenerate with automake 1.8.4.
4906 * Makefile.in: Likewise.
4907 * doc/Makefile.in: Likewise.
4908
5e819f9c
JW
49092004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
4910
4911 * config/tc-ia64.c (dot_serialize): Declare.
4912 (dot_serialize): New function.
4913 (md_pseudo_table): Add ".serialize.data" and
4914 ".serialize.instruction" directives.
4915
e5976317
NC
49162004-05-06 Nick Clifton <nickc@redhat.com>
4917
4918 * messages (as_internal_value_out_of_range): Print a message about
4919 a value being out of range. Be consistent about whether the
4920 values are printed in decimal or hexadecimal.
4921 (as_warn_value_out_of_range): Generate a warning message about an
4922 out of range value.
4923 (as_bad_value_out_of_range): Generate an error message about an
4924 out of range value.
4925 * as.h: Prototype the new functions.
4926 * config/tc-alpha.c (insert_operand): Use new function.
4927 * config/tc-arc.c (arc_insert_operand): Likewise.
4928 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
4929 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
4930 * config/tc-ppc.c (ppc_insert_operand): Likewise.
4931 * config/tc-s390.c (s390_insert_operand): Likewise.
4932 * config/tc-v850.c (v850_insert_operand): Likewise.
4933
996991aa
AO
49342004-05-05 Alexandre Oliva <aoliva@redhat.com>
4935
4936 * configure.in: Set em=linux for frv-*-*linux*.
4937 * configure: Rebuilt.
4938 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
4939 (frv_md_fdpic_enabled): New.
4940 * config/tc-frv.c (frv_md_fdpic_enabled): New.
4941 (DEFAULT_FDPIC): New.
4942 (frv_flags): Use DEFAULT_FDPIC.
4943 (frv_pic_flag): Likewise.
4944 (OPTION_NOPIC): New.
4945 (md_longopts): Add -mnopic.
4946 (md_parse_option): Handle it.
4947 (md_show_usage): Add -mfdpic and -mnopic.
4948
6b6e92f4
NC
49492004-05-05 Peter Barada <peter@the-baradas.com>
4950
4951 * config/tc-m68k.c: Add find_cf_chip to print list of valid
4952 chips for invalid coldfire instructions, rename selectors
4953 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
4954 add current_chip to track which chip is referred to(including save/restore),
4955 use current_chip to select control registers, not current_arch.
4956 (md_show_usage): Add new chips.
4957 * doc/c-m68k.texi: Document new command line switches.
4958
6f079ae3
JJ
49592004-05-05 Jakub Jelinek <jakub@redhat.com>
4960
4961 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
4962 (NOP_OPCODE): Define.
4963 (s390_align_code): Remove prototype.
4964 * tc-s390.c (s390_align_code): Remove.
4965
2d6ed997
L
49662004-05-04 H.J. Lu <hongjiu.lu@intel.com>
4967
4968 * config/tc-ia64.c (make_unw_section_name): Removed.
4969 (start_unwind_section): New function.
4970 (generate_unwind_image): Take const segT instead of const
4971 char *.
4972 (dot_handlerdata): Adjusted.
4973 (dot_endp): Likewise.
4974
b9f18452
L
49752004-05-02 H.J. Lu <hongjiu.lu@intel.com>
4976
4977 * config/obj-elf.c (obj_elf_change_section): Allow the
4978 ".note.GNU-stack" section has SHF_EXECINSTR.
4979
fafe6678
L
49802004-05-02 H.J. Lu <hongjiu.lu@intel.com>
4981
4982 * config/obj-elf.c (get_section): Return bfd_boolean.
4983 (obj_elf_change_section): Call bfd_get_section_by_name_if
4984 instead of bfd_map_over_sections.
4985
86654c12
L
49862004-04-30 H.J. Lu <hongjiu.lu@intel.com>
4987
4988 * config/obj-elf.c (get_section): New function.
4989 (obj_elf_change_section): Support multiple sections with same
4990 name.
4991
376eb240
NC
49922004-04-30 Nick Clifton <nickc@redhat.com>
4993
4994 * config/tc-arm.c (create_register_alias): Fix typo checking for
4995 case sensitive register aliases.
4996 (co_proc_number): Use error message string in all_reg_maps[]
4997 array.
4998 (cp_reg_required_here): Likewise.
4999 (fp_reg_required_here): Likewise.
5000
8a7140c3
NC
50012004-04-29 Brian Ford <ford@vss.fsi.com>
5002
5003 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
5004
3e722fb5
CD
50052004-04-28 Chris Demetriou <cgd@broadcom.com>
5006
5007 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
5008 (load_address, macro, mips_ip, md_parse_option)
5009 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
5010 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
5011 embedded-PIC handling, and update comments.
5012 (SWITCH_TABLE): Remove.
5013 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
5014 (enum mips_pic_level): Remove EMBEDDED_PIC.
5015 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
5016 (TC_FORCE_RELOCATION): Update comment.
5017 * ecoff.c (ecoff_build_lineno): Add comment about some code that
5018 might be safe to remove now that MIPS embedded-PIC is gone.
5019
351e2b5a
DA
50202004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5021
5022 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
5023 call to obj_set_subsection_attributes.
5024 (obj_som_init_stab_section): Likewise.
5025 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
5026 (pa_def_subspaces): Provide comdat default.
5027 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
5028 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
5029 calls to create_new_subspace and update_subspace to pass comdat flag.
5030 (create_new_subspace, update_subspace): Add new comdat argument. Use
5031 it in calls to obj_set_subsection_attributes.
5032 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
5033 and use of comdat, common and dup_comm parameters.
5034
f5842774
L
50352004-04-26 H.J. Lu <hongjiu.lu@intel.com>
5036
5037 * config/obj-elf.c (obj_elf_change_section): Check if the old
5038 group name is NULL before comparison.
5039
558fe4a7
CD
50402004-04-23 Chris Demetriou <cgd@broadcom.com>
5041
5042 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
5043
81a21e38
TS
50442004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5045
5046 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
5047
50482004-04-23 Chris Demetriou <cgd@broadcom.com>
1ffcab4b
CD
5049
5050 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
5051 (OPTION_MEMBEDDED_PIC): Remove.
5052 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
5053 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
5054 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
5055 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
5056 (OPTION_ELF_BASE): Renumber.
5057 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
5058 (md_show_usage): Remove mention of -membedded-pic.
5059 * doc/as.texinfo: Remove mention of -membedded-pic.
5060
4d0d148d
TS
50612004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5062
5063 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
5064 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
5065 a.out support.
5066 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
5067 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
5068 USE_GLOBAL_POINTER_OPT.
5069
017315e4
TS
50702004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5071
5072 * config/tc-mips.c (macro): One more use of load_delay_nop.
5073
269137b2
TS
50742004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
5075
5076 * config/tc-mips.c (load_delay_nop): New function.
5077 (load_address, macro): Use load_delay_nop() to build a nop
5078 which can be omitted with gpr_interlocks.
5079
24772049
TS
50802004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5081
5082 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
5083 cop_interlocks): Remove superfluous CPU entries.
5084
06516a5e
PB
50852004-04-22 Paul Brook <paul@codesourcery.com>
5086
5087 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
5088
fd99574b
NC
50892004-04-22 Peter Barada <peter@the-baradas.com>
5090
5091 * NEWS: Added support for EMAC instructions and MAC/EMAC
5092 Motorola syntax.
5093 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
5094 scale factor tokens, trailing_ampersand to mark mask addressing
5095 for MAC/EMAC instructions.
5096 * config/m68k-parse.y: Add options_ampersand clause, '<<',
5097 '>>'.
5098 (yylex): Handle '>', '<', and '&' following '+'.
5099 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
04ca8703 5100 architectures in archs[].
fd99574b
NC
5101 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
5102 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
5103 respectively.
5104 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
5105 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
5106 cases.
5107 Add EMAC operands to init_table[].
5108
69b97547
NC
51092004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
5110
5111 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
5112 state.
5113 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
5114 * config/tc-arm.c (enum mstate): Delete from here.
5115 (mapping_state): Remove the static mapstate variable and instead
5116 store the state in the segment. This allows a per-section mapping
5117 state. Handle and ignore MAP_UNDEFINED states.
5118 (arm_elf_change_section): Get the current mapping state from the
5119 new section.
5120 (s_ltorg): Set the mapping state to MAP_DATA.
5121 (arm_cleanup): Use arm_elf_change_section to get the mapping state
5122 for each pool as it is emitted.
5123
51242004-04-22 Nick Clifton <nickc@redhat.com>
5125
5126 * config/tc-arm.h: Formatting tidy ups.
5127
7a7f4e42
CD
51282004-04-20 Chris Demetriou <cgd@broadcom.com>
5129
5130 * NEWS: Note that MIPS -membedded-pic option is deprecated.
5131
6482c264
NC
51322004-04-20 DJ Delorie <dj@redhat.com>
5133
5134 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
5135 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
5136 [TE_PE] (O_secrel): Define.
5137 [TE_PE] (x86_pe_cons_fix_new): New.
5138 [TE_PE] (pe_directive_secrel): Likewise.
5139 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
5140
5bf10039
EC
51412004-04-19 Eric Christopher <echristo@redhat.com>
5142
c04f5787
AM
5143 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
5144 of previous patch for fix in gcc.
5bf10039 5145
77cd6497
JJ
51462004-04-19 Jakub Jelinek <jakub@redhat.com>
5147
5148 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
5149
b8861cfb
NS
51502004-04-19 Nathan Sidwell <nathan@codesourcery.com>
5151
5152 * read.c (do_align): Call md_flush_pending_output, if defined.
5153
f4c724fc
AM
51542004-04-16 Alan Modra <amodra@bigpond.net.au>
5155
5156 * expr.c (operand): Correct checks for ++ and --.
5157
a4b6e8f6
L
51582004-04-14 H.J. Lu <hongjiu.lu@intel.com>
5159
5160 * config/tc-generic.c: Add some comments.
5161
d766e8ec
RS
51622004-04-14 Richard Sandiford <rsandifo@redhat.com>
5163
5164 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
5165 -{no-}mfix-vr4122-bugs.
5166 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
5167 (append_insn, mips_emit_delays): Update accordingly.
5168 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
5169 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
5170 (md_parse_option): Update after above changes.
5171 (md_show_usage): Add -mfix-vr4120.
5172
ed9589d4
BW
51732004-04-13 Bob Wilson <bob.wilson@acm.org>
5174
5175 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
5176 of .section directive; add a reference to the ELF .subsection
5177 directive.
5178
097dba13
NC
51792004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5180
5181 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
5182 in parallel.
5183
279500de
TS
51842004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5185
5186 * Makefile.am: Remove mips from aout targets.
5187 * Makefile.in: Regenerate.
5188 * configure.in: Remove mips-dec-bsd* target.
5189 * configure: Regenerate.
5190
b7d7dc63
AM
51912004-04-07 Alan Modra <amodra@bigpond.net.au>
5192
5193 PR 96
5194 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
5195 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
5196 Update "mapping". Restrict some @ modifiers to 32 bit.
5197
f55629b8
KK
51982004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
5199 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
5200
5201 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
5202 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
5203 dont_adjust_reloc_32 is set.
5204 (md_longopts): Add option -renesas.
5205 (md_parse_option, md_show_usage): Likewise.
5206 * doc/c-sh.texi: Likewise.
5207
a7844384
NC
52082004-04-01 Dave Korn <dk@artimi.com>
5209
5210 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
5211 hi16 and lo16 fixS structs.
5212 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
5213 exactly the same way as for RELOC_DLX_REL16.
5214 (machine_ip): properly respect LO flag in the_insn and
5215 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
5216 (md_apply_fix3): apply RELOC_DLX_LO16.
5217
6c71dbc4
SS
52182004-03-30 Stan Shebs <shebs@apple.com>
5219
5220 Remove long-obsolete MPW support.
5221 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
5222 * configure.in: Remove mention of ppc-*-mpw* config.
5223 * configure.in: Likewise.
5224
7cc69913
NC
52252004-03-30 Nick Clifton <nickc@redhat.com>
5226
5227 * config/tc-arm.c (meabi_flags): Make its use conditional upon
5228 OBJ_ELF being defined.
5229
53fbb48a
AM
52302004-03-27 Alan Modra <amodra@bigpond.net.au>
5231
5232 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
5233
d507cf36
PB
52342004-03-23 Paul Brook <paul@codesourcery.com>
5235
5236 * config/tc-arm.c (meabi_flags): New variable.
5237 (arm_parse_eabi): New function.
5238 (md_begin): Set flags for EABI v3.
5239 (arm_eabis): Add.
5240 (arm_long_opts): Add meabi.
ab1e9ef7 5241 * doc/as.texinfo <ARM>: Document -meabi.
d507cf36
PB
5242 * doc/c-arm.texi: Ditto.
5243
88d65ad6
BW
52442004-03-22 Bob Wilson <bob.wilson@acm.org>
5245
5246 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
5247 tables even when use_literal_section flag is not set.
5248
13ef8878
AM
52492004-03-22 Alan Modra <amodra@bigpond.net.au>
5250
5251 * config/tc-sh.c: Remove trailing whitespace.
5252
1048a9ba
HPN
52532004-03-22 Hans-Peter Nilsson <hp@axis.com>
5254
5255 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
5256 --mul-bug-abort and the default behavior.
5257 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
5258 (err_for_dangerous_mul_placement): New variable.
5259 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
5260 macros.
5261 (md_cris_relax_table): Have placeholder for STATE_MUL.
5262 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
5263 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
5264 case doing nothing.
5265 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
5266 STATE_BYTE)>: Ditto.
5267 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
5268 alignment and position of this frag, emit error message if
5269 suspicious.
5270 (md_assemble): For a multiply insn and when checking it,
5271 transform the current frag into a special frag for that purpose.
5272 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
5273 OPTION_MULBUG_ABORT_ON>: Handle new options.
5274
a7877748
BW
52752004-03-19 Bob Wilson <bob.wilson@acm.org>
5276
5277 * config/tc-xtensa.c (mark_literal_frags): New function.
5278 (xtensa_move_literals): Call mark_literal_frags for all literal
5279 segments, including init and fini literal segments.
5280 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
5281
9992270f
DA
52822004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5283
5284 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
5285 (pa_comm): Set BSF_OBJECT in symbol flags.
5286
6e1772d5
AM
52872004-03-19 Alan Modra <amodra@bigpond.net.au>
5288
5289 * Makefile.am: Run "make dep-am".
5290 * Makefile.in: Regenerate.
5291 * doc/Makefile.in: Regenerate.
5292 * config.in: Regenerate.
5293 * po/gas.pot: Regenerate.
5294
3e4caed2
NS
52952004-03-18 Nathan Sidwell <nathan@codesourcery.com>
5296
c95b35a9
NS
5297 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
5298 (demand_empty_rest_of_line): Issue an error here.
5299 (ignore_rest_of_line): Silently skip to end.
5300 (demand_copy_string): Issue an error, not warning.
5301 (equals): Likewise.
5302 * config/obj-elf.c (obj_elf_section_name): Likewise.
5303 (obj_elf_section): Likewise.
5304 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
5305 (arc_extinst): Likewise.
5306 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
5307 (dot_spill): Likewise.
5308 (dot_unwabi): Likewise.
5309 (dot_prologue): Likewise.
5310
3e4caed2
NS
5311 * expr.c (operand): Reject ++ and --.
5312 (operator): Likewise.
5313
2ce4cc60
KK
53142004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5315
5316 * config/tc-sh.c: Include dw2gencfi.h.
5317 (sh_cfi_frame_initial_instructions): New function.
5318 (sh_regname_to_dw2regnum): Likewise.
5319 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
5320 file.
5321 (TARGET_USE_CFIPOP): Define.
5322 (tc_cfi_frame_initial_instructions): Likewise.
5323 (tc_regname_to_dw2regnum): Likewise.
5324 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
5325 * Makefile.am: Update dependencies.
5326 * Makefile.in: Regenerate.
5327
9183ed4b
AM
53282004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
5329
5330 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
5331 * configure: Regenerate.
5332
00bbdfe7
BW
53332004-03-12 Bob Wilson <bob.wilson@acm.org>
5334
5335 * read.c (s_leb128): Call md_flush_pending_output.
5336
0f10071e
ML
53372004-03-12 Michal Ludvig <mludvig@suse.cz>
5338
5339 * config/tc-i386.c (output_insn): Handle PadLock instructions.
5340 * config/tc-i386.h (CpuPadLock): New define.
5341 (CpuUnknownFlags): Added CpuPadLock.
5342
84c84759
AS
53432004-03-07 Andreas Schwab <schwab@suse.de>
5344
5345 * doc/c-hppa.texi (HPPA Directives): Fix typo.
5346
6ec51dba
RH
53472004-03-07 Richard Henderson <rth@redhat.com>
5348
5349 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
5350 (cfi_finish): Likewise for fde.
5351
bae25f19
L
53522004-03-05 H.J. Lu <hongjiu.lu@intel.com>
5353
5354 * config/tc-ia64.c (md_assemble): Properly handle NULL
5355 align_frag.
5356 (ia64_handle_align): Don't abort if failed to add a stop bit.
5357
ab509236
L
53582004-03-04 H.J. Lu <hongjiu.lu@intel.com>
5359
5360 * Makefile.in: Regenerated.
5361 * aclocal.m4: Likewise.
5362 * configure: Likewise.
5363 * doc/Makefile.in: Likewise.
5364
d9201763
L
53652004-03-03 H.J. Lu <hongjiu.lu@intel.com>
5366
5367 * config/tc-ia64.c (dot_align): New.
5368 (ia64_do_align): Make it static.
5369 (md_pseudo_table): Use "dot_align" for "align".
5370 (ia64_md_do_align): Don't set align_frag here.
5371 (ia64_handle_align): Add a stop bit to the previous bundle if
5372 needed.
5373
5374 * config/tc-ia64.h (ia64_do_align): Removed.
5375
ae51a426
JR
53762003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
5377
5378 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
5379 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
5380 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
5381 the most general type or the user specifically requested it.
5382 (md_assemble): Add a new error message for when an instruction
5383 is understood, but is not allowed due to an -isa option.
5384
9545c4ce
L
53852004-03-02 H.J. Lu <hongjiu.lu@intel.com>
5386
5387 * config/tc-ia64.c (align_frag): New.
5388 (md_assemble): Set the tc_frag_data field in align_frag for
5389 IA64_OPCODE_FIRST instructions.
5390 (ia64_md_do_align): Set align_frag.
5391 (ia64_handle_align): Add a stop bit if needed.
5392
5393 * config/tc-ia64.h (TC_FRAG_TYPE): New.
5394 (TC_FRAG_INIT): New.
5395
676a64f4
RS
53962004-03-01 Richard Sandiford <rsandifo@redhat.com>
5397
5398 * config/tc-frv.c (fr400_audio): New variable.
5399 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
5400 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
5401 (target_implements_insn_p): New function.
5402 (md_assemble): Report an error if the processor doesn't implement
5403 the instruction.
5404
bd337dde
NC
54052004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5406
5407 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
5408 (md_parse_option): Ditto.
5409 (OPTION_NO_SPECIAL_M32R): Added.
5410 (md_show_usage): Document it.
5411 (enable_speial_m32r): Changed a default value from 0 to 1.
5412 * doc/c-m32r.texi: Document the -no-bitinst option.
5413
78878175
NC
54142004-02-27 Nick Clifton <nickc@redhat.com>
5415
5416 * config/tc-sh.c (get_operand): Revert previous delta.
5417 (tc_gen_reloc): Check for an unknown reloc type before processing
5418 the addend.
5419
1d6d62a4
MS
54202004-02-27 Hannes Reinecke <hare@suse.de>
5421
5422 * config/tc-s390.c (s390_insn): Correct range check for opcode in
5423 .insn pseudo operation.
5424
4aa3e325
NC
54252004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
5426
5427 * config/tc-sh.c (get_operand): In case of #Imm, check has been
5428 added for wrong syntax.
5429
73369e65
EC
54302004-02-26 Eric Christopher <echristo@redhat.com>
5431
5432 * config/tc-mips.c (mips_dwarf2_addr_size): New.
5433 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
5434
6a5709a5
JR
54352004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
5436
5437 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
5438 nibble types to assembler.
5439
95385380
FF
54402004-02-25 Fred Fish <fnf@redhat.com>
5441
5442 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
5443
b5e0fabd
JW
54442004-02-20 James E Wilson <wilson@specifixinc.com>
5445
5446 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
5447 finalize_syms.
5448 (fixup_unw_records): New arg before_relax. Pass to slot_index.
5449 (ia64_estimate_size_before_relax): New.
5450 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
5451 (generate_unwind_image): Pass 1 to fixup_unw_records.
5452 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
5453 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
5454
2f01ffbf
JJ
54552004-02-19 Jakub Jelinek <jakub@redhat.com>
5456
5457 * stabs.c (generate_asm_file): Avoid warning about use of
5458 uninitialized variable.
5459
9c59842f
JW
54602004-02-18 David Mosberger <davidm@hpl.hp.com>
5461
5462 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
5463 body, and endp, allow unwind records which do not have a "t"
5464 (time/instruction) field.
5465
34920d91
NC
54662004-02-17 Petko Manolov <petkan@nucleusys.com>
5467
5468 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
5469 (do_mav_dspsc_2): Likewise.
5470 Fix accumulator registers move opcodes.
5471
4dde8e61 54722004-02-13 Hannes Reinecke <hare@suse.de>
13ef8878 5473 Jakub Jelinek <jakub@redhat.com>
4dde8e61
AJ
5474
5475 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
5476
936cf02e
JW
54772004-02-10 Steve Ellcey <sje@cup.hp.com>
5478
5479 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
5480 (tc_frob_symbol): New macro definition.
5481 * config/tc-ia64.c (ia64_frob_symbol): New routine.
5482
e41f12f3
DJ
54832004-02-09 Daniel Jacobowitz <drow@mvista.com>
5484
5485 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
5486 read-only.
5487
a8a3b3b2
NS
54882004-02-09 Nathan Sidwell <nathan@codesourcery.com>
5489
5490 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
5491 (TC_CASE_SENSITIVE): ... this.
5492 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
5493 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
5494
c97b7ef6
JW
54952004-02-06 James E Wilson <wilson@specifixinc.com>
5496
5497 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
5498 (generate_unwind_image): Re-add it here.
5499
e4475e39
NS
55002004-02-06 Nathan Sidwell <nathan@codesourcery.com>
5501
5502 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
5503 * read.h (SKIP_WHITESPACE): Turn into an expression.
5504 * read.c (read_a_source_file): A pseudo is removed by having a
5505 NULL handler.
5506
5738bc24
JW
55072004-02-05 James E Wilson <wilson@specifixinc.com>
5508
5509 * config/tc-ia64.c (output_endp): New.
5510 (count_bits): Delete.
5511 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
5512 endp unwind records.
5513 (fixup_unw_records): Handle endp unwind records. Delete code for
5514 shortening prologue regions not followed by a body record.
5515 (dot_endp): Call add_unwind_entry to emit endp unwind record.
5516 * config/tc-ia64.h (unw_record_type): Add endp.
5517
d6e78c11
JW
55182004-02-03 James E Wilson <wilson@specifixinc.com>
5519
5520 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
5521 fill padding bytes with zeroes.
5522 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
5523 sets unwind_record slot_number and slot_frag fields.
5524
f6a22291
MR
55252004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5526
5527 * config/tc-mips.c (add_got_offset_hilo): New function.
5528 (macro): Use load_register() and add_got_offset_hilo() to load
5529 constants instead of hardcoding code sequences throughout.
5530
127cab00
L
55312004-01-28 H.J. Lu <hongjiu.lu@intel.com>
5532
5533 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
5534
6358301e
NC
55352004-01-26 Bernardo Innocenti <bernie@develer.com>
5536
5537 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
5538 like m68k-elf.
5539 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
5540 of hard-coded test for TARGET_OS=elf.
5541
c8978940
CD
55422004-01-24 Chris Demetriou <cgd@broadcom.com>
5543
5544 * config/tc-mips.c (hilo_interlocks): Change definition
5545 so that MIPS32, MIPS64 and later ISAs are included, along with
5546 the already-included machines. Update comments.
5547
c3ba240c
DJ
55482004-01-23 Daniel Jacobowitz <drow@mvista.com>
5549
5550 * config/tc-arm.c (tc_gen_reloc): Improve error message for
5551 undefined local labels.
5552
e864ceca
RS
55532004-01-23 Richard Sandiford <rsandifo@redhat.com>
5554
5555 * config/tc-mips.c (load_address, macro): Update comments about
5556 NewABI GP relaxation.
5557
67c0d1eb
RS
55582004-01-23 Richard Sandiford <rsandifo@redhat.com>
5559
5560 * config/tc-mips.c (macro_build): Remove place and counter arguments.
5561 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
5562 (mips16_macro_build, macro_build_jalr): Remove counter argument.
5563 (set_at, load_register, load_address, move_register): Likewise.
5564 (load_got_offset, add_got_offset): Likewise.
5565 Update all calls and tidy accordingly.
5566
584892a6
RS
55672004-01-23 Richard Sandiford <rsandifo@redhat.com>
5568
5569 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
5570 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
5571 (RELAX_USE_SECOND): Bump to 0x10000.
5572 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
5573 (mips_macro_warning): New variable.
5574 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
5575 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
5576 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
5577 of RELAX_ENCODE.
5578 (append_insn): Update mips_macro_warning.sizes.
5579 (macro_start, macro_warning, macro_end): New functions.
5580 (macro_build): Don't emit warnings here.
5581 (macro_build_lui, md_estimate_size_before_relax): ...or here.
5582 (md_convert_frag): Check for cases where one macro alternative
5583 needs a warning and the other doesn't. Emit a warning if the
5584 longer sequence was chosen.
5585
4d7206a2
RS
55862004-01-23 Richard Sandiford <rsandifo@redhat.com>
5587
5588 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
5589 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
5590 the first sequence, the size of the second sequence, and a flag
5591 that says whether we should warn.
5592 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
5593 (RELAX_FIRST, RELAX_SECOND): New.
5594 (mips_relax): New variable.
5595 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
5596 (append_insn): Remove "place" argument. Use mips_relax.sequence
5597 rather than "place" to check whether we're expanding the second
5598 alternative of a relaxable macro. Remove redundant check for
5599 branch relaxation. If generating a normal insn, and there
5600 is not enough room in the current frag, call relax_close_frag()
5601 to close it. Update mips_relax.sizes[]. Emit fixups for the
5602 second version of a relaxable macro. Record the first relaxable
5603 fixup in mips_relax. Remove tc_gen_reloc workaround.
5604 (macro_build): Remove all uses of "place". Use mips_relax.sequence
5605 in the same way as in append_insn.
5606 (mips16_macro_build): Remove "place" argument.
5607 (macro_build_lui): As for macro_build. Don't drop the add_symbol
5608 when generating the second version of a relaxable macro.
5609 (load_got_offset, add_got_offset): New functions.
5610 (load_address, macro): Use new relaxation machinery. Remove
5611 tc_gen_reloc workarounds.
5612 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
5613 version of a relaxable macro is needed. Return -RELAX_SECOND if the
5614 first version is needed.
5615 (tc_gen_reloc): Remove relaxation handling.
5616 (md_convert_frag): Go through the fixups for a relaxable macro and
5617 mark those that belong to the unneeded alternative as done. If the
5618 second alternative is needed, adjust the fixup addresses to account
5619 for the deleted first alternative.
5620
0530d30a
RS
56212004-01-23 Richard Sandiford <rsandifo@redhat.com>
5622
5623 * frags.h (frag_room): Declare.
5624 * frags.c (frag_room): New function.
5625 * doc/internals.texi: Document it.
5626
048cdf86
TS
56272004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5628
5629 * config/tc-mips.c (append_insn): Don't do r3900 interlock
5630 optimization for -mtune=r3900, as this will break on other CPUs.
5631
28d39d1a
NC
56322004-01-11 Tom Rix <tcrix@worldnet.att.net>
5633
5634 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
73369e65 5635 be relaxed, use fixup.
28d39d1a
NC
5636 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
5637
26664553
JJ
56382004-01-19 Jakub Jelinek <jakub@redhat.com>
5639
5640 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
5641 precision operands.
5642
895921c9
MR
56432004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5644
5645 * config/tc-mips.c (append_insn): Properly detect variant frags
5646 that preclude swapping of relaxed branches. Correctly swap
5647 instructions between frags when dealing with relaxed branches.
5648
f8b73030
MR
56492004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5650
5651 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
5652 throughout.
5653 * aclocal.m4: Regenerate.
5654 * configure: Regenerate.
5655
ca9a79a1 56562004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
73369e65 5657
ca9a79a1
NC
5658 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
5659 manipulation insns.
5660
cc3d92a5
RS
56612004-01-12 Richard Sandiford <rsandifo@redhat.com>
5662
5663 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
5664 reloc, reserve space for the delay slot as well as the jalr itself.
5665
e45d0630
PB
56662004-01-09 Paul Brook <paul@codesourcery.com>
5667
5668 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
5669 (do_vfp_sp2_from_reg2): New function.
5670 (insns): Use them.
5671 (do_vfp_dp_from_reg2): Check return values properly.
5672
81912461
ILT
56732004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
5674
78849248
ILT
5675 * config/tc-mips.c (warn_nops): Remove static variable.
5676 (macro): Remove test of warn_nops.
5677 (md_shortops): Remove 'n'.
5678 (md_parse_option): Remove 'n' case.
5679 (md_show_usage): Remove -n.
5680 * doc/as.texinfo (Overview): Remove MIPS -n option.
5681 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
5682 * NEWS: Mention removal of MIPS -n option.
5683
81912461
ILT
5684 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
5685 (cop_interlocks): Check ISA level.
5686 (cop_mem_interlocks): Define.
5687 (reg_needs_delay): Check cop_interlocks rather than
5688 ISA_HAS_COPROC_DELAYS.
5689 (append_insn): Likewise. Use cop_mem_interlocks rather than
5690 directly checking mips_opts.isa.
5691 (mips_emit_delays): Likewise.
5692
73f20958
L
56932004-01-07 H.J. Lu <hongjiu.lu@intel.com>
5694
5695 * config/tc-ia64.c (unwind): Move next_slot_number and
5696 next_slot_frag to ...
5697 (unw_rec_list): Here.
5698 (free_list_records): Removed.
5699 (output_unw_records): Likewise.
5700 (generate_unwind_image): Make it void.
5701 (alloc_record): Initialize next_slot_number and next_slot_frag.
5702 (slot_index): Take .org, .space and .align into account.
5703 (fixup_unw_records): Don't set slot_number to 0. Use
5704 list->next_slot_number and list->next_slot_frag instead of
5705 unwind.next_slot_number and unwind.next_slot_frag.
5706 (ia64_convert_frag): New.
5707 (generate_unwind_image): Generate a rs_machine_dependent frag
5708 for unwind record.
5709 (emit_one_bundle): Use list->next_slot_number and
5710 list->next_slot_frag instead of unwind.next_slot_number and
5711 unwind.next_slot_frag.
5712
5713 * config/tc-ia64.h (md_convert_frag): Defined as
5714 ia64_convert_frag.
5715 (md_estimate_size_before_relax): Defined as (f)->fr_var.
5716
99d09cdb
AO
57172004-01-06 Alexandre Oliva <aoliva@redhat.com>
5718
5719 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
5720 * config/tc-frv.h (md_apply_fix3): Don't define.
5721 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
5722 operands.
5723 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
5724 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
5725 * config/tc-frv.c (line_separator_chars): Add `!'.
5726 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
5727 * config/tc-frv.c (md_assemble): Clear insn upfront.
5728 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
5729 * config/tc-frv.c (OPTION_FDPIC): New macro.
5730 (md_longopts): Add mfdpic.
5731 (md_parse_option): Handle it.
5732 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
5733 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
5734 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
5735 (frv_pic_ptr): Parse funcdesc.
5736
4a4c4a1d
MR
57372004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5738
5739 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
5740 gasver.texi. Remove duplicate symbol definitions for texi2pod.
5741
2251dd89
MR
57422004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5743
5744 * Makefile.am (Makefile): Move the dependency on
5745 $(BFDDIR)/configure.in to...
5746 (CONFIG_STATUS_DEPENDENCIES): ... here.
5747 (AUTOMAKE_OPTIONS): Require automake 1.8.
5748 * Makefile.in: Regenerate.
5749 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
5750 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
5751 $(BFDDIR)/configure.in here as well.
5752 * doc/Makefile.in: Regenerate.
5753
c6581168
MR
57542004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5755
5756 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
5757 * Makefile.in: Regenerate.
5758 * aclocal.m4: Regenerate.
5759 * doc/Makefile.am (install, install-info): Remove.
5760 (install-data-local): A new hook for install-info.
5761 (AUTOMAKE_OPTIONS): Require automake 1.8.
5762 * doc/Makefile.in: Regenerate.
5763
303e7b79
NC
57642004-01-02 Nutan Singh <nutan@kpitcummins.com>
5765
5766 * doc/c-sh.texi: Update description about floating point behavior
5767 of SH family.
5768
b50c15dc
NC
57692004-01-02 Bernardo Innocenti <bernie@develer.com>
5770
5771 * configure.in: Add m68k-uClinux target.
5772 * configure: Regenerate.
7de9afa2 5773
c9e214e5 5774For older changes see ChangeLog-0203
08d56133
NC
5775\f
5776Local Variables:
5777mode: change-log
5778left-margin: 8
5779fill-column: 74
5780version-control: never
5781End:
This page took 0.525741 seconds and 4 git commands to generate.