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