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