gas/
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
a724f0f4
JB
12005-03-17 Jan Beulich <jbeulich@novell.com>
2
3 * config/tc-i386.c (i386_scale): Beautify error message.
4 (Intel syntax comments): Update.
5 (struct intel_parser_s): Add fields in_offset, in_bracket, and
6 next_operand.
7 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
8 Remove declarations.
9 (intel_bracket_expr): Declare.
10 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
11 of the function body in a loop allowing to split an operand into two.
12 Replace calls to malloc and checks of it returning non-NULL with
13 calls to xmalloc/xstrdup.
14 (intel_expr): SHORT no longer handled here. Add comment indicating
15 comparison ops need implementation.
16 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
17 Check right operand of - does not specify a register when parsing
18 the address of a memory reference.
19 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
20 Check operands do not specify a register when parsing the address of
21 a memory reference.
22 (intel_e06, intel_e06_1): Likewise.
23 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
24 handle SHORT as well as unary + and -. Don't accept : except for
25 segment overrides or in direct far jump/call insns.
26 (intel_brack_expr): New.
27 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
28 intel_brack_expr.
29 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
30 through in certain cases. Use intel_brack_expr. Add new diagnostics.
31 Allow symbolic constants as register scale value.
32 (intel_get_token): Replace call to malloc and check of return value
33 with call to xmalloc. Change handling for FLAT to match MASM's.
34 (intel_putback_token): Don't try to back up/free current token if
35 that is T_NIL.
36
deeaaff8
DJ
372005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
38
39 * configure.tgt: Set emulation for arm-*-eabi*.
40 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
41 * config/te-armeabi.h: New file.
42 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
43 * config/te-symbian.h: Include "te-armeabi.h".
44
199fea98
NC
452005-03-16 Nick Clifton <nickc@redhat.com>
46
47 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
48 local variable in case it is clobbered by the setjmp.
49
1ad12f97
NC
502005-03-16 Nick Clifton <nickc@redhat.com>
51 Ben Elliston <bje@au.ibm.com>
52
569acd2c 53 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 54 compiler command line. Enabled by default. Disable via
569acd2c 55 --disable-werror.
1ad12f97
NC
56 * configure: Regenerate.
57
a5324a3e
NC
582005-03-16 Nick Clifton <nickc@redhat.com>
59
60 * config/obj-coff.h: Convert to ISO C90 formatting.
61 * config/obj-coff.c: Convert to ISO C90 formatting.
62
b05fe5cf
ZW
632005-03-15 Zack Weinberg <zack@codesourcery.com>
64
65 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
66 is_mls parameter; do not diagnose Rm==Rd when is_mls.
67 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
68 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
69 (insns): Add ARMv6T2 instructions:
70 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
71 (arm_archs): Add V6T2 variants.
72
957d91c1
NC
732005-03-15 Nick Clifton <nickc@redhat.com>
74
75 * NEWS: Add cutoff for changes in 2.16 release.
76
43c3ab55
JB
772005-03-15 Jan Beulich <jbeulich@novell.com>
78
79 * expr.c (operand): Merge handling of unary + into that for unary
80 -, !, and ~.
81
5862107c
EC
822005-03-14 Eric Christopher <echristo@redhat.com>
83
84 * config/tc-mips.c: Include dw2gencfi.h.
85 (mips_cfi_frame_initial_instructions): New.
86 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
87 (tc_cfi_frame_initial_instructions): Ditto.
88 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
89 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
90 * Makefile.am: Update dependencies.
91 * Makefile.in: Regenerate.
92
729ae8d2
AM
932005-03-15 Alan Modra <amodra@bigpond.net.au>
94
95 * po/es.po: Commit new Spanish translation.
96
882cb63e
AM
972005-03-14 Alan Modra <amodra@bigpond.net.au>
98
99 * po/tr.po: Commit new Turkish translation.
100
885fc257
ZW
1012005-03-12 Zack Weinberg <zack@codesourcery.com>
102
103 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
104 wfi, yield.
105
e330299e
DJ
1062005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
107
108 * config-gas.com: Mark vax-vms as obsolete.
109 * configure.in: Remove fmt=vms support.
110 * config.in: Regenerate.
111 * configure: Regenerate.
112 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
113
0fa77c95
BW
1142005-03-10 Bob Wilson <bob.wilson@acm.org>
115
116 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
117 when checking if xg_resolve_literals needs to be called.
118 * config/tc-xtensa.h: Fix spelling typo in a comment.
119
4962e196
JB
1202005-03-10 Jan Beulich <jbeulich@novell.com>
121
122 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
123 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
124 crafted structure declarations with the types from macro.h.
125
4184909a
RS
1262005-03-09 Richard Sandiford <rsandifo@redhat.com>
127
128 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
129 for -mno-shared optimization.
130
7d8e00cf
RS
1312005-03-09 Richard Sandiford <rsandifo@redhat.com>
132
133 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
134 (MAX_NOPS): Bump to 4.
135 (mips_fix_vr4130): New variable.
136 (nops_for_vr4130): New function.
137 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
138 nops_for_vr4130 if working around VR4130 errata.
139 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
140 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
141 (md_parse_option): Handle them.
142 (md_show_usage): Print them.
143 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
144
dc36a61f
RS
1452005-03-09 Richard Sandiford <rsandifo@redhat.com>
146
147 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
148 branch delay code.
149
7d10b47d
RS
1502005-03-09 Richard Sandiford <rsandifo@redhat.com>
151
152 * config/tc-mips.h (mips_flush_pending_output): Delete.
153 (mips_emit_delays): Declare.
154 (md_flush_pending_output): Use mips_emit_delays.
155 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
156 the previous instructions.
157 (md_begin, append_insn, md_parse_option): Update callers.
158 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
159 start_noreorder.
160 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
161 (s_gpdword): Update callers.
162 (start_noreorder, end_noreorder): New functions.
163 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
164 manipulating mips_opts or prev_nop_frag directly.
165 (mips_flush_pending_output): Delete.
166
404a8071
RS
1672005-03-09 Richard Sandiford <rsandifo@redhat.com>
168
169 * config/tc-mips.c (mips_move_labels): New function, taken from...
170 (append_insn, mips_emit_delays): ...here.
171
71400594
RS
1722005-03-09 Richard Sandiford <rsandifo@redhat.com>
173
174 * config/tc-mips.c (MAX_NOPS): New macro.
175 (history): Resize to 1 + MAX_NOPS.
176 (fix_vr4120_class): New enumeration.
177 (vr4120_conflicts): New variable.
178 (init_vr4120_conflicts): New function.
179 (md_begin): Call it.
180 (insn_uses_reg): Constify first argument.
181 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
182 (nops_for_insn_or_target): New functions.
183 (append_insn): Use the new nops_for_* functions instead of inline
184 delay checks. Generalize prev_nop_frag handling to handle an
185 arbitrary history length. Insert nops into the history buffer
186 once the number of nops in prev_nop_frag is fixed.
187 (emit_delays): Use nops_for_insn instead of inline delay checks.
188
9b91f544
RS
1892005-03-09 Richard Sandiford <rsandifo@redhat.com>
190
191 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
192 check from branch delay code. Remove unnecessary check for branches.
193
1e915849
RS
1942005-03-09 Richard Sandiford <rsandifo@redhat.com>
195
196 * config/tc-mips.c (dummy_opcode): Delete.
197 (nop_insn, mips16_nop_insn): New variables.
198 (NOP_INSN): New macro.
199 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
200 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
201 (md_begin): Initialize nop_insn and mips16_nop_insn.
202 (append_insn): Use the new emit_nop function to add nops, recording
203 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
204 to reserve room for the instruction and install_insn to install the
205 final form. Use insert_into_history to record the instruction in
206 the history buffer. Use move_insn to do delay slot filling.
207 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
208 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
209 (mips16_ip): Use create_insn to initialize mips_cl_insns.
210
bf12938e
RS
2112005-03-09 Richard Sandiford <rsandifo@redhat.com>
212
213 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
214 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
215 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
216 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
217 (mips16_ip): Use the new macros instead of explicit masks and shifts.
218
a38419a5
RS
2192005-03-09 Richard Sandiford <rsandifo@redhat.com>
220
221 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
222 and extended_p fields with a single fixed_p field.
223 (append_insn, mips_no_prev_insn): Adjust accordingly.
224
2fa15973
RS
2252005-03-09 Richard Sandiford <rsandifo@redhat.com>
226
227 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
228 a single mips16_absolute_jump_p bit.
229 (append_insn): Adjust accordingly.
230
47e39b9d
RS
2312005-03-09 Richard Sandiford <rsandifo@redhat.com>
232
233 * config/tc-mips.h (mips_cl_insn): Move definition to...
234 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
235 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
236 and extended_p.
237 (history): New variable.
238 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
239 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
240 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
241 (prev_prev_insn_unreordered): Delete.
242 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
243 (macro_start): Replace uses of prev_insn* with the equivalent history[]
244 field.
245
399132af
DJ
2462005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
247
248 * doc/Makefile.am: Update as.info dependencies.
249 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
250
2512005-03-08 Jan Beulich <jbeulich@novell.com>
fffeaa5f
JB
252
253 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
254 error, and point to .purgem documentation if someone really needs
255 re-definitions.
256 * NEWS: Mention macro redefinition is now an error.
257
9b505842
JB
2582005-03-08 Jan Beulich <jbeulich@novell.com>
259
260 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
261 emitted to. Add more precise diagnostics for non-fitting insns based
262 on that. Eliminate now superfluous special casing of MLX. Clear out
263 slot information when dropping an insn.
264
ef6a2b41
JB
2652005-03-08 Jan Beulich <jbeulich@novell.com>
266
267 * config/tc-ia64.c (parse_section_name): Rename to...
268 (cross_section): In addition to separating the name from the rest of
269 the arguments, also carry out the operation.
270 (dot_xdata): Use cross_section.
271 (dot_float_cons): Likewise.
272 (dot_xstringer): Likewise.
273 (dot_xdata_ua): Likewise.
274 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
275
06647dfd
AM
2762005-03-05 Alan Modra <amodra@bigpond.net.au>
277
278 * po/gas.pot: Regenerate.
279
bbe506e8
TS
2802005-03-04 David Daney <ddaney@avtrex.com>
281
282 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
283 instead of '_gp' for -mno-shared optimization.
284 (s_cpload): Ditto.
285 (s_abicalls): Document it in the comment.
286 (md_show_usage): Document the -mno-shared option.
287
aed1a261
RS
2882005-03-04 Richard Sandiford <rsandifo@redhat.com>
289
290 * config/tc-mips.c (mips_set_options): Add sym32 field.
291 (mips_opts): Initialize it.
292 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
293 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
294 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
295 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
296 when deciding whether to use a symbolic %highest/%higher expansion.
297 (macro): Likewise. Remove o64/n32 linux hack. Always use
298 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
299 and "la". Handle constants separately from symbolic expressions in
300 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
301 and using load_register to load the high part of the address.
302 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
303 (OPTION_ELF_BASE): Bump by 2.
304 (md_longopts): Add entries for -msym32 and -mno-sym32.
305 (md_parse_option): Handle them.
306 (usage): Document them.
307 (s_mipsset): Handle ".set sym32" and ".set nosym32".
308 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
309 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
310 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
311 -msym32 and -mno-sym32.
312
6caf9ef4
TS
3132005-03-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
314
315 * config/tc-mips.c (load_address): Implement GP optimization
316 for 64bit address space non-PIC. Fix formatting.
317 (macro): Likewise. Simplify code.
318 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
319 (mips_after_parse_args): Simplify code.
320
406a7f05
NC
3212005-03-03 Nick Clifton <nickc@redhat.com>
322
fbacee5b
NC
323 * expr.c (operand): Remove redundant code enclosed by #ifdef
324 RELAX_PAREN_GROUPING....#endif.
325
77ccfee5
NC
326 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
327 reloc is the difference of two symbols defined in the same
328 section.
329
406a7f05
NC
330 * config/tc-iq2000.c (line_comment_chars): Include the # character
331 as otherwise this breaks #APP/#NO_APP processing.
332
2f12d57f
RR
3332005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
334
335 * config/tc-arc.c(md_assemble): Remove dead code for handling
336 immediate indexing of ld and st .
337
3f98094e
DJ
3382005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
339 Joseph Myers <joseph@codesourcery.com>
340
341 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
342 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
343 (parse_relocation): Check for a word break after a relocation
344 operator.
345 (md_apply_fix3): Handle TLS relocations, and mark thread-local
346 symbols.
347
ab1e9ef7
AM
3482005-03-02 Alan Modra <amodra@bigpond.net.au>
349
350 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
351
bb14f524
JB
3522005-03-02 Jan Beulich <jbeulich@novell.com>
353
354 * as.c (main): Use unlink_if_ordinary instead of unlink.
355 * messages.c (as_fatal): Likewise.
356
c4a530c5
JB
3572005-03-02 Jan Beulich <jbeulich@novell.com>
358
359 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
360 accesses.
361 (parse_register): Allow cr8...15 in all modes.
362
167c3097
JB
3632005-03-02 Jan Beulich <jbeulich@novell.com>
364
365 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
366 etc. like normal symbol references (T_ID).
367
71ba24a1
AM
3682005-03-02 Alan Modra <amodra@bigpond.net.au>
369
370 * symbols.c (fb_label_name): Fix silly thinko in last change.
371
a76903bf
AM
3722005-03-02 Alan Modra <amodra@bigpond.net.au>
373
9d0e75cb
AM
374 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
375 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
376
a76903bf
AM
377 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
378
3792005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
b15c27d7
RR
380
381 PR gas/708
a76903bf 382 * config/tc-arc.c (md_assemble): Initialize suffix for extension
b15c27d7 383 suffixes also.
b15c27d7 384
c9dea48b
AM
3852005-03-01 Alan Modra <amodra@bigpond.net.au>
386
c7f17d46
AM
387 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
388
c9dea48b
AM
389 * as.h (assert): Warning fix.
390 * expr.c (expr): Correct assertion.
391 * read.c (s_comm_internal): Remove assertion.
392 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
393 (fixup_segment): Remove assertion.
394 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
395 (md_apply_fix3): Likewise.
396 * config/tc-i370.c (md_begin): Correct assertion.
397 (i370_macro): Warning fix for assertion.
398
44f2f9d2
AM
3992005-03-01 Alan Modra <amodra@bigpond.net.au>
400
401 * configure.in (AC_C_BIGENDIAN): Invoke.
402 * configure: Regenerate.
403 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
404 host variable to set string header size.
405 * config/obj-aout.c (obj_header_append): Don't use host structs.
406 (obj_symbol_to_chars): Likewise.
407 (obj_emit_strings): Likewise. Use the passed in output pointer.
408 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
409 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
410 not sizeof host struct.
411 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
412 (obj_emit_strings): Likewise.
413 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
414 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
415 sizeof host struct.
416 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
417 sizeof host struct.
418 (host_number_to_chars): Define.
419 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
420 host internal struct to set header sizes.
421 * config/tc-i960.c (md_number_to_field): Warning fix.
422 (md_ri_to_chars): Use host byte order.
423 (get_cdisp, md_apply_fix3): Warning fix.
055d1eb0 424 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
44f2f9d2 425
802a113d
NC
4262005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
427
428 * doc/c-arc.texi: Update documentation about ARC's extension
429 instructions.
430
e5f129ad
SS
4312005-02-27 Svein E. Seldal <svein@dev.seldal.com>
432
433 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
434 address for myself.
435
2132e3a3
AM
4362005-02-23 Alan Modra <amodra@bigpond.net.au>
437
438 * cgen.c: Warning fixes.
439 * config/tc-arc.c: Likewise.
440 * config/tc-arm.c: Likewise.
441 * config/tc-avr.c: Likewise.
442 * config/tc-d10v.c: Likewise.
443 * config/tc-d30v.c: Likewise.
444 * config/tc-frv.c: Likewise.
445 * config/tc-frv.h: Likewise.
446 * config/tc-h8300.c: Likewise.
447 * config/tc-h8500.c: Likewise.
448 * config/tc-i370.c: Likewise.
449 * config/tc-i960.c: Likewise.
450 * config/tc-ia64.c: Likewise.
451 * config/tc-ip2k.c: Likewise.
452 * config/tc-m68hc11.c: Likewise.
453 * config/tc-maxq.c: Likewise.
454 * config/tc-mcore.c: Likewise.
455 * config/tc-mips.c: Likewise.
456 * config/tc-msp430.c: Likewise.
457 * config/tc-pj.c: Likewise.
458 * config/tc-ppc.c: Likewise.
459 * config/tc-ppc.h: Likewise.
460 * config/tc-s390.c: Likewise.
461 * config/tc-sh.c: Likewise.
462 * config/tc-sh64.c: Likewise.
463 * config/tc-tic4x.c: Likewise.
464 * config/tc-tic80.c: Likewise.
465 * config/tc-v850.c: Likewise.
466 * config/tc-vax.c: Likewise.
467 * config/tc-w65.c: Likewise.
468 * config/tc-xstormy16.c: Likewise.
469 * config/tc-z8k.c: Likewise.
470
ee3c9814
CM
4712005-02-22 Catherine Moore <clm@cm00re.com>
472
473 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
474 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
475
9b2f1d35
EC
4762005-02-22 Eric Christopher <echristo@redhat.com>
477
478 * config/tc-mips.c (struct proc): Change isym to
479 func_sym. New member func_end_sym.
480 (s_mips_ent): Update.
481 (s_mips_end): Ditto. Add code to compute function size.
482
b7712f8d
AM
4832005-02-22 Alan Modra <amodra@bigpond.net.au>
484
485 * read.c: Warning fixes.
486 * config/obj-elf.c: Likewise.
487
58e2ea4d
MR
4882005-02-22 Maciej W. Rozycki <macro@mips.com>
489
490 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
491 emitting insn.
492
ebe372c1
L
4932005-02-21 H.J. Lu <hongjiu.lu@intel.com>
494
495 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
496 SEC_COFF_SHARED.
497
498 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
499 SEC_TIC54X_BLOCK.
500 (demand_empty_rest_of_line): Likewise.
501 (tic54x_sblock): Likewise.
502 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
503
cc1bc22a
AM
5042005-02-21 Alan Modra <amodra@bigpond.net.au>
505
506 * read.c (address_bytes): New function.
507 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
508 (potable): Add "dc.a".
509 (cons_worker): Handle "dc.a".
510 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
511
ac4528d2
AM
5122005-02-21 Alan Modra <amodra@bigpond.net.au>
513
514 * input-file.c (input_file_open): Rearrange to avoid warning.
515
b5682e56
AM
5162005-02-19 Alan Modra <amodra@bigpond.net.au>
517
518 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
519 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
520 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
521
8fc2e39e
TS
5222005-02-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
523
524 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
525 uses after .set noat.
526 (load_address): Likewise.
527 (macro): Likewise. Don't try to avoid $at use by sacrificing
528 the target register before it is stored, it won't work.
529
744b6414
JW
5302005-02-17 James E Wilson <wilson@specifixinc.com>
531
532 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
533 see an instruction that specifies a template.
534
30eb9c17
AM
5352005-02-18 Alan Modra <amodra@bigpond.net.au>
536
537 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
538 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
539 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
540
91d777ee
L
5412005-02-17 H.J. Lu <hongjiu.lu@intel.com>
542
543 * NEWS: Mention "-mhint.b=[ok|warning|error]".
544
545 * config/tc-ia64.c (md): Add hint_b.
546 (emit_one_bundle): Handle md.hint_b for "hint".
547 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
548 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
549 (ia64_init): Set md.hint_b to error.
550 (md_assemble): Handle md.hint_b for "hint.b".
551
552 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
553 * doc/c-ia64.texi: Likewise.
554
f17c130b
AM
5552005-02-17 Alan Modra <amodra@bigpond.net.au>
556
557 * tc.h (struct relax_type, relax_typeS): Move from here..
558 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
559 * ecoff.c (ecoff_new_file): Add appfile param.
560 * ecoff.h (ecoff_new_file): Likewise.
561 * itbl-lex.h: New file.
562 * itbl-lex.l: Include itbl-lex.h.
563 * itbl-parse.y: Likewise.
564 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
565 * read.c (s_app_file_string): Mark appfile possibly unused.
566 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
567 * subsegs.h (struct seg_info_trash): Delete.
568 (seg_info): Use segment_info_type instead.
569 * config/obj-coff.c (struct filename_list): Make filename const char *.
570 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
571 * config/obj-elf.c (elf_file_symbol): Similarly.
572 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
573 signed right shift.
574 * config/tc-arc.c (md_operand): Warning fix.
575 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
576 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
577 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
578 * config/tc-frv.c (frv_force_relocation): Warning fix.
579 * config/tc-m68k.c (md_parse_option): Delete unused var.
580 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
581 * config/tc-sparc.c: Likewise.
582 (s_common): Warning fix.
583 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
584 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
585 addressT.
586 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
587 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
588 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
589 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
590 (tic4x_do_align): Use TIC_NOP_OPCODE.
591 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
592 * config/tc-vax.c: Include netinet/in.h.
593 (tc_headers_hook): Formatting.
594 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
595
26b810ce
JB
5962005-02-17 Jan Beulich <jbeulich@novell.com>
597
598 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
599 parsing inN, locN, outN. Set 'idx' to offset register number starts
600 at. Don't handle numbers with leading zeroes or beyond 95. Remove
601 pointless cast.
602
b8285c27
TS
6032005-02-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
604
605 * config/tc-mips.c (load_address): Fix formatting.
606 (macro): Don't use AT if .set noat is in effect. Fix formatting.
607 Catch macros which are unexpandable without AT. Remove duplicate
608 zeroing of used_at.
609 (macro2): Remove duplicate zeroing of used_at.
610
4df6ce47
AM
6112005-02-16 Alan Modra <amodra@bigpond.net.au>
612
613 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
614 than zero.
615
d6f16593 6162005-02-15 Nigel Stephens <nigel@mips.com>
4df6ce47 617 Maciej W. Rozycki <macro@mips.com>
d6f16593
MR
618
619 * config/tc-mips.c (reloc_needs_lo_p): Handle
620 BFD_RELOC_MIPS16_HI16_S.
621 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
622 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
623 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
624 complaints on.
625 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
626 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
627 Call my_getSmallExpression() to parse percent operators.
628 (percent_op_match, mips_percent_op): Separate definitions.
629 (mips16_percent_op): Define percent operators for the MIPS16 mode.
630 (parse_relocation): Handle the MIPS16 mode using
631 mips16_percent_op.
632 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
633 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
634
7b347e43
JB
6352005-02-15 Jan Beulich <jbeulich@novell.com>
636
637 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
638 instead of explicitly dealing with the translation; exclude
639 relocations that are already pcrel, however.
640
a66d2bb7
JB
6412005-02-15 Jan Beulich <jbeulich@novell.com>
642
643 * config/tc-ia64.c: Include limits.h (if available).
644 (gr_values[0]): Set path to INT_MAX.
645 (dot_reg_val): Don't allow changing value of r0. Limit range of
646 general registers at r127.
647 (specify_resource): Default resource index is -1. Don't set resource
648 index (in case IA64_RS_RSE) without setting the specific flag.
649 (note_register_values): Check operand is O_constant before tracking
650 input value of moves. Add tracking for dep.z with constant inputs.
651 (print_dependency): Resource index of specific resource may be zero.
652 (check_dependencies): Likewise.
653
4b09e828
JB
6542005-02-15 Jan Beulich <jbeulich@novell.com>
655
656 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
657 reg_class. Check operands and emit diagnostics for illegal use of
658 registers.
659
0ca3e455
JB
6602005-02-15 Jan Beulich <jbeulich@novell.com>
661
662 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
663 new variables type, suffix, and width. Handle
664 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
665 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
666 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
667 FUNC_DTP_RELATIVE case. Return incoming relocation type if
668 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
669 if unable to translate relocation type, using the new variables.
670
2fac3d48
JB
6712005-02-15 Jan Beulich <jbeulich@novell.com>
672
673 * config/tc-ia64.h (ia64_symbol_chars): Declare.
674 (ty_symbol_chars): Define.
675 * config/tc-ia64.c (ia64_symbol_chars): Define.
676
2f6d622e
JB
6772005-02-15 Jan Beulich <jbeulich@novell.com>
678
679 * config/tc-ia64.c (ia64_parse_name): Only update next character if
680 input_line_pointer was advanced.
681
28013b5c
KK
6822005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
683
684 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
685 within |.
686
f1dab70d
JB
6872005-02-13 Jan Beulich <jbeulich@novell.com>
688
689 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
690 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
691 indicator.
692 (ia64_init): Set md.detect_dv.
693 (ia64_start_line): New static variable warned. Warn only once when
694 encountering explicit stops in automatic mode.
695 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
696 * NEWS: Mention new default mode.
697
20b36a95
JB
6982005-02-13 Jan Beulich <jbeulich@novell.com>
699
700 * config/tc-ia64.c (dot_rot): Add comment that name strings should
701 be freed when wiping out previous state. Canonicalize names before
702 use. Free name string when detecting redefinition.
703 (dot_pred_rel): Call generic expression parser to process arguments.
704 Handle O_register case for individual predicates and O_subtract for
705 ranges.
706 (ia64_parse_name): Canonicalize name before looking it up in dynamic
707 register hash.
708 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
709 Warn if multiple found, issue error if resulting symbol name has zero
710 length.
711 (dot_alias): Canonicalize name before use.
712
07450571
L
7132005-02-11 H.J. Lu <hongjiu.lu@intel.com>
714
715 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
716 and 0 for error.
717 (in_procedure): Return -1 for warning.
718 (in_prologue): Likewise.
719 (in_body): Likewise.
720
01b91374
L
7212005-02-11 H.J. Lu <hongjiu.lu@intel.com>
722
ac4528d2 723 * config/tc-ia64.c (dot_xdata): Undo the last change.
01b91374
L
724 (dot_float_cons): Likewise.
725 (dot_xstringer): Likewise.
726 (dot_xdata_ua): Likewise.
727 (dot_float_cons_ua): Likewise.
728
970d6792
L
7292005-02-11 H.J. Lu <hongjiu.lu@intel.com>
730
731 * NEWS: Mention "-munwind-check=[warning|error]".
732
733 * config/tc-ia64.c (md): Add unwind_check.
734 (unwind_diagnostic): New.
735 (in_procedure): Call unwind_diagnostic when a directive isn't
736 in procedure.
737 (in_prologue): Call unwind_diagnostic when a directive isn't in
738 prologue.
739 (in_body): Call unwind_diagnostic when a directive isn't in
740 body region.
741 (dot_endp): Set md.unwind_check to error before calling
742 in_procedure and restore it after. When the name is missing or
743 couldn't be found, use the one from the last .proc if
744 md.unwind_check isn't error. Warn if md.unwind_check is
745 warning.
746 (md_parse_option): Handle "-munwind-check=[warning|error]".
747 (md_show_usage): Add "-munwind-check=[warning|error]".
748 (ia64_init): Set md.unwind_check to warning.
749
750 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
751 * doc/c-ia64.texi: Likewise.
752
16a48f83
JB
7532005-02-11 Jan Beulich <jbeulich@novell.com>
754
755 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
756 (LEX_QM): Likewise.
757 (ia64_parse_name): New third parameter.
758 (md_parse_name): Pass third argument.
759 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
760 (md_operand): Handling of '@'-prefixed symbols moved from here...
761 (ia64_parse_name): ...to here.
762
a911c10a
JB
7632005-02-11 Jan Beulich <jbeulich@novell.com>
764
765 * config/tc-ia64.c (md): Remove last_groups and group_idx.
766 (errata_nop_necessary_p): Remove declaraction and definition.
767 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
768 update md.group_idx. Don't reset md.last_groups.
769
b3f19c14
JB
7702005-02-11 Jan Beulich <jbeulich@novell.com>
771
772 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
773 argument.
774 (dot_xdata): Free section name after use.
775 (dot_float_cons): Likewise.
776 (dot_xstringer): Likewise.
777 (dot_xdata_ua): Likewise.
778 (dot_float_cons_ua): Likewise.
779 (md_pseudo_table): Add xdata16 and xdata16.ua.
780
5cb53c21
L
7812005-02-10 H.J. Lu <hongjiu.lu@intel.com>
782
783 * doc/all.texi: Add IA64.
784 * doc/as.texinfo: Likewise.
785
786 * doc/c-ia64.texi: Fix typos.
787
620b81c1
JB
7882005-02-10 Julian Brown <julian@codesourcery.com>
789
790 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
791 BFD_RELOC_UNUSED.
792 (do_t_push_pop): Likewise.
793 (md_assemble): Likewise.
794 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
795 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
796 (create_unwind_entry): Output dependency on the required personality
797 routines.
798 testsuite/gas/arm/unwind.d: Alter expected output to include
799 dependency on __aeabi_unwind_cpp_pr[01].
800
4ee4d249
NS
8012005-02-07 Nathan Sidwell <nathan@codesourcery.com>
802
803 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
804 * subsegs.c (seg_not_empty_p): Likewise.
805
9f5083a4
NC
8062005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
807
808 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
4df6ce47 809 relative jump calculation.
9f5083a4
NC
810 <md_convert_frag) : Likewise.
811 <output_disp): Likewise.
812
aaac53f5
HPN
8132005-02-07 Hans-Peter Nilsson <hp@axis.com>
814
815 * write.c (write_object_file): Recognize warning-symbol construct
816 and skip object- and target- handling for the second symbol.
817
05ee4b0f
JB
8182005-02-02 Jan Beulich <jbeulich@novell.com>
819
820 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
821 designators along with quoted ones. Free copy of quoted designator
822 when done.
823
65ec77d2
BE
8242005-02-01 Ben Elliston <bje@au.ibm.com>
825
826 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
827 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
828 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
829 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
830 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
831 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
832 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
833 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
834 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
835 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
836 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
837 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
838 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
839 #if 0'd code throughout.
840
d342277e
NC
8412005-01-31 Nick Clifton <nickc@redhat.com>
842
843 * as.c (parse_args): Bump copyright date reported by --version to
844 2005.
845
d6486796
NC
8462005-01-31 Nick Clifton <nickc@redhat.com>
847
848 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
849 and vax-vms.
850
ca3bc58f
JB
8512005-01-31 Jan Beulich <jbeulich@novell.com>
852
853 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
854 that can end with .endr in that case. Make requiring/permitting
855 pseudo-ops without leading dot closer to the logic in read.c serving
856 the same purpose.
857 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
858 ignored.
859
057f53c1
JB
8602005-01-31 Jan Beulich <jbeulich@novell.com>
861
862 * macro.c (do_formals): Adjust to no longer accept empty parameter
863 names.
864 (define_macro): Adjust to no longer accept empty macro name, garbage
865 following the parameters, or macros that were previously defined.
866 * read.c (s_bad_end): Declare.
867 (potable): Add endm. Handler for endr and endm is s_bad_end.
868 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
869 and .endr.
870 * read.h (s_bad_endr): Remove.
871
d3156ecc
JB
8722005-01-31 Jan Beulich <jbeulich@novell.com>
873
874 * config/tc-ia64.c (parse_operands): Parse all specified operands,
875 immediately discarding (but counting) those exceeding the maximum
876 possible amount. Track whether output and input operand counts ever
877 matched, and use this to better indicate which of the operands/
878 operand types was wrong; specifically don't default to pointing to
879 the first operand.
880
75e09913
JB
8812005-01-31 Jan Beulich <jbeulich@novell.com>
882
883 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
884 variable in dot_endp). Add body and insn. Make prologue,
885 prologue_mask, body, and insn bitfields.
886 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
887 messages.
888 (in_procedure, in_prologue, in_body): New.
889 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
890 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
891 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
892 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
893 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
894 dot_personality): Use the appropriate one of the above.
895 (dot_proc): Clear unwind.proc_start; set to current location only if
896 none of the entry points were valid. Check for non-zero-length entry
897 point names. Check that entry points aren't defined, yet. Clear
898 unwind.prologue, unwind.body, and unwind.insn.
899 (dot_body): Call in_procedure. Check that first directive in procedure
900 had no insns emitted before. Set unwind.body.
901 (dot_prologue): Call in_procedure. Check that not already in prologue.
902 Check that first directive in procedure had no insns emitted before.
903 Clear unwind.body.
904 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
905 length entry point names. Check that entry points became defined.
906 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
907
f4660e2c
JB
9082005-01-31 Jan Beulich <jbeulich@novell.com>
909
910 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
911 before actually using it. Don't generate an error in manual bundling
912 mode when looking at an insn requiring slot 2 but not yet at slot 2.
913 Don't generate an error in manual bundling mode when looking at an
914 insn required to be last in its group but the required slot hasn't
915 been reached, yet. Allow conversion from MII to MI;I for bundle
916 consisting of only 2 insns with the stop between them. Suppress
917 various meaningless errors resulting from detecting earlier ones.
918
60b9a617
JB
9192005-01-31 Jan Beulich <jbeulich@novell.com>
920
921 * config/tc-ia64.c (parse_operands): Also handle alloc without first
922 input being ar.pfs.
923
7af0dfc7
CG
9242005-01-28 Christian Groessler <chris@groessler.org>
925
926 * config/tc-z8k.c (md_assemble): Improve error detection.
927
f7e323d5
JB
9282005-01-28 Jan Beulich <jbeulich@novell.com>
929
930 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
931 for personality routine pointer only if there is one.
932 (ia64_convert_frag): Likewise.
933 (generate_unwind_image): Likewise.
934
f87a1e0c
CG
9352005-01-27 Christian Groessler <chris@groessler.org>
936
937 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
938 (md_apply_fix3): Make relative branches out of range an error
939 instead of a warning. Display correct line number for out of
940 range branches/calls/memory accesses.
941
c6cb92c5
NS
9422005-01-27 Nathan Sidwell <nathan@codesourcery.com>
943
944 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
945 to emit .debug_line and other debug sections.
946 * as.h (seg_not_empty_p): Declare.
947 * subsegs.c (seg_not_empty_p): New predicate.
948
e8093792
AC
9492005-01-27 Andrew Cagney <cagney@gnu.org>
950
951 * configure: Regenerate to track ../gettext.m4 change.
952
09124b3f
JB
9532005-01-27 Jan Beulich <jbeulich@novell.com>
954
955 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
956
9572005-01-27 Jan Beulich <jbeulich@novell.com>
97762d08
JB
958
959 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
960 to/from application registers dynamic insns.
961 (md_assemble): Defer resolution of move to/from application registers
962 dynamic insns when they can be issued on either the I- or M-units.
963
90219bd0
AO
9642005-01-25 Alexandre Oliva <aoliva@redhat.com>
965
966 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
967 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
968 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
969 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
970 * cgen.c (gas_cgen_parse_operand): Handle
971 CGEN_PARSE_OPERAND_SYMBOLIC.
972 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
973 (frv_force_relocation): Likewise. Fix handling of PIC
974 relocations.
975 (md_apply_fix3): Likewise.
976
59c871b4
BE
9772005-01-21 Ben Elliston <bje@au.ibm.com>
978
979 * as.h: Remove #if 0'd code.
980 * atof-generic.c (atof_generic): Likewise.
981 * ecoff.c (ecoff_directive_frame): Likewise.
982 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
983 * itbl-ops.c (itbl_add_reg): Likewise.
984 * listing.c (calc_hex): Likewise.
985 * read.c (MASK_CHAR): Likewise.
986 * subsegs.c (subsegs_print_statistics): Likewise.
987 * symbols.c (indent): Likewise.
988 * write.c (write_relocs): Likewise.
989 (write_object_file): Likewise.
990 (relax_frag): Likewise.
991
fb767913
NC
9922005-01-20 Nick Clifton <nickc@redhat.com>
993
994 * as.c (std_longopts): Add an entry for "--a" in order to prevent
995 getopt_long_only() from considering -a as an abbreviation for
996 --alternate.
997 (parse_args): Fix the parsing of -a=<file>.
998
c556cc9c
AM
9992005-01-20 Alan Modra <amodra@bigpond.net.au>
1000
1001 PR gas/684
1002 * read.c (s_incbin): Adjust default count for skip. Check validity
1003 of count and skip rigorously.
1004
9c6ed8e6
FF
10052005-01-19 Fred Fish <fnf@specifixinc.com>
1006
1007 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
1008
e5604d79
RS
10092005-01-19 Richard Sandiford <rsandifo@redhat.com>
1010
1011 * read.c (convert_to_bignum): New function, split out from...
1012 (emit_expr): ...here. Handle the case where X_add_number is
1013 positive and the input value is negative.
1014 (output_big_sleb128): Fix setting of continuation bit. Check whether
1015 the final byte needs to be sign-extended. Fix size-shrinking loop.
1016 (emit_leb128_expr): When generating a signed leb128, see whether the
1017 sign of an O_constant's X_add_number matches the sign of the input
1018 value. Use a bignum if not.
1019
e38bc3b5
NC
10202005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
1021
1022 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
1023 arch_sh_up in order to match the external name and make the
1024 testsuite's job easier.
1025
df227444
L
10262005-01-14 H.J. Lu <hongjiu.lu@intel.com>
1027
4df6ce47 1028 PR 659
df227444
L
1029 * config/tc-i386.c (i386_scale): Disallow 0 scale.
1030
b8b80cf7
NC
10312005-01-12 Nick Clifton <nickc@redhat.com>
1032
1033 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
1034 ignored_arguments array.
1035
324007b9
L
10362005-01-10 H.J. Lu <hongjiu.lu@intel.com>
1037
1038 * write.c (write_object_file): Disallow a symbol equated to
1039 common symbol.
1040
5c4504f7
NC
10412005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
1042
1043 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
1044 bfd_mach_maxq20.
1045 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
1046 (maxq_target): New function: Set the machine type.
1047
4e7fd91e
PB
10482005-01-06 Paul Brook <paul@codesourcery.com>
1049
1050 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
1051 (md_begin): Handle TE_VXWORKS for FP defaults.
1052 (md_apply_fix3): Correct rela offsets.
1053 (elf32_arm_target_format): Add VxWorks targets.
1054
ea3eed15
PB
10552005-01-06 Paul Brook <paul@codesourcery.com>
1056
1057 * configure.tgt: Set em=vxworks for *-*-vxworks.
1058 * config/te-vxworks.h: New File.
1059
5dc1606f
PB
10602005-01-06 Paul Brook <paul@codesourcery.com>
1061
1062 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
1063
18af0b39
NC
10642005-01-04 Dmitry Diky <diwil@spec.ru>
1065
1066 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
1067 global label.
1068
196e8040
JW
10692005-01-03 David Mosberger <davidm@hpl.hp.com>
1070
1071 * config/tc-ia64.c (md): Add member "loc_directive_seen".
1072 (dot_loc): New function.
1073 (md_pseudo_table): Add entry to map .loc to dot_loc().
1074 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
1075 seen a .loc directive or we're generating DWARF2 debug info for
1076 assembly source.
1077
a207757e
AM
10782004-12-29 Alan Modra <amodra@bigpond.net.au>
1079
1080 PR gas/619
1081 * read.c (s_comm_internal): Don't zero end of name until size
1082 expression has been parsed.
1083
71d7ecf2
MM
10842004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1085
1086 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
1087
30c62922
TL
10882004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
1089
1090 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
1091 case).
1092
14ee9f48
ILT
10932004-12-22 Ian Lance Taylor <ian@airs.com>
1094
1095 * configure.tgt: New.
1096 * configure.in: Move setting of cpu_type, fmt, etc., to
1097 configure.tgt.
1098 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
1099 $(srcdir)/configure.tgt.
1100 * configure, Makefile.in: Rebuild.
1101
750bce0e 11022004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
4df6ce47 1103
750bce0e
NC
1104 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
1105 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
1106 instructions.
1107 (avr_offset_expression): New function to parse offsets for LDI
1108 instructions.
1109 (avr_operand): Use it.
1110 (md_apply_fix3): Generate the relocs.
1111
9d2be1ee
JR
11122004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
1113
1114 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
1115 BFD_RELOC_SH_IMMS10BY8 relocation.
1116
1117 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
1118 than just ignoring bad code.
1119
1e50d24d
RS
11202004-12-16 Richard Sandiford <rsandifo@redhat.com>
1121
1122 * config/tc-v850.c (handle_lo16): New function.
1123 (v850_reloc_prefix): Use it to check lo().
1124 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
1125
2fbd2a87
NC
11262004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1127
1128 * configure.in: Add s390x-ibm-tpf support.
1129 * configure: Regenerate.
1130
7a6d0b32
JB
11312004-12-15 Jan Beulich <jbeulich@novell.com>
1132
1133 * config/obj-elf.c (obj_elf_change_section): Only set type and
1134 attributes on new sections. Emit warning when type of re-declared
1135 section doesn't match.
1136
5b9d23c6
JB
11372004-12-15 Jan Beulich <jbeulich@novell.com>
1138
1139 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
1140 '.cfi_startproc simple' doesn't inherit the old value.
1141
dcb45a06
JB
11422004-12-15 Jan Beulich <jbeulich@novell.com>
1143
1144 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
1145 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
1146 generation to emit a factored offset.
1147
aa6975fb
ILT
11482004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
1149
6943caf0
ILT
1150 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
1151 which is too large in the case of NO_PIC without 64-bit
1152 addresses.
1153
aa6975fb
ILT
1154 * config/tc-mips.c (mips_in_shared): New static variable.
1155 (macro_build_lui): Permit "_gp" if !mips_in_shared.
1156 (md_longopts): Add -mshared and -mno-shared.
1157 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
1158 (s_cpload): Implement !mips_in_shared case.
1159 (s_cpsetup): Likewise.
1160 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
1161 * NEWS: Mention -mno-shared.
1162
be1b2b4b
PB
11632004-12-09 Paul Brook <paul@codesourcery.com>
1164
1165 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
1166 for function start.
1167
9a92f48d
ILT
11682004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
1169
dd22970f
ILT
1170 * config/tc-mips.c (append_insn): If we emit a nop during a relax
1171 sequence, increase the size of the sequence.
1172
9a92f48d
ILT
1173 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
1174 use CPU_RM9000.
1175
b617dc20
BE
11762004-12-07 Ben Elliston <bje@gnu.org>
1177
1178 * read.c (s_align): Use an align_limit temporary to allay a GCC
1179 signed/unsigned comparison warning.
1180
c820d418
MM
11812004-12-01 Mark Mitchell <mark@codesourcery.com>
1182
1183 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
1184 * configure.in: Use it for arm*-*-linux-gnueabi*.
1185 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
1186 * config/te-armlinuxeabi.h: New file.
1187 * Makefile.in: Regenerated.
1188 * aclocal.m4: Likewise.
1189 * configure: Likewise.
4df6ce47 1190 * doc/Makefile.in: Regenerated.
c820d418 1191
2b0210eb
BW
11922004-12-02 Bob Wilson <bob.wilson@acm.org>
1193
1194 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
1195 (xtensa_restore_emit_state): Likewise.
1196
9ebd302d
AM
11972004-12-02 Alan Modra <amodra@bigpond.net.au>
1198
1199 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
1200 (s_align): Use it.
1201
32118081
NC
12022004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1203
1204 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1205 * Makefile.in: Regenerate.
1206
3f414718
TL
12072004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
1208
9ebd302d
AM
1209 * config/tc-crx.c: Major code cleanup. Remove unused variables and
1210 functions, give functions a meaningful name, add comments.
1211 (check_range): New function - Replace operand size calculation
3f414718
TL
1212 with range checking.
1213 (assemble_insn): Update Algorithm, improve error issuing.
9ebd302d 1214 (enum op_err): New.
3f414718
TL
1215 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
1216 handling.
1217
a7498ae6
NC
12182004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1219
1220 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
1221 miss between different section in the same module.
1222 (tc_gen_reloc): Likewise.
1223
5c54fd37
NC
12242004-11-25 Theodore A. Roth <troth@openavr.org>
1225
1226 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
1227 atmega325, atmega3250, atmega645 and atmega6450.
1228
37edbb65
JB
12292004-11-25 Jan Beulich <jbeulich@novell.com>
1230
1231 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
1232 permissible for the selected instruction suffix.
1233 (process_suffix): For DefaultSize instructions, suppressing the
1234 guessing of a 'q' suffix if the instruction doesn't support it is
1235 pointless, because only an 'l' suffix can be guessed in this place.
1236
5515a510
NC
12372004-11-24 Nick Clifton <nickc@redhat.com>
1238
1239 * config/tc-iq2000.c: Remove support for IQ10 processor.
1240 Convert to ISO C90 formatting.
1241 * config/tc-iq2000.h: Likewise.
1242
dae1b34e
NC
12432004-11-23 Nick Clifton <nickc@redhat.com>
1244
1245 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
1246 in this table. They should be correct now.
1247
5c6af06e
JB
12482004-11-23 Jan Beulich <jbeulich@novell.com>
1249
1250 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
1251 indicate the MMX extensions added by both SSE and 3DNow!A.
1252 (Cpu3dnowA): Declare.
1253 (CpuUnknownFlags): Update.
1254 * config/tc-i386.c (cpu_sub_arch_name): Declare.
1255 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
1256 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
1257 3DNow!. Athlon additionally implies 3DNow!A. Several new
1258 entries (those starting with a dot are for sub-arch specification).
1259 (set_cpu_arch): Handle sub-arch specifications.
1260 (parse_insn): Distinguish between instructions not supported because
1261 of insufficient CPU features and because of 64-bit mode.
1262 * doc/c-i386.texi: Describe enhanced .arch directive.
1263
d9740523
BW
12642004-11-22 Bob Wilson <bob.wilson@acm.org>
1265
1266 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
1267
3120ef82
BW
12682004-11-22 Bob Wilson <bob.wilson@acm.org>
1269
1270 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
1271 without a corresponding .debug_info section.
1272
d190d046
HPN
12732004-11-22 Hans-Peter Nilsson <hp@axis.com>
1274
1275 * read.c (potable): Add "error" and "warning".
1276 (s_errwarn): New function.
1277 * read.h (s_errwarn): Declare.
1278 * doc/as.texinfo (Error, Warning): Document .error and .warning.
1279
5519f6ea
NC
12802004-11-22 Nick Clifton <nickc@redhat.com>
1281
1282 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
1283 c_dot_file_symbol.
1284
f5c7edf4
AM
12852004-11-19 Alan Modra <amodra@bigpond.net.au>
1286
1287 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
1288 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
1289
a4528eeb
AM
12902004-11-19 Alan Modra <amodra@bigpond.net.au>
1291
1292 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
1293 (coff_adjust_symtab): Adjust call.
1294 (crawl_symbols): Likewise.
1295 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
1296 (obj_app_file): Adjust.
1297
444bf5f3
NC
12982004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1299
1300 * configure.in: Enable bfd_assember for the MAXQ port.
1301 * configure: Regenerate.
1302
a1ace8d8 13032004-11-12 Bob Wilson <bob.wilson@acm.org>
88ac794e 1304 Sterling Augustine <sterling@tensilica.com>
a1ace8d8
BW
1305
1306 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
1307 there is a conflict.
1308 (check_t1_t2_reads_and_writes): Check for both reads and writes to
1309 interfaces that are related as determined by xtensa_interface_class_id.
1310
30e857fc
NC
13112004-11-12 Nick Clifton <nickc@redhat.com>
1312
1313 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
1314 offsets for conditional branches.
1315
a67517f4
BW
13162004-11-11 Bob Wilson <bob.wilson@acm.org>
1317
1318 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
1319
1d19a770
BW
13202004-11-10 Bob Wilson <bob.wilson@acm.org>
1321
1322 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
1323 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
1324 MAYBE_UNREACHABLE.
1325 (relax_frag_immed): Update call to update_next_frag_state.
1326
c04f5787
AM
13272004-11-10 Alan Modra <amodra@bigpond.net.au>
1328
1329 * obj.h (struct format_ops <app_file>): Add int param.
1330 * read.h (s_app_file_string): Likewise.
1331 * read.c (s_app_file_string): Likewise.
1332 (s_app_file): Adjust s_app_file_string call.
1333 * config/tc-mips.c (s_mips_file): Likewise.
1334 * config/obj-coff.h (obj_app_file): Add app param.
1335 * config/obj-ecoff.h (obj_app_file): Likewise.
1336 * config/obj-multi.h (obj_app_file): Likewise.
1337 * config/obj-elf.h (elf_file_symbol): Likewise.
1338 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
1339 if called for # preprocessor lines.
1340
a77a9021
L
13412004-11-08 H.J. Lu <hongjiu.lu@intel.com>
1342
1343 PR 528
1344 * symbols.c (resolve_symbol_value): Convert weak symbols only
1345 for Windows PECOFF.
1346 (symbol_equated_reloc_p): Don't equate weaks when relocating
1347 only for Windows PECOFF.
1348
aea44f62
TL
13492004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
1350
1351 * config/tc-crx.c (print_insn): Check and set insn_addr.
1352 * config/tc-crx.h (md_frag_check): Define.
1353
7499d566
NC
13542004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1355 Vineet Sharma <vineets@noida.hcltech.com>
1356
1357 * configure.in: Add support for new target maxq-coff.
1358 * configure: Regenerate.
1359 * NEWS: Mention new support.
1360 * config/tc-maxq.c: New file.
1361 * config/tc-maxq.h: New file.
1362 * config/obj-coff.h: Add support for maxq-coff.
1363
977cdf5a
NC
13642004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1365
1366 * symbols.c (any_external_name): Define.
a77a9021 1367 (resolve_symbol_value): Convert weak symbols.
977cdf5a
NC
1368 (S_SET_EXTERNAL): Support any_external_name.
1369 (S_SET_NAME): Qualify parameter const.
316f3bf8 1370 (symbol_equated_reloc_p): Equate to weaks when relocating.
977cdf5a
NC
1371 * symbols.h (S_SET_NAME): Qualfiy parameter const.
1372 * tc.h (any_external_name): Declare.
1373 * config/obj-coff.c ("coff/pe.h"): Include for BFD
1374 assemblers also.
1375 (weak_is_altname): Declare and define.
1376 (weak_name2altname): Same.
1377 (weak_altname2name): Same.
1378 (weak_uniquify): Same.
1379 (weak_altprefix): Define.
1380 (obj_coff_weak): Change .weak syntax and handling.
1381 (coff_frob_symbol): Fix PE weak symbol alternates.
1382 * config/obj-coff.h (USE_UNIQUE): Define.
1383 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
1384 are in another segment.
1385 (tc_gen_reloc): Remove broken addend hack.
1386 doc/as.texinfo: Update.
1387
34e41783
BW
13882004-11-05 Sterling Augustine <sterling@tensilica.com>
1389
1390 * config/tc-xtensa.c (total_frag_text_expansion): New.
1391 (md_estimate_size_before_relax): Use it.
1392 (find_address_of_next_align_frag): Likewise.
1393
dcd46b4e
TL
13942004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
1395
1396 * config/tc-crx.c: Rename argument types.
1397 (processing_arg_number): Rename to 'cur_arg_num'.
1398 (get_number_of_bits): Rename to 'set_operand_size'.
1399 (get_operandtype): Rename to 'parse_operand', totally rewrite.
1400 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
1401 (set_indexmode_parameters): Remove function, integrate its code into
1402 'set_operand'.
1403 (set_operand_size): Get rid of 'Operand Number' function parameter -
1404 use global variable 'cur_arg_num' instead.
1405 Use a local 'argument' pointer to reference the current argument.
1406 (parse_operand): Likewise.
1407 (set_operand): Likewise.
1408 (process_label_constant): Likewise.
1409
9456465c
BW
14102004-11-04 Bob Wilson <bob.wilson@acm.org>
1411
1412 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
1413 (add_section_rename): Delete. Inlined into...
1414 (build_section_rename): ...here. Use xstrdup instead of strdup.
1415 (xtensa_section_rename): Drop "const" from argument and return types.
1416 (md_show_usage): Indent to match show_usage().
1417 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
1418 (tc_canonicalize_section_name): Define.
1419 (md_elf_section_rename): Remove unused macro.
1420 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
1421 * doc/c-xtensa.texi (Xtensa Options): Likewise.
1422 (Frame Directive): Delete.
1423
7f266840
DJ
14242004-11-04 Daniel Jacobowitz <dan@debian.org>
1425
1426 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
1427 * config/tc-arm.c (target_oabi): Delete.
1428 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
1429 (arm_opts): Remove moabi.
1430 * doc/as.texinfo (Overview): Remove documentation of -moabi.
1431 * doc/c-arm.texi (ARM Options): Likewise.
1432 * configure: Regenerated.
1433
ae57792d
HPN
14342004-11-04 Hans-Peter Nilsson <hp@axis.com>
1435
1436 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
1437 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
1438 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
1439 * configure: Regenerate.
1440 * config/tc-cris.c (enum cris_archs): New.
1441 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
1442 (cris_insn_ver_valid_for_arch): New functions.
1443 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
1444 (cris_arch): New variable.
1445 (md_pseudo_table): New pseudo .arch.
1446 (err_for_dangerous_mul_placement): Initialize according to
1447 DEFAULT_CRIS_ARCH.
1448 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
1449 All users changed.
1450 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
1451 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
1452 (BRANCH_WF_V32, BRANCH_WB_V32): New.
1453 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
1454 use in md_cris_relax_table.
1455 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
1456 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
1457 Update and improve head comment.
1458 (OPTION_PIC): Define in terms of previous option, OPTION_US.
1459 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
1460 (OPTION_ARCH): New.
1461 (md_longopts): New option --march=...
1462 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
1463 macros.
1464 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
1465 (HANDLE_RELAXABLE): New macro.
1466 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
1467 cases. Check for weak symbols and assume not relaxable. Handle
1468 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
1469 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
1470 fragP->fr_symbol.
1471 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
1472 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
1473 (cris_create_short_jump): Adjust for CRISv32.
5664e9a7 1474 (cris_relax_frag): Handle new states.
ae57792d
HPN
1475 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
1476 (md_begin): Define symbols "..asm.arch.cris.v32",
1477 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
1478 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
1479 when entering opcode table entry points.
1480 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
1481 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
1482 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
1483 (cris_process_instruction): Initialize out_insnp->insn_type to
1484 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
1485 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
1486 cases.
1487 <case 'm'>: Check that modified_char == '.'.
1488 <invalid operands>: Consume the rest of the line.
1489 When operands don't match, skip over subsequent insns with
1490 non-matching version specifier but same mnemonic.
1491 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
1492 special registers in CRISv32 are always 32 bit long.
1493 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
1494 New cases.
1495 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
1496 and compatible. Recognize "ACR" for v32, unless followed by "+".
1497 (get_spec_reg): Consider cris_arch when looking up register.
1498 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
1499 v32 or compatible.
1500 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
1501 (cris_get_expression): Restore input_line_pointer if failing "early".
1502 (get_flags): Consider cris_arch and recognize flags accordingly.
1503 (branch_disp): Adjust for CRISv32.
1504 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
1505 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
1506 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
1507 resolved. Don't enter zeros in object file for
1508 BFD_RELOC_32_PCREL.
1509 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
1510 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
1511 (md_parse_option): Break out "return 1".
1512 <OPTION_ARCH> New case.
1513 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
1514 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
1515 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
1516 <case BFD_RELOC_32_PCREL>: New cases.
1517 Addends for non-zero fx_pcrel are too in fx_offset.
1518 (md_show_usage): Show --march=<arch>.
1519 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
1520 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
1521 (s_syntax) <struct syntaxes>: Properly constify member operand.
1522 * config/tc-cris.h (TARGET_MACH): Define.
1523 (cris_mach): Declare.
1524 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
1525 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
1526 (CRIS-Opts): Document --march=...
1527 (CRIS-Pseudos): Document .arch.
1528
9306ca4a
JB
15292004-11-04 Jan Beulich <jbeulich@novell.com>
1530
1531 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
1532 intel syntax and no register prefix, allow $ in symbol names when
1533 intel syntax.
1534 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
1535 (intel_float_operand): Add fourth return value indicating math control
1536 operations. Make classification more precise.
1537 (md_assemble): Complain if memory operand of mov[sz]x has no size
1538 specified.
1539 (parse_insn): Translate word operands to floating point instructions
1540 operating on integers as well as control instructions to short ones
1541 as expected by AT&T syntax. Translate 'd' suffix to short one only for
1542 floating point instructions operating on non-integer operands.
1543 (match_template): Remove fldcw special case. Adjust q-suffix handling
1544 to permit it on fild/fistp/fisttp in AT&T mode.
1545 (process_suffix): Don't guess DefaultSize insns' suffix from
1546 stackop_size for certain floating point control instructions. Guess
1547 suffix for branch and [ls][gi]dt based on flag_code. Split error
1548 messages for Intel and AT&T syntax, and make the condition more strict
1549 for the former. Adjust suppressing of generation of operand size
1550 overrides.
1551 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
1552 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
1553 more error checking.
1554 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
1555 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
1556
2b4f075a
HPN
15572004-11-03 Hans-Peter Nilsson <hp@axis.com>
1558
1559 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
1560 md_short_jump_size, md_long_jump_size.
1561 * write.c [!WORKING_DOT_WORD]: Ditto.
1562 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
1563 qualifier.
1564 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
1565 declare.
1566 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
1567 const qualifier in these definitions.
1568 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
1569 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
1570
ddbc47ac
NC
15712004-11-02 Nick Clifton <nickc@redhat.com>
1572
1573 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
1574 table before deciding to produce a .debug_line section to match up
1575 with a user provided .debug_info section.
1576
3ad3f5ad
TL
15772004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
1578
1579 * config/tc-crx.c (getreg_image): Bug fix, a return value was
1580 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
1581
c815a616
TL
15822004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
1583
1584 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
1585 (get_flags): New function.
c04f5787
AM
1586 (get_number_of_bits): Edit comments, update numeric values to
1587 supported sizes.
1588 (process_label_constant): Don't support the colon
1589 format (SYMBOL:[s|m|l]).
c815a616
TL
1590 (set_cons_rparams): Support argument type 'arg_rbase'.
1591 (get_operandtype): Bug fix in 'rbase' operand type parsing.
1592 (handle_LoadStor): Bug fix, first handle post-increment mode.
c04f5787
AM
1593 (getreg_image): Remove redundant code, update according to latest
1594 CRX spec.
c815a616 1595 (print_constant): Bug fix relate to 3-word instructions.
c04f5787 1596 (assemble_insn): Bug fix, when matching instructions, verify also
c815a616
TL
1597 instruction type (not only mnemonic).
1598 Add various error checking.
1599 (preprocess_reglist): Support HI/LO and user registers.
1600
ed7af9f9
L
16012004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
1602
c04f5787 1603 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
ed7af9f9
L
1604 in an epilogue directive go negative.
1605
ac025970
L
16062004-10-25 H.J. Lu <hongjiu.lu@intel.com>
1607
1608 PR 474
1609 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
1610 after reporting template error during manual bundling. Reported
1611 by Michael Dupont, michaelx.dupont@intel.com.
1612
a394c00f
NC
16132004-10-25 Daniel Jacobowitz <dan@debian.org>
1614
1615 * Makefile.am: Run dep-am.
1616 * aclocal.m4: Regenerate with automake 1.9.2.
1617 * Makefile.in: Regenerate with automake 1.9.2.
1618 * doc/Makefile.in: Likewise.
1619
1620 * config/tc-arm.c: Include "dw2gencfi.h".
1621 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
1622 New functions.
1623 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
1624 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
1625 (tc_cfi_frame_initial_instructions): Define.
1626 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
1627 Add prototypes.
1628
23d83918
TL
16292004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
1630
1631 * config/tc-crx.c (assemble_insn): Check unsigned immediate
1632 operands validity.
1633 Update coprocessor id to be unsigned immediate.
1634
bb41ade5
AM
16352004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1636
1637 * config/tc-i386.c (O_secrel): Delete.
1638 (tc_pe_dwarf2_emit_offset): New function.
1639 * config/tc-i386.h (O_secrel): Define as O_md1.
1640 (TC_DWARF2_EMIT_OFFSET): Define.
1641
87e62348
NC
16422004-10-18 Nick Clifton <nickc@redhat.com>
1643
1644 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
1645 ignore @fptr() directives for 4-byte fixups.
1646
3c55da70
AM
16472004-10-15 Alan Modra <amodra@bigpond.net.au>
1648
1649 * Makefile.am: Run "make dep-am"
1650 * Makefile.in: Regenerate.
1651
40e7b7b9
BW
16522004-10-14 Bob Wilson <bob.wilson@acm.org>
1653
1654 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
1655 Remove comments about placement of literal pools.
1656 (Literal Directive): Update description of literal placement.
1657 (Literal Prefix Directive): Remove statement that this does not apply
1658 to absolute-mode literals. Describe new section naming scheme.
1659
b08b5071
BW
16602004-10-12 Bob Wilson <bob.wilson@acm.org>
1661
1662 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
1663 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
1664 is_windowed_return_opcode): Delete.
1665 (xtensa_frob_label): Use get_subseg_target_freq.
1666 (md_assemble): Inline call to is_entry_opcode.
1667 (xtensa_handle_align): Inline call to get_frag_is_literal.
1668 (relaxation_requirements): Inline call to is_jx_opcode.
1669 (emit_single_op): Inline call to is_movi_opcode.
1670 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
1671 get_frag_is_no_transform, is_entry_opcode, and
1672 set_frag_is_specific_opcode. Use get_subseg_total_freq.
1673 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
1674 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
1675 Inline calls to get_frag_is_no_transform.
1676 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
1677 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
1678 get_frag_is_no_transform.
1679 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
1680 and set_frag_is_no_transform.
1681 (get_expression_value): Delete.
1682 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
1683 cur_target_freq to target_freq.
1684 (get_subseg_info): Split out code to create a new map entry into ...
1685 (add_subseg_info): ... this new function.
1686 (get_last_insn_flags): Check if get_subseg_info succeeded.
1687 (set_last_insn_flags): Call add_subseg_info if needed.
1688 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
1689 (xtensa_reorder_segments): Compute last_sec while counting sections.
1690 Remove call to get_last_sec.
1691 (get_last_sec): Delete.
1692 (cache_literal_section): Inline call to retrieve_literal_seg and its
1693 callees, seg_present and add_seg_list.
1694 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
1695 (get_frag_is_insn, get_frag_is_no_transform,
1696 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
1697 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
1698
7fa3d080
BW
16992004-10-12 Bob Wilson <bob.wilson@acm.org>
1700
1701 * config/tc-xtensa.c: Use ISO C90 formatting.
1702 * config/tc-xtensa.h: Likewise.
1703 * config/xtensa-istack.h: Likewise.
1704 * config/xtensa-relax.c: Likewise.
1705 * config/xtensa-relax.h: Likewise.
1706
8cb51566
PB
17072004-10-12 Paul Brook <paul@codesourcery.com>
1708
1709 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
1710 EF_ARM_EABI_VER4.
1711 (arm_eabis): Ditto.
1712 * doc/c-arm.texi: Document that we actually support -meabi=4, not
1713 -meabi=3.
1714
653cfe85
BW
17152004-10-08 Bob Wilson <bob.wilson@acm.org>
1716
1717 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
1718 entries.
1719 (Acknowledgements): Use "GAS" instead of AS variable.
1720
d2b2c203
DJ
17212004-10-08 Daniel Jacobowitz <dan@debian.org>
1722
1723 * config/tc-i386.c: Include "elf/x86-64.h".
1724 (i386_elf_section_type): New function.
1725 * config/tc-i386.h (md_elf_section_type): Define.
1726 (i386_elf_section_type): New prototype.
1727
e80e0390
NC
17282004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
1729
1730 * config/m68k-parse.h (enum m68k_register): New control register,
1731 MBAR2 (for MCF5249)
1732 * config/tc-m68k.c: Correct control register set for MCF5249.
1733
43cd72b9 17342004-10-07 Bob Wilson <bob.wilson@acm.org>
85a5ac80 1735 Sterling Augustine <sterling@tensilica.com>
43cd72b9
BW
1736
1737 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
1738 (UNREACHABLE_MAX_WIDTH): Define.
1739 (XTENSA_FETCH_WIDTH): Delete.
1740 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
1741 prefer_const16, prefer_l32r): New global variables.
1742 (LIT4_SECTION_NAME): Define.
1743 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
1744 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
1745 (frag_flags struct): New.
c04f5787 1746 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
43cd72b9
BW
1747 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
1748 (bitfield, bit_is_set, set_bit, clear_bit): Define.
1749 (MAX_FORMATS): Define.
1750 (op_placement_info struct, op_placement_table): New.
1751 (O_pltrel, O_hi16, O_lo16): Define.
1752 (directiveE enum): Rename directive_generics to directive_transform.
1753 Delete directive_relax. Add directive_schedule,
1754 directive_absolute_literals, and directive_last_directive.
1755 (directive_info): Rename "generics" to "transform". Delete "relax".
1756 Add "schedule" and "absolute-literals".
1757 (directive_state): Adjust entries to match changes in directive_info.
1758 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
1759 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
1760 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
1761 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
1762 (align_only_targets, software_a0_b_retw_interlock,
1763 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
1764 software_avoid_short_loop, software_avoid_close_loop_end,
1765 software_avoid_all_short_loops, specific_opcode): Delete.
1766 (warn_unaligned_branch_targets): New.
1767 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
1768 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
1769 (option_[no_]link_relax, option_[no_]transform,
1770 option_[no_]absolute_literals, option_warn_unaligned_targets,
1771 option_prefer_l32r, option_prefer_const16, option_target_hardware):
1772 New enum values.
1773 (option_[no_]align_only_targets, option_literal_section_name,
1774 option_text_section_name, option_data_section_name,
1775 option_bss_section_name, option_eb, option_el): Delete.
1776 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
1777 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
1778 and target-hardware. Delete entries for [no-]target-align-only,
1779 literal-section-name, text-section-name, data-section-name, and
1780 bss-section-name.
1781 (md_parse_option): Handle new options and remove old ones. Accept but
1782 ignore [no-]density options. Warn for [no-]generics and [no-]relax
1783 and treat them as [no-]transform.
1784 (md_show_usage): Add new options and remove old ones.
1785 (xtensa_setup_hw_workarounds): New.
1786 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
1787 "long", "short", "loc" and "frequency" entries.
1788 (use_generics): Rename to ...
1789 (use_transform): ... this function. Add past_xtensa_end check.
1790 (use_longcalls): Add past_xtensa_end check.
1791 (code_density_available, can_relax): Delete.
1792 (do_align_targets): New.
1793 (get_directive): Accept dashes in directive names. Warn about
1794 [no-]generics and [no-]relax directives and treat them as
c04f5787 1795 [no-]transform.
43cd72b9
BW
1796 (xtensa_begin_directive): Call md_flush_pending_output only for some
1797 directives. Check for directives inside instruction bundles. Warn
1798 about deprecated ".begin literal" usage. Warn and ignore [no-]density
1799 directives. Handle new directives. Check generating_literals flag
1800 for literal_prefix.
1801 (xtensa_end_directive): Check for directives inside instruction
1802 bundles. Warn and ignore [no-]density directives. Handle new
1803 directives. Call xtensa_set_frag_assembly_state.
1804 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
1805 xtensa_dwarf2_emit_insn): New.
1806 (xtensa_literal_position): Call md_flush_pending_output. Do not check
1807 use_literal_section flag.
1808 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
1809 literals. Use xtensa_elf_cons to parse the expression.
1810 (xtensa_literal_prefix): Do not check use_literal_section. Support
1811 ".lit4" sections for absolute literals. Change prefix convention to
1812 replace ".text" (or ".t" in a linkonce section). No need to call
1813 subseg_set.
1814 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
1815 (expression_end): Handle closing braces and colons.
1816 (PLT_SUFFIX, plt_suffix): Delete.
1817 (expression_maybe_register): Use new xtensa-isa.h functions. Use
1818 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
1819 and O_hi16 expressions as well.
1820 (tokenize_arguments): Handle closing braces and colons.
1821 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
1822 operands and paired register syntax.
1823 (get_invisible_operands): New.
1824 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
1825 new xtensa-isa.h functions.
1826 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
1827 (xg_translate_idioms): Check if inside bundle. Use use_transform.
1828 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
1829 instructions. Use xtensa_translate_zero_immed.
1830 (operand_is_immed, operand_is_pcrel_label): Delete.
1831 (get_relaxable_immed): Use new xtensa-isa.h functions.
1832 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
1833 functions.
1834 (xtensa_print_insn_table, print_vliw_insn): New.
1835 (is_direct_call_opcode): Use new xtensa-isa.h functions.
1836 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
1837 is_branch_or_jump_opcode): Delete.
1838 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
1839 (opnum_to_reloc, reloc_to_opnum): Delete.
1840 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
1841 xtensa-isa.h functions. Operate on one slot of an instruction.
1842 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
1843 xg_get_insn_size): Delete.
1844 (xg_get_build_instr_size): Use xg_get_single_size.
1845 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
1846 xg_build_widen_table. Use xg_get_single_size.
1847 (xg_get_max_narrow_insn_size): Delete.
1848 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
1849 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
1850 xg_get_single_size.
1851 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
1852 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
1853 (xg_expand_to_stack, xg_expand_narrow): Update calls to
1854 xg_build_widen_table. Use xg_get_single_size.
1855 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
1856 xg_check_operand.
1857 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
1858 treat weak symbols conservatively.
1859 (xg_check_operand): Use new xtensa-isa.h functions.
1860 (is_dnrange): Delete.
1861 (xg_assembly_relax): Inline previous calls to tinsn_copy.
1862 (xg_finish_frag): Specify separate relax states for the frag and slot0.
1863 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
1864 xtensa-isa.h functions.
1865 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
1866 xg_instruction_matches_options): New.
1867 (xg_instruction_matches_rule): Handle O_register expressions. Call
1868 xg_instruction_matches_options.
1869 (transition_rule_cmp): New.
1870 (xg_instruction_match): Update call to xg_build_simplify_table.
1871 (xg_build_token_insn): Record loc fields.
1872 (xg_simplify_insn): Check is_specific_opcode field and
1873 density_supported flag.
1874 (xg_expand_assembly_insn): Skip checking code_density_available. Use
1875 new xtensa-isa.h functions. Call use_transform instead of can_relax.
1876 (xg_assemble_literal): Add error handling for O_big. Call
1877 record_alignment. Handle O_pltrel.
1878 (xg_valid_literal_expression): New.
1879 (xg_assemble_literal_space): Add slot parameter. Remove call to
1880 set_expr_symbol_offset. Add call to record_alignment. Update call to
1881 xg_finish_frag.
1882 (xg_emit_insn): Delete.
1883 (xg_emit_insn_to_buf): Add format parameter. Update calls to
1884 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
1885 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
1886 and slot parameters. Handle new "alternate" relocations for absolute
1887 literals and CONST16 instructions. Check for bad uses of O_lo16 and
1888 O_hi16. Use new xtensa-isa.h functions.
1889 (xg_assemble_tokens): Delete.
1890 (is_register_writer): Use new xtensa-isa.h functions.
1891 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
1892 old-style RSR from LCOUNT.
1893 (next_frag_opcode): Delete.
1894 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
1895 update_next_frag_state): New.
1896 (update_next_frag_nop_state): Delete.
1897 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
1898 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
1899 the state of the absolute-literals directive. Add calls to
1900 record_alignment and xtensa_set_frag_assembly_state. Call
1901 xtensa_switch_to_non_abs_literal_fragment instead of
1902 xtensa_switch_to_literal_fragment.
1903 (build_nop): New.
1904 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
1905 (get_expanded_loop_offset): Change check for undefined opcode to an
1906 assertion.
1907 (xtensa_set_frag_assembly_state, relaxable_section,
1908 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
1909 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
1910 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
1911 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
1912 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
1913 (xtensa_init_fix_data): New.
1914 (xtensa_frob_label): Reset label symbol to the current frag. Check
1915 do_align_targets and generating_literals flag. Propagate frequency
1916 info to new alignment frag. Call xtensa_set_frag_assembly_state.
1917 (xtensa_unrecognized_line): New.
1918 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
1919 to xtensa_set_frag_assembly_state.
1920 (error_reset_cur_vinsn): New.
1921 (md_assemble): Remove check for literal frag. Remove call to
1922 istack_init. Call use_transform instead of use_generics. Parse
1923 explicit instruction format specifiers. Move code for
1924 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
1925 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
1926 Add dwarf2_where call. Remote automatic alignment for ENTRY
1927 instructions. Move call to xtensa_clear_insn_labels to the end.
1928 Rearrange to handle bundles.
1929 (xtensa_cons_fix_new): Delete.
1930 (xtensa_handle_align): New.
1931 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
1932 assignment to is_no_density field.
1933 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
1934 instead of reloc_to_opnum. Handle "alternate" relocations.
1935 (xtensa_force_relocation, xtensa_check_inside_bundle,
1936 xtensa_elf_section_change_hook): New.
1937 (xtensa_symbol_new_hook): Delete.
1938 (xtensa_fix_adjustable): Check for difference of symbols with an
1939 offset. Check for external and weak symbols.
1940 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
1941 (md_estimate_size_before_relax): Return expansion for the first slot.
1942 (tc_gen_reloc): Handle difference of symbols by producing
1943 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
1944 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
1945 tentative values into the output when linkrelax is set.
1946 (XTENSA_PROP_SEC_NAME): Define.
1947 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
1948 Create literal tables only if using literal sections. Create new
1949 property tables instead of old instruction tables. Check for unaligned
1950 branch targets and loops.
1951 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
1952 new_resource_table, clear_resource_table, resize_resource_table,
1953 resources_available, reserve_resources, release_resources,
1954 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
1955 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
1956 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
1957 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
1958 flag. Update checks for workaround options. Call
1959 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
1960 (xtensa_cleanup_align_frags): Add special case for branch targets.
1961 Check for and mark unreachable frags.
1962 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
1963 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
1964 end of a zero-overhead loop body.
1965 (frag_can_negate_branch): Handle instructions with multiple slots.
1966 Use new xtensa-isa.h functions
1967 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
1968 xtensa_mark_zcl_first_insns): New.
1969 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
1970 transformations are disabled.
1971 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
1972 multislot instructions.
1973 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
1974 Likewise. Also error if transformations are disabled.
1975 (unrelaxed_frag_max_size): New.
1976 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
1977 xtensa-isa.h functions.
1978 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
1979 xtensa_opcode_is_loop instead of is_loop_opcode.
1980 (get_text_align_power): Replace as_fatal with assertion.
1981 (get_text_align_fill_size): Iterate instead of using modulus when
1982 use_nops is false.
1983 (get_noop_aligned_address): Assert that this is for a machine-dependent
1984 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
1985 xg_get_single_size, and frag_format_size.
1986 (get_widen_aligned_address): Rename to ...
1987 (get_aligned_diff): ... this function. Add max_diff parameter.
1988 Remove handling of rs_align/rs_align_code frags. Use
1989 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
1990 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
1991 and pass it back to caller.
1992 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
1993 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
1994 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
1995 (relax_frag_text_align): Rename to ...
1996 (relax_frag_loop_align): ... this function. Assume loops can only be
1997 in the first slot of an instruction.
1998 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
1999 instruction. Remove call to frag_wane.
2000 (relax_frag_narrow): Rename to ...
2001 (relax_frag_for_align): ... this function. Extend to handle
2002 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
2003 RELAX_NARROW for the first slot.
2004 (find_address_of_next_align_frag, bytes_to_stretch): New.
2005 (future_alignment_required): Use find_address_of_next_align_frag and
2006 bytes_to_stretch. Look ahead to subsequent frags to make smarter
2007 alignment decisions.
2008 (relax_frag_immed): Add format, slot, and estimate_only parameters.
2009 Check if transformations are enabled for b_j_loop_end workaround.
2010 Use new xtensa-isa.h functions and handle multislot instructions.
2011 Update call to xg_assembly_relax.
2012 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
2013 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
2014 frag types.
2015 (convert_frag_narrow): Add segP, format and slot parameters. Call
2016 convert_frag_immed for branch instructions. Adjust calls to
2017 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
2018 xg_get_single_size and xg_get_single_format.
2019 (convert_frag_fill_nop): New.
2020 (convert_frag_immed): Add format and slot parameters. Handle multislot
2021 instructions and use new xtensa-isa.h functions. Update calls to
2022 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
2023 enabled for b_j_loop_end workaround. Use build_nop instead of
2024 assemble_nop. Check is_specific_opcode flag. Check for unreachable
2025 frags. Use xg_get_single_size. Handle O_pltrel.
2026 (fix_new_exp_in_seg): Remove check for old plt flag.
2027 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
2028 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
2029 for loop opcode to an assertion. Mark all frags up to the end of the
2030 loop as not transformable.
2031 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
2032 (get_subseg_info): New.
2033 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
2034 check for dest_seg.
2035 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
2036 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
2037 (xtensa_switch_to_non_abs_literal_fragment): New.
2038 (cache_literal_section): Add is_code parameter and pass it through to
2039 retrieve_literal_seg.
2040 (retrieve_literal_seg): Add is_code parameter and use it to set the
2041 flags on the literal section. Handle case where head parameter is 0.
2042 (get_frag_is_no_transform, set_frag_is_specific_opcode,
2043 set_frag_is_no_transform): New.
2044 (xtensa_create_property_segments): Add end_property_function parameter
2045 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
2046 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
2047 (xtensa_create_xproperty_segments, section_has_xproperty): New.
2048 (add_xt_block_frags): Add end_property_function parameter and call it
2049 if it is non-zero. Call xtensa_frag_flags_init.
2050 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
2051 get_frag_property_flags, frag_flags_to_number,
2052 xtensa_frag_flags_combinable, xt_block_aligned_size,
2053 xtensa_xt_block_combine, add_xt_prop_frags,
2054 init_op_placement_info_table, opcode_fits_format_slot,
2055 xg_get_single_size, xg_get_single_format): New.
2056 (istack_push): Inline call to tinsn_copy.
2057 (tinsn_copy): Delete.
2058 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
2059 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
2060 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
2061 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
2062 functions. Handle invisible operands.
2063 (tinsn_to_slotbuf): New.
2064 (tinsn_check_arguments): Use new xtensa-isa.h functions.
2065 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
2066 vinsn_from_chars, and xg_free_vinsn.
2067 (tinsn_from_insnbuf): New.
2068 (tinsn_immed_from_frag): Add slot parameter and handle multislot
2069 instructions. Handle symbol differences.
2070 (get_num_stack_text_bytes): Use xg_get_single_size.
2071 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
2072 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
2073 get_expr_register, set_expr_symbol_offset_diff): New.
2074 * config/tc-xtensa.h (MAX_SLOTS): Define.
2075 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
2076 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
2077 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
2078 RELAX_NONE types.
2079 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
2080 (xtensa_frag_type struct): Add is_assembly_state_set,
2081 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
2082 is_align, is_text_align, alignment, and is_first_loop_insn fields.
2083 Replace is_generics and is_relax fields by is_no_transform field.
2084 Delete is_text and is_longcalls fields. Change text_expansion and
2085 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
2086 per-slot information: literal_frags, slot_subtypes, slot_symbols,
2087 slot_sub_symbols, and slot_offsets. Add fr_prev field.
2088 (xtensa_fix_data struct): New.
2089 (xtensa_symfield_type struct): Delete plt field.
2090 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
2091 forward declaration here.
2092 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
2093 (XTENSA_SECTION_RENAME): Undefine.
2094 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
2095 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
2096 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
2097 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
2098 (unit_num_copies_func, opcode_num_units_func,
2099 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
2100 (resource_table struct): New.
2101 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
2102 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
2103 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
2104 (tinsn_copy): Delete prototype.
2105 (vliw_insn struct): New.
2106 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
2107 (widen_spec_list): Add option conditions for density and boolean
2108 instructions. Add expansions using CONST16 and conditions for using
2109 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
2110 predicted branches.
2111 (simplify_spec_list): Add option conditions for density instructions.
2112 Add entry for NOP instruction.
2113 (append_transition): Add cmp function pointer parameter and use it to
2114 insert the new entry in order.
2115 (operand_function_LOW16U, operand_function_HI16U): New.
2116 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
2117 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
2118 (enter_opname, split_string): Use xstrdup instead of strdup.
2119 (init_insn_pattern): Initialize new options field.
2120 (clear_req_or_option_list, clear_req_option_list,
2121 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
2122 New.
2123 (parse_insn_pattern): Parse option conditions.
2124 (transition_applies): New.
2125 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
2126 swapped last arguments in calls to append_constant_value_condition.
2127 Call clone_req_option_list. Add warning about invalid opcode.
2128 Handle LOW16U and HI16U function names.
2129 (build_transition_table): Add cmp parameter and use it in calls to
2130 append_transition. Use new xtensa-isa.h functions. Check
2131 transition_applies before adding entries.
2132 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
2133 pass it through to build_transition_table.
2134 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
2135 ReqOption, transition_cmp_fn): New types.
2136 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
2137 (transition_rule struct): Add options field.
2138 * doc/as.texinfo (Overview): Update Xtensa options.
2139 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
2140 --[no-]relax, and --[no-]generics options. Update descriptions of
2141 --text-section-literals and --[no-]longcalls. Add
2142 --[no-]absolute-literals and --[no-]transform.
2143 (Xtensa Syntax): Add description of syntax for FLIX instructions.
2144 Remove use of "generic" and "specific" terminology for opcodes.
2145 (Xtensa Registers): Generalize the syntax description to include
2146 user-defined register files.
2147 (Xtensa Automatic Alignment): Update.
2148 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
2149 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
2150 (Xtensa Directives): Remove confusing rules about precedence.
2151 (Density Directive, Relax Directive): Delete.
2152 (Schedule Directive): New.
2153 (Generics Directive): Rename to ...
2154 (Transform Directive): ... this node.
2155 (Literal Directive): Update for absolute literals. Missing
2156 literal_position directive is now an error.
2157 (Literal Position Directive): Update for absolute literals.
2158 (Freeregs Directive): Delete.
2159 (Absolute Literals Directive): New.
2160 (Frame Directive): Minor editing.
2161 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
2162 Update dependencies.
2163 * Makefile.in: Regenerate.
2164
6e1304d8
RS
21652004-10-07 Richard Sandiford <rsandifo@redhat.com>
2166
2167 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
2168 to build the second and third fixups for a composite relocation.
2169 (macro_read_relocs): New function.
2170 (macro_build): Use it.
2171 (s_cpsetup): Pass all three composite relocation codes to macro_build.
2172 Simplify fragging code accordingly.
2173 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
2174 of the composite relocation. Set fx_tcbit in both fixups.
2175
b1dca8ee
RS
21762004-10-07 Richard Sandiford <rsandifo@redhat.com>
2177
2178 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
2179 (md_apply_fix3): Don't treat composite relocs as done.
2180
89658e52
NC
21812004-10-07 Jan Beulich <jbeulich@novell.com>
2182
2183 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
2184 prefix for symbol names generated from the LOCAL macro directive.
2185
289040ca
NC
2186 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
2187 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
2188
48c9f030
NC
21892004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
2190
2191 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
c04f5787 2192 Special registers.
5c5054ab 2193 (md_assemble): Add error checking for Co-Processor instructions.
48c9f030
NC
2194 (get_cinv_parameters): Add 'b' option to invalidate the
2195 branch-target cache.
2196
7ed4c4c5
NC
21972004-10-05 Paul Brook <paul@codesourcery.com>
2198
2199 * config/tc-arm.c (unwind): New variable.
2200 (vfp_sp_encode_reg): New function.
2201 (vfp_sp_reg_required_here): Use it.
2202 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
2203 (vfp_parse_reg_list): New function.
2204 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
2205 s_arm_unwind_personality, s_arm_unwind_personalityindex,
2206 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
2207 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
2208 functions.
2209 (md_pseudo_table): Add them.
2210 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
2211 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
2212 (set_section, add_unwind_adjustsp, flush_pending_unwind,
2213 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
2214 require_hashconst, add_unwind_opcode): New functions.
ab1e9ef7 2215 * doc/c-arm.texi: Document unwinding opcodes.
7ed4c4c5
NC
2216 * NEWS: Mention the new feature.
2217
04ca8703
EC
22182004-10-04 Eric Christopher <echristo@redhat.com>
2219
2220 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
2221
7c1d0959
L
22222004-10-01 H.J. Lu <hongjiu.lu@intel.com>
2223
2224 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
2225 TLS relocations.
2226 * config/tc-s390.c (md_apply_fix3): Likewise.
2227 * config/tc-sparc.c (md_apply_fix3): Likewise.
2228
40a18ebd
NC
22292004-10-01 Paul Brook <paul@codesourcery.com>
2230
2231 * config/tc-arm.c (arm_elf_section_type): New function.
2232 (arm_elf_change_section): Set section link for exidx sections.
2233 * config/tc-arm.h (arm_elf_section_type): Add prototype.
2234 (md_elf_section_type): Define.
2235
14127cc4
NC
22362004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
2237
2238 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
2239 instruction's offset.
2240
b7c92712
NC
22412004-10-01 Adam Nemet <anemet@lnxw.com>
2242
2243 * (TARGET_FORMAT): Remove LynxOS COFF definition.
2244
65555e64
AM
22452004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
2246
2247 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
2248 asymbol *, instead use symbol_get_bfdsym.
2249
9fe0b840
NC
22502004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
2251
2252 * config/tc-m68k.c (select_control_regs): Add mcf5249.
2253
0dd132b6
NC
22542004-09-30 Paul Brook <paul@codesourcery.com>
2255
2256 * config/tc-arm.c (do_smi, do_nop): New functions.
2257 (insns): Add ARMv6ZK instructions.
2258 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
2259 (tc_gen_reloc): Ditto.
2260 (arm_cpus): Add mpcore and arm1176.
2261 (arm_archs): Add armv6{k,z,zk}.
2262 * doc/c-arm.texi: Document new cores and architectures.
2263
a737bd4d
NC
22642004-09-30 Nick Clifton <nickc@redhat.com>
2265
2266 * config/tc-arm.c: Use ISO C90 formatting.
2267
3631a3c8
NC
22682004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
2269
a737bd4d 2270 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
3631a3c8
NC
2271 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
2272 REG_TYPE_MVDX is expected.
2273
d5f0cf92
AM
22742004-09-29 Marc Bevand <m.bevand@gmail.com>
2275
2276 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
2277
9f9a069e
JW
22782004-09-21 James E Wilson <wilson@specifixinc.com>
2279
2280 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
2281 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
2282 output_spill_base, output_unat_psprel, output_lc_psprel,
2283 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
2284 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
2285 output_spill_psprel_p): Use it.
2286
4b778c88
TL
22872004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
2288
c04f5787 2289 * config/tc-crx.c (handle_LoadStor): New function.
04ca8703 2290 Handle load/stor unique instructions before parsing.
4b778c88 2291
eb043451
PB
22922004-09-17 Paul Brook <paul@codesourcery.com>
2293
2294 * config/tc-arm.c (s_arm_rel31): New funciton.
2295 (md_pseudo_table): Add .rel31.
04ca8703 2296 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
eb043451
PB
2297 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
2298 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
2299 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
2300 (arm_parse_reloc): Add (target2).
2301
8ea2b00f
AM
23022004-09-17 Alan Modra <amodra@bigpond.net.au>
2303
2304 * Makefile.am: Run "make dep-am".
2305 * Makefile.in: Regenerate.
2306 * aclocal.m4: Regenerate.
2307 * configure: Regenerate.
2308 * doc/Makefile.in: Regenerate.
2309 * po/POTFILES.in: Regenerate.
2310 * po/gas.pot: Regenerate.
2311
7e1792e0
HPN
23122004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
2313
2314 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
2315 [!LLONG_MAX]: Ditto.
2316
9c504268
PB
23172004-09-13 Paul Brook <paul@codesourcery.com>
2318
2319 * config/tc-arm.c: Rename RELABS to TARGET1.
2320
2159ac21
AM
23212004-09-13 Alan Modra <amodra@bigpond.net.au>
2322
2323 * messages.c (as_internal_value_out_of_range): Cast values passed
2324 to as_bad_where or as_warn_where to proper type.
2325
23794b24
MM
23262004-09-11 Theodore A. Roth <troth@openavr.org>
2327
2328 * config/tc-avr.c: Add support for
2329 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
2330
e9fad691
AM
23312004-09-09 Alan Modra <amodra@bigpond.net.au>
2332
2333 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
2334 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
2335
10b016c2
PB
23362004-09-08 Paul Brook <paul@codesourcery.com>
2337
2338 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
2339 fini_array and preinit_array section types.
2340 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
2341 and fini_array.
2342 * doc/as.texinfo: Document extra section types.
2343
e5a52504
MM
23442004-09-02 Mark Mitchell <mark@codesourcery.com>
2345
2346 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
2347 * Makefile.in: Regenerated.
2348 * configure.in: Set em for arm*-*-symbianelf*.
2349 * configure: Regenerated.
2350 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
2351 vectors when appropriate.
2352 * config/te-symbian.h: New file.
2353
42851540
NC
23542004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2355
2356 * config/tc-crx.c (gettrap): Exception vector can be case
2357 insensitive.
04ca8703 2358 (process_label_constant): Fix a 32-bit displacement bug in branch
42851540
NC
2359 instructions.
2360 (get_operandtype) : Bug fix, wrong operand was used.
04ca8703 2361 (process_label_constant): Initialize relocation type to
42851540
NC
2362 BFD_RELOC_NONE
2363
8783612f
RE
23642004-09-01 Richard Earnshaw < reanrsha@arm.com>
2365
2366 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
2367 for synthesizable cores.
2368
1ff4677c
RE
2369 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
2370
b18c562e
NC
23712004-08-25 Dmitry Diky <diwil@spec.ru>
2372
2373 * config/tc-msp430.c: Clean-up the code.
2374 (md_relax_table): New relax table.
2375 (mcu_types): Sort MCU types.
2376 (md_pseudo_table): Add .profiler pseudo handler.
2377 (pow2value): New function.
2378 (msp430_profiler): New function.
2379 (msp430_operands): Add new insns handlers.
2380 (msp430_srcoperand): Add register operand handler, allow complex
2381 expressions.
2382 (md_estimate_size_before_relax): Rewritten.
2383 (md_convert_frag): Rewritten.
2384 (msp430_relax_frag): New function.
2385 * config/tc-msp430.h (md_relax_frag): define macro
2386 * doc/c-msp430.texi: Update information.
2387
8f94ae4d
NC
23882004-08-24 Nick Clifton <nickc@redhat.com>
2389
2390 * as.c (std_shortopts): Allow -g to take an optional argument.
2391 (parse_args): Pass any switch starting with -g on to the backend
2392 for parsing.
2393
e51dace8
MM
23942004-08-18 Mark Mitchell <mark@codesourcery.com>
2395
2396 * configure.in (arm*-*-symbianelf*): New target.
2397 (arm*-*-eabi*): Likewise.
2398 * configure: Regenerated.
2399
f7870c8d
TS
24002004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2401 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
2402 correctly.
2403
d6afba4b
JJ
24042004-08-18 Jakub Jelinek <jakub@redhat.com>
2405
2406 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
2407 argument, don't do anything if current section is not
2408 .gnu.linkonce.t.* and linkonce_empty is set.
2409 (generate_unwind_image, dot_endp): Adjust callers, call
2410 start_unwind_section (*, 1) if nothing will be put into the
2411 section.
2412
329e276d
NC
24132004-08-17 Nick Clifton <nickc@redhat.com>
2414
2415 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
2416 (show_usage): Add -g.
2417 (std_longopts): Add --gen-debug. Alpha sort the table.
2418 (parse_args): Print an error message if a switch is not handled.
2419 Handle the -g switch, calling md_debug_format_selector() if
2420 necessary.
2421 * NEWS: Mention new feature.
2422 * doc/as.texinfo: Document new switch.
2423 * doc/internals.texi: Document behaviour of md_parse_option.
04ca8703 2424
329e276d
NC
2425 * config/tc-arm.c (md_parse_option): Do not issue an error message
2426 if the switch is not recognised.
2427 * config/tc-m68k.c (md_parse_option): Likewise.
2428 * config/tc-pdp11.c (md_parse_option): Likewise.
2429 * config/tc-v850.c (md_parse_option): Likewise.
2430
2431 * as.h: Fix up formatting.
2432 * tc.h: Likewise.
2433
4101eec8
NC
24342004-08-16 Nick Clifton <nickc@redhat.com>
2435
2766e5e4
NC
2436 * macro.c (macro_set_alternate): Use ISO C90 formatting.
2437
4101eec8
NC
2438 * configure.in: Sort architecture based tables alphabetically.
2439 * configure: Regenerate.
2440
80f846b6
AM
24412004-08-16 Alan Modra <amodra@bigpond.net.au>
2442
2443 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
2444 { "cc", 68 }, with { "cr", 70 }.
2445
caa32fe5
NC
24462004-08-13 Jan Beulich <jbeulich@novell.com>
2447 Nick Clifton <nickc@redhat.com>
2448
2449 * as.c: Add and handle new --alternate command line option.
2450 * macro.c (macro_set_alternate): New.
2451 * macro.h (macro_set_alternate): Declare.
2452 * read.c: Add and handle new .altmacro and .noaltmacro directives.
2453 * doc/as.texinfo: Document new command line option and pseudo-ops
2454 as well as insert documentation originating from gasp about
2455 alternate macro syntax.
2456 * NEWS: Mention new command line option and pseudo-ops.
2457
b2221023
MM
24582004-08-10 Mark Mitchell <mark@codesourcery.com>
2459
2460 * expr.c (operand): Handle the "~", "-", and "!" operators applied
2461 to bignums.
2462
db6579d4
PB
24632004-08-06 Paul Brook <paul@codesourcery.com>
2464
2465 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
2466 Handle new relocations.
2467 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
2468
e750405d
BW
24692004-08-05 Bob Wilson <bob.wilson@acm.org>
2470
2471 * write.c (relax_segment): Use was_address instead of address when
2472 setting fr_fix field for align frag due to backwards .org.
2473
1d70c7fb
AO
24742004-07-29 Alexandre Oliva <aoliva@redhat.com>
2475
2476 Introduce SH2a support.
2477 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
2478 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
2479 arch_sh2a_nofpu_up.
2480 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
2481 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
2482 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
2483 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
2484 to end of conditional expression.
2485 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
2486 * config/tc-sh.c: Add sh2a-nofpu support.
2487 2003-12-29 DJ Delorie <dj@redhat.com>
2488 * tc-sh.c: Add sh2a support.
2489 (parse_reg): Add tbr.
2490 (parse_at): Support @@(disp,tbr).
2491 (get_specific): Support sh2a opcodes.
2492 (insert4): New, for 4 byte relocs.
2493 (build_Mytes): Support sh2a opcodes.
2494 (md_apply_fix3_Mytes): Support sh2a opcodes.
2495 2003-12-02 Michael Snyder <msnyder@redhat.com>
2496 * config/tc-sh.c (md_parse_option): Handle sh2a.
2497 (sh_elf_final_processing): Ditto.
2498
e7fbc2bf
JT
24992004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2500
2501 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
2502 for TE_NetBSD.
2503
9232bbb0
AM
25042004-07-27 Alan Modra <amodra@bigpond.net.au>
2505
2506 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
2507 (ppc_arch): Expand comment.
2508
670ec21d
NC
25092004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
2510
2511 * config/tc-crx.c: Support evaluating the difference between two
2512 symbols.
2513 * config/tc-crx.h: Likewise.
2514
406f8ff9 25152004-07-26 H.J. Lu <hongjiu.lu@intel.com>
38ce5b11
L
2516
2517 * config/tc-ia64.c (start_unwind_section): Set the linked-to
2518 section.
2519 (ia64_elf_section_change_hook): Set the linked-to section for
2520 SHT_IA_64_UNWIND.
2521
c05e9f04
NC
25222004-07-26 Dmitry Diky <diwil@spec.ru>
2523
2524 * config/tc-msp430.c: Add new subtargets: msp430x1610,
2525 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
2526 msp430xG438, msp430xG439.
2527
e9863d7f
DJ
25282004-07-25 Daniel Jacobowitz <dan@debian.org>
2529
2530 * doc/as.texinfo (Section, PushSection): Correct documentation
2531 for ELF.
2532
543613e9 25332004-07-21 Jan Beulich <jbeulich@novell.com>
20f0a1fc
NC
2534
2535 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
2536 permissible for the selected instruction suffix.
2537 (match_template): Don't permit 64-bit general purpose operands in
2538 32-bit mode.
2539 (finalize_imm): Permit 64-bit immediates.
2540 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
2541 specially except for the width of the used base and/or index
2542 registers. For 32-bit displacements, use sign-extended
2543 relocations only when using 64-bit addressing.
2544 Force zero displacement on rip-relative addressing when there is
2545 no other displacement.
2546 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
2547 specially except for the width of the used base and/or index
2548 registers.
2549 (parse_register): Disallow Reg64 registers in 32-bit mode.
2550
543613e9
NC
2551 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
2552 suffix if the instruction doesn't support it.
04ca8703 2553
01a3f561
MR
25542004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
2555
2556 * config/tc-mips.c (append_insn): Handle constant expressions with
2557 no associated relocation.
2558 (mips_ip): Cancel the expression after use for the Q format
2559 specifier.
2560 (parse_relocation): Return no relocation for unsupported
2561 operators.
2562 (my_getSmallExpression): Return no relocation if no relocation
2563 operators are used.
2564
e12904d2
DA
25652004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2566
2567 * config/obj-som.c (adjust_stab_sections): Add prototype.
2568 (obj_som_compiler, obj_som_version, obj_som_copyright,
2569 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
2570 * config/tc-hppa.c (update_subspace): Likewise.
2571 (is_defined_subspace): Amplify comment.
2572 * config/obj-som.h (som_frob_file): Add prototype.
2573
90c1602c
L
25742004-07-19 Christopher Faylor <cgf@timesys.com>
2575 H.J. Lu <hongjiu.lu@intel.com>
2576
2577 * subsegs.c (section_symbol): Don't create a new segment when
2578 existing segment is undefined.
2579
f263249b
RE
25802004-07-16 Richard Earnshaw <rearnsha@arm.com>
2581
2582 * config/tc-arm.c: Include include/opcode/arm.h.
2583 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
2584 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
2585 (FPU_ARCH_*): Delete.
2586 * Makefile.am: Update dependencies.
2587 * Makefile.in: Regenerate.
2588
152c65b9
NC
25892004-07-15 Nick Clifton <nickc@redhat.com>
2590
2591 * configure.in: Accept armbe as a big-endian arm configuration.
2592 * configure: Regenerate.
2593
0477af35
NC
25942004-07-13 Thomas Nystrom <thn@saeab.se>
2595
2596 * config/tc-i386.c (T_SHIFTOP): New constant.
2597 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
2598 (intel_el1): Handle '~'.
2599 (intel_get_token): Handle '<>', '&', '|' and '~'.
2600
26012004-07-13 Nick Clifton <nickc@redhat.com>
2602
2603 (md_assemble): Remove spurious newline from end of as_bad error
2604 message.
2605 (intel_e05_1): Likewise.
2606 (intel_e11): Likewise.
2607 (intel_match_token): Likewise.
2608
31302357
AS
26092004-07-11 Andreas Schwab <schwab@suse.de>
2610
2611 * config/tc-m68k.c: Convert to C90. Remove redundant
2612 declarations. Indentation fixup.
2613 [M68KCOFF]: Include "obj-coff.h" instead of declaring
2614 obj_coff_section ourselves.
04ca8703 2615
549f748d
JW
26162004-07-09 James E Wilson <wilson@specifixinc.com>
2617
2618 * config/tc-ia64.c (default_big_endian): New.
2619 (dot_byteorder, md_begin): Use it.
2620 (md_parse_option): Set it.
04ca8703 2621
1a320fbb
NC
26222004-07-09 Nick Clifton <nickc@redhat.com>
2623
2624 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
2625 * configure: Regenerate.
2626 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
2627 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
2628 sh_find_elf_flags if necessary.
2629
de7e6852
RS
26302004-07-08 Richard Sandiford <rsandifo@redhat.com>
2631
2632 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
2633 going to be split into more than one in-place addend, return 0
2634 for relocations against mergeable sections. Associate comments
2635 with code.
2636
1fe1f39c
NC
26372004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
2638
2639 * Makefile.am (CPU_TYPES): Add crx.
2640 (TARGET_CPU_CFILES): Add config/tc-crx.c.
2641 (TARGET_CPU_HFILES): Add config/tc-crx.h.
2642 (DEPTC_crx_elf): New target.
2643 (DEPOBJ_crx_elf): Likewise.
2644 (DEP_crx_elf): Likewise.
2645 * Makefile.in: Regenerate.
2646 * configure.in: Add crx* target.
2647 * configure: Regenerate.
2648 * config/tc-crx.c: New file.
2649 * config/tc-crx.h: New file.
2650 * NEWS: Mention new target.
2651
d9895649
NC
26522004-07-06 Nick Clifton <nickc@redhat.com>
2653
85fbca6a 2654 * config.in: Undefine TARGET_SYMBIAN by default.
c04f5787
AM
2655 * configure.in:
2656 * configure: Regenerate. Add sh-symbian-elf target. If
2657 selected define TARGET_SYMBIAN.
2658 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
2659 format if TARGET_SYMBIAN has been defined.
04ca8703 2660
e7bd9ea0
NC
2661 * output-file.c (output_file_create): Report the target format
2662 chosen when bfd_openw reports that it is invalid.
2663
d9895649
NC
2664 * config/obj-coff.c (coff_pseudo_table): Only define the weak
2665 pseudo for BFD based assemblers.
2666
871ec896
JR
26672004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
2668
2669 gas:
2670 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
2671 (md_parse_option): Remove redundant -isa testing.
2672 Make bfd_arch variable const.
2673 (md_show_usage): Make bfd_arch variable const.
2674
5a9ff93d
JW
26752004-07-03 James E Wilson <wilson@specifixinc.com>
2676
2677 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
2678 * config/tc-ia64.h (md_frag_check): Define.
2679
c87db184
CF
26802004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2681
2682 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
2683 externals.
2684 * doc/as.texinfo (Weak): Document PE weak symbols.
2685
3b91255e
RS
26862004-07-03 Richard Sandiford <rsandifo@redhat.com>
2687
2688 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
2689 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
2690 (mips_frob_file): Rework so that only a single pass through the
2691 relocs is needed. Allow %lo()s to have higher offsets than their
2692 corresponding %hi()s or %got()s.
2693
310ea308
NC
26942004-07-02 Nick Clifton <nickc@redhat.com>
2695
2696 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
2697 allow values which have come from undefined symbols.
2698 Always consider this fixup to have been processed as a reloc
2699 cannot be generated for it.
2700
09b935ac
AM
27012004-07-02 Alan Modra <amodra@bigpond.net.au>
2702
2703 * frags.h (struct frag): Add has_code and insn_addr fields.
2704 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
2705 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
2706 * config/tc-ppc.h (md_frag_check): Define.
2707
4d1cd5c7
MR
27082004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
2709
2710 * doc/Makefile.am (info): Rename goal to...
2711 (info-local): ... this, to preserve implicit dependencies.
2712 * doc/Makefile.in: Regenerate with automake 1.8.5.
2713
097f809a
NC
27142004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2715
2716 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
2717 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
2718 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
2719 (tc_gen_reloc): Likewise.
2720 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
2721 (m32r_parse_name): Likewise.
2722 (m32r_cgen_parse_fix_exp): Likewise.
2723 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
2724 (O_PIC_reloc): Likewise.
2725 (TC_CGEN_PARSE_FIX_EXP): Likewise..
2726 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
2727 for @GOTOFF, @GOT, @PLT.
2728
bb82af9f
NC
27292004-06-21 Jan Beulich <jbeulich@novell.com>
2730
2731 * gas/symbols.c: While discarding ordinary local absolute symbols
2732 when --strip-local-absolute is in effect, retain file symbols.
2733
990ae22a
AS
27342004-06-20 Andreas Schwab <schwab@suse.de>
2735
2736 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
2737 (md_parse_option): Likewise.
2738
32137342
NC
27392004-06-17 Jan Beulich <jbeulich@novell.com>
2740
2741 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
2742 * config/te-netware.h: New file.
2743 * config/te-ppcnw.h: Delete: Obsolete.
2744 * configure.in: Eliminate ill NetWare targets. Make generic
2745 NetWare target use proper emulation.
2746 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
2747 reference to new te-netware.h.
2748 * configure: Regenerate.
2749 * Makefile.in: Regenerate.
2750
f84d8e26
MS
27512004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
2752
2753 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
2754 comparison in .insn pseudo operation.
2755
587aac4e
AM
27562004-06-15 Alan Modra <amodra@bigpond.net.au>
2757
2758 * config/obj-coff.c (coff_adjust_section_syms): Use
2759 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
2760 (coff_frob_section): Likewise.
2761 * config/tc-mips.c (md_apply_fix3): Likewise.
2762 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
2763 (elf_frob_file_after_relocs): Likewise.
2764
2337eb33
DA
27652004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2766
b8fc22bc
DA
2767 * config/tc-hppa.c (log2): Rename to exact_log2.
2768 (pa_next_subseg): Delete unused function.
2769 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
2770 (create_new_subspace): Likewise.
2771
2337eb33
DA
2772 Bug gas/213
2773 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
2774 labels. Fix warning.
2775
53cb0362
DD
27762004-05-28 DJ Delorie <dj@redhat.com>
2777
2778 * config/tc-mn10300.h (tc_fix_adjustable): Define.
2779 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
2780 or non-merged symbols.
2781
888a75be
L
27822004-05-28 H.J. Lu <hongjiu.lu@intel.com>
2783
2784 * config/tc-ia64.c (remove_marked_resource): Save, clear and
2785 restore the old slot when inserting srlz.i/srlz.d.
2786
f6f9408f
JR
27872004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
2788
2789 * Makefile.am: Regenerate dependecies.
2790 * Makefile.in: Regenerate.
2791 * config/tc-sh.c (valid_arch): Make unsigned.
2792 (preset_target_arch): Likewise.
2793 (md_begin): Use new architecture flags system.
2794 (get_specific): Likewise.
2795 (assemble_ppi): Likewise.
2796 (md_assemble): Likewise. Also fix error check for bad opcodes.
2797 (md_parse_option): Likewise. Also generate -isa values according
2798 to the table in bfd/cpu-sh.c instead of just constants. Also
2799 allow <arch>-up ISA variants.
2800 (sh_elf_final_processing): Replace if-else chain with a call to
2801 sh_find_elf_flags().
2802 * testsuite/gas/sh/arch: New directory.
2803 * testsuite/gas/sh/arch/arch.exp: New test script.
2804 * testsuite/gas/sh/arch/arch_expected.txt: New file.
2805 * testsuite/gas/sh/arch/sh.s: New file.
2806 * testsuite/gas/sh/arch/sh2.s: New file.
2807 * testsuite/gas/sh/arch/sh-dsp.s: New file.
2808 * testsuite/gas/sh/arch/sh2e.s: New file.
2809 * testsuite/gas/sh/arch/sh3-nommu.s: New file.
2810 * testsuite/gas/sh/arch/sh3.s: New file.
2811 * testsuite/gas/sh/arch/sh3-dsp.s: New file.
2812 * testsuite/gas/sh/arch/sh3e.s: New file.
2813 * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
2814 * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
2815 * testsuite/gas/sh/arch/sh4.s: New file.
2816 * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
2817 * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
2818 * testsuite/gas/sh/arch/sh4a.s: New file.
2819
580b9172
NC
28202004-05-28 Peter Barada <peter@the-baradas.com>
2821
2822 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
2823 with zero offset into mode 2 addressing to save a word.
2824
652ca075
L
28252004-05-27 H.J. Lu <hongjiu.lu@intel.com>
2826
2827 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
2828 (ar_is_only_in_integer_unit): New.
2829 (ar_is_only_in_memory_unit): New.
2830 (generate_unwind_image): Silence gcc on 32bit host.
2831 (md_assemble): Use ar_is_only_in_integer_unit instead of
2832 ar_is_in_integer_unit. Check AR access.
2833
60fed2d3
NC
28342004-05-27 Peter Barada <peter@the-baradas.com>
2835
2836 * config/tc-m68k.c (md_begin): Sort the opcode table into
2837 alphabetical order.
2838 (m68k_compare_opcode): New function to do the sorting.
2839
be8c092b
NC
28402004-05-24 Peter Barada <peter@the-baradas.com>
2841
2842 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
2843 addressing on MIT style operands.
2844 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
2845 w/mask addressing.
2846 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
2847 operands.
2848
1181c20e
AM
28492004-05-23 Alan Modra <amodra@bigpond.net.au>
2850
2851 * expr.c (operand, operator): Don't reject '++' and '--'.
2852
20e56c33
RS
28532004-05-20 Richard Sandiford <rsandifo@redhat.com>
2854
2855 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
2856 dwarf tables.
2857
04ca8703 28582004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
2859
2860 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
2861 * configure: Regenerate.
2862
0da76f83
NC
28632004-05-13 Paul Brook <paul@codesourcery.com>
2864
2865 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
2866
4b363073
NC
28672004-05-13 Joel Sherrill <joel@oarcorp.com>
2868
2869 * configure.in (or32-*-rtems*): Switch to elf.
2870 * configure: Regenerate.
2871
9598fbe5
NC
28722004-05-13 Nick Clifton <nickc@redhat.com>
2873
2874 * po/fr.po: Updated French translation.
2875
22fe14ad
NC
28762004-05-11 Nick Clifton <nickc@redhat.com>
2877
2878 * doc/as.texinfo (Section): Document G and T flags to .section
2879 directive. Document the extra arguments that the G flag
2880 requires. Document the #tls flag.
2881
28822004-05-11 H.J. Lu <hongjiu.lu@intel.com>
2883
2884 * subsegs.c (section_symbol): Create a new section symbol if
2885 the existing one doesn't match.
2886 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
2887
532c738a
RS
28882004-05-07 Richard Sandiford <rsandifo@redhat.com>
2889
2890 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
2891 to cope with VR4181A errata MD(1) and MD(4).
2892
0503b355
BF
28932004-05-07 Brian Ford <ford@vss.fsi.com>
2894
2895 * NEWS: Mention .secrel32 for pe[i]-i386.
2896
daeea990
AO
28972004-05-07 Alexandre Oliva <aoliva@redhat.com>
2898
2899 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2900 (HANDLE_ALIGN): New.
2901
bfbdcf04
DJ
29022004-05-06 Daniel Jacobowitz <dan@debian.org>
2903
2904 * Makefile.am (DIST_SUBDIRS): Define.
2905 * aclocal.m4: Regenerate with automake 1.8.4.
2906 * Makefile.in: Likewise.
2907 * doc/Makefile.in: Likewise.
2908
5e819f9c
JW
29092004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
2910
2911 * config/tc-ia64.c (dot_serialize): Declare.
2912 (dot_serialize): New function.
2913 (md_pseudo_table): Add ".serialize.data" and
2914 ".serialize.instruction" directives.
2915
e5976317
NC
29162004-05-06 Nick Clifton <nickc@redhat.com>
2917
2918 * messages (as_internal_value_out_of_range): Print a message about
2919 a value being out of range. Be consistent about whether the
2920 values are printed in decimal or hexadecimal.
2921 (as_warn_value_out_of_range): Generate a warning message about an
2922 out of range value.
2923 (as_bad_value_out_of_range): Generate an error message about an
2924 out of range value.
2925 * as.h: Prototype the new functions.
2926 * config/tc-alpha.c (insert_operand): Use new function.
2927 * config/tc-arc.c (arc_insert_operand): Likewise.
2928 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
2929 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
2930 * config/tc-ppc.c (ppc_insert_operand): Likewise.
2931 * config/tc-s390.c (s390_insert_operand): Likewise.
2932 * config/tc-v850.c (v850_insert_operand): Likewise.
2933
996991aa
AO
29342004-05-05 Alexandre Oliva <aoliva@redhat.com>
2935
2936 * configure.in: Set em=linux for frv-*-*linux*.
2937 * configure: Rebuilt.
2938 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
2939 (frv_md_fdpic_enabled): New.
2940 * config/tc-frv.c (frv_md_fdpic_enabled): New.
2941 (DEFAULT_FDPIC): New.
2942 (frv_flags): Use DEFAULT_FDPIC.
2943 (frv_pic_flag): Likewise.
2944 (OPTION_NOPIC): New.
2945 (md_longopts): Add -mnopic.
2946 (md_parse_option): Handle it.
2947 (md_show_usage): Add -mfdpic and -mnopic.
2948
6b6e92f4
NC
29492004-05-05 Peter Barada <peter@the-baradas.com>
2950
2951 * config/tc-m68k.c: Add find_cf_chip to print list of valid
2952 chips for invalid coldfire instructions, rename selectors
2953 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
2954 add current_chip to track which chip is referred to(including save/restore),
2955 use current_chip to select control registers, not current_arch.
2956 (md_show_usage): Add new chips.
2957 * doc/c-m68k.texi: Document new command line switches.
2958
6f079ae3
JJ
29592004-05-05 Jakub Jelinek <jakub@redhat.com>
2960
2961 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
2962 (NOP_OPCODE): Define.
2963 (s390_align_code): Remove prototype.
2964 * tc-s390.c (s390_align_code): Remove.
2965
2d6ed997
L
29662004-05-04 H.J. Lu <hongjiu.lu@intel.com>
2967
2968 * config/tc-ia64.c (make_unw_section_name): Removed.
2969 (start_unwind_section): New function.
2970 (generate_unwind_image): Take const segT instead of const
2971 char *.
2972 (dot_handlerdata): Adjusted.
2973 (dot_endp): Likewise.
2974
b9f18452
L
29752004-05-02 H.J. Lu <hongjiu.lu@intel.com>
2976
2977 * config/obj-elf.c (obj_elf_change_section): Allow the
2978 ".note.GNU-stack" section has SHF_EXECINSTR.
2979
fafe6678
L
29802004-05-02 H.J. Lu <hongjiu.lu@intel.com>
2981
2982 * config/obj-elf.c (get_section): Return bfd_boolean.
2983 (obj_elf_change_section): Call bfd_get_section_by_name_if
2984 instead of bfd_map_over_sections.
2985
86654c12
L
29862004-04-30 H.J. Lu <hongjiu.lu@intel.com>
2987
2988 * config/obj-elf.c (get_section): New function.
2989 (obj_elf_change_section): Support multiple sections with same
2990 name.
2991
376eb240
NC
29922004-04-30 Nick Clifton <nickc@redhat.com>
2993
2994 * config/tc-arm.c (create_register_alias): Fix typo checking for
2995 case sensitive register aliases.
2996 (co_proc_number): Use error message string in all_reg_maps[]
2997 array.
2998 (cp_reg_required_here): Likewise.
2999 (fp_reg_required_here): Likewise.
3000
8a7140c3
NC
30012004-04-29 Brian Ford <ford@vss.fsi.com>
3002
3003 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
3004
3e722fb5
CD
30052004-04-28 Chris Demetriou <cgd@broadcom.com>
3006
3007 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
3008 (load_address, macro, mips_ip, md_parse_option)
3009 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
3010 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
3011 embedded-PIC handling, and update comments.
3012 (SWITCH_TABLE): Remove.
3013 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
3014 (enum mips_pic_level): Remove EMBEDDED_PIC.
3015 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
3016 (TC_FORCE_RELOCATION): Update comment.
3017 * ecoff.c (ecoff_build_lineno): Add comment about some code that
3018 might be safe to remove now that MIPS embedded-PIC is gone.
3019
351e2b5a
DA
30202004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3021
3022 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
3023 call to obj_set_subsection_attributes.
3024 (obj_som_init_stab_section): Likewise.
3025 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
3026 (pa_def_subspaces): Provide comdat default.
3027 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
3028 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
3029 calls to create_new_subspace and update_subspace to pass comdat flag.
3030 (create_new_subspace, update_subspace): Add new comdat argument. Use
3031 it in calls to obj_set_subsection_attributes.
3032 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
3033 and use of comdat, common and dup_comm parameters.
3034
f5842774
L
30352004-04-26 H.J. Lu <hongjiu.lu@intel.com>
3036
3037 * config/obj-elf.c (obj_elf_change_section): Check if the old
3038 group name is NULL before comparison.
3039
558fe4a7
CD
30402004-04-23 Chris Demetriou <cgd@broadcom.com>
3041
3042 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
3043
81a21e38
TS
30442004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3045
3046 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
3047
30482004-04-23 Chris Demetriou <cgd@broadcom.com>
1ffcab4b
CD
3049
3050 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
3051 (OPTION_MEMBEDDED_PIC): Remove.
3052 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
3053 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
3054 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
3055 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
3056 (OPTION_ELF_BASE): Renumber.
3057 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
3058 (md_show_usage): Remove mention of -membedded-pic.
3059 * doc/as.texinfo: Remove mention of -membedded-pic.
3060
4d0d148d
TS
30612004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3062
3063 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
3064 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
3065 a.out support.
3066 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
3067 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
3068 USE_GLOBAL_POINTER_OPT.
3069
017315e4
TS
30702004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3071
3072 * config/tc-mips.c (macro): One more use of load_delay_nop.
3073
269137b2
TS
30742004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
3075
3076 * config/tc-mips.c (load_delay_nop): New function.
3077 (load_address, macro): Use load_delay_nop() to build a nop
3078 which can be omitted with gpr_interlocks.
3079
24772049
TS
30802004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3081
3082 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
3083 cop_interlocks): Remove superfluous CPU entries.
3084
06516a5e
PB
30852004-04-22 Paul Brook <paul@codesourcery.com>
3086
3087 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
3088
fd99574b
NC
30892004-04-22 Peter Barada <peter@the-baradas.com>
3090
3091 * NEWS: Added support for EMAC instructions and MAC/EMAC
3092 Motorola syntax.
3093 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
3094 scale factor tokens, trailing_ampersand to mark mask addressing
3095 for MAC/EMAC instructions.
3096 * config/m68k-parse.y: Add options_ampersand clause, '<<',
3097 '>>'.
3098 (yylex): Handle '>', '<', and '&' following '+'.
3099 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
04ca8703 3100 architectures in archs[].
fd99574b
NC
3101 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
3102 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
3103 respectively.
3104 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
3105 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
3106 cases.
3107 Add EMAC operands to init_table[].
3108
69b97547
NC
31092004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
3110
3111 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
3112 state.
3113 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
3114 * config/tc-arm.c (enum mstate): Delete from here.
3115 (mapping_state): Remove the static mapstate variable and instead
3116 store the state in the segment. This allows a per-section mapping
3117 state. Handle and ignore MAP_UNDEFINED states.
3118 (arm_elf_change_section): Get the current mapping state from the
3119 new section.
3120 (s_ltorg): Set the mapping state to MAP_DATA.
3121 (arm_cleanup): Use arm_elf_change_section to get the mapping state
3122 for each pool as it is emitted.
3123
31242004-04-22 Nick Clifton <nickc@redhat.com>
3125
3126 * config/tc-arm.h: Formatting tidy ups.
3127
7a7f4e42
CD
31282004-04-20 Chris Demetriou <cgd@broadcom.com>
3129
3130 * NEWS: Note that MIPS -membedded-pic option is deprecated.
3131
6482c264
NC
31322004-04-20 DJ Delorie <dj@redhat.com>
3133
3134 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
3135 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
3136 [TE_PE] (O_secrel): Define.
3137 [TE_PE] (x86_pe_cons_fix_new): New.
3138 [TE_PE] (pe_directive_secrel): Likewise.
3139 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
3140
5bf10039
EC
31412004-04-19 Eric Christopher <echristo@redhat.com>
3142
c04f5787
AM
3143 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
3144 of previous patch for fix in gcc.
5bf10039 3145
77cd6497
JJ
31462004-04-19 Jakub Jelinek <jakub@redhat.com>
3147
3148 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
3149
b8861cfb
NS
31502004-04-19 Nathan Sidwell <nathan@codesourcery.com>
3151
3152 * read.c (do_align): Call md_flush_pending_output, if defined.
3153
f4c724fc
AM
31542004-04-16 Alan Modra <amodra@bigpond.net.au>
3155
3156 * expr.c (operand): Correct checks for ++ and --.
3157
a4b6e8f6
L
31582004-04-14 H.J. Lu <hongjiu.lu@intel.com>
3159
3160 * config/tc-generic.c: Add some comments.
3161
d766e8ec
RS
31622004-04-14 Richard Sandiford <rsandifo@redhat.com>
3163
3164 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
3165 -{no-}mfix-vr4122-bugs.
3166 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
3167 (append_insn, mips_emit_delays): Update accordingly.
3168 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
3169 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
3170 (md_parse_option): Update after above changes.
3171 (md_show_usage): Add -mfix-vr4120.
3172
ed9589d4
BW
31732004-04-13 Bob Wilson <bob.wilson@acm.org>
3174
3175 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
3176 of .section directive; add a reference to the ELF .subsection
3177 directive.
3178
097dba13
NC
31792004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3180
3181 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
3182 in parallel.
3183
279500de
TS
31842004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3185
3186 * Makefile.am: Remove mips from aout targets.
3187 * Makefile.in: Regenerate.
3188 * configure.in: Remove mips-dec-bsd* target.
3189 * configure: Regenerate.
3190
b7d7dc63
AM
31912004-04-07 Alan Modra <amodra@bigpond.net.au>
3192
3193 PR 96
3194 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
3195 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
3196 Update "mapping". Restrict some @ modifiers to 32 bit.
3197
f55629b8
KK
31982004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
3199 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
3200
3201 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
3202 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
3203 dont_adjust_reloc_32 is set.
3204 (md_longopts): Add option -renesas.
3205 (md_parse_option, md_show_usage): Likewise.
3206 * doc/c-sh.texi: Likewise.
3207
a7844384
NC
32082004-04-01 Dave Korn <dk@artimi.com>
3209
3210 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
3211 hi16 and lo16 fixS structs.
3212 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
3213 exactly the same way as for RELOC_DLX_REL16.
3214 (machine_ip): properly respect LO flag in the_insn and
3215 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
3216 (md_apply_fix3): apply RELOC_DLX_LO16.
3217
6c71dbc4
SS
32182004-03-30 Stan Shebs <shebs@apple.com>
3219
3220 Remove long-obsolete MPW support.
3221 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
3222 * configure.in: Remove mention of ppc-*-mpw* config.
3223 * configure.in: Likewise.
3224
7cc69913
NC
32252004-03-30 Nick Clifton <nickc@redhat.com>
3226
3227 * config/tc-arm.c (meabi_flags): Make its use conditional upon
3228 OBJ_ELF being defined.
3229
53fbb48a
AM
32302004-03-27 Alan Modra <amodra@bigpond.net.au>
3231
3232 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
3233
d507cf36
PB
32342004-03-23 Paul Brook <paul@codesourcery.com>
3235
3236 * config/tc-arm.c (meabi_flags): New variable.
3237 (arm_parse_eabi): New function.
3238 (md_begin): Set flags for EABI v3.
3239 (arm_eabis): Add.
3240 (arm_long_opts): Add meabi.
ab1e9ef7 3241 * doc/as.texinfo <ARM>: Document -meabi.
d507cf36
PB
3242 * doc/c-arm.texi: Ditto.
3243
88d65ad6
BW
32442004-03-22 Bob Wilson <bob.wilson@acm.org>
3245
3246 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
3247 tables even when use_literal_section flag is not set.
3248
13ef8878
AM
32492004-03-22 Alan Modra <amodra@bigpond.net.au>
3250
3251 * config/tc-sh.c: Remove trailing whitespace.
3252
1048a9ba
HPN
32532004-03-22 Hans-Peter Nilsson <hp@axis.com>
3254
3255 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
3256 --mul-bug-abort and the default behavior.
3257 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
3258 (err_for_dangerous_mul_placement): New variable.
3259 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
3260 macros.
3261 (md_cris_relax_table): Have placeholder for STATE_MUL.
3262 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
3263 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
3264 case doing nothing.
3265 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
3266 STATE_BYTE)>: Ditto.
3267 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
3268 alignment and position of this frag, emit error message if
3269 suspicious.
3270 (md_assemble): For a multiply insn and when checking it,
3271 transform the current frag into a special frag for that purpose.
3272 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
3273 OPTION_MULBUG_ABORT_ON>: Handle new options.
3274
a7877748
BW
32752004-03-19 Bob Wilson <bob.wilson@acm.org>
3276
3277 * config/tc-xtensa.c (mark_literal_frags): New function.
3278 (xtensa_move_literals): Call mark_literal_frags for all literal
3279 segments, including init and fini literal segments.
3280 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
3281
9992270f
DA
32822004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3283
3284 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
3285 (pa_comm): Set BSF_OBJECT in symbol flags.
3286
6e1772d5
AM
32872004-03-19 Alan Modra <amodra@bigpond.net.au>
3288
3289 * Makefile.am: Run "make dep-am".
3290 * Makefile.in: Regenerate.
3291 * doc/Makefile.in: Regenerate.
3292 * config.in: Regenerate.
3293 * po/gas.pot: Regenerate.
3294
3e4caed2
NS
32952004-03-18 Nathan Sidwell <nathan@codesourcery.com>
3296
c95b35a9
NS
3297 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
3298 (demand_empty_rest_of_line): Issue an error here.
3299 (ignore_rest_of_line): Silently skip to end.
3300 (demand_copy_string): Issue an error, not warning.
3301 (equals): Likewise.
3302 * config/obj-elf.c (obj_elf_section_name): Likewise.
3303 (obj_elf_section): Likewise.
3304 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
3305 (arc_extinst): Likewise.
3306 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
3307 (dot_spill): Likewise.
3308 (dot_unwabi): Likewise.
3309 (dot_prologue): Likewise.
3310
3e4caed2
NS
3311 * expr.c (operand): Reject ++ and --.
3312 (operator): Likewise.
3313
2ce4cc60
KK
33142004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3315
3316 * config/tc-sh.c: Include dw2gencfi.h.
3317 (sh_cfi_frame_initial_instructions): New function.
3318 (sh_regname_to_dw2regnum): Likewise.
3319 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
3320 file.
3321 (TARGET_USE_CFIPOP): Define.
3322 (tc_cfi_frame_initial_instructions): Likewise.
3323 (tc_regname_to_dw2regnum): Likewise.
3324 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
3325 * Makefile.am: Update dependencies.
3326 * Makefile.in: Regenerate.
3327
9183ed4b
AM
33282004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3329
3330 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3331 * configure: Regenerate.
3332
00bbdfe7
BW
33332004-03-12 Bob Wilson <bob.wilson@acm.org>
3334
3335 * read.c (s_leb128): Call md_flush_pending_output.
3336
0f10071e
ML
33372004-03-12 Michal Ludvig <mludvig@suse.cz>
3338
3339 * config/tc-i386.c (output_insn): Handle PadLock instructions.
3340 * config/tc-i386.h (CpuPadLock): New define.
3341 (CpuUnknownFlags): Added CpuPadLock.
3342
84c84759
AS
33432004-03-07 Andreas Schwab <schwab@suse.de>
3344
3345 * doc/c-hppa.texi (HPPA Directives): Fix typo.
3346
6ec51dba
RH
33472004-03-07 Richard Henderson <rth@redhat.com>
3348
3349 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
3350 (cfi_finish): Likewise for fde.
3351
bae25f19
L
33522004-03-05 H.J. Lu <hongjiu.lu@intel.com>
3353
3354 * config/tc-ia64.c (md_assemble): Properly handle NULL
3355 align_frag.
3356 (ia64_handle_align): Don't abort if failed to add a stop bit.
3357
ab509236
L
33582004-03-04 H.J. Lu <hongjiu.lu@intel.com>
3359
3360 * Makefile.in: Regenerated.
3361 * aclocal.m4: Likewise.
3362 * configure: Likewise.
3363 * doc/Makefile.in: Likewise.
3364
d9201763
L
33652004-03-03 H.J. Lu <hongjiu.lu@intel.com>
3366
3367 * config/tc-ia64.c (dot_align): New.
3368 (ia64_do_align): Make it static.
3369 (md_pseudo_table): Use "dot_align" for "align".
3370 (ia64_md_do_align): Don't set align_frag here.
3371 (ia64_handle_align): Add a stop bit to the previous bundle if
3372 needed.
3373
3374 * config/tc-ia64.h (ia64_do_align): Removed.
3375
ae51a426
JR
33762003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
3377
3378 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
3379 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
3380 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
3381 the most general type or the user specifically requested it.
3382 (md_assemble): Add a new error message for when an instruction
3383 is understood, but is not allowed due to an -isa option.
3384
9545c4ce
L
33852004-03-02 H.J. Lu <hongjiu.lu@intel.com>
3386
3387 * config/tc-ia64.c (align_frag): New.
3388 (md_assemble): Set the tc_frag_data field in align_frag for
3389 IA64_OPCODE_FIRST instructions.
3390 (ia64_md_do_align): Set align_frag.
3391 (ia64_handle_align): Add a stop bit if needed.
3392
3393 * config/tc-ia64.h (TC_FRAG_TYPE): New.
3394 (TC_FRAG_INIT): New.
3395
676a64f4
RS
33962004-03-01 Richard Sandiford <rsandifo@redhat.com>
3397
3398 * config/tc-frv.c (fr400_audio): New variable.
3399 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
3400 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
3401 (target_implements_insn_p): New function.
3402 (md_assemble): Report an error if the processor doesn't implement
3403 the instruction.
3404
bd337dde
NC
34052004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3406
3407 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
3408 (md_parse_option): Ditto.
3409 (OPTION_NO_SPECIAL_M32R): Added.
3410 (md_show_usage): Document it.
3411 (enable_speial_m32r): Changed a default value from 0 to 1.
3412 * doc/c-m32r.texi: Document the -no-bitinst option.
3413
78878175
NC
34142004-02-27 Nick Clifton <nickc@redhat.com>
3415
3416 * config/tc-sh.c (get_operand): Revert previous delta.
3417 (tc_gen_reloc): Check for an unknown reloc type before processing
3418 the addend.
3419
1d6d62a4
MS
34202004-02-27 Hannes Reinecke <hare@suse.de>
3421
3422 * config/tc-s390.c (s390_insn): Correct range check for opcode in
3423 .insn pseudo operation.
3424
4aa3e325
NC
34252004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
3426
3427 * config/tc-sh.c (get_operand): In case of #Imm, check has been
3428 added for wrong syntax.
3429
73369e65
EC
34302004-02-26 Eric Christopher <echristo@redhat.com>
3431
3432 * config/tc-mips.c (mips_dwarf2_addr_size): New.
3433 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
3434
6a5709a5
JR
34352004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
3436
3437 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
3438 nibble types to assembler.
3439
95385380
FF
34402004-02-25 Fred Fish <fnf@redhat.com>
3441
3442 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
3443
b5e0fabd
JW
34442004-02-20 James E Wilson <wilson@specifixinc.com>
3445
3446 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
3447 finalize_syms.
3448 (fixup_unw_records): New arg before_relax. Pass to slot_index.
3449 (ia64_estimate_size_before_relax): New.
3450 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
3451 (generate_unwind_image): Pass 1 to fixup_unw_records.
3452 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
3453 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
3454
2f01ffbf
JJ
34552004-02-19 Jakub Jelinek <jakub@redhat.com>
3456
3457 * stabs.c (generate_asm_file): Avoid warning about use of
3458 uninitialized variable.
3459
9c59842f
JW
34602004-02-18 David Mosberger <davidm@hpl.hp.com>
3461
3462 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
3463 body, and endp, allow unwind records which do not have a "t"
3464 (time/instruction) field.
3465
34920d91
NC
34662004-02-17 Petko Manolov <petkan@nucleusys.com>
3467
3468 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
3469 (do_mav_dspsc_2): Likewise.
3470 Fix accumulator registers move opcodes.
3471
4dde8e61 34722004-02-13 Hannes Reinecke <hare@suse.de>
13ef8878 3473 Jakub Jelinek <jakub@redhat.com>
4dde8e61
AJ
3474
3475 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
3476
936cf02e
JW
34772004-02-10 Steve Ellcey <sje@cup.hp.com>
3478
3479 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
3480 (tc_frob_symbol): New macro definition.
3481 * config/tc-ia64.c (ia64_frob_symbol): New routine.
3482
e41f12f3
DJ
34832004-02-09 Daniel Jacobowitz <drow@mvista.com>
3484
3485 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
3486 read-only.
3487
a8a3b3b2
NS
34882004-02-09 Nathan Sidwell <nathan@codesourcery.com>
3489
3490 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
3491 (TC_CASE_SENSITIVE): ... this.
3492 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
3493 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
3494
c97b7ef6
JW
34952004-02-06 James E Wilson <wilson@specifixinc.com>
3496
3497 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
3498 (generate_unwind_image): Re-add it here.
3499
e4475e39
NS
35002004-02-06 Nathan Sidwell <nathan@codesourcery.com>
3501
3502 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
3503 * read.h (SKIP_WHITESPACE): Turn into an expression.
3504 * read.c (read_a_source_file): A pseudo is removed by having a
3505 NULL handler.
3506
5738bc24
JW
35072004-02-05 James E Wilson <wilson@specifixinc.com>
3508
3509 * config/tc-ia64.c (output_endp): New.
3510 (count_bits): Delete.
3511 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
3512 endp unwind records.
3513 (fixup_unw_records): Handle endp unwind records. Delete code for
3514 shortening prologue regions not followed by a body record.
3515 (dot_endp): Call add_unwind_entry to emit endp unwind record.
3516 * config/tc-ia64.h (unw_record_type): Add endp.
3517
d6e78c11
JW
35182004-02-03 James E Wilson <wilson@specifixinc.com>
3519
3520 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
3521 fill padding bytes with zeroes.
3522 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
3523 sets unwind_record slot_number and slot_frag fields.
3524
f6a22291
MR
35252004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3526
3527 * config/tc-mips.c (add_got_offset_hilo): New function.
3528 (macro): Use load_register() and add_got_offset_hilo() to load
3529 constants instead of hardcoding code sequences throughout.
3530
127cab00
L
35312004-01-28 H.J. Lu <hongjiu.lu@intel.com>
3532
3533 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
3534
6358301e
NC
35352004-01-26 Bernardo Innocenti <bernie@develer.com>
3536
3537 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
3538 like m68k-elf.
3539 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
3540 of hard-coded test for TARGET_OS=elf.
3541
c8978940
CD
35422004-01-24 Chris Demetriou <cgd@broadcom.com>
3543
3544 * config/tc-mips.c (hilo_interlocks): Change definition
3545 so that MIPS32, MIPS64 and later ISAs are included, along with
3546 the already-included machines. Update comments.
3547
c3ba240c
DJ
35482004-01-23 Daniel Jacobowitz <drow@mvista.com>
3549
3550 * config/tc-arm.c (tc_gen_reloc): Improve error message for
3551 undefined local labels.
3552
e864ceca
RS
35532004-01-23 Richard Sandiford <rsandifo@redhat.com>
3554
3555 * config/tc-mips.c (load_address, macro): Update comments about
3556 NewABI GP relaxation.
3557
67c0d1eb
RS
35582004-01-23 Richard Sandiford <rsandifo@redhat.com>
3559
3560 * config/tc-mips.c (macro_build): Remove place and counter arguments.
3561 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
3562 (mips16_macro_build, macro_build_jalr): Remove counter argument.
3563 (set_at, load_register, load_address, move_register): Likewise.
3564 (load_got_offset, add_got_offset): Likewise.
3565 Update all calls and tidy accordingly.
3566
584892a6
RS
35672004-01-23 Richard Sandiford <rsandifo@redhat.com>
3568
3569 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
3570 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
3571 (RELAX_USE_SECOND): Bump to 0x10000.
3572 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
3573 (mips_macro_warning): New variable.
3574 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
3575 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
3576 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
3577 of RELAX_ENCODE.
3578 (append_insn): Update mips_macro_warning.sizes.
3579 (macro_start, macro_warning, macro_end): New functions.
3580 (macro_build): Don't emit warnings here.
3581 (macro_build_lui, md_estimate_size_before_relax): ...or here.
3582 (md_convert_frag): Check for cases where one macro alternative
3583 needs a warning and the other doesn't. Emit a warning if the
3584 longer sequence was chosen.
3585
4d7206a2
RS
35862004-01-23 Richard Sandiford <rsandifo@redhat.com>
3587
3588 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
3589 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
3590 the first sequence, the size of the second sequence, and a flag
3591 that says whether we should warn.
3592 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
3593 (RELAX_FIRST, RELAX_SECOND): New.
3594 (mips_relax): New variable.
3595 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
3596 (append_insn): Remove "place" argument. Use mips_relax.sequence
3597 rather than "place" to check whether we're expanding the second
3598 alternative of a relaxable macro. Remove redundant check for
3599 branch relaxation. If generating a normal insn, and there
3600 is not enough room in the current frag, call relax_close_frag()
3601 to close it. Update mips_relax.sizes[]. Emit fixups for the
3602 second version of a relaxable macro. Record the first relaxable
3603 fixup in mips_relax. Remove tc_gen_reloc workaround.
3604 (macro_build): Remove all uses of "place". Use mips_relax.sequence
3605 in the same way as in append_insn.
3606 (mips16_macro_build): Remove "place" argument.
3607 (macro_build_lui): As for macro_build. Don't drop the add_symbol
3608 when generating the second version of a relaxable macro.
3609 (load_got_offset, add_got_offset): New functions.
3610 (load_address, macro): Use new relaxation machinery. Remove
3611 tc_gen_reloc workarounds.
3612 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
3613 version of a relaxable macro is needed. Return -RELAX_SECOND if the
3614 first version is needed.
3615 (tc_gen_reloc): Remove relaxation handling.
3616 (md_convert_frag): Go through the fixups for a relaxable macro and
3617 mark those that belong to the unneeded alternative as done. If the
3618 second alternative is needed, adjust the fixup addresses to account
3619 for the deleted first alternative.
3620
0530d30a
RS
36212004-01-23 Richard Sandiford <rsandifo@redhat.com>
3622
3623 * frags.h (frag_room): Declare.
3624 * frags.c (frag_room): New function.
3625 * doc/internals.texi: Document it.
3626
048cdf86
TS
36272004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3628
3629 * config/tc-mips.c (append_insn): Don't do r3900 interlock
3630 optimization for -mtune=r3900, as this will break on other CPUs.
3631
28d39d1a
NC
36322004-01-11 Tom Rix <tcrix@worldnet.att.net>
3633
3634 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
73369e65 3635 be relaxed, use fixup.
28d39d1a
NC
3636 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
3637
26664553
JJ
36382004-01-19 Jakub Jelinek <jakub@redhat.com>
3639
3640 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
3641 precision operands.
3642
895921c9
MR
36432004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3644
3645 * config/tc-mips.c (append_insn): Properly detect variant frags
3646 that preclude swapping of relaxed branches. Correctly swap
3647 instructions between frags when dealing with relaxed branches.
3648
f8b73030
MR
36492004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3650
3651 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
3652 throughout.
3653 * aclocal.m4: Regenerate.
3654 * configure: Regenerate.
3655
ca9a79a1 36562004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
73369e65 3657
ca9a79a1
NC
3658 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
3659 manipulation insns.
3660
cc3d92a5
RS
36612004-01-12 Richard Sandiford <rsandifo@redhat.com>
3662
3663 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
3664 reloc, reserve space for the delay slot as well as the jalr itself.
3665
e45d0630
PB
36662004-01-09 Paul Brook <paul@codesourcery.com>
3667
3668 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
3669 (do_vfp_sp2_from_reg2): New function.
3670 (insns): Use them.
3671 (do_vfp_dp_from_reg2): Check return values properly.
3672
81912461
ILT
36732004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
3674
78849248
ILT
3675 * config/tc-mips.c (warn_nops): Remove static variable.
3676 (macro): Remove test of warn_nops.
3677 (md_shortops): Remove 'n'.
3678 (md_parse_option): Remove 'n' case.
3679 (md_show_usage): Remove -n.
3680 * doc/as.texinfo (Overview): Remove MIPS -n option.
3681 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
3682 * NEWS: Mention removal of MIPS -n option.
3683
81912461
ILT
3684 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
3685 (cop_interlocks): Check ISA level.
3686 (cop_mem_interlocks): Define.
3687 (reg_needs_delay): Check cop_interlocks rather than
3688 ISA_HAS_COPROC_DELAYS.
3689 (append_insn): Likewise. Use cop_mem_interlocks rather than
3690 directly checking mips_opts.isa.
3691 (mips_emit_delays): Likewise.
3692
73f20958
L
36932004-01-07 H.J. Lu <hongjiu.lu@intel.com>
3694
3695 * config/tc-ia64.c (unwind): Move next_slot_number and
3696 next_slot_frag to ...
3697 (unw_rec_list): Here.
3698 (free_list_records): Removed.
3699 (output_unw_records): Likewise.
3700 (generate_unwind_image): Make it void.
3701 (alloc_record): Initialize next_slot_number and next_slot_frag.
3702 (slot_index): Take .org, .space and .align into account.
3703 (fixup_unw_records): Don't set slot_number to 0. Use
3704 list->next_slot_number and list->next_slot_frag instead of
3705 unwind.next_slot_number and unwind.next_slot_frag.
3706 (ia64_convert_frag): New.
3707 (generate_unwind_image): Generate a rs_machine_dependent frag
3708 for unwind record.
3709 (emit_one_bundle): Use list->next_slot_number and
3710 list->next_slot_frag instead of unwind.next_slot_number and
3711 unwind.next_slot_frag.
3712
3713 * config/tc-ia64.h (md_convert_frag): Defined as
3714 ia64_convert_frag.
3715 (md_estimate_size_before_relax): Defined as (f)->fr_var.
3716
99d09cdb
AO
37172004-01-06 Alexandre Oliva <aoliva@redhat.com>
3718
3719 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
3720 * config/tc-frv.h (md_apply_fix3): Don't define.
3721 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
3722 operands.
3723 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3724 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
3725 * config/tc-frv.c (line_separator_chars): Add `!'.
3726 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
3727 * config/tc-frv.c (md_assemble): Clear insn upfront.
3728 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3729 * config/tc-frv.c (OPTION_FDPIC): New macro.
3730 (md_longopts): Add mfdpic.
3731 (md_parse_option): Handle it.
3732 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
3733 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
3734 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
3735 (frv_pic_ptr): Parse funcdesc.
3736
4a4c4a1d
MR
37372004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3738
3739 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
3740 gasver.texi. Remove duplicate symbol definitions for texi2pod.
3741
2251dd89
MR
37422004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3743
3744 * Makefile.am (Makefile): Move the dependency on
3745 $(BFDDIR)/configure.in to...
3746 (CONFIG_STATUS_DEPENDENCIES): ... here.
3747 (AUTOMAKE_OPTIONS): Require automake 1.8.
3748 * Makefile.in: Regenerate.
3749 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
3750 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
3751 $(BFDDIR)/configure.in here as well.
3752 * doc/Makefile.in: Regenerate.
3753
c6581168
MR
37542004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3755
3756 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
3757 * Makefile.in: Regenerate.
3758 * aclocal.m4: Regenerate.
3759 * doc/Makefile.am (install, install-info): Remove.
3760 (install-data-local): A new hook for install-info.
3761 (AUTOMAKE_OPTIONS): Require automake 1.8.
3762 * doc/Makefile.in: Regenerate.
3763
303e7b79
NC
37642004-01-02 Nutan Singh <nutan@kpitcummins.com>
3765
3766 * doc/c-sh.texi: Update description about floating point behavior
3767 of SH family.
3768
b50c15dc
NC
37692004-01-02 Bernardo Innocenti <bernie@develer.com>
3770
3771 * configure.in: Add m68k-uClinux target.
3772 * configure: Regenerate.
7de9afa2 3773
c9e214e5 3774For older changes see ChangeLog-0203
08d56133
NC
3775\f
3776Local Variables:
3777mode: change-log
3778left-margin: 8
3779fill-column: 74
3780version-control: never
3781End:
This page took 0.528841 seconds and 4 git commands to generate.