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