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