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