]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/ChangeLog
* ld-sparc/tlssunnopic32.rd: Adjust for .dynsym changes.
[thirdparty/binutils-gdb.git] / gas / ChangeLog
CommitLineData
07450571
L
12005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2
3 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
4 and 0 for error.
5 (in_procedure): Return -1 for warning.
6 (in_prologue): Likewise.
7 (in_body): Likewise.
8
01b91374
L
92005-02-11 H.J. Lu <hongjiu.lu@intel.com>
10
11 (dot_xdata): Undo the last change. Section name is used by
12 set_section.
13 (dot_float_cons): Likewise.
14 (dot_xstringer): Likewise.
15 (dot_xdata_ua): Likewise.
16 (dot_float_cons_ua): Likewise.
17
970d6792
L
182005-02-11 H.J. Lu <hongjiu.lu@intel.com>
19
20 * NEWS: Mention "-munwind-check=[warning|error]".
21
22 * config/tc-ia64.c (md): Add unwind_check.
23 (unwind_diagnostic): New.
24 (in_procedure): Call unwind_diagnostic when a directive isn't
25 in procedure.
26 (in_prologue): Call unwind_diagnostic when a directive isn't in
27 prologue.
28 (in_body): Call unwind_diagnostic when a directive isn't in
29 body region.
30 (dot_endp): Set md.unwind_check to error before calling
31 in_procedure and restore it after. When the name is missing or
32 couldn't be found, use the one from the last .proc if
33 md.unwind_check isn't error. Warn if md.unwind_check is
34 warning.
35 (md_parse_option): Handle "-munwind-check=[warning|error]".
36 (md_show_usage): Add "-munwind-check=[warning|error]".
37 (ia64_init): Set md.unwind_check to warning.
38
39 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
40 * doc/c-ia64.texi: Likewise.
41
16a48f83
JB
422005-02-11 Jan Beulich <jbeulich@novell.com>
43
44 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
45 (LEX_QM): Likewise.
46 (ia64_parse_name): New third parameter.
47 (md_parse_name): Pass third argument.
48 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
49 (md_operand): Handling of '@'-prefixed symbols moved from here...
50 (ia64_parse_name): ...to here.
51
a911c10a
JB
522005-02-11 Jan Beulich <jbeulich@novell.com>
53
54 * config/tc-ia64.c (md): Remove last_groups and group_idx.
55 (errata_nop_necessary_p): Remove declaraction and definition.
56 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
57 update md.group_idx. Don't reset md.last_groups.
58
b3f19c14
JB
592005-02-11 Jan Beulich <jbeulich@novell.com>
60
61 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
62 argument.
63 (dot_xdata): Free section name after use.
64 (dot_float_cons): Likewise.
65 (dot_xstringer): Likewise.
66 (dot_xdata_ua): Likewise.
67 (dot_float_cons_ua): Likewise.
68 (md_pseudo_table): Add xdata16 and xdata16.ua.
69
5cb53c21
L
702005-02-10 H.J. Lu <hongjiu.lu@intel.com>
71
72 * doc/all.texi: Add IA64.
73 * doc/as.texinfo: Likewise.
74
75 * doc/c-ia64.texi: Fix typos.
76
620b81c1
JB
772005-02-10 Julian Brown <julian@codesourcery.com>
78
79 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
80 BFD_RELOC_UNUSED.
81 (do_t_push_pop): Likewise.
82 (md_assemble): Likewise.
83 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
84 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
85 (create_unwind_entry): Output dependency on the required personality
86 routines.
87 testsuite/gas/arm/unwind.d: Alter expected output to include
88 dependency on __aeabi_unwind_cpp_pr[01].
89
4ee4d249
NS
902005-02-07 Nathan Sidwell <nathan@codesourcery.com>
91
92 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
93 * subsegs.c (seg_not_empty_p): Likewise.
94
9f5083a4
NC
952005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
96
97 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
98 relative jump calculation.
99 <md_convert_frag) : Likewise.
100 <output_disp): Likewise.
101
aaac53f5
HPN
1022005-02-07 Hans-Peter Nilsson <hp@axis.com>
103
104 * write.c (write_object_file): Recognize warning-symbol construct
105 and skip object- and target- handling for the second symbol.
106
05ee4b0f
JB
1072005-02-02 Jan Beulich <jbeulich@novell.com>
108
109 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
110 designators along with quoted ones. Free copy of quoted designator
111 when done.
112
65ec77d2
BE
1132005-02-01 Ben Elliston <bje@au.ibm.com>
114
115 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
116 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
117 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
118 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
119 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
120 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
121 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
122 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
123 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
124 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
125 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
126 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
127 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
128 #if 0'd code throughout.
129
d342277e
NC
1302005-01-31 Nick Clifton <nickc@redhat.com>
131
132 * as.c (parse_args): Bump copyright date reported by --version to
133 2005.
134
d6486796
NC
1352005-01-31 Nick Clifton <nickc@redhat.com>
136
137 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
138 and vax-vms.
139
ca3bc58f
JB
1402005-01-31 Jan Beulich <jbeulich@novell.com>
141
142 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
143 that can end with .endr in that case. Make requiring/permitting
144 pseudo-ops without leading dot closer to the logic in read.c serving
145 the same purpose.
146 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
147 ignored.
148
057f53c1
JB
1492005-01-31 Jan Beulich <jbeulich@novell.com>
150
151 * macro.c (do_formals): Adjust to no longer accept empty parameter
152 names.
153 (define_macro): Adjust to no longer accept empty macro name, garbage
154 following the parameters, or macros that were previously defined.
155 * read.c (s_bad_end): Declare.
156 (potable): Add endm. Handler for endr and endm is s_bad_end.
157 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
158 and .endr.
159 * read.h (s_bad_endr): Remove.
160
d3156ecc
JB
1612005-01-31 Jan Beulich <jbeulich@novell.com>
162
163 * config/tc-ia64.c (parse_operands): Parse all specified operands,
164 immediately discarding (but counting) those exceeding the maximum
165 possible amount. Track whether output and input operand counts ever
166 matched, and use this to better indicate which of the operands/
167 operand types was wrong; specifically don't default to pointing to
168 the first operand.
169
75e09913
JB
1702005-01-31 Jan Beulich <jbeulich@novell.com>
171
172 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
173 variable in dot_endp). Add body and insn. Make prologue,
174 prologue_mask, body, and insn bitfields.
175 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
176 messages.
177 (in_procedure, in_prologue, in_body): New.
178 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
179 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
180 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
181 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
182 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
183 dot_personality): Use the appropriate one of the above.
184 (dot_proc): Clear unwind.proc_start; set to current location only if
185 none of the entry points were valid. Check for non-zero-length entry
186 point names. Check that entry points aren't defined, yet. Clear
187 unwind.prologue, unwind.body, and unwind.insn.
188 (dot_body): Call in_procedure. Check that first directive in procedure
189 had no insns emitted before. Set unwind.body.
190 (dot_prologue): Call in_procedure. Check that not already in prologue.
191 Check that first directive in procedure had no insns emitted before.
192 Clear unwind.body.
193 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
194 length entry point names. Check that entry points became defined.
195 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
196
f4660e2c
JB
1972005-01-31 Jan Beulich <jbeulich@novell.com>
198
199 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
200 before actually using it. Don't generate an error in manual bundling
201 mode when looking at an insn requiring slot 2 but not yet at slot 2.
202 Don't generate an error in manual bundling mode when looking at an
203 insn required to be last in its group but the required slot hasn't
204 been reached, yet. Allow conversion from MII to MI;I for bundle
205 consisting of only 2 insns with the stop between them. Suppress
206 various meaningless errors resulting from detecting earlier ones.
207
60b9a617
JB
2082005-01-31 Jan Beulich <jbeulich@novell.com>
209
210 * config/tc-ia64.c (parse_operands): Also handle alloc without first
211 input being ar.pfs.
212
7af0dfc7
CG
2132005-01-28 Christian Groessler <chris@groessler.org>
214
215 * config/tc-z8k.c (md_assemble): Improve error detection.
216
f7e323d5
JB
2172005-01-28 Jan Beulich <jbeulich@novell.com>
218
219 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
220 for personality routine pointer only if there is one.
221 (ia64_convert_frag): Likewise.
222 (generate_unwind_image): Likewise.
223
f87a1e0c
CG
2242005-01-27 Christian Groessler <chris@groessler.org>
225
226 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
227 (md_apply_fix3): Make relative branches out of range an error
228 instead of a warning. Display correct line number for out of
229 range branches/calls/memory accesses.
230
c6cb92c5
NS
2312005-01-27 Nathan Sidwell <nathan@codesourcery.com>
232
233 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
234 to emit .debug_line and other debug sections.
235 * as.h (seg_not_empty_p): Declare.
236 * subsegs.c (seg_not_empty_p): New predicate.
237
e8093792
AC
2382005-01-27 Andrew Cagney <cagney@gnu.org>
239
240 * configure: Regenerate to track ../gettext.m4 change.
241
09124b3f
JB
2422005-01-27 Jan Beulich <jbeulich@novell.com>
243
244 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
245
2462005-01-27 Jan Beulich <jbeulich@novell.com>
97762d08
JB
247
248 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
249 to/from application registers dynamic insns.
250 (md_assemble): Defer resolution of move to/from application registers
251 dynamic insns when they can be issued on either the I- or M-units.
252
90219bd0
AO
2532005-01-25 Alexandre Oliva <aoliva@redhat.com>
254
255 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
256 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
257 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
258 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
259 * cgen.c (gas_cgen_parse_operand): Handle
260 CGEN_PARSE_OPERAND_SYMBOLIC.
261 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
262 (frv_force_relocation): Likewise. Fix handling of PIC
263 relocations.
264 (md_apply_fix3): Likewise.
265
59c871b4
BE
2662005-01-21 Ben Elliston <bje@au.ibm.com>
267
268 * as.h: Remove #if 0'd code.
269 * atof-generic.c (atof_generic): Likewise.
270 * ecoff.c (ecoff_directive_frame): Likewise.
271 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
272 * itbl-ops.c (itbl_add_reg): Likewise.
273 * listing.c (calc_hex): Likewise.
274 * read.c (MASK_CHAR): Likewise.
275 * subsegs.c (subsegs_print_statistics): Likewise.
276 * symbols.c (indent): Likewise.
277 * write.c (write_relocs): Likewise.
278 (write_object_file): Likewise.
279 (relax_frag): Likewise.
280
fb767913
NC
2812005-01-20 Nick Clifton <nickc@redhat.com>
282
283 * as.c (std_longopts): Add an entry for "--a" in order to prevent
284 getopt_long_only() from considering -a as an abbreviation for
285 --alternate.
286 (parse_args): Fix the parsing of -a=<file>.
287
c556cc9c
AM
2882005-01-20 Alan Modra <amodra@bigpond.net.au>
289
290 PR gas/684
291 * read.c (s_incbin): Adjust default count for skip. Check validity
292 of count and skip rigorously.
293
9c6ed8e6
FF
2942005-01-19 Fred Fish <fnf@specifixinc.com>
295
296 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
297
e5604d79
RS
2982005-01-19 Richard Sandiford <rsandifo@redhat.com>
299
300 * read.c (convert_to_bignum): New function, split out from...
301 (emit_expr): ...here. Handle the case where X_add_number is
302 positive and the input value is negative.
303 (output_big_sleb128): Fix setting of continuation bit. Check whether
304 the final byte needs to be sign-extended. Fix size-shrinking loop.
305 (emit_leb128_expr): When generating a signed leb128, see whether the
306 sign of an O_constant's X_add_number matches the sign of the input
307 value. Use a bignum if not.
308
e38bc3b5
NC
3092005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
310
311 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
312 arch_sh_up in order to match the external name and make the
313 testsuite's job easier.
314
df227444
L
3152005-01-14 H.J. Lu <hongjiu.lu@intel.com>
316
317 PR 659
318 * config/tc-i386.c (i386_scale): Disallow 0 scale.
319
b8b80cf7
NC
3202005-01-12 Nick Clifton <nickc@redhat.com>
321
322 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
323 ignored_arguments array.
324
324007b9
L
3252005-01-10 H.J. Lu <hongjiu.lu@intel.com>
326
327 * write.c (write_object_file): Disallow a symbol equated to
328 common symbol.
329
5c4504f7
NC
3302005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
331
332 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
333 bfd_mach_maxq20.
334 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
335 (maxq_target): New function: Set the machine type.
336
4e7fd91e
PB
3372005-01-06 Paul Brook <paul@codesourcery.com>
338
339 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
340 (md_begin): Handle TE_VXWORKS for FP defaults.
341 (md_apply_fix3): Correct rela offsets.
342 (elf32_arm_target_format): Add VxWorks targets.
343
ea3eed15
PB
3442005-01-06 Paul Brook <paul@codesourcery.com>
345
346 * configure.tgt: Set em=vxworks for *-*-vxworks.
347 * config/te-vxworks.h: New File.
348
5dc1606f
PB
3492005-01-06 Paul Brook <paul@codesourcery.com>
350
351 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
352
18af0b39
NC
3532005-01-04 Dmitry Diky <diwil@spec.ru>
354
355 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
356 global label.
357
196e8040
JW
3582005-01-03 David Mosberger <davidm@hpl.hp.com>
359
360 * config/tc-ia64.c (md): Add member "loc_directive_seen".
361 (dot_loc): New function.
362 (md_pseudo_table): Add entry to map .loc to dot_loc().
363 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
364 seen a .loc directive or we're generating DWARF2 debug info for
365 assembly source.
366
a207757e
AM
3672004-12-29 Alan Modra <amodra@bigpond.net.au>
368
369 PR gas/619
370 * read.c (s_comm_internal): Don't zero end of name until size
371 expression has been parsed.
372
71d7ecf2
MM
3732004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
374
375 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
376
30c62922
TL
3772004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
378
379 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
380 case).
381
14ee9f48
ILT
3822004-12-22 Ian Lance Taylor <ian@airs.com>
383
384 * configure.tgt: New.
385 * configure.in: Move setting of cpu_type, fmt, etc., to
386 configure.tgt.
387 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
388 $(srcdir)/configure.tgt.
389 * configure, Makefile.in: Rebuild.
390
750bce0e
NC
3912004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
392
393 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
394 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
395 instructions.
396 (avr_offset_expression): New function to parse offsets for LDI
397 instructions.
398 (avr_operand): Use it.
399 (md_apply_fix3): Generate the relocs.
400
9d2be1ee
JR
4012004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
402
403 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
404 BFD_RELOC_SH_IMMS10BY8 relocation.
405
406 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
407 than just ignoring bad code.
408
1e50d24d
RS
4092004-12-16 Richard Sandiford <rsandifo@redhat.com>
410
411 * config/tc-v850.c (handle_lo16): New function.
412 (v850_reloc_prefix): Use it to check lo().
413 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
414
2fbd2a87
NC
4152004-12-14 P.J. Darcy <darcypj@us.ibm.com>
416
417 * configure.in: Add s390x-ibm-tpf support.
418 * configure: Regenerate.
419
7a6d0b32
JB
4202004-12-15 Jan Beulich <jbeulich@novell.com>
421
422 * config/obj-elf.c (obj_elf_change_section): Only set type and
423 attributes on new sections. Emit warning when type of re-declared
424 section doesn't match.
425
5b9d23c6
JB
4262004-12-15 Jan Beulich <jbeulich@novell.com>
427
428 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
429 '.cfi_startproc simple' doesn't inherit the old value.
430
dcb45a06
JB
4312004-12-15 Jan Beulich <jbeulich@novell.com>
432
433 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
434 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
435 generation to emit a factored offset.
436
aa6975fb
ILT
4372004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
438
6943caf0
ILT
439 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
440 which is too large in the case of NO_PIC without 64-bit
441 addresses.
442
aa6975fb
ILT
443 * config/tc-mips.c (mips_in_shared): New static variable.
444 (macro_build_lui): Permit "_gp" if !mips_in_shared.
445 (md_longopts): Add -mshared and -mno-shared.
446 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
447 (s_cpload): Implement !mips_in_shared case.
448 (s_cpsetup): Likewise.
449 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
450 * NEWS: Mention -mno-shared.
451
be1b2b4b
PB
4522004-12-09 Paul Brook <paul@codesourcery.com>
453
454 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
455 for function start.
456
9a92f48d
ILT
4572004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
458
dd22970f
ILT
459 * config/tc-mips.c (append_insn): If we emit a nop during a relax
460 sequence, increase the size of the sequence.
461
9a92f48d
ILT
462 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
463 use CPU_RM9000.
464
b617dc20
BE
4652004-12-07 Ben Elliston <bje@gnu.org>
466
467 * read.c (s_align): Use an align_limit temporary to allay a GCC
468 signed/unsigned comparison warning.
469
c820d418
MM
4702004-12-01 Mark Mitchell <mark@codesourcery.com>
471
472 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
473 * configure.in: Use it for arm*-*-linux-gnueabi*.
474 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
475 * config/te-armlinuxeabi.h: New file.
476 * Makefile.in: Regenerated.
477 * aclocal.m4: Likewise.
478 * configure: Likewise.
479 * doc/Makefile.in: Regenerated.
480
2b0210eb
BW
4812004-12-02 Bob Wilson <bob.wilson@acm.org>
482
483 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
484 (xtensa_restore_emit_state): Likewise.
485
9ebd302d
AM
4862004-12-02 Alan Modra <amodra@bigpond.net.au>
487
488 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
489 (s_align): Use it.
490
32118081
NC
4912004-11-30 Tero Niemela <tero_niemela@yahoo.com>
492
493 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
494 * Makefile.in: Regenerate.
495
3f414718
TL
4962004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
497
9ebd302d
AM
498 * config/tc-crx.c: Major code cleanup. Remove unused variables and
499 functions, give functions a meaningful name, add comments.
500 (check_range): New function - Replace operand size calculation
3f414718
TL
501 with range checking.
502 (assemble_insn): Update Algorithm, improve error issuing.
9ebd302d 503 (enum op_err): New.
3f414718
TL
504 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
505 handling.
506
a7498ae6
NC
5072004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
508
509 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
510 miss between different section in the same module.
511 (tc_gen_reloc): Likewise.
512
5c54fd37
NC
5132004-11-25 Theodore A. Roth <troth@openavr.org>
514
515 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
516 atmega325, atmega3250, atmega645 and atmega6450.
517
37edbb65
JB
5182004-11-25 Jan Beulich <jbeulich@novell.com>
519
520 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
521 permissible for the selected instruction suffix.
522 (process_suffix): For DefaultSize instructions, suppressing the
523 guessing of a 'q' suffix if the instruction doesn't support it is
524 pointless, because only an 'l' suffix can be guessed in this place.
525
5515a510
NC
5262004-11-24 Nick Clifton <nickc@redhat.com>
527
528 * config/tc-iq2000.c: Remove support for IQ10 processor.
529 Convert to ISO C90 formatting.
530 * config/tc-iq2000.h: Likewise.
531
dae1b34e
NC
5322004-11-23 Nick Clifton <nickc@redhat.com>
533
534 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
535 in this table. They should be correct now.
536
5c6af06e
JB
5372004-11-23 Jan Beulich <jbeulich@novell.com>
538
539 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
540 indicate the MMX extensions added by both SSE and 3DNow!A.
541 (Cpu3dnowA): Declare.
542 (CpuUnknownFlags): Update.
543 * config/tc-i386.c (cpu_sub_arch_name): Declare.
544 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
545 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
546 3DNow!. Athlon additionally implies 3DNow!A. Several new
547 entries (those starting with a dot are for sub-arch specification).
548 (set_cpu_arch): Handle sub-arch specifications.
549 (parse_insn): Distinguish between instructions not supported because
550 of insufficient CPU features and because of 64-bit mode.
551 * doc/c-i386.texi: Describe enhanced .arch directive.
552
d9740523
BW
5532004-11-22 Bob Wilson <bob.wilson@acm.org>
554
555 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
556
3120ef82
BW
5572004-11-22 Bob Wilson <bob.wilson@acm.org>
558
559 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
560 without a corresponding .debug_info section.
561
d190d046
HPN
5622004-11-22 Hans-Peter Nilsson <hp@axis.com>
563
564 * read.c (potable): Add "error" and "warning".
565 (s_errwarn): New function.
566 * read.h (s_errwarn): Declare.
567 * doc/as.texinfo (Error, Warning): Document .error and .warning.
568
5519f6ea
NC
5692004-11-22 Nick Clifton <nickc@redhat.com>
570
571 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
572 c_dot_file_symbol.
573
f5c7edf4
AM
5742004-11-19 Alan Modra <amodra@bigpond.net.au>
575
576 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
577 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
578
a4528eeb
AM
5792004-11-19 Alan Modra <amodra@bigpond.net.au>
580
581 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
582 (coff_adjust_symtab): Adjust call.
583 (crawl_symbols): Likewise.
584 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
585 (obj_app_file): Adjust.
586
444bf5f3
NC
5872004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
588
589 * configure.in: Enable bfd_assember for the MAXQ port.
590 * configure: Regenerate.
591
a1ace8d8 5922004-11-12 Bob Wilson <bob.wilson@acm.org>
88ac794e 593 Sterling Augustine <sterling@tensilica.com>
a1ace8d8
BW
594
595 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
596 there is a conflict.
597 (check_t1_t2_reads_and_writes): Check for both reads and writes to
598 interfaces that are related as determined by xtensa_interface_class_id.
599
30e857fc
NC
6002004-11-12 Nick Clifton <nickc@redhat.com>
601
602 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
603 offsets for conditional branches.
604
a67517f4
BW
6052004-11-11 Bob Wilson <bob.wilson@acm.org>
606
607 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
608
1d19a770
BW
6092004-11-10 Bob Wilson <bob.wilson@acm.org>
610
611 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
612 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
613 MAYBE_UNREACHABLE.
614 (relax_frag_immed): Update call to update_next_frag_state.
615
c04f5787
AM
6162004-11-10 Alan Modra <amodra@bigpond.net.au>
617
618 * obj.h (struct format_ops <app_file>): Add int param.
619 * read.h (s_app_file_string): Likewise.
620 * read.c (s_app_file_string): Likewise.
621 (s_app_file): Adjust s_app_file_string call.
622 * config/tc-mips.c (s_mips_file): Likewise.
623 * config/obj-coff.h (obj_app_file): Add app param.
624 * config/obj-ecoff.h (obj_app_file): Likewise.
625 * config/obj-multi.h (obj_app_file): Likewise.
626 * config/obj-elf.h (elf_file_symbol): Likewise.
627 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
628 if called for # preprocessor lines.
629
a77a9021
L
6302004-11-08 H.J. Lu <hongjiu.lu@intel.com>
631
632 PR 528
633 * symbols.c (resolve_symbol_value): Convert weak symbols only
634 for Windows PECOFF.
635 (symbol_equated_reloc_p): Don't equate weaks when relocating
636 only for Windows PECOFF.
637
aea44f62
TL
6382004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
639
640 * config/tc-crx.c (print_insn): Check and set insn_addr.
641 * config/tc-crx.h (md_frag_check): Define.
642
7499d566
NC
6432004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
644 Vineet Sharma <vineets@noida.hcltech.com>
645
646 * configure.in: Add support for new target maxq-coff.
647 * configure: Regenerate.
648 * NEWS: Mention new support.
649 * config/tc-maxq.c: New file.
650 * config/tc-maxq.h: New file.
651 * config/obj-coff.h: Add support for maxq-coff.
652
977cdf5a
NC
6532004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
654
655 * symbols.c (any_external_name): Define.
a77a9021 656 (resolve_symbol_value): Convert weak symbols.
977cdf5a
NC
657 (S_SET_EXTERNAL): Support any_external_name.
658 (S_SET_NAME): Qualify parameter const.
316f3bf8 659 (symbol_equated_reloc_p): Equate to weaks when relocating.
977cdf5a
NC
660 * symbols.h (S_SET_NAME): Qualfiy parameter const.
661 * tc.h (any_external_name): Declare.
662 * config/obj-coff.c ("coff/pe.h"): Include for BFD
663 assemblers also.
664 (weak_is_altname): Declare and define.
665 (weak_name2altname): Same.
666 (weak_altname2name): Same.
667 (weak_uniquify): Same.
668 (weak_altprefix): Define.
669 (obj_coff_weak): Change .weak syntax and handling.
670 (coff_frob_symbol): Fix PE weak symbol alternates.
671 * config/obj-coff.h (USE_UNIQUE): Define.
672 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
673 are in another segment.
674 (tc_gen_reloc): Remove broken addend hack.
675 doc/as.texinfo: Update.
676
34e41783
BW
6772004-11-05 Sterling Augustine <sterling@tensilica.com>
678
679 * config/tc-xtensa.c (total_frag_text_expansion): New.
680 (md_estimate_size_before_relax): Use it.
681 (find_address_of_next_align_frag): Likewise.
682
dcd46b4e
TL
6832004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
684
685 * config/tc-crx.c: Rename argument types.
686 (processing_arg_number): Rename to 'cur_arg_num'.
687 (get_number_of_bits): Rename to 'set_operand_size'.
688 (get_operandtype): Rename to 'parse_operand', totally rewrite.
689 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
690 (set_indexmode_parameters): Remove function, integrate its code into
691 'set_operand'.
692 (set_operand_size): Get rid of 'Operand Number' function parameter -
693 use global variable 'cur_arg_num' instead.
694 Use a local 'argument' pointer to reference the current argument.
695 (parse_operand): Likewise.
696 (set_operand): Likewise.
697 (process_label_constant): Likewise.
698
9456465c
BW
6992004-11-04 Bob Wilson <bob.wilson@acm.org>
700
701 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
702 (add_section_rename): Delete. Inlined into...
703 (build_section_rename): ...here. Use xstrdup instead of strdup.
704 (xtensa_section_rename): Drop "const" from argument and return types.
705 (md_show_usage): Indent to match show_usage().
706 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
707 (tc_canonicalize_section_name): Define.
708 (md_elf_section_rename): Remove unused macro.
709 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
710 * doc/c-xtensa.texi (Xtensa Options): Likewise.
711 (Frame Directive): Delete.
712
7f266840
DJ
7132004-11-04 Daniel Jacobowitz <dan@debian.org>
714
715 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
716 * config/tc-arm.c (target_oabi): Delete.
717 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
718 (arm_opts): Remove moabi.
719 * doc/as.texinfo (Overview): Remove documentation of -moabi.
720 * doc/c-arm.texi (ARM Options): Likewise.
721 * configure: Regenerated.
722
ae57792d
HPN
7232004-11-04 Hans-Peter Nilsson <hp@axis.com>
724
725 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
726 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
727 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
728 * configure: Regenerate.
729 * config/tc-cris.c (enum cris_archs): New.
730 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
731 (cris_insn_ver_valid_for_arch): New functions.
732 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
733 (cris_arch): New variable.
734 (md_pseudo_table): New pseudo .arch.
735 (err_for_dangerous_mul_placement): Initialize according to
736 DEFAULT_CRIS_ARCH.
737 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
738 All users changed.
739 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
740 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
741 (BRANCH_WF_V32, BRANCH_WB_V32): New.
742 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
743 use in md_cris_relax_table.
744 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
745 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
746 Update and improve head comment.
747 (OPTION_PIC): Define in terms of previous option, OPTION_US.
748 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
749 (OPTION_ARCH): New.
750 (md_longopts): New option --march=...
751 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
752 macros.
753 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
754 (HANDLE_RELAXABLE): New macro.
755 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
756 cases. Check for weak symbols and assume not relaxable. Handle
757 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
758 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
759 fragP->fr_symbol.
760 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
761 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
762 (cris_create_short_jump): Adjust for CRISv32.
5664e9a7 763 (cris_relax_frag): Handle new states.
ae57792d
HPN
764 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
765 (md_begin): Define symbols "..asm.arch.cris.v32",
766 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
767 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
768 when entering opcode table entry points.
769 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
770 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
771 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
772 (cris_process_instruction): Initialize out_insnp->insn_type to
773 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
774 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
775 cases.
776 <case 'm'>: Check that modified_char == '.'.
777 <invalid operands>: Consume the rest of the line.
778 When operands don't match, skip over subsequent insns with
779 non-matching version specifier but same mnemonic.
780 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
781 special registers in CRISv32 are always 32 bit long.
782 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
783 New cases.
784 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
785 and compatible. Recognize "ACR" for v32, unless followed by "+".
786 (get_spec_reg): Consider cris_arch when looking up register.
787 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
788 v32 or compatible.
789 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
790 (cris_get_expression): Restore input_line_pointer if failing "early".
791 (get_flags): Consider cris_arch and recognize flags accordingly.
792 (branch_disp): Adjust for CRISv32.
793 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
794 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
795 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
796 resolved. Don't enter zeros in object file for
797 BFD_RELOC_32_PCREL.
798 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
799 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
800 (md_parse_option): Break out "return 1".
801 <OPTION_ARCH> New case.
802 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
803 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
804 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
805 <case BFD_RELOC_32_PCREL>: New cases.
806 Addends for non-zero fx_pcrel are too in fx_offset.
807 (md_show_usage): Show --march=<arch>.
808 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
809 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
810 (s_syntax) <struct syntaxes>: Properly constify member operand.
811 * config/tc-cris.h (TARGET_MACH): Define.
812 (cris_mach): Declare.
813 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
814 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
815 (CRIS-Opts): Document --march=...
816 (CRIS-Pseudos): Document .arch.
817
9306ca4a
JB
8182004-11-04 Jan Beulich <jbeulich@novell.com>
819
820 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
821 intel syntax and no register prefix, allow $ in symbol names when
822 intel syntax.
823 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
824 (intel_float_operand): Add fourth return value indicating math control
825 operations. Make classification more precise.
826 (md_assemble): Complain if memory operand of mov[sz]x has no size
827 specified.
828 (parse_insn): Translate word operands to floating point instructions
829 operating on integers as well as control instructions to short ones
830 as expected by AT&T syntax. Translate 'd' suffix to short one only for
831 floating point instructions operating on non-integer operands.
832 (match_template): Remove fldcw special case. Adjust q-suffix handling
833 to permit it on fild/fistp/fisttp in AT&T mode.
834 (process_suffix): Don't guess DefaultSize insns' suffix from
835 stackop_size for certain floating point control instructions. Guess
836 suffix for branch and [ls][gi]dt based on flag_code. Split error
837 messages for Intel and AT&T syntax, and make the condition more strict
838 for the former. Adjust suppressing of generation of operand size
839 overrides.
840 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
841 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
842 more error checking.
843 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
844 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
845
2b4f075a
HPN
8462004-11-03 Hans-Peter Nilsson <hp@axis.com>
847
848 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
849 md_short_jump_size, md_long_jump_size.
850 * write.c [!WORKING_DOT_WORD]: Ditto.
851 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
852 qualifier.
853 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
854 declare.
855 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
856 const qualifier in these definitions.
857 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
858 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
859
ddbc47ac
NC
8602004-11-02 Nick Clifton <nickc@redhat.com>
861
862 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
863 table before deciding to produce a .debug_line section to match up
864 with a user provided .debug_info section.
865
3ad3f5ad
TL
8662004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
867
868 * config/tc-crx.c (getreg_image): Bug fix, a return value was
869 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
870
c815a616
TL
8712004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
872
873 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
874 (get_flags): New function.
c04f5787
AM
875 (get_number_of_bits): Edit comments, update numeric values to
876 supported sizes.
877 (process_label_constant): Don't support the colon
878 format (SYMBOL:[s|m|l]).
c815a616
TL
879 (set_cons_rparams): Support argument type 'arg_rbase'.
880 (get_operandtype): Bug fix in 'rbase' operand type parsing.
881 (handle_LoadStor): Bug fix, first handle post-increment mode.
c04f5787
AM
882 (getreg_image): Remove redundant code, update according to latest
883 CRX spec.
c815a616 884 (print_constant): Bug fix relate to 3-word instructions.
c04f5787 885 (assemble_insn): Bug fix, when matching instructions, verify also
c815a616
TL
886 instruction type (not only mnemonic).
887 Add various error checking.
888 (preprocess_reglist): Support HI/LO and user registers.
889
ed7af9f9
L
8902004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
891
c04f5787 892 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
ed7af9f9
L
893 in an epilogue directive go negative.
894
ac025970
L
8952004-10-25 H.J. Lu <hongjiu.lu@intel.com>
896
897 PR 474
898 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
899 after reporting template error during manual bundling. Reported
900 by Michael Dupont, michaelx.dupont@intel.com.
901
a394c00f
NC
9022004-10-25 Daniel Jacobowitz <dan@debian.org>
903
904 * Makefile.am: Run dep-am.
905 * aclocal.m4: Regenerate with automake 1.9.2.
906 * Makefile.in: Regenerate with automake 1.9.2.
907 * doc/Makefile.in: Likewise.
908
909 * config/tc-arm.c: Include "dw2gencfi.h".
910 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
911 New functions.
912 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
913 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
914 (tc_cfi_frame_initial_instructions): Define.
915 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
916 Add prototypes.
917
23d83918
TL
9182004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
919
920 * config/tc-crx.c (assemble_insn): Check unsigned immediate
921 operands validity.
922 Update coprocessor id to be unsigned immediate.
923
bb41ade5
AM
9242004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
925
926 * config/tc-i386.c (O_secrel): Delete.
927 (tc_pe_dwarf2_emit_offset): New function.
928 * config/tc-i386.h (O_secrel): Define as O_md1.
929 (TC_DWARF2_EMIT_OFFSET): Define.
930
87e62348
NC
9312004-10-18 Nick Clifton <nickc@redhat.com>
932
933 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
934 ignore @fptr() directives for 4-byte fixups.
935
3c55da70
AM
9362004-10-15 Alan Modra <amodra@bigpond.net.au>
937
938 * Makefile.am: Run "make dep-am"
939 * Makefile.in: Regenerate.
940
40e7b7b9
BW
9412004-10-14 Bob Wilson <bob.wilson@acm.org>
942
943 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
944 Remove comments about placement of literal pools.
945 (Literal Directive): Update description of literal placement.
946 (Literal Prefix Directive): Remove statement that this does not apply
947 to absolute-mode literals. Describe new section naming scheme.
948
b08b5071
BW
9492004-10-12 Bob Wilson <bob.wilson@acm.org>
950
951 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
952 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
953 is_windowed_return_opcode): Delete.
954 (xtensa_frob_label): Use get_subseg_target_freq.
955 (md_assemble): Inline call to is_entry_opcode.
956 (xtensa_handle_align): Inline call to get_frag_is_literal.
957 (relaxation_requirements): Inline call to is_jx_opcode.
958 (emit_single_op): Inline call to is_movi_opcode.
959 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
960 get_frag_is_no_transform, is_entry_opcode, and
961 set_frag_is_specific_opcode. Use get_subseg_total_freq.
962 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
963 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
964 Inline calls to get_frag_is_no_transform.
965 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
966 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
967 get_frag_is_no_transform.
968 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
969 and set_frag_is_no_transform.
970 (get_expression_value): Delete.
971 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
972 cur_target_freq to target_freq.
973 (get_subseg_info): Split out code to create a new map entry into ...
974 (add_subseg_info): ... this new function.
975 (get_last_insn_flags): Check if get_subseg_info succeeded.
976 (set_last_insn_flags): Call add_subseg_info if needed.
977 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
978 (xtensa_reorder_segments): Compute last_sec while counting sections.
979 Remove call to get_last_sec.
980 (get_last_sec): Delete.
981 (cache_literal_section): Inline call to retrieve_literal_seg and its
982 callees, seg_present and add_seg_list.
983 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
984 (get_frag_is_insn, get_frag_is_no_transform,
985 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
986 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
987
7fa3d080
BW
9882004-10-12 Bob Wilson <bob.wilson@acm.org>
989
990 * config/tc-xtensa.c: Use ISO C90 formatting.
991 * config/tc-xtensa.h: Likewise.
992 * config/xtensa-istack.h: Likewise.
993 * config/xtensa-relax.c: Likewise.
994 * config/xtensa-relax.h: Likewise.
995
8cb51566
PB
9962004-10-12 Paul Brook <paul@codesourcery.com>
997
998 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
999 EF_ARM_EABI_VER4.
1000 (arm_eabis): Ditto.
1001 * doc/c-arm.texi: Document that we actually support -meabi=4, not
1002 -meabi=3.
1003
653cfe85
BW
10042004-10-08 Bob Wilson <bob.wilson@acm.org>
1005
1006 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
1007 entries.
1008 (Acknowledgements): Use "GAS" instead of AS variable.
1009
d2b2c203
DJ
10102004-10-08 Daniel Jacobowitz <dan@debian.org>
1011
1012 * config/tc-i386.c: Include "elf/x86-64.h".
1013 (i386_elf_section_type): New function.
1014 * config/tc-i386.h (md_elf_section_type): Define.
1015 (i386_elf_section_type): New prototype.
1016
e80e0390
NC
10172004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
1018
1019 * config/m68k-parse.h (enum m68k_register): New control register,
1020 MBAR2 (for MCF5249)
1021 * config/tc-m68k.c: Correct control register set for MCF5249.
1022
43cd72b9 10232004-10-07 Bob Wilson <bob.wilson@acm.org>
85a5ac80 1024 Sterling Augustine <sterling@tensilica.com>
43cd72b9
BW
1025
1026 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
1027 (UNREACHABLE_MAX_WIDTH): Define.
1028 (XTENSA_FETCH_WIDTH): Delete.
1029 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
1030 prefer_const16, prefer_l32r): New global variables.
1031 (LIT4_SECTION_NAME): Define.
1032 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
1033 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
1034 (frag_flags struct): New.
c04f5787 1035 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
43cd72b9
BW
1036 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
1037 (bitfield, bit_is_set, set_bit, clear_bit): Define.
1038 (MAX_FORMATS): Define.
1039 (op_placement_info struct, op_placement_table): New.
1040 (O_pltrel, O_hi16, O_lo16): Define.
1041 (directiveE enum): Rename directive_generics to directive_transform.
1042 Delete directive_relax. Add directive_schedule,
1043 directive_absolute_literals, and directive_last_directive.
1044 (directive_info): Rename "generics" to "transform". Delete "relax".
1045 Add "schedule" and "absolute-literals".
1046 (directive_state): Adjust entries to match changes in directive_info.
1047 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
1048 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
1049 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
1050 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
1051 (align_only_targets, software_a0_b_retw_interlock,
1052 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
1053 software_avoid_short_loop, software_avoid_close_loop_end,
1054 software_avoid_all_short_loops, specific_opcode): Delete.
1055 (warn_unaligned_branch_targets): New.
1056 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
1057 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
1058 (option_[no_]link_relax, option_[no_]transform,
1059 option_[no_]absolute_literals, option_warn_unaligned_targets,
1060 option_prefer_l32r, option_prefer_const16, option_target_hardware):
1061 New enum values.
1062 (option_[no_]align_only_targets, option_literal_section_name,
1063 option_text_section_name, option_data_section_name,
1064 option_bss_section_name, option_eb, option_el): Delete.
1065 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
1066 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
1067 and target-hardware. Delete entries for [no-]target-align-only,
1068 literal-section-name, text-section-name, data-section-name, and
1069 bss-section-name.
1070 (md_parse_option): Handle new options and remove old ones. Accept but
1071 ignore [no-]density options. Warn for [no-]generics and [no-]relax
1072 and treat them as [no-]transform.
1073 (md_show_usage): Add new options and remove old ones.
1074 (xtensa_setup_hw_workarounds): New.
1075 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
1076 "long", "short", "loc" and "frequency" entries.
1077 (use_generics): Rename to ...
1078 (use_transform): ... this function. Add past_xtensa_end check.
1079 (use_longcalls): Add past_xtensa_end check.
1080 (code_density_available, can_relax): Delete.
1081 (do_align_targets): New.
1082 (get_directive): Accept dashes in directive names. Warn about
1083 [no-]generics and [no-]relax directives and treat them as
c04f5787 1084 [no-]transform.
43cd72b9
BW
1085 (xtensa_begin_directive): Call md_flush_pending_output only for some
1086 directives. Check for directives inside instruction bundles. Warn
1087 about deprecated ".begin literal" usage. Warn and ignore [no-]density
1088 directives. Handle new directives. Check generating_literals flag
1089 for literal_prefix.
1090 (xtensa_end_directive): Check for directives inside instruction
1091 bundles. Warn and ignore [no-]density directives. Handle new
1092 directives. Call xtensa_set_frag_assembly_state.
1093 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
1094 xtensa_dwarf2_emit_insn): New.
1095 (xtensa_literal_position): Call md_flush_pending_output. Do not check
1096 use_literal_section flag.
1097 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
1098 literals. Use xtensa_elf_cons to parse the expression.
1099 (xtensa_literal_prefix): Do not check use_literal_section. Support
1100 ".lit4" sections for absolute literals. Change prefix convention to
1101 replace ".text" (or ".t" in a linkonce section). No need to call
1102 subseg_set.
1103 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
1104 (expression_end): Handle closing braces and colons.
1105 (PLT_SUFFIX, plt_suffix): Delete.
1106 (expression_maybe_register): Use new xtensa-isa.h functions. Use
1107 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
1108 and O_hi16 expressions as well.
1109 (tokenize_arguments): Handle closing braces and colons.
1110 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
1111 operands and paired register syntax.
1112 (get_invisible_operands): New.
1113 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
1114 new xtensa-isa.h functions.
1115 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
1116 (xg_translate_idioms): Check if inside bundle. Use use_transform.
1117 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
1118 instructions. Use xtensa_translate_zero_immed.
1119 (operand_is_immed, operand_is_pcrel_label): Delete.
1120 (get_relaxable_immed): Use new xtensa-isa.h functions.
1121 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
1122 functions.
1123 (xtensa_print_insn_table, print_vliw_insn): New.
1124 (is_direct_call_opcode): Use new xtensa-isa.h functions.
1125 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
1126 is_branch_or_jump_opcode): Delete.
1127 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
1128 (opnum_to_reloc, reloc_to_opnum): Delete.
1129 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
1130 xtensa-isa.h functions. Operate on one slot of an instruction.
1131 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
1132 xg_get_insn_size): Delete.
1133 (xg_get_build_instr_size): Use xg_get_single_size.
1134 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
1135 xg_build_widen_table. Use xg_get_single_size.
1136 (xg_get_max_narrow_insn_size): Delete.
1137 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
1138 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
1139 xg_get_single_size.
1140 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
1141 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
1142 (xg_expand_to_stack, xg_expand_narrow): Update calls to
1143 xg_build_widen_table. Use xg_get_single_size.
1144 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
1145 xg_check_operand.
1146 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
1147 treat weak symbols conservatively.
1148 (xg_check_operand): Use new xtensa-isa.h functions.
1149 (is_dnrange): Delete.
1150 (xg_assembly_relax): Inline previous calls to tinsn_copy.
1151 (xg_finish_frag): Specify separate relax states for the frag and slot0.
1152 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
1153 xtensa-isa.h functions.
1154 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
1155 xg_instruction_matches_options): New.
1156 (xg_instruction_matches_rule): Handle O_register expressions. Call
1157 xg_instruction_matches_options.
1158 (transition_rule_cmp): New.
1159 (xg_instruction_match): Update call to xg_build_simplify_table.
1160 (xg_build_token_insn): Record loc fields.
1161 (xg_simplify_insn): Check is_specific_opcode field and
1162 density_supported flag.
1163 (xg_expand_assembly_insn): Skip checking code_density_available. Use
1164 new xtensa-isa.h functions. Call use_transform instead of can_relax.
1165 (xg_assemble_literal): Add error handling for O_big. Call
1166 record_alignment. Handle O_pltrel.
1167 (xg_valid_literal_expression): New.
1168 (xg_assemble_literal_space): Add slot parameter. Remove call to
1169 set_expr_symbol_offset. Add call to record_alignment. Update call to
1170 xg_finish_frag.
1171 (xg_emit_insn): Delete.
1172 (xg_emit_insn_to_buf): Add format parameter. Update calls to
1173 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
1174 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
1175 and slot parameters. Handle new "alternate" relocations for absolute
1176 literals and CONST16 instructions. Check for bad uses of O_lo16 and
1177 O_hi16. Use new xtensa-isa.h functions.
1178 (xg_assemble_tokens): Delete.
1179 (is_register_writer): Use new xtensa-isa.h functions.
1180 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
1181 old-style RSR from LCOUNT.
1182 (next_frag_opcode): Delete.
1183 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
1184 update_next_frag_state): New.
1185 (update_next_frag_nop_state): Delete.
1186 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
1187 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
1188 the state of the absolute-literals directive. Add calls to
1189 record_alignment and xtensa_set_frag_assembly_state. Call
1190 xtensa_switch_to_non_abs_literal_fragment instead of
1191 xtensa_switch_to_literal_fragment.
1192 (build_nop): New.
1193 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
1194 (get_expanded_loop_offset): Change check for undefined opcode to an
1195 assertion.
1196 (xtensa_set_frag_assembly_state, relaxable_section,
1197 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
1198 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
1199 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
1200 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
1201 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
1202 (xtensa_init_fix_data): New.
1203 (xtensa_frob_label): Reset label symbol to the current frag. Check
1204 do_align_targets and generating_literals flag. Propagate frequency
1205 info to new alignment frag. Call xtensa_set_frag_assembly_state.
1206 (xtensa_unrecognized_line): New.
1207 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
1208 to xtensa_set_frag_assembly_state.
1209 (error_reset_cur_vinsn): New.
1210 (md_assemble): Remove check for literal frag. Remove call to
1211 istack_init. Call use_transform instead of use_generics. Parse
1212 explicit instruction format specifiers. Move code for
1213 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
1214 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
1215 Add dwarf2_where call. Remote automatic alignment for ENTRY
1216 instructions. Move call to xtensa_clear_insn_labels to the end.
1217 Rearrange to handle bundles.
1218 (xtensa_cons_fix_new): Delete.
1219 (xtensa_handle_align): New.
1220 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
1221 assignment to is_no_density field.
1222 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
1223 instead of reloc_to_opnum. Handle "alternate" relocations.
1224 (xtensa_force_relocation, xtensa_check_inside_bundle,
1225 xtensa_elf_section_change_hook): New.
1226 (xtensa_symbol_new_hook): Delete.
1227 (xtensa_fix_adjustable): Check for difference of symbols with an
1228 offset. Check for external and weak symbols.
1229 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
1230 (md_estimate_size_before_relax): Return expansion for the first slot.
1231 (tc_gen_reloc): Handle difference of symbols by producing
1232 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
1233 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
1234 tentative values into the output when linkrelax is set.
1235 (XTENSA_PROP_SEC_NAME): Define.
1236 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
1237 Create literal tables only if using literal sections. Create new
1238 property tables instead of old instruction tables. Check for unaligned
1239 branch targets and loops.
1240 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
1241 new_resource_table, clear_resource_table, resize_resource_table,
1242 resources_available, reserve_resources, release_resources,
1243 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
1244 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
1245 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
1246 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
1247 flag. Update checks for workaround options. Call
1248 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
1249 (xtensa_cleanup_align_frags): Add special case for branch targets.
1250 Check for and mark unreachable frags.
1251 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
1252 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
1253 end of a zero-overhead loop body.
1254 (frag_can_negate_branch): Handle instructions with multiple slots.
1255 Use new xtensa-isa.h functions
1256 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
1257 xtensa_mark_zcl_first_insns): New.
1258 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
1259 transformations are disabled.
1260 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
1261 multislot instructions.
1262 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
1263 Likewise. Also error if transformations are disabled.
1264 (unrelaxed_frag_max_size): New.
1265 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
1266 xtensa-isa.h functions.
1267 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
1268 xtensa_opcode_is_loop instead of is_loop_opcode.
1269 (get_text_align_power): Replace as_fatal with assertion.
1270 (get_text_align_fill_size): Iterate instead of using modulus when
1271 use_nops is false.
1272 (get_noop_aligned_address): Assert that this is for a machine-dependent
1273 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
1274 xg_get_single_size, and frag_format_size.
1275 (get_widen_aligned_address): Rename to ...
1276 (get_aligned_diff): ... this function. Add max_diff parameter.
1277 Remove handling of rs_align/rs_align_code frags. Use
1278 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
1279 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
1280 and pass it back to caller.
1281 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
1282 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
1283 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
1284 (relax_frag_text_align): Rename to ...
1285 (relax_frag_loop_align): ... this function. Assume loops can only be
1286 in the first slot of an instruction.
1287 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
1288 instruction. Remove call to frag_wane.
1289 (relax_frag_narrow): Rename to ...
1290 (relax_frag_for_align): ... this function. Extend to handle
1291 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
1292 RELAX_NARROW for the first slot.
1293 (find_address_of_next_align_frag, bytes_to_stretch): New.
1294 (future_alignment_required): Use find_address_of_next_align_frag and
1295 bytes_to_stretch. Look ahead to subsequent frags to make smarter
1296 alignment decisions.
1297 (relax_frag_immed): Add format, slot, and estimate_only parameters.
1298 Check if transformations are enabled for b_j_loop_end workaround.
1299 Use new xtensa-isa.h functions and handle multislot instructions.
1300 Update call to xg_assembly_relax.
1301 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
1302 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
1303 frag types.
1304 (convert_frag_narrow): Add segP, format and slot parameters. Call
1305 convert_frag_immed for branch instructions. Adjust calls to
1306 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
1307 xg_get_single_size and xg_get_single_format.
1308 (convert_frag_fill_nop): New.
1309 (convert_frag_immed): Add format and slot parameters. Handle multislot
1310 instructions and use new xtensa-isa.h functions. Update calls to
1311 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
1312 enabled for b_j_loop_end workaround. Use build_nop instead of
1313 assemble_nop. Check is_specific_opcode flag. Check for unreachable
1314 frags. Use xg_get_single_size. Handle O_pltrel.
1315 (fix_new_exp_in_seg): Remove check for old plt flag.
1316 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
1317 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
1318 for loop opcode to an assertion. Mark all frags up to the end of the
1319 loop as not transformable.
1320 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
1321 (get_subseg_info): New.
1322 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
1323 check for dest_seg.
1324 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
1325 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
1326 (xtensa_switch_to_non_abs_literal_fragment): New.
1327 (cache_literal_section): Add is_code parameter and pass it through to
1328 retrieve_literal_seg.
1329 (retrieve_literal_seg): Add is_code parameter and use it to set the
1330 flags on the literal section. Handle case where head parameter is 0.
1331 (get_frag_is_no_transform, set_frag_is_specific_opcode,
1332 set_frag_is_no_transform): New.
1333 (xtensa_create_property_segments): Add end_property_function parameter
1334 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
1335 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
1336 (xtensa_create_xproperty_segments, section_has_xproperty): New.
1337 (add_xt_block_frags): Add end_property_function parameter and call it
1338 if it is non-zero. Call xtensa_frag_flags_init.
1339 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
1340 get_frag_property_flags, frag_flags_to_number,
1341 xtensa_frag_flags_combinable, xt_block_aligned_size,
1342 xtensa_xt_block_combine, add_xt_prop_frags,
1343 init_op_placement_info_table, opcode_fits_format_slot,
1344 xg_get_single_size, xg_get_single_format): New.
1345 (istack_push): Inline call to tinsn_copy.
1346 (tinsn_copy): Delete.
1347 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
1348 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
1349 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
1350 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
1351 functions. Handle invisible operands.
1352 (tinsn_to_slotbuf): New.
1353 (tinsn_check_arguments): Use new xtensa-isa.h functions.
1354 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
1355 vinsn_from_chars, and xg_free_vinsn.
1356 (tinsn_from_insnbuf): New.
1357 (tinsn_immed_from_frag): Add slot parameter and handle multislot
1358 instructions. Handle symbol differences.
1359 (get_num_stack_text_bytes): Use xg_get_single_size.
1360 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
1361 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
1362 get_expr_register, set_expr_symbol_offset_diff): New.
1363 * config/tc-xtensa.h (MAX_SLOTS): Define.
1364 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
1365 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
1366 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
1367 RELAX_NONE types.
1368 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
1369 (xtensa_frag_type struct): Add is_assembly_state_set,
1370 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
1371 is_align, is_text_align, alignment, and is_first_loop_insn fields.
1372 Replace is_generics and is_relax fields by is_no_transform field.
1373 Delete is_text and is_longcalls fields. Change text_expansion and
1374 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
1375 per-slot information: literal_frags, slot_subtypes, slot_symbols,
1376 slot_sub_symbols, and slot_offsets. Add fr_prev field.
1377 (xtensa_fix_data struct): New.
1378 (xtensa_symfield_type struct): Delete plt field.
1379 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
1380 forward declaration here.
1381 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
1382 (XTENSA_SECTION_RENAME): Undefine.
1383 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
1384 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
1385 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
1386 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
1387 (unit_num_copies_func, opcode_num_units_func,
1388 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
1389 (resource_table struct): New.
1390 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
1391 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
1392 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
1393 (tinsn_copy): Delete prototype.
1394 (vliw_insn struct): New.
1395 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
1396 (widen_spec_list): Add option conditions for density and boolean
1397 instructions. Add expansions using CONST16 and conditions for using
1398 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
1399 predicted branches.
1400 (simplify_spec_list): Add option conditions for density instructions.
1401 Add entry for NOP instruction.
1402 (append_transition): Add cmp function pointer parameter and use it to
1403 insert the new entry in order.
1404 (operand_function_LOW16U, operand_function_HI16U): New.
1405 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
1406 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
1407 (enter_opname, split_string): Use xstrdup instead of strdup.
1408 (init_insn_pattern): Initialize new options field.
1409 (clear_req_or_option_list, clear_req_option_list,
1410 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
1411 New.
1412 (parse_insn_pattern): Parse option conditions.
1413 (transition_applies): New.
1414 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
1415 swapped last arguments in calls to append_constant_value_condition.
1416 Call clone_req_option_list. Add warning about invalid opcode.
1417 Handle LOW16U and HI16U function names.
1418 (build_transition_table): Add cmp parameter and use it in calls to
1419 append_transition. Use new xtensa-isa.h functions. Check
1420 transition_applies before adding entries.
1421 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
1422 pass it through to build_transition_table.
1423 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
1424 ReqOption, transition_cmp_fn): New types.
1425 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
1426 (transition_rule struct): Add options field.
1427 * doc/as.texinfo (Overview): Update Xtensa options.
1428 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
1429 --[no-]relax, and --[no-]generics options. Update descriptions of
1430 --text-section-literals and --[no-]longcalls. Add
1431 --[no-]absolute-literals and --[no-]transform.
1432 (Xtensa Syntax): Add description of syntax for FLIX instructions.
1433 Remove use of "generic" and "specific" terminology for opcodes.
1434 (Xtensa Registers): Generalize the syntax description to include
1435 user-defined register files.
1436 (Xtensa Automatic Alignment): Update.
1437 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
1438 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
1439 (Xtensa Directives): Remove confusing rules about precedence.
1440 (Density Directive, Relax Directive): Delete.
1441 (Schedule Directive): New.
1442 (Generics Directive): Rename to ...
1443 (Transform Directive): ... this node.
1444 (Literal Directive): Update for absolute literals. Missing
1445 literal_position directive is now an error.
1446 (Literal Position Directive): Update for absolute literals.
1447 (Freeregs Directive): Delete.
1448 (Absolute Literals Directive): New.
1449 (Frame Directive): Minor editing.
1450 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
1451 Update dependencies.
1452 * Makefile.in: Regenerate.
1453
6e1304d8
RS
14542004-10-07 Richard Sandiford <rsandifo@redhat.com>
1455
1456 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
1457 to build the second and third fixups for a composite relocation.
1458 (macro_read_relocs): New function.
1459 (macro_build): Use it.
1460 (s_cpsetup): Pass all three composite relocation codes to macro_build.
1461 Simplify fragging code accordingly.
1462 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
1463 of the composite relocation. Set fx_tcbit in both fixups.
1464
b1dca8ee
RS
14652004-10-07 Richard Sandiford <rsandifo@redhat.com>
1466
1467 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
1468 (md_apply_fix3): Don't treat composite relocs as done.
1469
89658e52
NC
14702004-10-07 Jan Beulich <jbeulich@novell.com>
1471
1472 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
1473 prefix for symbol names generated from the LOCAL macro directive.
1474
289040ca
NC
1475 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
1476 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
1477
48c9f030
NC
14782004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
1479
1480 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
c04f5787 1481 Special registers.
5c5054ab 1482 (md_assemble): Add error checking for Co-Processor instructions.
48c9f030
NC
1483 (get_cinv_parameters): Add 'b' option to invalidate the
1484 branch-target cache.
1485
7ed4c4c5
NC
14862004-10-05 Paul Brook <paul@codesourcery.com>
1487
1488 * config/tc-arm.c (unwind): New variable.
1489 (vfp_sp_encode_reg): New function.
1490 (vfp_sp_reg_required_here): Use it.
1491 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
1492 (vfp_parse_reg_list): New function.
1493 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
1494 s_arm_unwind_personality, s_arm_unwind_personalityindex,
1495 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
1496 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
1497 functions.
1498 (md_pseudo_table): Add them.
1499 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
1500 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
1501 (set_section, add_unwind_adjustsp, flush_pending_unwind,
1502 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
1503 require_hashconst, add_unwind_opcode): New functions.
1504 * doc/tc-arm.text: Document unwinding opcodes.
1505 * NEWS: Mention the new feature.
1506
04ca8703
EC
15072004-10-04 Eric Christopher <echristo@redhat.com>
1508
1509 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
1510
7c1d0959
L
15112004-10-01 H.J. Lu <hongjiu.lu@intel.com>
1512
1513 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
1514 TLS relocations.
1515 * config/tc-s390.c (md_apply_fix3): Likewise.
1516 * config/tc-sparc.c (md_apply_fix3): Likewise.
1517
40a18ebd
NC
15182004-10-01 Paul Brook <paul@codesourcery.com>
1519
1520 * config/tc-arm.c (arm_elf_section_type): New function.
1521 (arm_elf_change_section): Set section link for exidx sections.
1522 * config/tc-arm.h (arm_elf_section_type): Add prototype.
1523 (md_elf_section_type): Define.
1524
14127cc4
NC
15252004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
1526
1527 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
1528 instruction's offset.
1529
b7c92712
NC
15302004-10-01 Adam Nemet <anemet@lnxw.com>
1531
1532 * (TARGET_FORMAT): Remove LynxOS COFF definition.
1533
65555e64
AM
15342004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
1535
1536 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
1537 asymbol *, instead use symbol_get_bfdsym.
1538
9fe0b840
NC
15392004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
1540
1541 * config/tc-m68k.c (select_control_regs): Add mcf5249.
1542
0dd132b6
NC
15432004-09-30 Paul Brook <paul@codesourcery.com>
1544
1545 * config/tc-arm.c (do_smi, do_nop): New functions.
1546 (insns): Add ARMv6ZK instructions.
1547 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
1548 (tc_gen_reloc): Ditto.
1549 (arm_cpus): Add mpcore and arm1176.
1550 (arm_archs): Add armv6{k,z,zk}.
1551 * doc/c-arm.texi: Document new cores and architectures.
1552
a737bd4d
NC
15532004-09-30 Nick Clifton <nickc@redhat.com>
1554
1555 * config/tc-arm.c: Use ISO C90 formatting.
1556
3631a3c8
NC
15572004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
1558
a737bd4d 1559 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
3631a3c8
NC
1560 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
1561 REG_TYPE_MVDX is expected.
1562
d5f0cf92
AM
15632004-09-29 Marc Bevand <m.bevand@gmail.com>
1564
1565 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
1566
9f9a069e
JW
15672004-09-21 James E Wilson <wilson@specifixinc.com>
1568
1569 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
1570 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
1571 output_spill_base, output_unat_psprel, output_lc_psprel,
1572 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
1573 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
1574 output_spill_psprel_p): Use it.
1575
4b778c88
TL
15762004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
1577
c04f5787 1578 * config/tc-crx.c (handle_LoadStor): New function.
04ca8703 1579 Handle load/stor unique instructions before parsing.
4b778c88 1580
eb043451
PB
15812004-09-17 Paul Brook <paul@codesourcery.com>
1582
1583 * config/tc-arm.c (s_arm_rel31): New funciton.
1584 (md_pseudo_table): Add .rel31.
04ca8703 1585 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
eb043451
PB
1586 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
1587 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
1588 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
1589 (arm_parse_reloc): Add (target2).
1590
8ea2b00f
AM
15912004-09-17 Alan Modra <amodra@bigpond.net.au>
1592
1593 * Makefile.am: Run "make dep-am".
1594 * Makefile.in: Regenerate.
1595 * aclocal.m4: Regenerate.
1596 * configure: Regenerate.
1597 * doc/Makefile.in: Regenerate.
1598 * po/POTFILES.in: Regenerate.
1599 * po/gas.pot: Regenerate.
1600
7e1792e0
HPN
16012004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
1602
1603 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
1604 [!LLONG_MAX]: Ditto.
1605
9c504268
PB
16062004-09-13 Paul Brook <paul@codesourcery.com>
1607
1608 * config/tc-arm.c: Rename RELABS to TARGET1.
1609
2159ac21
AM
16102004-09-13 Alan Modra <amodra@bigpond.net.au>
1611
1612 * messages.c (as_internal_value_out_of_range): Cast values passed
1613 to as_bad_where or as_warn_where to proper type.
1614
23794b24
MM
16152004-09-11 Theodore A. Roth <troth@openavr.org>
1616
1617 * config/tc-avr.c: Add support for
1618 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
1619
e9fad691
AM
16202004-09-09 Alan Modra <amodra@bigpond.net.au>
1621
1622 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
1623 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
1624
10b016c2
PB
16252004-09-08 Paul Brook <paul@codesourcery.com>
1626
1627 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
1628 fini_array and preinit_array section types.
1629 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
1630 and fini_array.
1631 * doc/as.texinfo: Document extra section types.
1632
e5a52504
MM
16332004-09-02 Mark Mitchell <mark@codesourcery.com>
1634
1635 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
1636 * Makefile.in: Regenerated.
1637 * configure.in: Set em for arm*-*-symbianelf*.
1638 * configure: Regenerated.
1639 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
1640 vectors when appropriate.
1641 * config/te-symbian.h: New file.
1642
42851540
NC
16432004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1644
1645 * config/tc-crx.c (gettrap): Exception vector can be case
1646 insensitive.
04ca8703 1647 (process_label_constant): Fix a 32-bit displacement bug in branch
42851540
NC
1648 instructions.
1649 (get_operandtype) : Bug fix, wrong operand was used.
04ca8703 1650 (process_label_constant): Initialize relocation type to
42851540
NC
1651 BFD_RELOC_NONE
1652
8783612f
RE
16532004-09-01 Richard Earnshaw < reanrsha@arm.com>
1654
1655 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
1656 for synthesizable cores.
1657
1ff4677c
RE
1658 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
1659
b18c562e
NC
16602004-08-25 Dmitry Diky <diwil@spec.ru>
1661
1662 * config/tc-msp430.c: Clean-up the code.
1663 (md_relax_table): New relax table.
1664 (mcu_types): Sort MCU types.
1665 (md_pseudo_table): Add .profiler pseudo handler.
1666 (pow2value): New function.
1667 (msp430_profiler): New function.
1668 (msp430_operands): Add new insns handlers.
1669 (msp430_srcoperand): Add register operand handler, allow complex
1670 expressions.
1671 (md_estimate_size_before_relax): Rewritten.
1672 (md_convert_frag): Rewritten.
1673 (msp430_relax_frag): New function.
1674 * config/tc-msp430.h (md_relax_frag): define macro
1675 * doc/c-msp430.texi: Update information.
1676
8f94ae4d
NC
16772004-08-24 Nick Clifton <nickc@redhat.com>
1678
1679 * as.c (std_shortopts): Allow -g to take an optional argument.
1680 (parse_args): Pass any switch starting with -g on to the backend
1681 for parsing.
1682
e51dace8
MM
16832004-08-18 Mark Mitchell <mark@codesourcery.com>
1684
1685 * configure.in (arm*-*-symbianelf*): New target.
1686 (arm*-*-eabi*): Likewise.
1687 * configure: Regenerated.
1688
f7870c8d
TS
16892004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1690 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
1691 correctly.
1692
d6afba4b
JJ
16932004-08-18 Jakub Jelinek <jakub@redhat.com>
1694
1695 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
1696 argument, don't do anything if current section is not
1697 .gnu.linkonce.t.* and linkonce_empty is set.
1698 (generate_unwind_image, dot_endp): Adjust callers, call
1699 start_unwind_section (*, 1) if nothing will be put into the
1700 section.
1701
329e276d
NC
17022004-08-17 Nick Clifton <nickc@redhat.com>
1703
1704 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
1705 (show_usage): Add -g.
1706 (std_longopts): Add --gen-debug. Alpha sort the table.
1707 (parse_args): Print an error message if a switch is not handled.
1708 Handle the -g switch, calling md_debug_format_selector() if
1709 necessary.
1710 * NEWS: Mention new feature.
1711 * doc/as.texinfo: Document new switch.
1712 * doc/internals.texi: Document behaviour of md_parse_option.
04ca8703 1713
329e276d
NC
1714 * config/tc-arm.c (md_parse_option): Do not issue an error message
1715 if the switch is not recognised.
1716 * config/tc-m68k.c (md_parse_option): Likewise.
1717 * config/tc-pdp11.c (md_parse_option): Likewise.
1718 * config/tc-v850.c (md_parse_option): Likewise.
1719
1720 * as.h: Fix up formatting.
1721 * tc.h: Likewise.
1722
4101eec8
NC
17232004-08-16 Nick Clifton <nickc@redhat.com>
1724
2766e5e4
NC
1725 * macro.c (macro_set_alternate): Use ISO C90 formatting.
1726
4101eec8
NC
1727 * configure.in: Sort architecture based tables alphabetically.
1728 * configure: Regenerate.
1729
80f846b6
AM
17302004-08-16 Alan Modra <amodra@bigpond.net.au>
1731
1732 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
1733 { "cc", 68 }, with { "cr", 70 }.
1734
caa32fe5
NC
17352004-08-13 Jan Beulich <jbeulich@novell.com>
1736 Nick Clifton <nickc@redhat.com>
1737
1738 * as.c: Add and handle new --alternate command line option.
1739 * macro.c (macro_set_alternate): New.
1740 * macro.h (macro_set_alternate): Declare.
1741 * read.c: Add and handle new .altmacro and .noaltmacro directives.
1742 * doc/as.texinfo: Document new command line option and pseudo-ops
1743 as well as insert documentation originating from gasp about
1744 alternate macro syntax.
1745 * NEWS: Mention new command line option and pseudo-ops.
1746
b2221023
MM
17472004-08-10 Mark Mitchell <mark@codesourcery.com>
1748
1749 * expr.c (operand): Handle the "~", "-", and "!" operators applied
1750 to bignums.
1751
db6579d4
PB
17522004-08-06 Paul Brook <paul@codesourcery.com>
1753
1754 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
1755 Handle new relocations.
1756 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
1757
e750405d
BW
17582004-08-05 Bob Wilson <bob.wilson@acm.org>
1759
1760 * write.c (relax_segment): Use was_address instead of address when
1761 setting fr_fix field for align frag due to backwards .org.
1762
1d70c7fb
AO
17632004-07-29 Alexandre Oliva <aoliva@redhat.com>
1764
1765 Introduce SH2a support.
1766 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
1767 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
1768 arch_sh2a_nofpu_up.
1769 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
1770 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
1771 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
1772 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
1773 to end of conditional expression.
1774 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
1775 * config/tc-sh.c: Add sh2a-nofpu support.
1776 2003-12-29 DJ Delorie <dj@redhat.com>
1777 * tc-sh.c: Add sh2a support.
1778 (parse_reg): Add tbr.
1779 (parse_at): Support @@(disp,tbr).
1780 (get_specific): Support sh2a opcodes.
1781 (insert4): New, for 4 byte relocs.
1782 (build_Mytes): Support sh2a opcodes.
1783 (md_apply_fix3_Mytes): Support sh2a opcodes.
1784 2003-12-02 Michael Snyder <msnyder@redhat.com>
1785 * config/tc-sh.c (md_parse_option): Handle sh2a.
1786 (sh_elf_final_processing): Ditto.
1787
e7fbc2bf
JT
17882004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1789
1790 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
1791 for TE_NetBSD.
1792
9232bbb0
AM
17932004-07-27 Alan Modra <amodra@bigpond.net.au>
1794
1795 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
1796 (ppc_arch): Expand comment.
1797
670ec21d
NC
17982004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
1799
1800 * config/tc-crx.c: Support evaluating the difference between two
1801 symbols.
1802 * config/tc-crx.h: Likewise.
1803
406f8ff9 18042004-07-26 H.J. Lu <hongjiu.lu@intel.com>
38ce5b11
L
1805
1806 * config/tc-ia64.c (start_unwind_section): Set the linked-to
1807 section.
1808 (ia64_elf_section_change_hook): Set the linked-to section for
1809 SHT_IA_64_UNWIND.
1810
c05e9f04
NC
18112004-07-26 Dmitry Diky <diwil@spec.ru>
1812
1813 * config/tc-msp430.c: Add new subtargets: msp430x1610,
1814 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
1815 msp430xG438, msp430xG439.
1816
e9863d7f
DJ
18172004-07-25 Daniel Jacobowitz <dan@debian.org>
1818
1819 * doc/as.texinfo (Section, PushSection): Correct documentation
1820 for ELF.
1821
543613e9 18222004-07-21 Jan Beulich <jbeulich@novell.com>
20f0a1fc
NC
1823
1824 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
1825 permissible for the selected instruction suffix.
1826 (match_template): Don't permit 64-bit general purpose operands in
1827 32-bit mode.
1828 (finalize_imm): Permit 64-bit immediates.
1829 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
1830 specially except for the width of the used base and/or index
1831 registers. For 32-bit displacements, use sign-extended
1832 relocations only when using 64-bit addressing.
1833 Force zero displacement on rip-relative addressing when there is
1834 no other displacement.
1835 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
1836 specially except for the width of the used base and/or index
1837 registers.
1838 (parse_register): Disallow Reg64 registers in 32-bit mode.
1839
543613e9
NC
1840 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
1841 suffix if the instruction doesn't support it.
04ca8703 1842
01a3f561
MR
18432004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
1844
1845 * config/tc-mips.c (append_insn): Handle constant expressions with
1846 no associated relocation.
1847 (mips_ip): Cancel the expression after use for the Q format
1848 specifier.
1849 (parse_relocation): Return no relocation for unsupported
1850 operators.
1851 (my_getSmallExpression): Return no relocation if no relocation
1852 operators are used.
1853
e12904d2
DA
18542004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1855
1856 * config/obj-som.c (adjust_stab_sections): Add prototype.
1857 (obj_som_compiler, obj_som_version, obj_som_copyright,
1858 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
1859 * config/tc-hppa.c (update_subspace): Likewise.
1860 (is_defined_subspace): Amplify comment.
1861 * config/obj-som.h (som_frob_file): Add prototype.
1862
90c1602c
L
18632004-07-19 Christopher Faylor <cgf@timesys.com>
1864 H.J. Lu <hongjiu.lu@intel.com>
1865
1866 * subsegs.c (section_symbol): Don't create a new segment when
1867 existing segment is undefined.
1868
f263249b
RE
18692004-07-16 Richard Earnshaw <rearnsha@arm.com>
1870
1871 * config/tc-arm.c: Include include/opcode/arm.h.
1872 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
1873 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
1874 (FPU_ARCH_*): Delete.
1875 * Makefile.am: Update dependencies.
1876 * Makefile.in: Regenerate.
1877
152c65b9
NC
18782004-07-15 Nick Clifton <nickc@redhat.com>
1879
1880 * configure.in: Accept armbe as a big-endian arm configuration.
1881 * configure: Regenerate.
1882
0477af35
NC
18832004-07-13 Thomas Nystrom <thn@saeab.se>
1884
1885 * config/tc-i386.c (T_SHIFTOP): New constant.
1886 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
1887 (intel_el1): Handle '~'.
1888 (intel_get_token): Handle '<>', '&', '|' and '~'.
1889
18902004-07-13 Nick Clifton <nickc@redhat.com>
1891
1892 (md_assemble): Remove spurious newline from end of as_bad error
1893 message.
1894 (intel_e05_1): Likewise.
1895 (intel_e11): Likewise.
1896 (intel_match_token): Likewise.
1897
31302357
AS
18982004-07-11 Andreas Schwab <schwab@suse.de>
1899
1900 * config/tc-m68k.c: Convert to C90. Remove redundant
1901 declarations. Indentation fixup.
1902 [M68KCOFF]: Include "obj-coff.h" instead of declaring
1903 obj_coff_section ourselves.
04ca8703 1904
549f748d
JW
19052004-07-09 James E Wilson <wilson@specifixinc.com>
1906
1907 * config/tc-ia64.c (default_big_endian): New.
1908 (dot_byteorder, md_begin): Use it.
1909 (md_parse_option): Set it.
04ca8703 1910
1a320fbb
NC
19112004-07-09 Nick Clifton <nickc@redhat.com>
1912
1913 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
1914 * configure: Regenerate.
1915 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
1916 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
1917 sh_find_elf_flags if necessary.
1918
de7e6852
RS
19192004-07-08 Richard Sandiford <rsandifo@redhat.com>
1920
1921 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
1922 going to be split into more than one in-place addend, return 0
1923 for relocations against mergeable sections. Associate comments
1924 with code.
1925
1fe1f39c
NC
19262004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
1927
1928 * Makefile.am (CPU_TYPES): Add crx.
1929 (TARGET_CPU_CFILES): Add config/tc-crx.c.
1930 (TARGET_CPU_HFILES): Add config/tc-crx.h.
1931 (DEPTC_crx_elf): New target.
1932 (DEPOBJ_crx_elf): Likewise.
1933 (DEP_crx_elf): Likewise.
1934 * Makefile.in: Regenerate.
1935 * configure.in: Add crx* target.
1936 * configure: Regenerate.
1937 * config/tc-crx.c: New file.
1938 * config/tc-crx.h: New file.
1939 * NEWS: Mention new target.
1940
d9895649
NC
19412004-07-06 Nick Clifton <nickc@redhat.com>
1942
85fbca6a 1943 * config.in: Undefine TARGET_SYMBIAN by default.
c04f5787
AM
1944 * configure.in:
1945 * configure: Regenerate. Add sh-symbian-elf target. If
1946 selected define TARGET_SYMBIAN.
1947 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
1948 format if TARGET_SYMBIAN has been defined.
04ca8703 1949
e7bd9ea0
NC
1950 * output-file.c (output_file_create): Report the target format
1951 chosen when bfd_openw reports that it is invalid.
1952
d9895649
NC
1953 * config/obj-coff.c (coff_pseudo_table): Only define the weak
1954 pseudo for BFD based assemblers.
1955
871ec896
JR
19562004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
1957
1958 gas:
1959 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
1960 (md_parse_option): Remove redundant -isa testing.
1961 Make bfd_arch variable const.
1962 (md_show_usage): Make bfd_arch variable const.
1963
5a9ff93d
JW
19642004-07-03 James E Wilson <wilson@specifixinc.com>
1965
1966 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
1967 * config/tc-ia64.h (md_frag_check): Define.
1968
c87db184
CF
19692004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1970
1971 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
1972 externals.
1973 * doc/as.texinfo (Weak): Document PE weak symbols.
1974
3b91255e
RS
19752004-07-03 Richard Sandiford <rsandifo@redhat.com>
1976
1977 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
1978 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
1979 (mips_frob_file): Rework so that only a single pass through the
1980 relocs is needed. Allow %lo()s to have higher offsets than their
1981 corresponding %hi()s or %got()s.
1982
310ea308
NC
19832004-07-02 Nick Clifton <nickc@redhat.com>
1984
1985 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
1986 allow values which have come from undefined symbols.
1987 Always consider this fixup to have been processed as a reloc
1988 cannot be generated for it.
1989
09b935ac
AM
19902004-07-02 Alan Modra <amodra@bigpond.net.au>
1991
1992 * frags.h (struct frag): Add has_code and insn_addr fields.
1993 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
1994 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
1995 * config/tc-ppc.h (md_frag_check): Define.
1996
4d1cd5c7
MR
19972004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
1998
1999 * doc/Makefile.am (info): Rename goal to...
2000 (info-local): ... this, to preserve implicit dependencies.
2001 * doc/Makefile.in: Regenerate with automake 1.8.5.
2002
097f809a
NC
20032004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2004
2005 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
2006 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
2007 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
2008 (tc_gen_reloc): Likewise.
2009 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
2010 (m32r_parse_name): Likewise.
2011 (m32r_cgen_parse_fix_exp): Likewise.
2012 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
2013 (O_PIC_reloc): Likewise.
2014 (TC_CGEN_PARSE_FIX_EXP): Likewise..
2015 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
2016 for @GOTOFF, @GOT, @PLT.
2017
bb82af9f
NC
20182004-06-21 Jan Beulich <jbeulich@novell.com>
2019
2020 * gas/symbols.c: While discarding ordinary local absolute symbols
2021 when --strip-local-absolute is in effect, retain file symbols.
2022
990ae22a
AS
20232004-06-20 Andreas Schwab <schwab@suse.de>
2024
2025 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
2026 (md_parse_option): Likewise.
2027
32137342
NC
20282004-06-17 Jan Beulich <jbeulich@novell.com>
2029
2030 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
2031 * config/te-netware.h: New file.
2032 * config/te-ppcnw.h: Delete: Obsolete.
2033 * configure.in: Eliminate ill NetWare targets. Make generic
2034 NetWare target use proper emulation.
2035 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
2036 reference to new te-netware.h.
2037 * configure: Regenerate.
2038 * Makefile.in: Regenerate.
2039
f84d8e26
MS
20402004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
2041
2042 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
2043 comparison in .insn pseudo operation.
2044
587aac4e
AM
20452004-06-15 Alan Modra <amodra@bigpond.net.au>
2046
2047 * config/obj-coff.c (coff_adjust_section_syms): Use
2048 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
2049 (coff_frob_section): Likewise.
2050 * config/tc-mips.c (md_apply_fix3): Likewise.
2051 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
2052 (elf_frob_file_after_relocs): Likewise.
2053
2337eb33
DA
20542004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2055
b8fc22bc
DA
2056 * config/tc-hppa.c (log2): Rename to exact_log2.
2057 (pa_next_subseg): Delete unused function.
2058 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
2059 (create_new_subspace): Likewise.
2060
2337eb33
DA
2061 Bug gas/213
2062 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
2063 labels. Fix warning.
2064
53cb0362
DD
20652004-05-28 DJ Delorie <dj@redhat.com>
2066
2067 * config/tc-mn10300.h (tc_fix_adjustable): Define.
2068 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
2069 or non-merged symbols.
2070
888a75be
L
20712004-05-28 H.J. Lu <hongjiu.lu@intel.com>
2072
2073 * config/tc-ia64.c (remove_marked_resource): Save, clear and
2074 restore the old slot when inserting srlz.i/srlz.d.
2075
f6f9408f
JR
20762004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
2077
2078 * Makefile.am: Regenerate dependecies.
2079 * Makefile.in: Regenerate.
2080 * config/tc-sh.c (valid_arch): Make unsigned.
2081 (preset_target_arch): Likewise.
2082 (md_begin): Use new architecture flags system.
2083 (get_specific): Likewise.
2084 (assemble_ppi): Likewise.
2085 (md_assemble): Likewise. Also fix error check for bad opcodes.
2086 (md_parse_option): Likewise. Also generate -isa values according
2087 to the table in bfd/cpu-sh.c instead of just constants. Also
2088 allow <arch>-up ISA variants.
2089 (sh_elf_final_processing): Replace if-else chain with a call to
2090 sh_find_elf_flags().
2091 * testsuite/gas/sh/arch: New directory.
2092 * testsuite/gas/sh/arch/arch.exp: New test script.
2093 * testsuite/gas/sh/arch/arch_expected.txt: New file.
2094 * testsuite/gas/sh/arch/sh.s: New file.
2095 * testsuite/gas/sh/arch/sh2.s: New file.
2096 * testsuite/gas/sh/arch/sh-dsp.s: New file.
2097 * testsuite/gas/sh/arch/sh2e.s: New file.
2098 * testsuite/gas/sh/arch/sh3-nommu.s: New file.
2099 * testsuite/gas/sh/arch/sh3.s: New file.
2100 * testsuite/gas/sh/arch/sh3-dsp.s: New file.
2101 * testsuite/gas/sh/arch/sh3e.s: New file.
2102 * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
2103 * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
2104 * testsuite/gas/sh/arch/sh4.s: New file.
2105 * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
2106 * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
2107 * testsuite/gas/sh/arch/sh4a.s: New file.
2108
580b9172
NC
21092004-05-28 Peter Barada <peter@the-baradas.com>
2110
2111 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
2112 with zero offset into mode 2 addressing to save a word.
2113
652ca075
L
21142004-05-27 H.J. Lu <hongjiu.lu@intel.com>
2115
2116 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
2117 (ar_is_only_in_integer_unit): New.
2118 (ar_is_only_in_memory_unit): New.
2119 (generate_unwind_image): Silence gcc on 32bit host.
2120 (md_assemble): Use ar_is_only_in_integer_unit instead of
2121 ar_is_in_integer_unit. Check AR access.
2122
60fed2d3
NC
21232004-05-27 Peter Barada <peter@the-baradas.com>
2124
2125 * config/tc-m68k.c (md_begin): Sort the opcode table into
2126 alphabetical order.
2127 (m68k_compare_opcode): New function to do the sorting.
2128
be8c092b
NC
21292004-05-24 Peter Barada <peter@the-baradas.com>
2130
2131 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
2132 addressing on MIT style operands.
2133 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
2134 w/mask addressing.
2135 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
2136 operands.
2137
1181c20e
AM
21382004-05-23 Alan Modra <amodra@bigpond.net.au>
2139
2140 * expr.c (operand, operator): Don't reject '++' and '--'.
2141
20e56c33
RS
21422004-05-20 Richard Sandiford <rsandifo@redhat.com>
2143
2144 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
2145 dwarf tables.
2146
04ca8703 21472004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
2148
2149 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
2150 * configure: Regenerate.
2151
0da76f83
NC
21522004-05-13 Paul Brook <paul@codesourcery.com>
2153
2154 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
2155
4b363073
NC
21562004-05-13 Joel Sherrill <joel@oarcorp.com>
2157
2158 * configure.in (or32-*-rtems*): Switch to elf.
2159 * configure: Regenerate.
2160
9598fbe5
NC
21612004-05-13 Nick Clifton <nickc@redhat.com>
2162
2163 * po/fr.po: Updated French translation.
2164
22fe14ad
NC
21652004-05-11 Nick Clifton <nickc@redhat.com>
2166
2167 * doc/as.texinfo (Section): Document G and T flags to .section
2168 directive. Document the extra arguments that the G flag
2169 requires. Document the #tls flag.
2170
21712004-05-11 H.J. Lu <hongjiu.lu@intel.com>
2172
2173 * subsegs.c (section_symbol): Create a new section symbol if
2174 the existing one doesn't match.
2175 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
2176
532c738a
RS
21772004-05-07 Richard Sandiford <rsandifo@redhat.com>
2178
2179 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
2180 to cope with VR4181A errata MD(1) and MD(4).
2181
0503b355
BF
21822004-05-07 Brian Ford <ford@vss.fsi.com>
2183
2184 * NEWS: Mention .secrel32 for pe[i]-i386.
2185
daeea990
AO
21862004-05-07 Alexandre Oliva <aoliva@redhat.com>
2187
2188 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2189 (HANDLE_ALIGN): New.
2190
bfbdcf04
DJ
21912004-05-06 Daniel Jacobowitz <dan@debian.org>
2192
2193 * Makefile.am (DIST_SUBDIRS): Define.
2194 * aclocal.m4: Regenerate with automake 1.8.4.
2195 * Makefile.in: Likewise.
2196 * doc/Makefile.in: Likewise.
2197
5e819f9c
JW
21982004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
2199
2200 * config/tc-ia64.c (dot_serialize): Declare.
2201 (dot_serialize): New function.
2202 (md_pseudo_table): Add ".serialize.data" and
2203 ".serialize.instruction" directives.
2204
e5976317
NC
22052004-05-06 Nick Clifton <nickc@redhat.com>
2206
2207 * messages (as_internal_value_out_of_range): Print a message about
2208 a value being out of range. Be consistent about whether the
2209 values are printed in decimal or hexadecimal.
2210 (as_warn_value_out_of_range): Generate a warning message about an
2211 out of range value.
2212 (as_bad_value_out_of_range): Generate an error message about an
2213 out of range value.
2214 * as.h: Prototype the new functions.
2215 * config/tc-alpha.c (insert_operand): Use new function.
2216 * config/tc-arc.c (arc_insert_operand): Likewise.
2217 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
2218 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
2219 * config/tc-ppc.c (ppc_insert_operand): Likewise.
2220 * config/tc-s390.c (s390_insert_operand): Likewise.
2221 * config/tc-v850.c (v850_insert_operand): Likewise.
2222
996991aa
AO
22232004-05-05 Alexandre Oliva <aoliva@redhat.com>
2224
2225 * configure.in: Set em=linux for frv-*-*linux*.
2226 * configure: Rebuilt.
2227 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
2228 (frv_md_fdpic_enabled): New.
2229 * config/tc-frv.c (frv_md_fdpic_enabled): New.
2230 (DEFAULT_FDPIC): New.
2231 (frv_flags): Use DEFAULT_FDPIC.
2232 (frv_pic_flag): Likewise.
2233 (OPTION_NOPIC): New.
2234 (md_longopts): Add -mnopic.
2235 (md_parse_option): Handle it.
2236 (md_show_usage): Add -mfdpic and -mnopic.
2237
6b6e92f4
NC
22382004-05-05 Peter Barada <peter@the-baradas.com>
2239
2240 * config/tc-m68k.c: Add find_cf_chip to print list of valid
2241 chips for invalid coldfire instructions, rename selectors
2242 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
2243 add current_chip to track which chip is referred to(including save/restore),
2244 use current_chip to select control registers, not current_arch.
2245 (md_show_usage): Add new chips.
2246 * doc/c-m68k.texi: Document new command line switches.
2247
6f079ae3
JJ
22482004-05-05 Jakub Jelinek <jakub@redhat.com>
2249
2250 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
2251 (NOP_OPCODE): Define.
2252 (s390_align_code): Remove prototype.
2253 * tc-s390.c (s390_align_code): Remove.
2254
2d6ed997
L
22552004-05-04 H.J. Lu <hongjiu.lu@intel.com>
2256
2257 * config/tc-ia64.c (make_unw_section_name): Removed.
2258 (start_unwind_section): New function.
2259 (generate_unwind_image): Take const segT instead of const
2260 char *.
2261 (dot_handlerdata): Adjusted.
2262 (dot_endp): Likewise.
2263
b9f18452
L
22642004-05-02 H.J. Lu <hongjiu.lu@intel.com>
2265
2266 * config/obj-elf.c (obj_elf_change_section): Allow the
2267 ".note.GNU-stack" section has SHF_EXECINSTR.
2268
fafe6678
L
22692004-05-02 H.J. Lu <hongjiu.lu@intel.com>
2270
2271 * config/obj-elf.c (get_section): Return bfd_boolean.
2272 (obj_elf_change_section): Call bfd_get_section_by_name_if
2273 instead of bfd_map_over_sections.
2274
86654c12
L
22752004-04-30 H.J. Lu <hongjiu.lu@intel.com>
2276
2277 * config/obj-elf.c (get_section): New function.
2278 (obj_elf_change_section): Support multiple sections with same
2279 name.
2280
376eb240
NC
22812004-04-30 Nick Clifton <nickc@redhat.com>
2282
2283 * config/tc-arm.c (create_register_alias): Fix typo checking for
2284 case sensitive register aliases.
2285 (co_proc_number): Use error message string in all_reg_maps[]
2286 array.
2287 (cp_reg_required_here): Likewise.
2288 (fp_reg_required_here): Likewise.
2289
8a7140c3
NC
22902004-04-29 Brian Ford <ford@vss.fsi.com>
2291
2292 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
2293
3e722fb5
CD
22942004-04-28 Chris Demetriou <cgd@broadcom.com>
2295
2296 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
2297 (load_address, macro, mips_ip, md_parse_option)
2298 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
2299 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
2300 embedded-PIC handling, and update comments.
2301 (SWITCH_TABLE): Remove.
2302 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
2303 (enum mips_pic_level): Remove EMBEDDED_PIC.
2304 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
2305 (TC_FORCE_RELOCATION): Update comment.
2306 * ecoff.c (ecoff_build_lineno): Add comment about some code that
2307 might be safe to remove now that MIPS embedded-PIC is gone.
2308
351e2b5a
DA
23092004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2310
2311 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
2312 call to obj_set_subsection_attributes.
2313 (obj_som_init_stab_section): Likewise.
2314 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
2315 (pa_def_subspaces): Provide comdat default.
2316 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
2317 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
2318 calls to create_new_subspace and update_subspace to pass comdat flag.
2319 (create_new_subspace, update_subspace): Add new comdat argument. Use
2320 it in calls to obj_set_subsection_attributes.
2321 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
2322 and use of comdat, common and dup_comm parameters.
2323
f5842774
L
23242004-04-26 H.J. Lu <hongjiu.lu@intel.com>
2325
2326 * config/obj-elf.c (obj_elf_change_section): Check if the old
2327 group name is NULL before comparison.
2328
558fe4a7
CD
23292004-04-23 Chris Demetriou <cgd@broadcom.com>
2330
2331 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
2332
81a21e38
TS
23332004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2334
2335 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
2336
23372004-04-23 Chris Demetriou <cgd@broadcom.com>
1ffcab4b
CD
2338
2339 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
2340 (OPTION_MEMBEDDED_PIC): Remove.
2341 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
2342 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
2343 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
2344 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
2345 (OPTION_ELF_BASE): Renumber.
2346 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
2347 (md_show_usage): Remove mention of -membedded-pic.
2348 * doc/as.texinfo: Remove mention of -membedded-pic.
2349
4d0d148d
TS
23502004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2351
2352 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
2353 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
2354 a.out support.
2355 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
2356 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
2357 USE_GLOBAL_POINTER_OPT.
2358
017315e4
TS
23592004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2360
2361 * config/tc-mips.c (macro): One more use of load_delay_nop.
2362
269137b2
TS
23632004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2364
2365 * config/tc-mips.c (load_delay_nop): New function.
2366 (load_address, macro): Use load_delay_nop() to build a nop
2367 which can be omitted with gpr_interlocks.
2368
24772049
TS
23692004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2370
2371 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
2372 cop_interlocks): Remove superfluous CPU entries.
2373
06516a5e
PB
23742004-04-22 Paul Brook <paul@codesourcery.com>
2375
2376 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
2377
fd99574b
NC
23782004-04-22 Peter Barada <peter@the-baradas.com>
2379
2380 * NEWS: Added support for EMAC instructions and MAC/EMAC
2381 Motorola syntax.
2382 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
2383 scale factor tokens, trailing_ampersand to mark mask addressing
2384 for MAC/EMAC instructions.
2385 * config/m68k-parse.y: Add options_ampersand clause, '<<',
2386 '>>'.
2387 (yylex): Handle '>', '<', and '&' following '+'.
2388 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
04ca8703 2389 architectures in archs[].
fd99574b
NC
2390 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
2391 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
2392 respectively.
2393 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
2394 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
2395 cases.
2396 Add EMAC operands to init_table[].
2397
69b97547
NC
23982004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
2399
2400 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
2401 state.
2402 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
2403 * config/tc-arm.c (enum mstate): Delete from here.
2404 (mapping_state): Remove the static mapstate variable and instead
2405 store the state in the segment. This allows a per-section mapping
2406 state. Handle and ignore MAP_UNDEFINED states.
2407 (arm_elf_change_section): Get the current mapping state from the
2408 new section.
2409 (s_ltorg): Set the mapping state to MAP_DATA.
2410 (arm_cleanup): Use arm_elf_change_section to get the mapping state
2411 for each pool as it is emitted.
2412
24132004-04-22 Nick Clifton <nickc@redhat.com>
2414
2415 * config/tc-arm.h: Formatting tidy ups.
2416
7a7f4e42
CD
24172004-04-20 Chris Demetriou <cgd@broadcom.com>
2418
2419 * NEWS: Note that MIPS -membedded-pic option is deprecated.
2420
6482c264
NC
24212004-04-20 DJ Delorie <dj@redhat.com>
2422
2423 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
2424 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
2425 [TE_PE] (O_secrel): Define.
2426 [TE_PE] (x86_pe_cons_fix_new): New.
2427 [TE_PE] (pe_directive_secrel): Likewise.
2428 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
2429
5bf10039
EC
24302004-04-19 Eric Christopher <echristo@redhat.com>
2431
c04f5787
AM
2432 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
2433 of previous patch for fix in gcc.
5bf10039 2434
77cd6497
JJ
24352004-04-19 Jakub Jelinek <jakub@redhat.com>
2436
2437 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
2438
b8861cfb
NS
24392004-04-19 Nathan Sidwell <nathan@codesourcery.com>
2440
2441 * read.c (do_align): Call md_flush_pending_output, if defined.
2442
f4c724fc
AM
24432004-04-16 Alan Modra <amodra@bigpond.net.au>
2444
2445 * expr.c (operand): Correct checks for ++ and --.
2446
a4b6e8f6
L
24472004-04-14 H.J. Lu <hongjiu.lu@intel.com>
2448
2449 * config/tc-generic.c: Add some comments.
2450
d766e8ec
RS
24512004-04-14 Richard Sandiford <rsandifo@redhat.com>
2452
2453 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
2454 -{no-}mfix-vr4122-bugs.
2455 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
2456 (append_insn, mips_emit_delays): Update accordingly.
2457 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
2458 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
2459 (md_parse_option): Update after above changes.
2460 (md_show_usage): Add -mfix-vr4120.
2461
ed9589d4
BW
24622004-04-13 Bob Wilson <bob.wilson@acm.org>
2463
2464 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
2465 of .section directive; add a reference to the ELF .subsection
2466 directive.
2467
097dba13
NC
24682004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2469
2470 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
2471 in parallel.
2472
279500de
TS
24732004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2474
2475 * Makefile.am: Remove mips from aout targets.
2476 * Makefile.in: Regenerate.
2477 * configure.in: Remove mips-dec-bsd* target.
2478 * configure: Regenerate.
2479
b7d7dc63
AM
24802004-04-07 Alan Modra <amodra@bigpond.net.au>
2481
2482 PR 96
2483 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
2484 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
2485 Update "mapping". Restrict some @ modifiers to 32 bit.
2486
f55629b8
KK
24872004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
2488 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2489
2490 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
2491 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
2492 dont_adjust_reloc_32 is set.
2493 (md_longopts): Add option -renesas.
2494 (md_parse_option, md_show_usage): Likewise.
2495 * doc/c-sh.texi: Likewise.
2496
a7844384
NC
24972004-04-01 Dave Korn <dk@artimi.com>
2498
2499 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
2500 hi16 and lo16 fixS structs.
2501 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
2502 exactly the same way as for RELOC_DLX_REL16.
2503 (machine_ip): properly respect LO flag in the_insn and
2504 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
2505 (md_apply_fix3): apply RELOC_DLX_LO16.
2506
6c71dbc4
SS
25072004-03-30 Stan Shebs <shebs@apple.com>
2508
2509 Remove long-obsolete MPW support.
2510 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
2511 * configure.in: Remove mention of ppc-*-mpw* config.
2512 * configure.in: Likewise.
2513
7cc69913
NC
25142004-03-30 Nick Clifton <nickc@redhat.com>
2515
2516 * config/tc-arm.c (meabi_flags): Make its use conditional upon
2517 OBJ_ELF being defined.
2518
53fbb48a
AM
25192004-03-27 Alan Modra <amodra@bigpond.net.au>
2520
2521 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
2522
d507cf36
PB
25232004-03-23 Paul Brook <paul@codesourcery.com>
2524
2525 * config/tc-arm.c (meabi_flags): New variable.
2526 (arm_parse_eabi): New function.
2527 (md_begin): Set flags for EABI v3.
2528 (arm_eabis): Add.
2529 (arm_long_opts): Add meabi.
2530 * doc/as.texinf <ARM>: Document -meabi.
2531 * doc/c-arm.texi: Ditto.
2532
88d65ad6
BW
25332004-03-22 Bob Wilson <bob.wilson@acm.org>
2534
2535 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
2536 tables even when use_literal_section flag is not set.
2537
13ef8878
AM
25382004-03-22 Alan Modra <amodra@bigpond.net.au>
2539
2540 * config/tc-sh.c: Remove trailing whitespace.
2541
1048a9ba
HPN
25422004-03-22 Hans-Peter Nilsson <hp@axis.com>
2543
2544 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
2545 --mul-bug-abort and the default behavior.
2546 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
2547 (err_for_dangerous_mul_placement): New variable.
2548 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
2549 macros.
2550 (md_cris_relax_table): Have placeholder for STATE_MUL.
2551 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
2552 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
2553 case doing nothing.
2554 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
2555 STATE_BYTE)>: Ditto.
2556 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
2557 alignment and position of this frag, emit error message if
2558 suspicious.
2559 (md_assemble): For a multiply insn and when checking it,
2560 transform the current frag into a special frag for that purpose.
2561 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
2562 OPTION_MULBUG_ABORT_ON>: Handle new options.
2563
a7877748
BW
25642004-03-19 Bob Wilson <bob.wilson@acm.org>
2565
2566 * config/tc-xtensa.c (mark_literal_frags): New function.
2567 (xtensa_move_literals): Call mark_literal_frags for all literal
2568 segments, including init and fini literal segments.
2569 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
2570
9992270f
DA
25712004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2572
2573 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
2574 (pa_comm): Set BSF_OBJECT in symbol flags.
2575
6e1772d5
AM
25762004-03-19 Alan Modra <amodra@bigpond.net.au>
2577
2578 * Makefile.am: Run "make dep-am".
2579 * Makefile.in: Regenerate.
2580 * doc/Makefile.in: Regenerate.
2581 * config.in: Regenerate.
2582 * po/gas.pot: Regenerate.
2583
3e4caed2
NS
25842004-03-18 Nathan Sidwell <nathan@codesourcery.com>
2585
c95b35a9
NS
2586 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
2587 (demand_empty_rest_of_line): Issue an error here.
2588 (ignore_rest_of_line): Silently skip to end.
2589 (demand_copy_string): Issue an error, not warning.
2590 (equals): Likewise.
2591 * config/obj-elf.c (obj_elf_section_name): Likewise.
2592 (obj_elf_section): Likewise.
2593 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
2594 (arc_extinst): Likewise.
2595 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
2596 (dot_spill): Likewise.
2597 (dot_unwabi): Likewise.
2598 (dot_prologue): Likewise.
2599
3e4caed2
NS
2600 * expr.c (operand): Reject ++ and --.
2601 (operator): Likewise.
2602
2ce4cc60
KK
26032004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2604
2605 * config/tc-sh.c: Include dw2gencfi.h.
2606 (sh_cfi_frame_initial_instructions): New function.
2607 (sh_regname_to_dw2regnum): Likewise.
2608 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
2609 file.
2610 (TARGET_USE_CFIPOP): Define.
2611 (tc_cfi_frame_initial_instructions): Likewise.
2612 (tc_regname_to_dw2regnum): Likewise.
2613 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
2614 * Makefile.am: Update dependencies.
2615 * Makefile.in: Regenerate.
2616
9183ed4b
AM
26172004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2618
2619 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2620 * configure: Regenerate.
2621
00bbdfe7
BW
26222004-03-12 Bob Wilson <bob.wilson@acm.org>
2623
2624 * read.c (s_leb128): Call md_flush_pending_output.
2625
0f10071e
ML
26262004-03-12 Michal Ludvig <mludvig@suse.cz>
2627
2628 * config/tc-i386.c (output_insn): Handle PadLock instructions.
2629 * config/tc-i386.h (CpuPadLock): New define.
2630 (CpuUnknownFlags): Added CpuPadLock.
2631
84c84759
AS
26322004-03-07 Andreas Schwab <schwab@suse.de>
2633
2634 * doc/c-hppa.texi (HPPA Directives): Fix typo.
2635
6ec51dba
RH
26362004-03-07 Richard Henderson <rth@redhat.com>
2637
2638 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
2639 (cfi_finish): Likewise for fde.
2640
bae25f19
L
26412004-03-05 H.J. Lu <hongjiu.lu@intel.com>
2642
2643 * config/tc-ia64.c (md_assemble): Properly handle NULL
2644 align_frag.
2645 (ia64_handle_align): Don't abort if failed to add a stop bit.
2646
ab509236
L
26472004-03-04 H.J. Lu <hongjiu.lu@intel.com>
2648
2649 * Makefile.in: Regenerated.
2650 * aclocal.m4: Likewise.
2651 * configure: Likewise.
2652 * doc/Makefile.in: Likewise.
2653
d9201763
L
26542004-03-03 H.J. Lu <hongjiu.lu@intel.com>
2655
2656 * config/tc-ia64.c (dot_align): New.
2657 (ia64_do_align): Make it static.
2658 (md_pseudo_table): Use "dot_align" for "align".
2659 (ia64_md_do_align): Don't set align_frag here.
2660 (ia64_handle_align): Add a stop bit to the previous bundle if
2661 needed.
2662
2663 * config/tc-ia64.h (ia64_do_align): Removed.
2664
ae51a426
JR
26652003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
2666
2667 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
2668 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
2669 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
2670 the most general type or the user specifically requested it.
2671 (md_assemble): Add a new error message for when an instruction
2672 is understood, but is not allowed due to an -isa option.
2673
9545c4ce
L
26742004-03-02 H.J. Lu <hongjiu.lu@intel.com>
2675
2676 * config/tc-ia64.c (align_frag): New.
2677 (md_assemble): Set the tc_frag_data field in align_frag for
2678 IA64_OPCODE_FIRST instructions.
2679 (ia64_md_do_align): Set align_frag.
2680 (ia64_handle_align): Add a stop bit if needed.
2681
2682 * config/tc-ia64.h (TC_FRAG_TYPE): New.
2683 (TC_FRAG_INIT): New.
2684
676a64f4
RS
26852004-03-01 Richard Sandiford <rsandifo@redhat.com>
2686
2687 * config/tc-frv.c (fr400_audio): New variable.
2688 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
2689 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
2690 (target_implements_insn_p): New function.
2691 (md_assemble): Report an error if the processor doesn't implement
2692 the instruction.
2693
bd337dde
NC
26942004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2695
2696 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
2697 (md_parse_option): Ditto.
2698 (OPTION_NO_SPECIAL_M32R): Added.
2699 (md_show_usage): Document it.
2700 (enable_speial_m32r): Changed a default value from 0 to 1.
2701 * doc/c-m32r.texi: Document the -no-bitinst option.
2702
78878175
NC
27032004-02-27 Nick Clifton <nickc@redhat.com>
2704
2705 * config/tc-sh.c (get_operand): Revert previous delta.
2706 (tc_gen_reloc): Check for an unknown reloc type before processing
2707 the addend.
2708
1d6d62a4
MS
27092004-02-27 Hannes Reinecke <hare@suse.de>
2710
2711 * config/tc-s390.c (s390_insn): Correct range check for opcode in
2712 .insn pseudo operation.
2713
4aa3e325
NC
27142004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
2715
2716 * config/tc-sh.c (get_operand): In case of #Imm, check has been
2717 added for wrong syntax.
2718
73369e65
EC
27192004-02-26 Eric Christopher <echristo@redhat.com>
2720
2721 * config/tc-mips.c (mips_dwarf2_addr_size): New.
2722 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
2723
6a5709a5
JR
27242004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
2725
2726 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
2727 nibble types to assembler.
2728
95385380
FF
27292004-02-25 Fred Fish <fnf@redhat.com>
2730
2731 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
2732
b5e0fabd
JW
27332004-02-20 James E Wilson <wilson@specifixinc.com>
2734
2735 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
2736 finalize_syms.
2737 (fixup_unw_records): New arg before_relax. Pass to slot_index.
2738 (ia64_estimate_size_before_relax): New.
2739 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
2740 (generate_unwind_image): Pass 1 to fixup_unw_records.
2741 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
2742 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
2743
2f01ffbf
JJ
27442004-02-19 Jakub Jelinek <jakub@redhat.com>
2745
2746 * stabs.c (generate_asm_file): Avoid warning about use of
2747 uninitialized variable.
2748
9c59842f
JW
27492004-02-18 David Mosberger <davidm@hpl.hp.com>
2750
2751 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
2752 body, and endp, allow unwind records which do not have a "t"
2753 (time/instruction) field.
2754
34920d91
NC
27552004-02-17 Petko Manolov <petkan@nucleusys.com>
2756
2757 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
2758 (do_mav_dspsc_2): Likewise.
2759 Fix accumulator registers move opcodes.
2760
4dde8e61 27612004-02-13 Hannes Reinecke <hare@suse.de>
13ef8878 2762 Jakub Jelinek <jakub@redhat.com>
4dde8e61
AJ
2763
2764 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
2765
936cf02e
JW
27662004-02-10 Steve Ellcey <sje@cup.hp.com>
2767
2768 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
2769 (tc_frob_symbol): New macro definition.
2770 * config/tc-ia64.c (ia64_frob_symbol): New routine.
2771
e41f12f3
DJ
27722004-02-09 Daniel Jacobowitz <drow@mvista.com>
2773
2774 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
2775 read-only.
2776
a8a3b3b2
NS
27772004-02-09 Nathan Sidwell <nathan@codesourcery.com>
2778
2779 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
2780 (TC_CASE_SENSITIVE): ... this.
2781 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
2782 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
2783
c97b7ef6
JW
27842004-02-06 James E Wilson <wilson@specifixinc.com>
2785
2786 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
2787 (generate_unwind_image): Re-add it here.
2788
e4475e39
NS
27892004-02-06 Nathan Sidwell <nathan@codesourcery.com>
2790
2791 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
2792 * read.h (SKIP_WHITESPACE): Turn into an expression.
2793 * read.c (read_a_source_file): A pseudo is removed by having a
2794 NULL handler.
2795
5738bc24
JW
27962004-02-05 James E Wilson <wilson@specifixinc.com>
2797
2798 * config/tc-ia64.c (output_endp): New.
2799 (count_bits): Delete.
2800 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
2801 endp unwind records.
2802 (fixup_unw_records): Handle endp unwind records. Delete code for
2803 shortening prologue regions not followed by a body record.
2804 (dot_endp): Call add_unwind_entry to emit endp unwind record.
2805 * config/tc-ia64.h (unw_record_type): Add endp.
2806
d6e78c11
JW
28072004-02-03 James E Wilson <wilson@specifixinc.com>
2808
2809 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
2810 fill padding bytes with zeroes.
2811 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
2812 sets unwind_record slot_number and slot_frag fields.
2813
f6a22291
MR
28142004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2815
2816 * config/tc-mips.c (add_got_offset_hilo): New function.
2817 (macro): Use load_register() and add_got_offset_hilo() to load
2818 constants instead of hardcoding code sequences throughout.
2819
127cab00
L
28202004-01-28 H.J. Lu <hongjiu.lu@intel.com>
2821
2822 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
2823
6358301e
NC
28242004-01-26 Bernardo Innocenti <bernie@develer.com>
2825
2826 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
2827 like m68k-elf.
2828 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
2829 of hard-coded test for TARGET_OS=elf.
2830
c8978940
CD
28312004-01-24 Chris Demetriou <cgd@broadcom.com>
2832
2833 * config/tc-mips.c (hilo_interlocks): Change definition
2834 so that MIPS32, MIPS64 and later ISAs are included, along with
2835 the already-included machines. Update comments.
2836
c3ba240c
DJ
28372004-01-23 Daniel Jacobowitz <drow@mvista.com>
2838
2839 * config/tc-arm.c (tc_gen_reloc): Improve error message for
2840 undefined local labels.
2841
e864ceca
RS
28422004-01-23 Richard Sandiford <rsandifo@redhat.com>
2843
2844 * config/tc-mips.c (load_address, macro): Update comments about
2845 NewABI GP relaxation.
2846
67c0d1eb
RS
28472004-01-23 Richard Sandiford <rsandifo@redhat.com>
2848
2849 * config/tc-mips.c (macro_build): Remove place and counter arguments.
2850 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
2851 (mips16_macro_build, macro_build_jalr): Remove counter argument.
2852 (set_at, load_register, load_address, move_register): Likewise.
2853 (load_got_offset, add_got_offset): Likewise.
2854 Update all calls and tidy accordingly.
2855
584892a6
RS
28562004-01-23 Richard Sandiford <rsandifo@redhat.com>
2857
2858 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
2859 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
2860 (RELAX_USE_SECOND): Bump to 0x10000.
2861 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
2862 (mips_macro_warning): New variable.
2863 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
2864 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
2865 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
2866 of RELAX_ENCODE.
2867 (append_insn): Update mips_macro_warning.sizes.
2868 (macro_start, macro_warning, macro_end): New functions.
2869 (macro_build): Don't emit warnings here.
2870 (macro_build_lui, md_estimate_size_before_relax): ...or here.
2871 (md_convert_frag): Check for cases where one macro alternative
2872 needs a warning and the other doesn't. Emit a warning if the
2873 longer sequence was chosen.
2874
4d7206a2
RS
28752004-01-23 Richard Sandiford <rsandifo@redhat.com>
2876
2877 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
2878 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
2879 the first sequence, the size of the second sequence, and a flag
2880 that says whether we should warn.
2881 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
2882 (RELAX_FIRST, RELAX_SECOND): New.
2883 (mips_relax): New variable.
2884 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
2885 (append_insn): Remove "place" argument. Use mips_relax.sequence
2886 rather than "place" to check whether we're expanding the second
2887 alternative of a relaxable macro. Remove redundant check for
2888 branch relaxation. If generating a normal insn, and there
2889 is not enough room in the current frag, call relax_close_frag()
2890 to close it. Update mips_relax.sizes[]. Emit fixups for the
2891 second version of a relaxable macro. Record the first relaxable
2892 fixup in mips_relax. Remove tc_gen_reloc workaround.
2893 (macro_build): Remove all uses of "place". Use mips_relax.sequence
2894 in the same way as in append_insn.
2895 (mips16_macro_build): Remove "place" argument.
2896 (macro_build_lui): As for macro_build. Don't drop the add_symbol
2897 when generating the second version of a relaxable macro.
2898 (load_got_offset, add_got_offset): New functions.
2899 (load_address, macro): Use new relaxation machinery. Remove
2900 tc_gen_reloc workarounds.
2901 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
2902 version of a relaxable macro is needed. Return -RELAX_SECOND if the
2903 first version is needed.
2904 (tc_gen_reloc): Remove relaxation handling.
2905 (md_convert_frag): Go through the fixups for a relaxable macro and
2906 mark those that belong to the unneeded alternative as done. If the
2907 second alternative is needed, adjust the fixup addresses to account
2908 for the deleted first alternative.
2909
0530d30a
RS
29102004-01-23 Richard Sandiford <rsandifo@redhat.com>
2911
2912 * frags.h (frag_room): Declare.
2913 * frags.c (frag_room): New function.
2914 * doc/internals.texi: Document it.
2915
048cdf86
TS
29162004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2917
2918 * config/tc-mips.c (append_insn): Don't do r3900 interlock
2919 optimization for -mtune=r3900, as this will break on other CPUs.
2920
28d39d1a
NC
29212004-01-11 Tom Rix <tcrix@worldnet.att.net>
2922
2923 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
73369e65 2924 be relaxed, use fixup.
28d39d1a
NC
2925 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
2926
26664553
JJ
29272004-01-19 Jakub Jelinek <jakub@redhat.com>
2928
2929 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
2930 precision operands.
2931
895921c9
MR
29322004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2933
2934 * config/tc-mips.c (append_insn): Properly detect variant frags
2935 that preclude swapping of relaxed branches. Correctly swap
2936 instructions between frags when dealing with relaxed branches.
2937
f8b73030
MR
29382004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2939
2940 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
2941 throughout.
2942 * aclocal.m4: Regenerate.
2943 * configure: Regenerate.
2944
ca9a79a1 29452004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
73369e65 2946
ca9a79a1
NC
2947 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
2948 manipulation insns.
2949
cc3d92a5
RS
29502004-01-12 Richard Sandiford <rsandifo@redhat.com>
2951
2952 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
2953 reloc, reserve space for the delay slot as well as the jalr itself.
2954
e45d0630
PB
29552004-01-09 Paul Brook <paul@codesourcery.com>
2956
2957 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
2958 (do_vfp_sp2_from_reg2): New function.
2959 (insns): Use them.
2960 (do_vfp_dp_from_reg2): Check return values properly.
2961
81912461
ILT
29622004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
2963
78849248
ILT
2964 * config/tc-mips.c (warn_nops): Remove static variable.
2965 (macro): Remove test of warn_nops.
2966 (md_shortops): Remove 'n'.
2967 (md_parse_option): Remove 'n' case.
2968 (md_show_usage): Remove -n.
2969 * doc/as.texinfo (Overview): Remove MIPS -n option.
2970 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
2971 * NEWS: Mention removal of MIPS -n option.
2972
81912461
ILT
2973 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
2974 (cop_interlocks): Check ISA level.
2975 (cop_mem_interlocks): Define.
2976 (reg_needs_delay): Check cop_interlocks rather than
2977 ISA_HAS_COPROC_DELAYS.
2978 (append_insn): Likewise. Use cop_mem_interlocks rather than
2979 directly checking mips_opts.isa.
2980 (mips_emit_delays): Likewise.
2981
73f20958
L
29822004-01-07 H.J. Lu <hongjiu.lu@intel.com>
2983
2984 * config/tc-ia64.c (unwind): Move next_slot_number and
2985 next_slot_frag to ...
2986 (unw_rec_list): Here.
2987 (free_list_records): Removed.
2988 (output_unw_records): Likewise.
2989 (generate_unwind_image): Make it void.
2990 (alloc_record): Initialize next_slot_number and next_slot_frag.
2991 (slot_index): Take .org, .space and .align into account.
2992 (fixup_unw_records): Don't set slot_number to 0. Use
2993 list->next_slot_number and list->next_slot_frag instead of
2994 unwind.next_slot_number and unwind.next_slot_frag.
2995 (ia64_convert_frag): New.
2996 (generate_unwind_image): Generate a rs_machine_dependent frag
2997 for unwind record.
2998 (emit_one_bundle): Use list->next_slot_number and
2999 list->next_slot_frag instead of unwind.next_slot_number and
3000 unwind.next_slot_frag.
3001
3002 * config/tc-ia64.h (md_convert_frag): Defined as
3003 ia64_convert_frag.
3004 (md_estimate_size_before_relax): Defined as (f)->fr_var.
3005
99d09cdb
AO
30062004-01-06 Alexandre Oliva <aoliva@redhat.com>
3007
3008 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
3009 * config/tc-frv.h (md_apply_fix3): Don't define.
3010 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
3011 operands.
3012 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3013 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
3014 * config/tc-frv.c (line_separator_chars): Add `!'.
3015 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
3016 * config/tc-frv.c (md_assemble): Clear insn upfront.
3017 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3018 * config/tc-frv.c (OPTION_FDPIC): New macro.
3019 (md_longopts): Add mfdpic.
3020 (md_parse_option): Handle it.
3021 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
3022 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
3023 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
3024 (frv_pic_ptr): Parse funcdesc.
3025
4a4c4a1d
MR
30262004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3027
3028 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
3029 gasver.texi. Remove duplicate symbol definitions for texi2pod.
3030
2251dd89
MR
30312004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3032
3033 * Makefile.am (Makefile): Move the dependency on
3034 $(BFDDIR)/configure.in to...
3035 (CONFIG_STATUS_DEPENDENCIES): ... here.
3036 (AUTOMAKE_OPTIONS): Require automake 1.8.
3037 * Makefile.in: Regenerate.
3038 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
3039 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
3040 $(BFDDIR)/configure.in here as well.
3041 * doc/Makefile.in: Regenerate.
3042
c6581168
MR
30432004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3044
3045 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
3046 * Makefile.in: Regenerate.
3047 * aclocal.m4: Regenerate.
3048 * doc/Makefile.am (install, install-info): Remove.
3049 (install-data-local): A new hook for install-info.
3050 (AUTOMAKE_OPTIONS): Require automake 1.8.
3051 * doc/Makefile.in: Regenerate.
3052
303e7b79
NC
30532004-01-02 Nutan Singh <nutan@kpitcummins.com>
3054
3055 * doc/c-sh.texi: Update description about floating point behavior
3056 of SH family.
3057
b50c15dc
NC
30582004-01-02 Bernardo Innocenti <bernie@develer.com>
3059
3060 * configure.in: Add m68k-uClinux target.
3061 * configure: Regenerate.
7de9afa2 3062
c9e214e5 3063For older changes see ChangeLog-0203
08d56133
NC
3064\f
3065Local Variables:
3066mode: change-log
3067left-margin: 8
3068fill-column: 74
3069version-control: never
3070End: