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