2005-08-12 Dmitry Diky <diwil@spec.ru>
[binutils-gdb.git] / gas / ChangeLog
1 2005-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
18 2005-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
26 2005-08-11 Hans-Peter Nilsson <hp@axis.com>
27
28 * subsegs.c (subseg_change): Move declaration of seginfo to before
29 first statement.
30
31 2005-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.
165 * doc/internals.texi: Likewise.
166 * doc/Makefile.in: Regenerate.
167 * Makefile.in: Regenerate.
168 * configure: Regenerate.
169 * config.in: Regenerate.
170 * po/POTFILES.in: Regenerate.
171
172 2005-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
179 2005-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
184 2005-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
191 2005-08-07 H.J. Lu <hongjiu.lu@intel.com>
192
193 PR gas/1118
194 * as.c (parse_args): Handle -al=<FILE>.
195
196 2005-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
201 2005-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
209 2005-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
217 2005-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
222 2005-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
227 2005-07-29 Thiemo Seufer <ths@networkno.de>
228
229 * config/tc-mips.c (s_mips_globl): Allow multiple symbols per .globl.
230
231 2005-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
242 2005-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
251 2005-07-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
252
253 * config/tc-m32r.c (m32r_check_fixup): Fixed X_op check.
254
255 2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
256
257 * config/tc-i386.c (handle_large_common): Declare only for ELF.
258
259 2005-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
324 2005-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
330 2005-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
336 2005-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
360 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
361
362 * configure.tgt: Remove i386-*-rtemself*.
363 Remove sparc-*-rtemself*.
364
365 2005-07-21 Ben Elliston <bje@gnu.org>
366
367 * config/tc-m68k.h: Remove TE_LYNX conditional code.
368
369 2005-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
374 2005-07-20 Tavis Ormandy <taviso@gentoo.org>
375
376 * messages.c: Use vsnprintf instead of vsprintf.
377
378 2005-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
383 2005-07-18 Nick Clifton <nickc@redhat.com>
384
385 * configure.tgt: Restore alpha ordering to list of arches.
386
387 2005-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
391 2005-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
404 2005-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
426 2005-07-18 Jan Beulich <jbeulich@novell.com>
427
428 * config/tc-i386.c (parse_insn): Reject prefix if unavailable in
429 current mode.
430
431 2005-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
436 2005-07-16 Alan Modra <amodra@bigpond.net.au>
437
438 * Makefile.am: Run "make dep-am".
439 * Makefile.in: Regenerate.
440
441 2007-07-15 H.J. Lu <hongjiu.lu@intel.com>
442
443 * gas/config/tc-i386.h (CpuVMX): New.
444 (CpuUnknownFlags): Add CpuVMX.
445
446 2005-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
463 2005-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
469 2005-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
474 2005-07-10 H.J. Lu <hongjiu.lu@intel.com>
475
476 * config/tc-i386.c (optimize_disp): Optimize signed 32bit
477 displacements.
478
479 2005-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
497 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
498
499 PR gas/1049
500 * config/tc-cris.h (MD_APPLY_SYM_VALUE): Define.
501
502 2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
503
504 * config/tc-tic30.c (debug): Add format attribute. Fix format
505 bugs.
506
507 2005-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
516 2005-07-06 Jan Beulich <jbeulich@novell.com>
517
518 * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop.
519
520 2005-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
526 2005-07-05 Paul Brook <paul@codesourcery.com>
527
528 * config/tc-ppc.c (ppc_target_format): Add VxWorks.
529
530 2005-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
562 2005-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
574 2005-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
587 2005-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
593 2005-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
651 2005-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.
656 (do_branch): Always set inst.reloc.pc_rel.
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
670 2005-06-30 Ben Elliston <bje@gnu.org>
671
672 * Makefile.am (check-DEJAGNU): Don't search for expect.
673 * Makefile.in: Regenerate.
674
675 2005-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
681 2005-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
687 2005-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
696 2005-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
719 2005-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
729 2005-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
734 2005-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
740 2005-06-08 Tomas Hurka <tom@hukatronic.cz>
741
742 PR 991
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
750 2005-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
755 2005-06-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
756
757 * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
758
759 2005-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
769 2005-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
776 2005-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
811 2005-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
817 2005-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
822 2005-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
827 2005-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
833 2005-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
840 2005-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
849 2005-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
855 2005-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
866 2005-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
879 2005-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
885 2005-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
890 2005-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
895 2005-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
900 2005-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
905 2005-05-25 Jan Beulich <jbeulich@novell.com>
906
907 * config/tc-ia64.c (dot_radix): Rewrite.
908
909 2005-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
917 2005-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
922 2005-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
927 2005-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
932 2005-05-19 Zack Weinberg <zack@codesourcery.com>
933
934 * Makefile.am: Have 'all' depend on 'info'.
935 * Makefile.in: Regenerate.
936
937 2005-05-19 Alan Modra <amodra@bigpond.net.au>
938
939 * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
940
941 2005-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
948 2005-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
953 2005-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
959 2005-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
974 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
975
976 * doc/Makefile.am (gasver.texi): Don't use $<.
977 * doc/Makefile.in: Regenerated.
978
979 2005-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
987 2005-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
1005 2005-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
1015 2005-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
1021 2005-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
1029 2005-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
1034 2005-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
1040 2005-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
1048 2005-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
1058 2005-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
1063 2005-05-09 Jan Beulich <jbeulich@novell.com>
1064
1065 * config/tc-i386.c (optimize_disp): Discard displacement entirely
1066 when zero and not required by encoding constraints.
1067
1068 2005-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
1081 2005-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
1086 2005-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
1093 2005-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
1098 2005-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
1104 2005-05-06 Bob Wilson <bob.wilson@acm.org>
1105
1106 * doc/c-xtensa.texi (Literal Directive): Spelling correction.
1107
1108 2005-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
1116 2005-05-06 Nick Clifton <nickc@redhat.com>
1117
1118 * sb.h: Fix formatting of comments.
1119 * sb.c: Fix formatting of comments.
1120
1121 2005-05-06 Jan Beulich <jbeulich@novell.com>
1122
1123 * sb.h (sb_add_buffer): Reintroduce.
1124 * sb.c (sb_add_buffer): Likewise.
1125
1126 2005-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
1147 2005-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
1154 2005-05-05 Steve Ellcey <sje@cup.hp.com>
1155
1156 * config/tc-ia64.c (MIN): Undef.
1157
1158 2005-05-05 Paul Brook <paul@codesourcery.com>
1159
1160 * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS.
1161
1162 2005-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
1167 2005-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,
1232 config/xtensa-relax.h, doc/fdl.texi
1233
1234 2005-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
1239 2005-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
1252 2005-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
1263 2005-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
1268 2005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1269
1270 * doc/Makefile.am (gasver.texi): Correct quoting.
1271 * doc/Makefile.in: Regenerated.
1272
1273 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1274
1275 * configure.tgt: Add h8300*-*-rtemscoff.
1276 Switch h8300*-*-rtems* to elf.
1277
1278 2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
1279
1280 * hash.c: Undo the last change.
1281 * hash.h: Likewise.
1282
1283 2005-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
1291 2005-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
1343 2005-04-27 Ben Elliston <bje@au.ibm.com>
1344
1345 * link.cmd: Remove.
1346
1347 2005-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
1359 2005-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
1384 2005-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
1389 2005-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
1398 2005-04-21 Christian Groessler <chris@groessler.org>
1399
1400 * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
1401 array.
1402
1403 2005-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
1423 2005-04-20 Nick Clifton <nickc@redhat.com>
1424
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
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
1433 2005-04-20 Andreas Schwab <schwab@suse.de>
1434
1435 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
1436
1437 2005-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
1444 2005-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
1469 2005-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
1474 2005-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
1481 2005-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
1487 2005-04-18 Mark Kettenis <kettenis@gnu.org>
1488
1489 * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
1490
1491 2005-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
1501 2005-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
1510 2005-04-15 Maciej W. Rozycki <macro@linux-mips.org>
1511
1512 * config/tc-mips.c (normalize_constant_expr): Fix formatting.
1513
1514 2005-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
1519 2005-04-14 Bob Wilson <bob.wilson@acm.org>
1520 Sterling Augustine <sterling@tensilica.com>
1521
1522 * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
1523 than the section alignment.
1524
1525 2005-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
1537 2005-04-14 Mark Kettenis <kettenis@gnu.org>
1538
1539 * configure.tgt: Add support for OpenBSD/sparc ELF.
1540
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
1546 2005-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
1551 2005-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.
1557 * hash.h (set_gas_hash_table_size): Update the prototype.
1558
1559 2005-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
1568 2005-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
1581 2005-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
1586 2005-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
1607 2005-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
1613 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1614
1615 * Makefile.am: Run "make dep-am".
1616 * Makefile.in: Regenerate.
1617
1618 2005-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
1623 2005-04-11 Mark Kettenis <kettenis@gnu.org>
1624
1625 * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
1626
1627 2005-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
1643 2005-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
1648 2005-04-10 Eric Christopher <echristo@redhat.com>
1649
1650 * symbols.c (symbol_X_add_number): Fix warning.
1651
1652 2005-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
1657 2005-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
1661 2005-04-09 Alan Modra <amodra@bigpond.net.au>
1662
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
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
1684 2005-04-08 Bob Wilson <bob.wilson@acm.org>
1685
1686 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
1687 SEC_MERGE sections.
1688
1689 2005-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
1694 2005-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
1700 2005-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
1708 2005-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
1727 2005-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
1733 2005-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
1740 2005-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
1745 2005-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
1751 2005-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
1759 2005-04-01 Jan Beulich <jbeulich@novell.com>
1760
1761 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
1762
1763 2005-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
1768 2005-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
1773 2005-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
1780 2005-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
1787 2005-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
1796 2005-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.
1809
1810 2005-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
1823 2005-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
1841 2005-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
1846 2005-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
1860 2005-03-25 Hans-Peter Nilsson <hp@bitrange.com>
1861
1862 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
1863
1864 2005-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
1873 2005-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.
1930 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
1931
1932 2005-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
1937 2005-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
1945 2005-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
1952 2005-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
1959 2005-03-21 Bob Wilson <bob.wilson@acm.org>
1960
1961 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
1962
1963 2005-03-21 Nick Clifton <nickc@redhat.com>
1964
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
1968 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
1969 previous delta.
1970
1971 2005-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
1978 2005-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
1987 2005-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
1998 2005-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
2003 2005-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
2019 2005-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
2055 2005-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
2063 2005-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
2068 2005-03-16 Nick Clifton <nickc@redhat.com>
2069 Ben Elliston <bje@au.ibm.com>
2070
2071 * configure.in (werror): New switch: Add -Werror to the
2072 compiler command line. Enabled by default. Disable via
2073 --disable-werror.
2074 * configure: Regenerate.
2075
2076 2005-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
2081 2005-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
2091 2005-03-15 Nick Clifton <nickc@redhat.com>
2092
2093 * NEWS: Add cutoff for changes in 2.16 release.
2094
2095 2005-03-15 Jan Beulich <jbeulich@novell.com>
2096
2097 * expr.c (operand): Merge handling of unary + into that for unary
2098 -, !, and ~.
2099
2100 2005-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
2111 2005-03-15 Alan Modra <amodra@bigpond.net.au>
2112
2113 * po/es.po: Commit new Spanish translation.
2114
2115 2005-03-14 Alan Modra <amodra@bigpond.net.au>
2116
2117 * po/tr.po: Commit new Turkish translation.
2118
2119 2005-03-12 Zack Weinberg <zack@codesourcery.com>
2120
2121 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
2122 wfi, yield.
2123
2124 2005-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
2132 2005-03-10 Sterling Augustine <sterling@tensilica.com>
2133 Bob Wilson <bob.wilson@acm.org>
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
2139 2005-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
2145 2005-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
2150 2005-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
2164 2005-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
2169 2005-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
2186 2005-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
2191 2005-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
2208 2005-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
2213 2005-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
2230 2005-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
2238 2005-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
2244 2005-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
2250 2005-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
2265 2005-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
2270 2005-03-08 Jan Beulich <jbeulich@novell.com>
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
2277 2005-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
2284 2005-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
2295 2005-03-05 Alan Modra <amodra@bigpond.net.au>
2296
2297 * po/gas.pot: Regenerate.
2298
2299 2005-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
2307 2005-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
2332 2005-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
2340 2005-03-03 Nick Clifton <nickc@redhat.com>
2341
2342 * expr.c (operand): Remove redundant code enclosed by #ifdef
2343 RELAX_PAREN_GROUPING....#endif.
2344
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
2349 * config/tc-iq2000.c (line_comment_chars): Include the # character
2350 as otherwise this breaks #APP/#NO_APP processing.
2351
2352 2005-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
2357 2005-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
2367 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2368
2369 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
2370
2371 2005-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
2376 2005-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
2382 2005-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
2387 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2388
2389 * symbols.c (fb_label_name): Fix silly thinko in last change.
2390
2391 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2392
2393 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
2394 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
2395
2396 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
2397
2398 2005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2399
2400 PR gas/708
2401 * config/tc-arc.c (md_assemble): Initialize suffix for extension
2402 suffixes also.
2403
2404 2005-03-01 Alan Modra <amodra@bigpond.net.au>
2405
2406 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
2407
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
2418 2005-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.
2443 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
2444
2445 2005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2446
2447 * doc/c-arc.texi: Update documentation about ARC's extension
2448 instructions.
2449
2450 2005-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
2455 2005-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
2490 2005-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
2495 2005-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
2502 2005-02-22 Alan Modra <amodra@bigpond.net.au>
2503
2504 * read.c: Warning fixes.
2505 * config/obj-elf.c: Likewise.
2506
2507 2005-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
2512 2005-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
2523 2005-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
2531 2005-02-21 Alan Modra <amodra@bigpond.net.au>
2532
2533 * input-file.c (input_file_open): Rearrange to avoid warning.
2534
2535 2005-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
2541 2005-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
2549 2005-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
2554 2005-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
2560 2005-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
2574 2005-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
2615 2005-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
2622 2005-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
2630 2005-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
2635 2005-02-15 Nigel Stephens <nigel@mips.com>
2636 Maciej W. Rozycki <macro@mips.com>
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
2654 2005-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
2660 2005-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
2673 2005-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
2679 2005-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
2690 2005-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
2696 2005-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
2701 2005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2702
2703 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
2704 within |.
2705
2706 2005-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
2717 2005-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
2732 2005-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
2740 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2741
2742 * config/tc-ia64.c (dot_xdata): Undo the last change.
2743 (dot_float_cons): Likewise.
2744 (dot_xstringer): Likewise.
2745 (dot_xdata_ua): Likewise.
2746 (dot_float_cons_ua): Likewise.
2747
2748 2005-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
2772 2005-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
2782 2005-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
2789 2005-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
2800 2005-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
2807 2005-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.
2817
2818 2005-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
2823 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
2824
2825 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
2826 relative jump calculation.
2827 <md_convert_frag) : Likewise.
2828 <output_disp): Likewise.
2829
2830 2005-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
2835 2005-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
2841 2005-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
2858 2005-01-31 Nick Clifton <nickc@redhat.com>
2859
2860 * as.c (parse_args): Bump copyright date reported by --version to
2861 2005.
2862
2863 2005-01-31 Nick Clifton <nickc@redhat.com>
2864
2865 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
2866 and vax-vms.
2867
2868 2005-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
2877 2005-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
2889 2005-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
2898 2005-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
2925 2005-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
2936 2005-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
2941 2005-01-28 Christian Groessler <chris@groessler.org>
2942
2943 * config/tc-z8k.c (md_assemble): Improve error detection.
2944
2945 2005-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
2952 2005-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
2959 2005-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
2966 2005-01-27 Andrew Cagney <cagney@gnu.org>
2967
2968 * configure: Regenerate to track ../gettext.m4 change.
2969
2970 2005-01-27 Jan Beulich <jbeulich@novell.com>
2971
2972 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
2973
2974 2005-01-27 Jan Beulich <jbeulich@novell.com>
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
2981 2005-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
2994 2005-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
3009 2005-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
3016 2005-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
3022 2005-01-19 Fred Fish <fnf@specifixinc.com>
3023
3024 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
3025
3026 2005-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
3037 2005-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
3043 2005-01-14 H.J. Lu <hongjiu.lu@intel.com>
3044
3045 PR 659
3046 * config/tc-i386.c (i386_scale): Disallow 0 scale.
3047
3048 2005-01-12 Nick Clifton <nickc@redhat.com>
3049
3050 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
3051 ignored_arguments array.
3052
3053 2005-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
3058 2005-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
3065 2005-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
3072 2005-01-06 Paul Brook <paul@codesourcery.com>
3073
3074 * configure.tgt: Set em=vxworks for *-*-vxworks.
3075 * config/te-vxworks.h: New File.
3076
3077 2005-01-06 Paul Brook <paul@codesourcery.com>
3078
3079 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
3080
3081 2005-01-04 Dmitry Diky <diwil@spec.ru>
3082
3083 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
3084 global label.
3085
3086 2005-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
3095 2004-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
3101 2004-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
3105 2004-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
3110 2004-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
3119 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
3120
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
3129 2004-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
3137 2004-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
3143 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
3144
3145 * configure.in: Add s390x-ibm-tpf support.
3146 * configure: Regenerate.
3147
3148 2004-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
3154 2004-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
3159 2004-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
3165 2004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
3166
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
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
3180 2004-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
3185 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
3186
3187 * config/tc-mips.c (append_insn): If we emit a nop during a relax
3188 sequence, increase the size of the sequence.
3189
3190 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
3191 use CPU_RM9000.
3192
3193 2004-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
3198 2004-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.
3207 * doc/Makefile.in: Regenerated.
3208
3209 2004-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
3214 2004-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
3219 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
3220
3221 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
3222 * Makefile.in: Regenerate.
3223
3224 2004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
3225
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
3229 with range checking.
3230 (assemble_insn): Update Algorithm, improve error issuing.
3231 (enum op_err): New.
3232 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
3233 handling.
3234
3235 2004-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
3241 2004-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
3246 2004-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
3254 2004-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
3260 2004-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
3265 2004-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
3281 2004-11-22 Bob Wilson <bob.wilson@acm.org>
3282
3283 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
3284
3285 2004-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
3290 2004-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
3297 2004-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
3302 2004-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
3307 2004-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
3315 2004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
3316
3317 * configure.in: Enable bfd_assember for the MAXQ port.
3318 * configure: Regenerate.
3319
3320 2004-11-12 Bob Wilson <bob.wilson@acm.org>
3321 Sterling Augustine <sterling@tensilica.com>
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
3328 2004-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
3333 2004-11-11 Bob Wilson <bob.wilson@acm.org>
3334
3335 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
3336
3337 2004-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
3344 2004-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
3358 2004-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
3366 2004-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
3371 2004-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
3381 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3382
3383 * symbols.c (any_external_name): Define.
3384 (resolve_symbol_value): Convert weak symbols.
3385 (S_SET_EXTERNAL): Support any_external_name.
3386 (S_SET_NAME): Qualify parameter const.
3387 (symbol_equated_reloc_p): Equate to weaks when relocating.
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
3405 2004-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
3411 2004-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
3427 2004-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
3441 2004-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
3451 2004-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.
3491 (cris_relax_frag): Handle new states.
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
3546 2004-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
3574 2004-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
3588 2004-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
3594 2004-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
3599 2004-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.
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]).
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.
3610 (getreg_image): Remove redundant code, update according to latest
3611 CRX spec.
3612 (print_constant): Bug fix relate to 3-word instructions.
3613 (assemble_insn): Bug fix, when matching instructions, verify also
3614 instruction type (not only mnemonic).
3615 Add various error checking.
3616 (preprocess_reglist): Support HI/LO and user registers.
3617
3618 2004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
3619
3620 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
3621 in an epilogue directive go negative.
3622
3623 2004-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
3630 2004-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
3646 2004-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
3652 2004-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
3659 2004-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
3664 2004-10-15 Alan Modra <amodra@bigpond.net.au>
3665
3666 * Makefile.am: Run "make dep-am"
3667 * Makefile.in: Regenerate.
3668
3669 2004-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
3677 2004-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
3716 2004-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
3724 2004-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
3732 2004-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
3738 2004-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
3745 2004-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
3751 2004-10-07 Bob Wilson <bob.wilson@acm.org>
3752 Sterling Augustine <sterling@tensilica.com>
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.
3763 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
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
3812 [no-]transform.
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
4182 2004-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
4193 2004-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
4198 2004-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
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
4206 2004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
4207
4208 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
4209 Special registers.
4210 (md_assemble): Add error checking for Co-Processor instructions.
4211 (get_cinv_parameters): Add 'b' option to invalidate the
4212 branch-target cache.
4213
4214 2004-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.
4232 * doc/c-arm.texi: Document unwinding opcodes.
4233 * NEWS: Mention the new feature.
4234
4235 2004-10-04 Eric Christopher <echristo@redhat.com>
4236
4237 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
4238
4239 2004-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
4246 2004-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
4253 2004-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
4258 2004-10-01 Adam Nemet <anemet@lnxw.com>
4259
4260 * (TARGET_FORMAT): Remove LynxOS COFF definition.
4261
4262 2004-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
4267 2004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
4268
4269 * config/tc-m68k.c (select_control_regs): Add mcf5249.
4270
4271 2004-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
4281 2004-09-30 Nick Clifton <nickc@redhat.com>
4282
4283 * config/tc-arm.c: Use ISO C90 formatting.
4284
4285 2004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
4286
4287 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
4288 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
4289 REG_TYPE_MVDX is expected.
4290
4291 2004-09-29 Marc Bevand <m.bevand@gmail.com>
4292
4293 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
4294
4295 2004-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
4304 2004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
4305
4306 * config/tc-crx.c (handle_LoadStor): New function.
4307 Handle load/stor unique instructions before parsing.
4308
4309 2004-09-17 Paul Brook <paul@codesourcery.com>
4310
4311 * config/tc-arm.c (s_arm_rel31): New funciton.
4312 (md_pseudo_table): Add .rel31.
4313 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
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
4319 2004-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
4329 2004-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
4334 2004-09-13 Paul Brook <paul@codesourcery.com>
4335
4336 * config/tc-arm.c: Rename RELABS to TARGET1.
4337
4338 2004-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
4343 2004-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
4348 2004-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
4353 2004-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
4361 2004-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
4371 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
4372
4373 * config/tc-crx.c (gettrap): Exception vector can be case
4374 insensitive.
4375 (process_label_constant): Fix a 32-bit displacement bug in branch
4376 instructions.
4377 (get_operandtype) : Bug fix, wrong operand was used.
4378 (process_label_constant): Initialize relocation type to
4379 BFD_RELOC_NONE
4380
4381 2004-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
4386 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
4387
4388 2004-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
4405 2004-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
4411 2004-08-18 Mark Mitchell <mark@codesourcery.com>
4412
4413 * configure.in (arm*-*-symbianelf*): New target.
4414 (arm*-*-eabi*): Likewise.
4415 * configure: Regenerated.
4416
4417 2004-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
4421 2004-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
4430 2004-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.
4441
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
4451 2004-08-16 Nick Clifton <nickc@redhat.com>
4452
4453 * macro.c (macro_set_alternate): Use ISO C90 formatting.
4454
4455 * configure.in: Sort architecture based tables alphabetically.
4456 * configure: Regenerate.
4457
4458 2004-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
4463 2004-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
4475 2004-08-10 Mark Mitchell <mark@codesourcery.com>
4476
4477 * expr.c (operand): Handle the "~", "-", and "!" operators applied
4478 to bignums.
4479
4480 2004-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
4486 2004-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
4491 2004-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
4516 2004-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
4521 2004-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
4526 2004-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
4532 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
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
4539 2004-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
4545 2004-07-25 Daniel Jacobowitz <dan@debian.org>
4546
4547 * doc/as.texinfo (Section, PushSection): Correct documentation
4548 for ELF.
4549
4550 2004-07-21 Jan Beulich <jbeulich@novell.com>
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
4568 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
4569 suffix if the instruction doesn't support it.
4570
4571 2004-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
4582 2004-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
4591 2004-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
4597 2004-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
4606 2004-07-15 Nick Clifton <nickc@redhat.com>
4607
4608 * configure.in: Accept armbe as a big-endian arm configuration.
4609 * configure: Regenerate.
4610
4611 2004-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
4618 2004-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
4626 2004-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.
4632
4633 2004-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.
4638
4639 2004-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
4647 2004-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
4654 2004-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
4669 2004-07-06 Nick Clifton <nickc@redhat.com>
4670
4671 * config.in: Undefine TARGET_SYMBIAN by default.
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.
4677
4678 * output-file.c (output_file_create): Report the target format
4679 chosen when bfd_openw reports that it is invalid.
4680
4681 * config/obj-coff.c (coff_pseudo_table): Only define the weak
4682 pseudo for BFD based assemblers.
4683
4684 2004-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
4692 2004-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
4697 2004-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
4703 2004-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
4711 2004-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
4718 2004-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
4725 2004-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
4731 2004-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
4746 2004-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
4751 2004-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
4756 2004-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
4768 2004-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
4773 2004-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
4782 2004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4783
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
4789 Bug gas/213
4790 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
4791 labels. Fix warning.
4792
4793 2004-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
4799 2004-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
4804 2004-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().
4819
4820 2004-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
4825 2004-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
4834 2004-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
4840 2004-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
4849 2004-05-23 Alan Modra <amodra@bigpond.net.au>
4850
4851 * expr.c (operand, operator): Don't reject '++' and '--'.
4852
4853 2004-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
4858 2004-05-17 Adam Nemet <anemet@lnxw.com>
4859
4860 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
4861 * configure: Regenerate.
4862
4863 2004-05-13 Paul Brook <paul@codesourcery.com>
4864
4865 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
4866
4867 2004-05-13 Joel Sherrill <joel@oarcorp.com>
4868
4869 * configure.in (or32-*-rtems*): Switch to elf.
4870 * configure: Regenerate.
4871
4872 2004-05-13 Nick Clifton <nickc@redhat.com>
4873
4874 * po/fr.po: Updated French translation.
4875
4876 2004-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
4882 2004-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
4888 2004-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
4893 2004-05-07 Brian Ford <ford@vss.fsi.com>
4894
4895 * NEWS: Mention .secrel32 for pe[i]-i386.
4896
4897 2004-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
4902 2004-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
4909 2004-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
4916 2004-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
4934 2004-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
4949 2004-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
4959 2004-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
4966 2004-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
4975 2004-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
4980 2004-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
4986 2004-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
4992 2004-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
5001 2004-04-29 Brian Ford <ford@vss.fsi.com>
5002
5003 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
5004
5005 2004-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
5020 2004-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
5035 2004-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
5040 2004-04-23 Chris Demetriou <cgd@broadcom.com>
5041
5042 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
5043
5044 2004-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
5048 2004-04-23 Chris Demetriou <cgd@broadcom.com>
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
5061 2004-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
5070 2004-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
5074 2004-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
5080 2004-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
5085 2004-04-22 Paul Brook <paul@codesourcery.com>
5086
5087 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
5088
5089 2004-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
5100 architectures in archs[].
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
5109 2004-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
5124 2004-04-22 Nick Clifton <nickc@redhat.com>
5125
5126 * config/tc-arm.h: Formatting tidy ups.
5127
5128 2004-04-20 Chris Demetriou <cgd@broadcom.com>
5129
5130 * NEWS: Note that MIPS -membedded-pic option is deprecated.
5131
5132 2004-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
5141 2004-04-19 Eric Christopher <echristo@redhat.com>
5142
5143 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
5144 of previous patch for fix in gcc.
5145
5146 2004-04-19 Jakub Jelinek <jakub@redhat.com>
5147
5148 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
5149
5150 2004-04-19 Nathan Sidwell <nathan@codesourcery.com>
5151
5152 * read.c (do_align): Call md_flush_pending_output, if defined.
5153
5154 2004-04-16 Alan Modra <amodra@bigpond.net.au>
5155
5156 * expr.c (operand): Correct checks for ++ and --.
5157
5158 2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
5159
5160 * config/tc-generic.c: Add some comments.
5161
5162 2004-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
5173 2004-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
5179 2004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5180
5181 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
5182 in parallel.
5183
5184 2004-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
5191 2004-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
5198 2004-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
5208 2004-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
5218 2004-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
5225 2004-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
5230 2004-03-27 Alan Modra <amodra@bigpond.net.au>
5231
5232 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
5233
5234 2004-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.
5241 * doc/as.texinfo <ARM>: Document -meabi.
5242 * doc/c-arm.texi: Ditto.
5243
5244 2004-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
5249 2004-03-22 Alan Modra <amodra@bigpond.net.au>
5250
5251 * config/tc-sh.c: Remove trailing whitespace.
5252
5253 2004-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
5275 2004-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
5282 2004-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
5287 2004-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
5295 2004-03-18 Nathan Sidwell <nathan@codesourcery.com>
5296
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
5311 * expr.c (operand): Reject ++ and --.
5312 (operator): Likewise.
5313
5314 2004-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
5328 2004-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
5333 2004-03-12 Bob Wilson <bob.wilson@acm.org>
5334
5335 * read.c (s_leb128): Call md_flush_pending_output.
5336
5337 2004-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
5343 2004-03-07 Andreas Schwab <schwab@suse.de>
5344
5345 * doc/c-hppa.texi (HPPA Directives): Fix typo.
5346
5347 2004-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
5352 2004-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
5358 2004-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
5365 2004-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
5376 2003-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
5385 2004-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
5396 2004-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
5405 2004-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
5414 2004-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
5420 2004-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
5425 2004-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
5430 2004-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
5435 2004-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
5440 2004-02-25 Fred Fish <fnf@redhat.com>
5441
5442 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
5443
5444 2004-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
5455 2004-02-19 Jakub Jelinek <jakub@redhat.com>
5456
5457 * stabs.c (generate_asm_file): Avoid warning about use of
5458 uninitialized variable.
5459
5460 2004-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
5466 2004-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
5472 2004-02-13 Hannes Reinecke <hare@suse.de>
5473 Jakub Jelinek <jakub@redhat.com>
5474
5475 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
5476
5477 2004-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
5483 2004-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
5488 2004-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
5495 2004-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
5500 2004-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
5507 2004-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
5518 2004-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
5525 2004-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
5531 2004-01-28 H.J. Lu <hongjiu.lu@intel.com>
5532
5533 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
5534
5535 2004-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
5542 2004-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
5548 2004-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
5553 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5554
5555 * config/tc-mips.c (load_address, macro): Update comments about
5556 NewABI GP relaxation.
5557
5558 2004-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
5567 2004-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
5586 2004-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
5621 2004-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
5627 2004-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
5632 2004-01-11 Tom Rix <tcrix@worldnet.att.net>
5633
5634 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
5635 be relaxed, use fixup.
5636 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
5637
5638 2004-01-19 Jakub Jelinek <jakub@redhat.com>
5639
5640 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
5641 precision operands.
5642
5643 2004-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
5649 2004-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
5656 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
5657
5658 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
5659 manipulation insns.
5660
5661 2004-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
5666 2004-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
5673 2004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
5674
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
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
5693 2004-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
5717 2004-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
5737 2004-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
5742 2004-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
5754 2004-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
5764 2004-01-02 Nutan Singh <nutan@kpitcummins.com>
5765
5766 * doc/c-sh.texi: Update description about floating point behavior
5767 of SH family.
5768
5769 2004-01-02 Bernardo Innocenti <bernie@develer.com>
5770
5771 * configure.in: Add m68k-uClinux target.
5772 * configure: Regenerate.
5773
5774 For older changes see ChangeLog-0203
5775 \f
5776 Local Variables:
5777 mode: change-log
5778 left-margin: 8
5779 fill-column: 74
5780 version-control: never
5781 End: