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