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