* read.c (potable): Add "error" and "warning".
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
d190d046
HPN
12004-11-22 Hans-Peter Nilsson <hp@axis.com>
2
3 * read.c (potable): Add "error" and "warning".
4 (s_errwarn): New function.
5 * read.h (s_errwarn): Declare.
6 * doc/as.texinfo (Error, Warning): Document .error and .warning.
7
5519f6ea
NC
82004-11-22 Nick Clifton <nickc@redhat.com>
9
10 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
11 c_dot_file_symbol.
12
f5c7edf4
AM
132004-11-19 Alan Modra <amodra@bigpond.net.au>
14
15 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
16 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
17
a4528eeb
AM
182004-11-19 Alan Modra <amodra@bigpond.net.au>
19
20 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
21 (coff_adjust_symtab): Adjust call.
22 (crawl_symbols): Likewise.
23 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
24 (obj_app_file): Adjust.
25
444bf5f3
NC
262004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
27
28 * configure.in: Enable bfd_assember for the MAXQ port.
29 * configure: Regenerate.
30
a1ace8d8 312004-11-12 Bob Wilson <bob.wilson@acm.org>
88ac794e 32 Sterling Augustine <sterling@tensilica.com>
a1ace8d8
BW
33
34 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
35 there is a conflict.
36 (check_t1_t2_reads_and_writes): Check for both reads and writes to
37 interfaces that are related as determined by xtensa_interface_class_id.
38
30e857fc
NC
392004-11-12 Nick Clifton <nickc@redhat.com>
40
41 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
42 offsets for conditional branches.
43
a67517f4
BW
442004-11-11 Bob Wilson <bob.wilson@acm.org>
45
46 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
47
1d19a770
BW
482004-11-10 Bob Wilson <bob.wilson@acm.org>
49
50 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
51 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
52 MAYBE_UNREACHABLE.
53 (relax_frag_immed): Update call to update_next_frag_state.
54
c04f5787
AM
552004-11-10 Alan Modra <amodra@bigpond.net.au>
56
57 * obj.h (struct format_ops <app_file>): Add int param.
58 * read.h (s_app_file_string): Likewise.
59 * read.c (s_app_file_string): Likewise.
60 (s_app_file): Adjust s_app_file_string call.
61 * config/tc-mips.c (s_mips_file): Likewise.
62 * config/obj-coff.h (obj_app_file): Add app param.
63 * config/obj-ecoff.h (obj_app_file): Likewise.
64 * config/obj-multi.h (obj_app_file): Likewise.
65 * config/obj-elf.h (elf_file_symbol): Likewise.
66 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
67 if called for # preprocessor lines.
68
a77a9021
L
692004-11-08 H.J. Lu <hongjiu.lu@intel.com>
70
71 PR 528
72 * symbols.c (resolve_symbol_value): Convert weak symbols only
73 for Windows PECOFF.
74 (symbol_equated_reloc_p): Don't equate weaks when relocating
75 only for Windows PECOFF.
76
aea44f62
TL
772004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
78
79 * config/tc-crx.c (print_insn): Check and set insn_addr.
80 * config/tc-crx.h (md_frag_check): Define.
81
7499d566
NC
822004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
83 Vineet Sharma <vineets@noida.hcltech.com>
84
85 * configure.in: Add support for new target maxq-coff.
86 * configure: Regenerate.
87 * NEWS: Mention new support.
88 * config/tc-maxq.c: New file.
89 * config/tc-maxq.h: New file.
90 * config/obj-coff.h: Add support for maxq-coff.
91
977cdf5a
NC
922004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
93
94 * symbols.c (any_external_name): Define.
a77a9021 95 (resolve_symbol_value): Convert weak symbols.
977cdf5a
NC
96 (S_SET_EXTERNAL): Support any_external_name.
97 (S_SET_NAME): Qualify parameter const.
316f3bf8 98 (symbol_equated_reloc_p): Equate to weaks when relocating.
977cdf5a
NC
99 * symbols.h (S_SET_NAME): Qualfiy parameter const.
100 * tc.h (any_external_name): Declare.
101 * config/obj-coff.c ("coff/pe.h"): Include for BFD
102 assemblers also.
103 (weak_is_altname): Declare and define.
104 (weak_name2altname): Same.
105 (weak_altname2name): Same.
106 (weak_uniquify): Same.
107 (weak_altprefix): Define.
108 (obj_coff_weak): Change .weak syntax and handling.
109 (coff_frob_symbol): Fix PE weak symbol alternates.
110 * config/obj-coff.h (USE_UNIQUE): Define.
111 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
112 are in another segment.
113 (tc_gen_reloc): Remove broken addend hack.
114 doc/as.texinfo: Update.
115
34e41783
BW
1162004-11-05 Sterling Augustine <sterling@tensilica.com>
117
118 * config/tc-xtensa.c (total_frag_text_expansion): New.
119 (md_estimate_size_before_relax): Use it.
120 (find_address_of_next_align_frag): Likewise.
121
dcd46b4e
TL
1222004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
123
124 * config/tc-crx.c: Rename argument types.
125 (processing_arg_number): Rename to 'cur_arg_num'.
126 (get_number_of_bits): Rename to 'set_operand_size'.
127 (get_operandtype): Rename to 'parse_operand', totally rewrite.
128 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
129 (set_indexmode_parameters): Remove function, integrate its code into
130 'set_operand'.
131 (set_operand_size): Get rid of 'Operand Number' function parameter -
132 use global variable 'cur_arg_num' instead.
133 Use a local 'argument' pointer to reference the current argument.
134 (parse_operand): Likewise.
135 (set_operand): Likewise.
136 (process_label_constant): Likewise.
137
9456465c
BW
1382004-11-04 Bob Wilson <bob.wilson@acm.org>
139
140 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
141 (add_section_rename): Delete. Inlined into...
142 (build_section_rename): ...here. Use xstrdup instead of strdup.
143 (xtensa_section_rename): Drop "const" from argument and return types.
144 (md_show_usage): Indent to match show_usage().
145 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
146 (tc_canonicalize_section_name): Define.
147 (md_elf_section_rename): Remove unused macro.
148 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
149 * doc/c-xtensa.texi (Xtensa Options): Likewise.
150 (Frame Directive): Delete.
151
7f266840
DJ
1522004-11-04 Daniel Jacobowitz <dan@debian.org>
153
154 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
155 * config/tc-arm.c (target_oabi): Delete.
156 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
157 (arm_opts): Remove moabi.
158 * doc/as.texinfo (Overview): Remove documentation of -moabi.
159 * doc/c-arm.texi (ARM Options): Likewise.
160 * configure: Regenerated.
161
ae57792d
HPN
1622004-11-04 Hans-Peter Nilsson <hp@axis.com>
163
164 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
165 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
166 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
167 * configure: Regenerate.
168 * config/tc-cris.c (enum cris_archs): New.
169 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
170 (cris_insn_ver_valid_for_arch): New functions.
171 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
172 (cris_arch): New variable.
173 (md_pseudo_table): New pseudo .arch.
174 (err_for_dangerous_mul_placement): Initialize according to
175 DEFAULT_CRIS_ARCH.
176 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
177 All users changed.
178 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
179 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
180 (BRANCH_WF_V32, BRANCH_WB_V32): New.
181 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
182 use in md_cris_relax_table.
183 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
184 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
185 Update and improve head comment.
186 (OPTION_PIC): Define in terms of previous option, OPTION_US.
187 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
188 (OPTION_ARCH): New.
189 (md_longopts): New option --march=...
190 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
191 macros.
192 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
193 (HANDLE_RELAXABLE): New macro.
194 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
195 cases. Check for weak symbols and assume not relaxable. Handle
196 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
197 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
198 fragP->fr_symbol.
199 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
200 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
201 (cris_create_short_jump): Adjust for CRISv32.
5664e9a7 202 (cris_relax_frag): Handle new states.
ae57792d
HPN
203 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
204 (md_begin): Define symbols "..asm.arch.cris.v32",
205 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
206 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
207 when entering opcode table entry points.
208 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
209 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
210 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
211 (cris_process_instruction): Initialize out_insnp->insn_type to
212 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
213 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
214 cases.
215 <case 'm'>: Check that modified_char == '.'.
216 <invalid operands>: Consume the rest of the line.
217 When operands don't match, skip over subsequent insns with
218 non-matching version specifier but same mnemonic.
219 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
220 special registers in CRISv32 are always 32 bit long.
221 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
222 New cases.
223 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
224 and compatible. Recognize "ACR" for v32, unless followed by "+".
225 (get_spec_reg): Consider cris_arch when looking up register.
226 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
227 v32 or compatible.
228 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
229 (cris_get_expression): Restore input_line_pointer if failing "early".
230 (get_flags): Consider cris_arch and recognize flags accordingly.
231 (branch_disp): Adjust for CRISv32.
232 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
233 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
234 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
235 resolved. Don't enter zeros in object file for
236 BFD_RELOC_32_PCREL.
237 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
238 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
239 (md_parse_option): Break out "return 1".
240 <OPTION_ARCH> New case.
241 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
242 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
243 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
244 <case BFD_RELOC_32_PCREL>: New cases.
245 Addends for non-zero fx_pcrel are too in fx_offset.
246 (md_show_usage): Show --march=<arch>.
247 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
248 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
249 (s_syntax) <struct syntaxes>: Properly constify member operand.
250 * config/tc-cris.h (TARGET_MACH): Define.
251 (cris_mach): Declare.
252 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
253 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
254 (CRIS-Opts): Document --march=...
255 (CRIS-Pseudos): Document .arch.
256
9306ca4a
JB
2572004-11-04 Jan Beulich <jbeulich@novell.com>
258
259 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
260 intel syntax and no register prefix, allow $ in symbol names when
261 intel syntax.
262 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
263 (intel_float_operand): Add fourth return value indicating math control
264 operations. Make classification more precise.
265 (md_assemble): Complain if memory operand of mov[sz]x has no size
266 specified.
267 (parse_insn): Translate word operands to floating point instructions
268 operating on integers as well as control instructions to short ones
269 as expected by AT&T syntax. Translate 'd' suffix to short one only for
270 floating point instructions operating on non-integer operands.
271 (match_template): Remove fldcw special case. Adjust q-suffix handling
272 to permit it on fild/fistp/fisttp in AT&T mode.
273 (process_suffix): Don't guess DefaultSize insns' suffix from
274 stackop_size for certain floating point control instructions. Guess
275 suffix for branch and [ls][gi]dt based on flag_code. Split error
276 messages for Intel and AT&T syntax, and make the condition more strict
277 for the former. Adjust suppressing of generation of operand size
278 overrides.
279 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
280 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
281 more error checking.
282 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
283 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
284
2b4f075a
HPN
2852004-11-03 Hans-Peter Nilsson <hp@axis.com>
286
287 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
288 md_short_jump_size, md_long_jump_size.
289 * write.c [!WORKING_DOT_WORD]: Ditto.
290 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
291 qualifier.
292 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
293 declare.
294 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
295 const qualifier in these definitions.
296 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
297 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
298
ddbc47ac
NC
2992004-11-02 Nick Clifton <nickc@redhat.com>
300
301 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
302 table before deciding to produce a .debug_line section to match up
303 with a user provided .debug_info section.
304
3ad3f5ad
TL
3052004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
306
307 * config/tc-crx.c (getreg_image): Bug fix, a return value was
308 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
309
c815a616
TL
3102004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
311
312 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
313 (get_flags): New function.
c04f5787
AM
314 (get_number_of_bits): Edit comments, update numeric values to
315 supported sizes.
316 (process_label_constant): Don't support the colon
317 format (SYMBOL:[s|m|l]).
c815a616
TL
318 (set_cons_rparams): Support argument type 'arg_rbase'.
319 (get_operandtype): Bug fix in 'rbase' operand type parsing.
320 (handle_LoadStor): Bug fix, first handle post-increment mode.
c04f5787
AM
321 (getreg_image): Remove redundant code, update according to latest
322 CRX spec.
c815a616 323 (print_constant): Bug fix relate to 3-word instructions.
c04f5787 324 (assemble_insn): Bug fix, when matching instructions, verify also
c815a616
TL
325 instruction type (not only mnemonic).
326 Add various error checking.
327 (preprocess_reglist): Support HI/LO and user registers.
328
ed7af9f9
L
3292004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
330
c04f5787 331 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
ed7af9f9
L
332 in an epilogue directive go negative.
333
ac025970
L
3342004-10-25 H.J. Lu <hongjiu.lu@intel.com>
335
336 PR 474
337 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
338 after reporting template error during manual bundling. Reported
339 by Michael Dupont, michaelx.dupont@intel.com.
340
a394c00f
NC
3412004-10-25 Daniel Jacobowitz <dan@debian.org>
342
343 * Makefile.am: Run dep-am.
344 * aclocal.m4: Regenerate with automake 1.9.2.
345 * Makefile.in: Regenerate with automake 1.9.2.
346 * doc/Makefile.in: Likewise.
347
348 * config/tc-arm.c: Include "dw2gencfi.h".
349 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
350 New functions.
351 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
352 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
353 (tc_cfi_frame_initial_instructions): Define.
354 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
355 Add prototypes.
356
23d83918
TL
3572004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
358
359 * config/tc-crx.c (assemble_insn): Check unsigned immediate
360 operands validity.
361 Update coprocessor id to be unsigned immediate.
362
bb41ade5
AM
3632004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
364
365 * config/tc-i386.c (O_secrel): Delete.
366 (tc_pe_dwarf2_emit_offset): New function.
367 * config/tc-i386.h (O_secrel): Define as O_md1.
368 (TC_DWARF2_EMIT_OFFSET): Define.
369
87e62348
NC
3702004-10-18 Nick Clifton <nickc@redhat.com>
371
372 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
373 ignore @fptr() directives for 4-byte fixups.
374
3c55da70
AM
3752004-10-15 Alan Modra <amodra@bigpond.net.au>
376
377 * Makefile.am: Run "make dep-am"
378 * Makefile.in: Regenerate.
379
40e7b7b9
BW
3802004-10-14 Bob Wilson <bob.wilson@acm.org>
381
382 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
383 Remove comments about placement of literal pools.
384 (Literal Directive): Update description of literal placement.
385 (Literal Prefix Directive): Remove statement that this does not apply
386 to absolute-mode literals. Describe new section naming scheme.
387
b08b5071
BW
3882004-10-12 Bob Wilson <bob.wilson@acm.org>
389
390 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
391 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
392 is_windowed_return_opcode): Delete.
393 (xtensa_frob_label): Use get_subseg_target_freq.
394 (md_assemble): Inline call to is_entry_opcode.
395 (xtensa_handle_align): Inline call to get_frag_is_literal.
396 (relaxation_requirements): Inline call to is_jx_opcode.
397 (emit_single_op): Inline call to is_movi_opcode.
398 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
399 get_frag_is_no_transform, is_entry_opcode, and
400 set_frag_is_specific_opcode. Use get_subseg_total_freq.
401 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
402 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
403 Inline calls to get_frag_is_no_transform.
404 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
405 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
406 get_frag_is_no_transform.
407 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
408 and set_frag_is_no_transform.
409 (get_expression_value): Delete.
410 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
411 cur_target_freq to target_freq.
412 (get_subseg_info): Split out code to create a new map entry into ...
413 (add_subseg_info): ... this new function.
414 (get_last_insn_flags): Check if get_subseg_info succeeded.
415 (set_last_insn_flags): Call add_subseg_info if needed.
416 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
417 (xtensa_reorder_segments): Compute last_sec while counting sections.
418 Remove call to get_last_sec.
419 (get_last_sec): Delete.
420 (cache_literal_section): Inline call to retrieve_literal_seg and its
421 callees, seg_present and add_seg_list.
422 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
423 (get_frag_is_insn, get_frag_is_no_transform,
424 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
425 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
426
7fa3d080
BW
4272004-10-12 Bob Wilson <bob.wilson@acm.org>
428
429 * config/tc-xtensa.c: Use ISO C90 formatting.
430 * config/tc-xtensa.h: Likewise.
431 * config/xtensa-istack.h: Likewise.
432 * config/xtensa-relax.c: Likewise.
433 * config/xtensa-relax.h: Likewise.
434
8cb51566
PB
4352004-10-12 Paul Brook <paul@codesourcery.com>
436
437 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
438 EF_ARM_EABI_VER4.
439 (arm_eabis): Ditto.
440 * doc/c-arm.texi: Document that we actually support -meabi=4, not
441 -meabi=3.
442
653cfe85
BW
4432004-10-08 Bob Wilson <bob.wilson@acm.org>
444
445 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
446 entries.
447 (Acknowledgements): Use "GAS" instead of AS variable.
448
d2b2c203
DJ
4492004-10-08 Daniel Jacobowitz <dan@debian.org>
450
451 * config/tc-i386.c: Include "elf/x86-64.h".
452 (i386_elf_section_type): New function.
453 * config/tc-i386.h (md_elf_section_type): Define.
454 (i386_elf_section_type): New prototype.
455
e80e0390
NC
4562004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
457
458 * config/m68k-parse.h (enum m68k_register): New control register,
459 MBAR2 (for MCF5249)
460 * config/tc-m68k.c: Correct control register set for MCF5249.
461
43cd72b9 4622004-10-07 Bob Wilson <bob.wilson@acm.org>
85a5ac80 463 Sterling Augustine <sterling@tensilica.com>
43cd72b9
BW
464
465 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
466 (UNREACHABLE_MAX_WIDTH): Define.
467 (XTENSA_FETCH_WIDTH): Delete.
468 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
469 prefer_const16, prefer_l32r): New global variables.
470 (LIT4_SECTION_NAME): Define.
471 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
472 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
473 (frag_flags struct): New.
c04f5787 474 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
43cd72b9
BW
475 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
476 (bitfield, bit_is_set, set_bit, clear_bit): Define.
477 (MAX_FORMATS): Define.
478 (op_placement_info struct, op_placement_table): New.
479 (O_pltrel, O_hi16, O_lo16): Define.
480 (directiveE enum): Rename directive_generics to directive_transform.
481 Delete directive_relax. Add directive_schedule,
482 directive_absolute_literals, and directive_last_directive.
483 (directive_info): Rename "generics" to "transform". Delete "relax".
484 Add "schedule" and "absolute-literals".
485 (directive_state): Adjust entries to match changes in directive_info.
486 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
487 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
488 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
489 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
490 (align_only_targets, software_a0_b_retw_interlock,
491 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
492 software_avoid_short_loop, software_avoid_close_loop_end,
493 software_avoid_all_short_loops, specific_opcode): Delete.
494 (warn_unaligned_branch_targets): New.
495 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
496 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
497 (option_[no_]link_relax, option_[no_]transform,
498 option_[no_]absolute_literals, option_warn_unaligned_targets,
499 option_prefer_l32r, option_prefer_const16, option_target_hardware):
500 New enum values.
501 (option_[no_]align_only_targets, option_literal_section_name,
502 option_text_section_name, option_data_section_name,
503 option_bss_section_name, option_eb, option_el): Delete.
504 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
505 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
506 and target-hardware. Delete entries for [no-]target-align-only,
507 literal-section-name, text-section-name, data-section-name, and
508 bss-section-name.
509 (md_parse_option): Handle new options and remove old ones. Accept but
510 ignore [no-]density options. Warn for [no-]generics and [no-]relax
511 and treat them as [no-]transform.
512 (md_show_usage): Add new options and remove old ones.
513 (xtensa_setup_hw_workarounds): New.
514 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
515 "long", "short", "loc" and "frequency" entries.
516 (use_generics): Rename to ...
517 (use_transform): ... this function. Add past_xtensa_end check.
518 (use_longcalls): Add past_xtensa_end check.
519 (code_density_available, can_relax): Delete.
520 (do_align_targets): New.
521 (get_directive): Accept dashes in directive names. Warn about
522 [no-]generics and [no-]relax directives and treat them as
c04f5787 523 [no-]transform.
43cd72b9
BW
524 (xtensa_begin_directive): Call md_flush_pending_output only for some
525 directives. Check for directives inside instruction bundles. Warn
526 about deprecated ".begin literal" usage. Warn and ignore [no-]density
527 directives. Handle new directives. Check generating_literals flag
528 for literal_prefix.
529 (xtensa_end_directive): Check for directives inside instruction
530 bundles. Warn and ignore [no-]density directives. Handle new
531 directives. Call xtensa_set_frag_assembly_state.
532 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
533 xtensa_dwarf2_emit_insn): New.
534 (xtensa_literal_position): Call md_flush_pending_output. Do not check
535 use_literal_section flag.
536 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
537 literals. Use xtensa_elf_cons to parse the expression.
538 (xtensa_literal_prefix): Do not check use_literal_section. Support
539 ".lit4" sections for absolute literals. Change prefix convention to
540 replace ".text" (or ".t" in a linkonce section). No need to call
541 subseg_set.
542 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
543 (expression_end): Handle closing braces and colons.
544 (PLT_SUFFIX, plt_suffix): Delete.
545 (expression_maybe_register): Use new xtensa-isa.h functions. Use
546 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
547 and O_hi16 expressions as well.
548 (tokenize_arguments): Handle closing braces and colons.
549 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
550 operands and paired register syntax.
551 (get_invisible_operands): New.
552 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
553 new xtensa-isa.h functions.
554 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
555 (xg_translate_idioms): Check if inside bundle. Use use_transform.
556 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
557 instructions. Use xtensa_translate_zero_immed.
558 (operand_is_immed, operand_is_pcrel_label): Delete.
559 (get_relaxable_immed): Use new xtensa-isa.h functions.
560 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
561 functions.
562 (xtensa_print_insn_table, print_vliw_insn): New.
563 (is_direct_call_opcode): Use new xtensa-isa.h functions.
564 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
565 is_branch_or_jump_opcode): Delete.
566 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
567 (opnum_to_reloc, reloc_to_opnum): Delete.
568 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
569 xtensa-isa.h functions. Operate on one slot of an instruction.
570 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
571 xg_get_insn_size): Delete.
572 (xg_get_build_instr_size): Use xg_get_single_size.
573 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
574 xg_build_widen_table. Use xg_get_single_size.
575 (xg_get_max_narrow_insn_size): Delete.
576 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
577 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
578 xg_get_single_size.
579 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
580 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
581 (xg_expand_to_stack, xg_expand_narrow): Update calls to
582 xg_build_widen_table. Use xg_get_single_size.
583 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
584 xg_check_operand.
585 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
586 treat weak symbols conservatively.
587 (xg_check_operand): Use new xtensa-isa.h functions.
588 (is_dnrange): Delete.
589 (xg_assembly_relax): Inline previous calls to tinsn_copy.
590 (xg_finish_frag): Specify separate relax states for the frag and slot0.
591 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
592 xtensa-isa.h functions.
593 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
594 xg_instruction_matches_options): New.
595 (xg_instruction_matches_rule): Handle O_register expressions. Call
596 xg_instruction_matches_options.
597 (transition_rule_cmp): New.
598 (xg_instruction_match): Update call to xg_build_simplify_table.
599 (xg_build_token_insn): Record loc fields.
600 (xg_simplify_insn): Check is_specific_opcode field and
601 density_supported flag.
602 (xg_expand_assembly_insn): Skip checking code_density_available. Use
603 new xtensa-isa.h functions. Call use_transform instead of can_relax.
604 (xg_assemble_literal): Add error handling for O_big. Call
605 record_alignment. Handle O_pltrel.
606 (xg_valid_literal_expression): New.
607 (xg_assemble_literal_space): Add slot parameter. Remove call to
608 set_expr_symbol_offset. Add call to record_alignment. Update call to
609 xg_finish_frag.
610 (xg_emit_insn): Delete.
611 (xg_emit_insn_to_buf): Add format parameter. Update calls to
612 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
613 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
614 and slot parameters. Handle new "alternate" relocations for absolute
615 literals and CONST16 instructions. Check for bad uses of O_lo16 and
616 O_hi16. Use new xtensa-isa.h functions.
617 (xg_assemble_tokens): Delete.
618 (is_register_writer): Use new xtensa-isa.h functions.
619 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
620 old-style RSR from LCOUNT.
621 (next_frag_opcode): Delete.
622 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
623 update_next_frag_state): New.
624 (update_next_frag_nop_state): Delete.
625 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
626 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
627 the state of the absolute-literals directive. Add calls to
628 record_alignment and xtensa_set_frag_assembly_state. Call
629 xtensa_switch_to_non_abs_literal_fragment instead of
630 xtensa_switch_to_literal_fragment.
631 (build_nop): New.
632 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
633 (get_expanded_loop_offset): Change check for undefined opcode to an
634 assertion.
635 (xtensa_set_frag_assembly_state, relaxable_section,
636 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
637 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
638 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
639 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
640 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
641 (xtensa_init_fix_data): New.
642 (xtensa_frob_label): Reset label symbol to the current frag. Check
643 do_align_targets and generating_literals flag. Propagate frequency
644 info to new alignment frag. Call xtensa_set_frag_assembly_state.
645 (xtensa_unrecognized_line): New.
646 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
647 to xtensa_set_frag_assembly_state.
648 (error_reset_cur_vinsn): New.
649 (md_assemble): Remove check for literal frag. Remove call to
650 istack_init. Call use_transform instead of use_generics. Parse
651 explicit instruction format specifiers. Move code for
652 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
653 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
654 Add dwarf2_where call. Remote automatic alignment for ENTRY
655 instructions. Move call to xtensa_clear_insn_labels to the end.
656 Rearrange to handle bundles.
657 (xtensa_cons_fix_new): Delete.
658 (xtensa_handle_align): New.
659 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
660 assignment to is_no_density field.
661 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
662 instead of reloc_to_opnum. Handle "alternate" relocations.
663 (xtensa_force_relocation, xtensa_check_inside_bundle,
664 xtensa_elf_section_change_hook): New.
665 (xtensa_symbol_new_hook): Delete.
666 (xtensa_fix_adjustable): Check for difference of symbols with an
667 offset. Check for external and weak symbols.
668 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
669 (md_estimate_size_before_relax): Return expansion for the first slot.
670 (tc_gen_reloc): Handle difference of symbols by producing
671 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
672 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
673 tentative values into the output when linkrelax is set.
674 (XTENSA_PROP_SEC_NAME): Define.
675 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
676 Create literal tables only if using literal sections. Create new
677 property tables instead of old instruction tables. Check for unaligned
678 branch targets and loops.
679 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
680 new_resource_table, clear_resource_table, resize_resource_table,
681 resources_available, reserve_resources, release_resources,
682 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
683 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
684 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
685 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
686 flag. Update checks for workaround options. Call
687 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
688 (xtensa_cleanup_align_frags): Add special case for branch targets.
689 Check for and mark unreachable frags.
690 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
691 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
692 end of a zero-overhead loop body.
693 (frag_can_negate_branch): Handle instructions with multiple slots.
694 Use new xtensa-isa.h functions
695 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
696 xtensa_mark_zcl_first_insns): New.
697 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
698 transformations are disabled.
699 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
700 multislot instructions.
701 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
702 Likewise. Also error if transformations are disabled.
703 (unrelaxed_frag_max_size): New.
704 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
705 xtensa-isa.h functions.
706 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
707 xtensa_opcode_is_loop instead of is_loop_opcode.
708 (get_text_align_power): Replace as_fatal with assertion.
709 (get_text_align_fill_size): Iterate instead of using modulus when
710 use_nops is false.
711 (get_noop_aligned_address): Assert that this is for a machine-dependent
712 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
713 xg_get_single_size, and frag_format_size.
714 (get_widen_aligned_address): Rename to ...
715 (get_aligned_diff): ... this function. Add max_diff parameter.
716 Remove handling of rs_align/rs_align_code frags. Use
717 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
718 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
719 and pass it back to caller.
720 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
721 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
722 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
723 (relax_frag_text_align): Rename to ...
724 (relax_frag_loop_align): ... this function. Assume loops can only be
725 in the first slot of an instruction.
726 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
727 instruction. Remove call to frag_wane.
728 (relax_frag_narrow): Rename to ...
729 (relax_frag_for_align): ... this function. Extend to handle
730 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
731 RELAX_NARROW for the first slot.
732 (find_address_of_next_align_frag, bytes_to_stretch): New.
733 (future_alignment_required): Use find_address_of_next_align_frag and
734 bytes_to_stretch. Look ahead to subsequent frags to make smarter
735 alignment decisions.
736 (relax_frag_immed): Add format, slot, and estimate_only parameters.
737 Check if transformations are enabled for b_j_loop_end workaround.
738 Use new xtensa-isa.h functions and handle multislot instructions.
739 Update call to xg_assembly_relax.
740 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
741 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
742 frag types.
743 (convert_frag_narrow): Add segP, format and slot parameters. Call
744 convert_frag_immed for branch instructions. Adjust calls to
745 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
746 xg_get_single_size and xg_get_single_format.
747 (convert_frag_fill_nop): New.
748 (convert_frag_immed): Add format and slot parameters. Handle multislot
749 instructions and use new xtensa-isa.h functions. Update calls to
750 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
751 enabled for b_j_loop_end workaround. Use build_nop instead of
752 assemble_nop. Check is_specific_opcode flag. Check for unreachable
753 frags. Use xg_get_single_size. Handle O_pltrel.
754 (fix_new_exp_in_seg): Remove check for old plt flag.
755 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
756 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
757 for loop opcode to an assertion. Mark all frags up to the end of the
758 loop as not transformable.
759 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
760 (get_subseg_info): New.
761 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
762 check for dest_seg.
763 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
764 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
765 (xtensa_switch_to_non_abs_literal_fragment): New.
766 (cache_literal_section): Add is_code parameter and pass it through to
767 retrieve_literal_seg.
768 (retrieve_literal_seg): Add is_code parameter and use it to set the
769 flags on the literal section. Handle case where head parameter is 0.
770 (get_frag_is_no_transform, set_frag_is_specific_opcode,
771 set_frag_is_no_transform): New.
772 (xtensa_create_property_segments): Add end_property_function parameter
773 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
774 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
775 (xtensa_create_xproperty_segments, section_has_xproperty): New.
776 (add_xt_block_frags): Add end_property_function parameter and call it
777 if it is non-zero. Call xtensa_frag_flags_init.
778 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
779 get_frag_property_flags, frag_flags_to_number,
780 xtensa_frag_flags_combinable, xt_block_aligned_size,
781 xtensa_xt_block_combine, add_xt_prop_frags,
782 init_op_placement_info_table, opcode_fits_format_slot,
783 xg_get_single_size, xg_get_single_format): New.
784 (istack_push): Inline call to tinsn_copy.
785 (tinsn_copy): Delete.
786 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
787 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
788 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
789 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
790 functions. Handle invisible operands.
791 (tinsn_to_slotbuf): New.
792 (tinsn_check_arguments): Use new xtensa-isa.h functions.
793 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
794 vinsn_from_chars, and xg_free_vinsn.
795 (tinsn_from_insnbuf): New.
796 (tinsn_immed_from_frag): Add slot parameter and handle multislot
797 instructions. Handle symbol differences.
798 (get_num_stack_text_bytes): Use xg_get_single_size.
799 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
800 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
801 get_expr_register, set_expr_symbol_offset_diff): New.
802 * config/tc-xtensa.h (MAX_SLOTS): Define.
803 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
804 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
805 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
806 RELAX_NONE types.
807 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
808 (xtensa_frag_type struct): Add is_assembly_state_set,
809 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
810 is_align, is_text_align, alignment, and is_first_loop_insn fields.
811 Replace is_generics and is_relax fields by is_no_transform field.
812 Delete is_text and is_longcalls fields. Change text_expansion and
813 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
814 per-slot information: literal_frags, slot_subtypes, slot_symbols,
815 slot_sub_symbols, and slot_offsets. Add fr_prev field.
816 (xtensa_fix_data struct): New.
817 (xtensa_symfield_type struct): Delete plt field.
818 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
819 forward declaration here.
820 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
821 (XTENSA_SECTION_RENAME): Undefine.
822 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
823 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
824 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
825 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
826 (unit_num_copies_func, opcode_num_units_func,
827 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
828 (resource_table struct): New.
829 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
830 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
831 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
832 (tinsn_copy): Delete prototype.
833 (vliw_insn struct): New.
834 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
835 (widen_spec_list): Add option conditions for density and boolean
836 instructions. Add expansions using CONST16 and conditions for using
837 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
838 predicted branches.
839 (simplify_spec_list): Add option conditions for density instructions.
840 Add entry for NOP instruction.
841 (append_transition): Add cmp function pointer parameter and use it to
842 insert the new entry in order.
843 (operand_function_LOW16U, operand_function_HI16U): New.
844 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
845 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
846 (enter_opname, split_string): Use xstrdup instead of strdup.
847 (init_insn_pattern): Initialize new options field.
848 (clear_req_or_option_list, clear_req_option_list,
849 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
850 New.
851 (parse_insn_pattern): Parse option conditions.
852 (transition_applies): New.
853 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
854 swapped last arguments in calls to append_constant_value_condition.
855 Call clone_req_option_list. Add warning about invalid opcode.
856 Handle LOW16U and HI16U function names.
857 (build_transition_table): Add cmp parameter and use it in calls to
858 append_transition. Use new xtensa-isa.h functions. Check
859 transition_applies before adding entries.
860 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
861 pass it through to build_transition_table.
862 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
863 ReqOption, transition_cmp_fn): New types.
864 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
865 (transition_rule struct): Add options field.
866 * doc/as.texinfo (Overview): Update Xtensa options.
867 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
868 --[no-]relax, and --[no-]generics options. Update descriptions of
869 --text-section-literals and --[no-]longcalls. Add
870 --[no-]absolute-literals and --[no-]transform.
871 (Xtensa Syntax): Add description of syntax for FLIX instructions.
872 Remove use of "generic" and "specific" terminology for opcodes.
873 (Xtensa Registers): Generalize the syntax description to include
874 user-defined register files.
875 (Xtensa Automatic Alignment): Update.
876 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
877 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
878 (Xtensa Directives): Remove confusing rules about precedence.
879 (Density Directive, Relax Directive): Delete.
880 (Schedule Directive): New.
881 (Generics Directive): Rename to ...
882 (Transform Directive): ... this node.
883 (Literal Directive): Update for absolute literals. Missing
884 literal_position directive is now an error.
885 (Literal Position Directive): Update for absolute literals.
886 (Freeregs Directive): Delete.
887 (Absolute Literals Directive): New.
888 (Frame Directive): Minor editing.
889 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
890 Update dependencies.
891 * Makefile.in: Regenerate.
892
6e1304d8
RS
8932004-10-07 Richard Sandiford <rsandifo@redhat.com>
894
895 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
896 to build the second and third fixups for a composite relocation.
897 (macro_read_relocs): New function.
898 (macro_build): Use it.
899 (s_cpsetup): Pass all three composite relocation codes to macro_build.
900 Simplify fragging code accordingly.
901 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
902 of the composite relocation. Set fx_tcbit in both fixups.
903
b1dca8ee
RS
9042004-10-07 Richard Sandiford <rsandifo@redhat.com>
905
906 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
907 (md_apply_fix3): Don't treat composite relocs as done.
908
89658e52
NC
9092004-10-07 Jan Beulich <jbeulich@novell.com>
910
911 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
912 prefix for symbol names generated from the LOCAL macro directive.
913
289040ca
NC
914 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
915 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
916
48c9f030
NC
9172004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
918
919 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
c04f5787 920 Special registers.
5c5054ab 921 (md_assemble): Add error checking for Co-Processor instructions.
48c9f030
NC
922 (get_cinv_parameters): Add 'b' option to invalidate the
923 branch-target cache.
924
7ed4c4c5
NC
9252004-10-05 Paul Brook <paul@codesourcery.com>
926
927 * config/tc-arm.c (unwind): New variable.
928 (vfp_sp_encode_reg): New function.
929 (vfp_sp_reg_required_here): Use it.
930 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
931 (vfp_parse_reg_list): New function.
932 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
933 s_arm_unwind_personality, s_arm_unwind_personalityindex,
934 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
935 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
936 functions.
937 (md_pseudo_table): Add them.
938 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
939 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
940 (set_section, add_unwind_adjustsp, flush_pending_unwind,
941 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
942 require_hashconst, add_unwind_opcode): New functions.
943 * doc/tc-arm.text: Document unwinding opcodes.
944 * NEWS: Mention the new feature.
945
04ca8703
EC
9462004-10-04 Eric Christopher <echristo@redhat.com>
947
948 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
949
7c1d0959
L
9502004-10-01 H.J. Lu <hongjiu.lu@intel.com>
951
952 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
953 TLS relocations.
954 * config/tc-s390.c (md_apply_fix3): Likewise.
955 * config/tc-sparc.c (md_apply_fix3): Likewise.
956
40a18ebd
NC
9572004-10-01 Paul Brook <paul@codesourcery.com>
958
959 * config/tc-arm.c (arm_elf_section_type): New function.
960 (arm_elf_change_section): Set section link for exidx sections.
961 * config/tc-arm.h (arm_elf_section_type): Add prototype.
962 (md_elf_section_type): Define.
963
14127cc4
NC
9642004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
965
966 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
967 instruction's offset.
968
b7c92712
NC
9692004-10-01 Adam Nemet <anemet@lnxw.com>
970
971 * (TARGET_FORMAT): Remove LynxOS COFF definition.
972
65555e64
AM
9732004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
974
975 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
976 asymbol *, instead use symbol_get_bfdsym.
977
9fe0b840
NC
9782004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
979
980 * config/tc-m68k.c (select_control_regs): Add mcf5249.
981
0dd132b6
NC
9822004-09-30 Paul Brook <paul@codesourcery.com>
983
984 * config/tc-arm.c (do_smi, do_nop): New functions.
985 (insns): Add ARMv6ZK instructions.
986 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
987 (tc_gen_reloc): Ditto.
988 (arm_cpus): Add mpcore and arm1176.
989 (arm_archs): Add armv6{k,z,zk}.
990 * doc/c-arm.texi: Document new cores and architectures.
991
a737bd4d
NC
9922004-09-30 Nick Clifton <nickc@redhat.com>
993
994 * config/tc-arm.c: Use ISO C90 formatting.
995
3631a3c8
NC
9962004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
997
a737bd4d 998 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
3631a3c8
NC
999 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
1000 REG_TYPE_MVDX is expected.
1001
d5f0cf92
AM
10022004-09-29 Marc Bevand <m.bevand@gmail.com>
1003
1004 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
1005
9f9a069e
JW
10062004-09-21 James E Wilson <wilson@specifixinc.com>
1007
1008 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
1009 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
1010 output_spill_base, output_unat_psprel, output_lc_psprel,
1011 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
1012 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
1013 output_spill_psprel_p): Use it.
1014
4b778c88
TL
10152004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
1016
c04f5787 1017 * config/tc-crx.c (handle_LoadStor): New function.
04ca8703 1018 Handle load/stor unique instructions before parsing.
4b778c88 1019
eb043451
PB
10202004-09-17 Paul Brook <paul@codesourcery.com>
1021
1022 * config/tc-arm.c (s_arm_rel31): New funciton.
1023 (md_pseudo_table): Add .rel31.
04ca8703 1024 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
eb043451
PB
1025 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
1026 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
1027 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
1028 (arm_parse_reloc): Add (target2).
1029
8ea2b00f
AM
10302004-09-17 Alan Modra <amodra@bigpond.net.au>
1031
1032 * Makefile.am: Run "make dep-am".
1033 * Makefile.in: Regenerate.
1034 * aclocal.m4: Regenerate.
1035 * configure: Regenerate.
1036 * doc/Makefile.in: Regenerate.
1037 * po/POTFILES.in: Regenerate.
1038 * po/gas.pot: Regenerate.
1039
7e1792e0
HPN
10402004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
1041
1042 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
1043 [!LLONG_MAX]: Ditto.
1044
9c504268
PB
10452004-09-13 Paul Brook <paul@codesourcery.com>
1046
1047 * config/tc-arm.c: Rename RELABS to TARGET1.
1048
2159ac21
AM
10492004-09-13 Alan Modra <amodra@bigpond.net.au>
1050
1051 * messages.c (as_internal_value_out_of_range): Cast values passed
1052 to as_bad_where or as_warn_where to proper type.
1053
23794b24
MM
10542004-09-11 Theodore A. Roth <troth@openavr.org>
1055
1056 * config/tc-avr.c: Add support for
1057 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
1058
e9fad691
AM
10592004-09-09 Alan Modra <amodra@bigpond.net.au>
1060
1061 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
1062 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
1063
10b016c2
PB
10642004-09-08 Paul Brook <paul@codesourcery.com>
1065
1066 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
1067 fini_array and preinit_array section types.
1068 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
1069 and fini_array.
1070 * doc/as.texinfo: Document extra section types.
1071
e5a52504
MM
10722004-09-02 Mark Mitchell <mark@codesourcery.com>
1073
1074 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
1075 * Makefile.in: Regenerated.
1076 * configure.in: Set em for arm*-*-symbianelf*.
1077 * configure: Regenerated.
1078 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
1079 vectors when appropriate.
1080 * config/te-symbian.h: New file.
1081
42851540
NC
10822004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1083
1084 * config/tc-crx.c (gettrap): Exception vector can be case
1085 insensitive.
04ca8703 1086 (process_label_constant): Fix a 32-bit displacement bug in branch
42851540
NC
1087 instructions.
1088 (get_operandtype) : Bug fix, wrong operand was used.
04ca8703 1089 (process_label_constant): Initialize relocation type to
42851540
NC
1090 BFD_RELOC_NONE
1091
8783612f
RE
10922004-09-01 Richard Earnshaw < reanrsha@arm.com>
1093
1094 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
1095 for synthesizable cores.
1096
1ff4677c
RE
1097 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
1098
b18c562e
NC
10992004-08-25 Dmitry Diky <diwil@spec.ru>
1100
1101 * config/tc-msp430.c: Clean-up the code.
1102 (md_relax_table): New relax table.
1103 (mcu_types): Sort MCU types.
1104 (md_pseudo_table): Add .profiler pseudo handler.
1105 (pow2value): New function.
1106 (msp430_profiler): New function.
1107 (msp430_operands): Add new insns handlers.
1108 (msp430_srcoperand): Add register operand handler, allow complex
1109 expressions.
1110 (md_estimate_size_before_relax): Rewritten.
1111 (md_convert_frag): Rewritten.
1112 (msp430_relax_frag): New function.
1113 * config/tc-msp430.h (md_relax_frag): define macro
1114 * doc/c-msp430.texi: Update information.
1115
8f94ae4d
NC
11162004-08-24 Nick Clifton <nickc@redhat.com>
1117
1118 * as.c (std_shortopts): Allow -g to take an optional argument.
1119 (parse_args): Pass any switch starting with -g on to the backend
1120 for parsing.
1121
e51dace8
MM
11222004-08-18 Mark Mitchell <mark@codesourcery.com>
1123
1124 * configure.in (arm*-*-symbianelf*): New target.
1125 (arm*-*-eabi*): Likewise.
1126 * configure: Regenerated.
1127
f7870c8d
TS
11282004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1129 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
1130 correctly.
1131
d6afba4b
JJ
11322004-08-18 Jakub Jelinek <jakub@redhat.com>
1133
1134 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
1135 argument, don't do anything if current section is not
1136 .gnu.linkonce.t.* and linkonce_empty is set.
1137 (generate_unwind_image, dot_endp): Adjust callers, call
1138 start_unwind_section (*, 1) if nothing will be put into the
1139 section.
1140
329e276d
NC
11412004-08-17 Nick Clifton <nickc@redhat.com>
1142
1143 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
1144 (show_usage): Add -g.
1145 (std_longopts): Add --gen-debug. Alpha sort the table.
1146 (parse_args): Print an error message if a switch is not handled.
1147 Handle the -g switch, calling md_debug_format_selector() if
1148 necessary.
1149 * NEWS: Mention new feature.
1150 * doc/as.texinfo: Document new switch.
1151 * doc/internals.texi: Document behaviour of md_parse_option.
04ca8703 1152
329e276d
NC
1153 * config/tc-arm.c (md_parse_option): Do not issue an error message
1154 if the switch is not recognised.
1155 * config/tc-m68k.c (md_parse_option): Likewise.
1156 * config/tc-pdp11.c (md_parse_option): Likewise.
1157 * config/tc-v850.c (md_parse_option): Likewise.
1158
1159 * as.h: Fix up formatting.
1160 * tc.h: Likewise.
1161
4101eec8
NC
11622004-08-16 Nick Clifton <nickc@redhat.com>
1163
2766e5e4
NC
1164 * macro.c (macro_set_alternate): Use ISO C90 formatting.
1165
4101eec8
NC
1166 * configure.in: Sort architecture based tables alphabetically.
1167 * configure: Regenerate.
1168
80f846b6
AM
11692004-08-16 Alan Modra <amodra@bigpond.net.au>
1170
1171 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
1172 { "cc", 68 }, with { "cr", 70 }.
1173
caa32fe5
NC
11742004-08-13 Jan Beulich <jbeulich@novell.com>
1175 Nick Clifton <nickc@redhat.com>
1176
1177 * as.c: Add and handle new --alternate command line option.
1178 * macro.c (macro_set_alternate): New.
1179 * macro.h (macro_set_alternate): Declare.
1180 * read.c: Add and handle new .altmacro and .noaltmacro directives.
1181 * doc/as.texinfo: Document new command line option and pseudo-ops
1182 as well as insert documentation originating from gasp about
1183 alternate macro syntax.
1184 * NEWS: Mention new command line option and pseudo-ops.
1185
b2221023
MM
11862004-08-10 Mark Mitchell <mark@codesourcery.com>
1187
1188 * expr.c (operand): Handle the "~", "-", and "!" operators applied
1189 to bignums.
1190
db6579d4
PB
11912004-08-06 Paul Brook <paul@codesourcery.com>
1192
1193 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
1194 Handle new relocations.
1195 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
1196
e750405d
BW
11972004-08-05 Bob Wilson <bob.wilson@acm.org>
1198
1199 * write.c (relax_segment): Use was_address instead of address when
1200 setting fr_fix field for align frag due to backwards .org.
1201
1d70c7fb
AO
12022004-07-29 Alexandre Oliva <aoliva@redhat.com>
1203
1204 Introduce SH2a support.
1205 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
1206 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
1207 arch_sh2a_nofpu_up.
1208 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
1209 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
1210 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
1211 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
1212 to end of conditional expression.
1213 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
1214 * config/tc-sh.c: Add sh2a-nofpu support.
1215 2003-12-29 DJ Delorie <dj@redhat.com>
1216 * tc-sh.c: Add sh2a support.
1217 (parse_reg): Add tbr.
1218 (parse_at): Support @@(disp,tbr).
1219 (get_specific): Support sh2a opcodes.
1220 (insert4): New, for 4 byte relocs.
1221 (build_Mytes): Support sh2a opcodes.
1222 (md_apply_fix3_Mytes): Support sh2a opcodes.
1223 2003-12-02 Michael Snyder <msnyder@redhat.com>
1224 * config/tc-sh.c (md_parse_option): Handle sh2a.
1225 (sh_elf_final_processing): Ditto.
1226
e7fbc2bf
JT
12272004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1228
1229 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
1230 for TE_NetBSD.
1231
9232bbb0
AM
12322004-07-27 Alan Modra <amodra@bigpond.net.au>
1233
1234 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
1235 (ppc_arch): Expand comment.
1236
670ec21d
NC
12372004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
1238
1239 * config/tc-crx.c: Support evaluating the difference between two
1240 symbols.
1241 * config/tc-crx.h: Likewise.
1242
406f8ff9 12432004-07-26 H.J. Lu <hongjiu.lu@intel.com>
38ce5b11
L
1244
1245 * config/tc-ia64.c (start_unwind_section): Set the linked-to
1246 section.
1247 (ia64_elf_section_change_hook): Set the linked-to section for
1248 SHT_IA_64_UNWIND.
1249
c05e9f04
NC
12502004-07-26 Dmitry Diky <diwil@spec.ru>
1251
1252 * config/tc-msp430.c: Add new subtargets: msp430x1610,
1253 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
1254 msp430xG438, msp430xG439.
1255
e9863d7f
DJ
12562004-07-25 Daniel Jacobowitz <dan@debian.org>
1257
1258 * doc/as.texinfo (Section, PushSection): Correct documentation
1259 for ELF.
1260
543613e9 12612004-07-21 Jan Beulich <jbeulich@novell.com>
20f0a1fc
NC
1262
1263 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
1264 permissible for the selected instruction suffix.
1265 (match_template): Don't permit 64-bit general purpose operands in
1266 32-bit mode.
1267 (finalize_imm): Permit 64-bit immediates.
1268 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
1269 specially except for the width of the used base and/or index
1270 registers. For 32-bit displacements, use sign-extended
1271 relocations only when using 64-bit addressing.
1272 Force zero displacement on rip-relative addressing when there is
1273 no other displacement.
1274 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
1275 specially except for the width of the used base and/or index
1276 registers.
1277 (parse_register): Disallow Reg64 registers in 32-bit mode.
1278
543613e9
NC
1279 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
1280 suffix if the instruction doesn't support it.
04ca8703 1281
01a3f561
MR
12822004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
1283
1284 * config/tc-mips.c (append_insn): Handle constant expressions with
1285 no associated relocation.
1286 (mips_ip): Cancel the expression after use for the Q format
1287 specifier.
1288 (parse_relocation): Return no relocation for unsupported
1289 operators.
1290 (my_getSmallExpression): Return no relocation if no relocation
1291 operators are used.
1292
e12904d2
DA
12932004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1294
1295 * config/obj-som.c (adjust_stab_sections): Add prototype.
1296 (obj_som_compiler, obj_som_version, obj_som_copyright,
1297 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
1298 * config/tc-hppa.c (update_subspace): Likewise.
1299 (is_defined_subspace): Amplify comment.
1300 * config/obj-som.h (som_frob_file): Add prototype.
1301
90c1602c
L
13022004-07-19 Christopher Faylor <cgf@timesys.com>
1303 H.J. Lu <hongjiu.lu@intel.com>
1304
1305 * subsegs.c (section_symbol): Don't create a new segment when
1306 existing segment is undefined.
1307
f263249b
RE
13082004-07-16 Richard Earnshaw <rearnsha@arm.com>
1309
1310 * config/tc-arm.c: Include include/opcode/arm.h.
1311 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
1312 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
1313 (FPU_ARCH_*): Delete.
1314 * Makefile.am: Update dependencies.
1315 * Makefile.in: Regenerate.
1316
152c65b9
NC
13172004-07-15 Nick Clifton <nickc@redhat.com>
1318
1319 * configure.in: Accept armbe as a big-endian arm configuration.
1320 * configure: Regenerate.
1321
0477af35
NC
13222004-07-13 Thomas Nystrom <thn@saeab.se>
1323
1324 * config/tc-i386.c (T_SHIFTOP): New constant.
1325 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
1326 (intel_el1): Handle '~'.
1327 (intel_get_token): Handle '<>', '&', '|' and '~'.
1328
13292004-07-13 Nick Clifton <nickc@redhat.com>
1330
1331 (md_assemble): Remove spurious newline from end of as_bad error
1332 message.
1333 (intel_e05_1): Likewise.
1334 (intel_e11): Likewise.
1335 (intel_match_token): Likewise.
1336
31302357
AS
13372004-07-11 Andreas Schwab <schwab@suse.de>
1338
1339 * config/tc-m68k.c: Convert to C90. Remove redundant
1340 declarations. Indentation fixup.
1341 [M68KCOFF]: Include "obj-coff.h" instead of declaring
1342 obj_coff_section ourselves.
04ca8703 1343
549f748d
JW
13442004-07-09 James E Wilson <wilson@specifixinc.com>
1345
1346 * config/tc-ia64.c (default_big_endian): New.
1347 (dot_byteorder, md_begin): Use it.
1348 (md_parse_option): Set it.
04ca8703 1349
1a320fbb
NC
13502004-07-09 Nick Clifton <nickc@redhat.com>
1351
1352 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
1353 * configure: Regenerate.
1354 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
1355 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
1356 sh_find_elf_flags if necessary.
1357
de7e6852
RS
13582004-07-08 Richard Sandiford <rsandifo@redhat.com>
1359
1360 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
1361 going to be split into more than one in-place addend, return 0
1362 for relocations against mergeable sections. Associate comments
1363 with code.
1364
1fe1f39c
NC
13652004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
1366
1367 * Makefile.am (CPU_TYPES): Add crx.
1368 (TARGET_CPU_CFILES): Add config/tc-crx.c.
1369 (TARGET_CPU_HFILES): Add config/tc-crx.h.
1370 (DEPTC_crx_elf): New target.
1371 (DEPOBJ_crx_elf): Likewise.
1372 (DEP_crx_elf): Likewise.
1373 * Makefile.in: Regenerate.
1374 * configure.in: Add crx* target.
1375 * configure: Regenerate.
1376 * config/tc-crx.c: New file.
1377 * config/tc-crx.h: New file.
1378 * NEWS: Mention new target.
1379
d9895649
NC
13802004-07-06 Nick Clifton <nickc@redhat.com>
1381
85fbca6a 1382 * config.in: Undefine TARGET_SYMBIAN by default.
c04f5787
AM
1383 * configure.in:
1384 * configure: Regenerate. Add sh-symbian-elf target. If
1385 selected define TARGET_SYMBIAN.
1386 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
1387 format if TARGET_SYMBIAN has been defined.
04ca8703 1388
e7bd9ea0
NC
1389 * output-file.c (output_file_create): Report the target format
1390 chosen when bfd_openw reports that it is invalid.
1391
d9895649
NC
1392 * config/obj-coff.c (coff_pseudo_table): Only define the weak
1393 pseudo for BFD based assemblers.
1394
871ec896
JR
13952004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
1396
1397 gas:
1398 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
1399 (md_parse_option): Remove redundant -isa testing.
1400 Make bfd_arch variable const.
1401 (md_show_usage): Make bfd_arch variable const.
1402
5a9ff93d
JW
14032004-07-03 James E Wilson <wilson@specifixinc.com>
1404
1405 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
1406 * config/tc-ia64.h (md_frag_check): Define.
1407
c87db184
CF
14082004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1409
1410 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
1411 externals.
1412 * doc/as.texinfo (Weak): Document PE weak symbols.
1413
3b91255e
RS
14142004-07-03 Richard Sandiford <rsandifo@redhat.com>
1415
1416 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
1417 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
1418 (mips_frob_file): Rework so that only a single pass through the
1419 relocs is needed. Allow %lo()s to have higher offsets than their
1420 corresponding %hi()s or %got()s.
1421
310ea308
NC
14222004-07-02 Nick Clifton <nickc@redhat.com>
1423
1424 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
1425 allow values which have come from undefined symbols.
1426 Always consider this fixup to have been processed as a reloc
1427 cannot be generated for it.
1428
09b935ac
AM
14292004-07-02 Alan Modra <amodra@bigpond.net.au>
1430
1431 * frags.h (struct frag): Add has_code and insn_addr fields.
1432 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
1433 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
1434 * config/tc-ppc.h (md_frag_check): Define.
1435
4d1cd5c7
MR
14362004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
1437
1438 * doc/Makefile.am (info): Rename goal to...
1439 (info-local): ... this, to preserve implicit dependencies.
1440 * doc/Makefile.in: Regenerate with automake 1.8.5.
1441
097f809a
NC
14422004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1443
1444 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
1445 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
1446 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
1447 (tc_gen_reloc): Likewise.
1448 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
1449 (m32r_parse_name): Likewise.
1450 (m32r_cgen_parse_fix_exp): Likewise.
1451 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
1452 (O_PIC_reloc): Likewise.
1453 (TC_CGEN_PARSE_FIX_EXP): Likewise..
1454 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
1455 for @GOTOFF, @GOT, @PLT.
1456
bb82af9f
NC
14572004-06-21 Jan Beulich <jbeulich@novell.com>
1458
1459 * gas/symbols.c: While discarding ordinary local absolute symbols
1460 when --strip-local-absolute is in effect, retain file symbols.
1461
990ae22a
AS
14622004-06-20 Andreas Schwab <schwab@suse.de>
1463
1464 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
1465 (md_parse_option): Likewise.
1466
32137342
NC
14672004-06-17 Jan Beulich <jbeulich@novell.com>
1468
1469 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
1470 * config/te-netware.h: New file.
1471 * config/te-ppcnw.h: Delete: Obsolete.
1472 * configure.in: Eliminate ill NetWare targets. Make generic
1473 NetWare target use proper emulation.
1474 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
1475 reference to new te-netware.h.
1476 * configure: Regenerate.
1477 * Makefile.in: Regenerate.
1478
f84d8e26
MS
14792004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
1480
1481 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
1482 comparison in .insn pseudo operation.
1483
587aac4e
AM
14842004-06-15 Alan Modra <amodra@bigpond.net.au>
1485
1486 * config/obj-coff.c (coff_adjust_section_syms): Use
1487 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
1488 (coff_frob_section): Likewise.
1489 * config/tc-mips.c (md_apply_fix3): Likewise.
1490 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
1491 (elf_frob_file_after_relocs): Likewise.
1492
2337eb33
DA
14932004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1494
b8fc22bc
DA
1495 * config/tc-hppa.c (log2): Rename to exact_log2.
1496 (pa_next_subseg): Delete unused function.
1497 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
1498 (create_new_subspace): Likewise.
1499
2337eb33
DA
1500 Bug gas/213
1501 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
1502 labels. Fix warning.
1503
53cb0362
DD
15042004-05-28 DJ Delorie <dj@redhat.com>
1505
1506 * config/tc-mn10300.h (tc_fix_adjustable): Define.
1507 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
1508 or non-merged symbols.
1509
888a75be
L
15102004-05-28 H.J. Lu <hongjiu.lu@intel.com>
1511
1512 * config/tc-ia64.c (remove_marked_resource): Save, clear and
1513 restore the old slot when inserting srlz.i/srlz.d.
1514
f6f9408f
JR
15152004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1516
1517 * Makefile.am: Regenerate dependecies.
1518 * Makefile.in: Regenerate.
1519 * config/tc-sh.c (valid_arch): Make unsigned.
1520 (preset_target_arch): Likewise.
1521 (md_begin): Use new architecture flags system.
1522 (get_specific): Likewise.
1523 (assemble_ppi): Likewise.
1524 (md_assemble): Likewise. Also fix error check for bad opcodes.
1525 (md_parse_option): Likewise. Also generate -isa values according
1526 to the table in bfd/cpu-sh.c instead of just constants. Also
1527 allow <arch>-up ISA variants.
1528 (sh_elf_final_processing): Replace if-else chain with a call to
1529 sh_find_elf_flags().
1530 * testsuite/gas/sh/arch: New directory.
1531 * testsuite/gas/sh/arch/arch.exp: New test script.
1532 * testsuite/gas/sh/arch/arch_expected.txt: New file.
1533 * testsuite/gas/sh/arch/sh.s: New file.
1534 * testsuite/gas/sh/arch/sh2.s: New file.
1535 * testsuite/gas/sh/arch/sh-dsp.s: New file.
1536 * testsuite/gas/sh/arch/sh2e.s: New file.
1537 * testsuite/gas/sh/arch/sh3-nommu.s: New file.
1538 * testsuite/gas/sh/arch/sh3.s: New file.
1539 * testsuite/gas/sh/arch/sh3-dsp.s: New file.
1540 * testsuite/gas/sh/arch/sh3e.s: New file.
1541 * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
1542 * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
1543 * testsuite/gas/sh/arch/sh4.s: New file.
1544 * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
1545 * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
1546 * testsuite/gas/sh/arch/sh4a.s: New file.
1547
580b9172
NC
15482004-05-28 Peter Barada <peter@the-baradas.com>
1549
1550 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
1551 with zero offset into mode 2 addressing to save a word.
1552
652ca075
L
15532004-05-27 H.J. Lu <hongjiu.lu@intel.com>
1554
1555 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
1556 (ar_is_only_in_integer_unit): New.
1557 (ar_is_only_in_memory_unit): New.
1558 (generate_unwind_image): Silence gcc on 32bit host.
1559 (md_assemble): Use ar_is_only_in_integer_unit instead of
1560 ar_is_in_integer_unit. Check AR access.
1561
60fed2d3
NC
15622004-05-27 Peter Barada <peter@the-baradas.com>
1563
1564 * config/tc-m68k.c (md_begin): Sort the opcode table into
1565 alphabetical order.
1566 (m68k_compare_opcode): New function to do the sorting.
1567
be8c092b
NC
15682004-05-24 Peter Barada <peter@the-baradas.com>
1569
1570 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
1571 addressing on MIT style operands.
1572 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
1573 w/mask addressing.
1574 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
1575 operands.
1576
1181c20e
AM
15772004-05-23 Alan Modra <amodra@bigpond.net.au>
1578
1579 * expr.c (operand, operator): Don't reject '++' and '--'.
1580
20e56c33
RS
15812004-05-20 Richard Sandiford <rsandifo@redhat.com>
1582
1583 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
1584 dwarf tables.
1585
04ca8703 15862004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
1587
1588 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
1589 * configure: Regenerate.
1590
0da76f83
NC
15912004-05-13 Paul Brook <paul@codesourcery.com>
1592
1593 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
1594
4b363073
NC
15952004-05-13 Joel Sherrill <joel@oarcorp.com>
1596
1597 * configure.in (or32-*-rtems*): Switch to elf.
1598 * configure: Regenerate.
1599
9598fbe5
NC
16002004-05-13 Nick Clifton <nickc@redhat.com>
1601
1602 * po/fr.po: Updated French translation.
1603
22fe14ad
NC
16042004-05-11 Nick Clifton <nickc@redhat.com>
1605
1606 * doc/as.texinfo (Section): Document G and T flags to .section
1607 directive. Document the extra arguments that the G flag
1608 requires. Document the #tls flag.
1609
16102004-05-11 H.J. Lu <hongjiu.lu@intel.com>
1611
1612 * subsegs.c (section_symbol): Create a new section symbol if
1613 the existing one doesn't match.
1614 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
1615
532c738a
RS
16162004-05-07 Richard Sandiford <rsandifo@redhat.com>
1617
1618 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
1619 to cope with VR4181A errata MD(1) and MD(4).
1620
0503b355
BF
16212004-05-07 Brian Ford <ford@vss.fsi.com>
1622
1623 * NEWS: Mention .secrel32 for pe[i]-i386.
1624
daeea990
AO
16252004-05-07 Alexandre Oliva <aoliva@redhat.com>
1626
1627 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
1628 (HANDLE_ALIGN): New.
1629
bfbdcf04
DJ
16302004-05-06 Daniel Jacobowitz <dan@debian.org>
1631
1632 * Makefile.am (DIST_SUBDIRS): Define.
1633 * aclocal.m4: Regenerate with automake 1.8.4.
1634 * Makefile.in: Likewise.
1635 * doc/Makefile.in: Likewise.
1636
5e819f9c
JW
16372004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
1638
1639 * config/tc-ia64.c (dot_serialize): Declare.
1640 (dot_serialize): New function.
1641 (md_pseudo_table): Add ".serialize.data" and
1642 ".serialize.instruction" directives.
1643
e5976317
NC
16442004-05-06 Nick Clifton <nickc@redhat.com>
1645
1646 * messages (as_internal_value_out_of_range): Print a message about
1647 a value being out of range. Be consistent about whether the
1648 values are printed in decimal or hexadecimal.
1649 (as_warn_value_out_of_range): Generate a warning message about an
1650 out of range value.
1651 (as_bad_value_out_of_range): Generate an error message about an
1652 out of range value.
1653 * as.h: Prototype the new functions.
1654 * config/tc-alpha.c (insert_operand): Use new function.
1655 * config/tc-arc.c (arc_insert_operand): Likewise.
1656 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
1657 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
1658 * config/tc-ppc.c (ppc_insert_operand): Likewise.
1659 * config/tc-s390.c (s390_insert_operand): Likewise.
1660 * config/tc-v850.c (v850_insert_operand): Likewise.
1661
996991aa
AO
16622004-05-05 Alexandre Oliva <aoliva@redhat.com>
1663
1664 * configure.in: Set em=linux for frv-*-*linux*.
1665 * configure: Rebuilt.
1666 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
1667 (frv_md_fdpic_enabled): New.
1668 * config/tc-frv.c (frv_md_fdpic_enabled): New.
1669 (DEFAULT_FDPIC): New.
1670 (frv_flags): Use DEFAULT_FDPIC.
1671 (frv_pic_flag): Likewise.
1672 (OPTION_NOPIC): New.
1673 (md_longopts): Add -mnopic.
1674 (md_parse_option): Handle it.
1675 (md_show_usage): Add -mfdpic and -mnopic.
1676
6b6e92f4
NC
16772004-05-05 Peter Barada <peter@the-baradas.com>
1678
1679 * config/tc-m68k.c: Add find_cf_chip to print list of valid
1680 chips for invalid coldfire instructions, rename selectors
1681 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
1682 add current_chip to track which chip is referred to(including save/restore),
1683 use current_chip to select control registers, not current_arch.
1684 (md_show_usage): Add new chips.
1685 * doc/c-m68k.texi: Document new command line switches.
1686
6f079ae3
JJ
16872004-05-05 Jakub Jelinek <jakub@redhat.com>
1688
1689 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
1690 (NOP_OPCODE): Define.
1691 (s390_align_code): Remove prototype.
1692 * tc-s390.c (s390_align_code): Remove.
1693
2d6ed997
L
16942004-05-04 H.J. Lu <hongjiu.lu@intel.com>
1695
1696 * config/tc-ia64.c (make_unw_section_name): Removed.
1697 (start_unwind_section): New function.
1698 (generate_unwind_image): Take const segT instead of const
1699 char *.
1700 (dot_handlerdata): Adjusted.
1701 (dot_endp): Likewise.
1702
b9f18452
L
17032004-05-02 H.J. Lu <hongjiu.lu@intel.com>
1704
1705 * config/obj-elf.c (obj_elf_change_section): Allow the
1706 ".note.GNU-stack" section has SHF_EXECINSTR.
1707
fafe6678
L
17082004-05-02 H.J. Lu <hongjiu.lu@intel.com>
1709
1710 * config/obj-elf.c (get_section): Return bfd_boolean.
1711 (obj_elf_change_section): Call bfd_get_section_by_name_if
1712 instead of bfd_map_over_sections.
1713
86654c12
L
17142004-04-30 H.J. Lu <hongjiu.lu@intel.com>
1715
1716 * config/obj-elf.c (get_section): New function.
1717 (obj_elf_change_section): Support multiple sections with same
1718 name.
1719
376eb240
NC
17202004-04-30 Nick Clifton <nickc@redhat.com>
1721
1722 * config/tc-arm.c (create_register_alias): Fix typo checking for
1723 case sensitive register aliases.
1724 (co_proc_number): Use error message string in all_reg_maps[]
1725 array.
1726 (cp_reg_required_here): Likewise.
1727 (fp_reg_required_here): Likewise.
1728
8a7140c3
NC
17292004-04-29 Brian Ford <ford@vss.fsi.com>
1730
1731 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
1732
3e722fb5
CD
17332004-04-28 Chris Demetriou <cgd@broadcom.com>
1734
1735 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
1736 (load_address, macro, mips_ip, md_parse_option)
1737 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
1738 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
1739 embedded-PIC handling, and update comments.
1740 (SWITCH_TABLE): Remove.
1741 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
1742 (enum mips_pic_level): Remove EMBEDDED_PIC.
1743 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
1744 (TC_FORCE_RELOCATION): Update comment.
1745 * ecoff.c (ecoff_build_lineno): Add comment about some code that
1746 might be safe to remove now that MIPS embedded-PIC is gone.
1747
351e2b5a
DA
17482004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1749
1750 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
1751 call to obj_set_subsection_attributes.
1752 (obj_som_init_stab_section): Likewise.
1753 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
1754 (pa_def_subspaces): Provide comdat default.
1755 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
1756 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
1757 calls to create_new_subspace and update_subspace to pass comdat flag.
1758 (create_new_subspace, update_subspace): Add new comdat argument. Use
1759 it in calls to obj_set_subsection_attributes.
1760 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
1761 and use of comdat, common and dup_comm parameters.
1762
f5842774
L
17632004-04-26 H.J. Lu <hongjiu.lu@intel.com>
1764
1765 * config/obj-elf.c (obj_elf_change_section): Check if the old
1766 group name is NULL before comparison.
1767
558fe4a7
CD
17682004-04-23 Chris Demetriou <cgd@broadcom.com>
1769
1770 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
1771
81a21e38
TS
17722004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1773
1774 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
1775
17762004-04-23 Chris Demetriou <cgd@broadcom.com>
1ffcab4b
CD
1777
1778 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
1779 (OPTION_MEMBEDDED_PIC): Remove.
1780 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
1781 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
1782 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
1783 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
1784 (OPTION_ELF_BASE): Renumber.
1785 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
1786 (md_show_usage): Remove mention of -membedded-pic.
1787 * doc/as.texinfo: Remove mention of -membedded-pic.
1788
4d0d148d
TS
17892004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1790
1791 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
1792 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
1793 a.out support.
1794 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
1795 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
1796 USE_GLOBAL_POINTER_OPT.
1797
017315e4
TS
17982004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1799
1800 * config/tc-mips.c (macro): One more use of load_delay_nop.
1801
269137b2
TS
18022004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1803
1804 * config/tc-mips.c (load_delay_nop): New function.
1805 (load_address, macro): Use load_delay_nop() to build a nop
1806 which can be omitted with gpr_interlocks.
1807
24772049
TS
18082004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1809
1810 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
1811 cop_interlocks): Remove superfluous CPU entries.
1812
06516a5e
PB
18132004-04-22 Paul Brook <paul@codesourcery.com>
1814
1815 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
1816
fd99574b
NC
18172004-04-22 Peter Barada <peter@the-baradas.com>
1818
1819 * NEWS: Added support for EMAC instructions and MAC/EMAC
1820 Motorola syntax.
1821 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
1822 scale factor tokens, trailing_ampersand to mark mask addressing
1823 for MAC/EMAC instructions.
1824 * config/m68k-parse.y: Add options_ampersand clause, '<<',
1825 '>>'.
1826 (yylex): Handle '>', '<', and '&' following '+'.
1827 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
04ca8703 1828 architectures in archs[].
fd99574b
NC
1829 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
1830 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
1831 respectively.
1832 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
1833 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
1834 cases.
1835 Add EMAC operands to init_table[].
1836
69b97547
NC
18372004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
1838
1839 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
1840 state.
1841 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
1842 * config/tc-arm.c (enum mstate): Delete from here.
1843 (mapping_state): Remove the static mapstate variable and instead
1844 store the state in the segment. This allows a per-section mapping
1845 state. Handle and ignore MAP_UNDEFINED states.
1846 (arm_elf_change_section): Get the current mapping state from the
1847 new section.
1848 (s_ltorg): Set the mapping state to MAP_DATA.
1849 (arm_cleanup): Use arm_elf_change_section to get the mapping state
1850 for each pool as it is emitted.
1851
18522004-04-22 Nick Clifton <nickc@redhat.com>
1853
1854 * config/tc-arm.h: Formatting tidy ups.
1855
7a7f4e42
CD
18562004-04-20 Chris Demetriou <cgd@broadcom.com>
1857
1858 * NEWS: Note that MIPS -membedded-pic option is deprecated.
1859
6482c264
NC
18602004-04-20 DJ Delorie <dj@redhat.com>
1861
1862 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
1863 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
1864 [TE_PE] (O_secrel): Define.
1865 [TE_PE] (x86_pe_cons_fix_new): New.
1866 [TE_PE] (pe_directive_secrel): Likewise.
1867 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
1868
5bf10039
EC
18692004-04-19 Eric Christopher <echristo@redhat.com>
1870
c04f5787
AM
1871 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
1872 of previous patch for fix in gcc.
5bf10039 1873
77cd6497
JJ
18742004-04-19 Jakub Jelinek <jakub@redhat.com>
1875
1876 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
1877
b8861cfb
NS
18782004-04-19 Nathan Sidwell <nathan@codesourcery.com>
1879
1880 * read.c (do_align): Call md_flush_pending_output, if defined.
1881
f4c724fc
AM
18822004-04-16 Alan Modra <amodra@bigpond.net.au>
1883
1884 * expr.c (operand): Correct checks for ++ and --.
1885
a4b6e8f6
L
18862004-04-14 H.J. Lu <hongjiu.lu@intel.com>
1887
1888 * config/tc-generic.c: Add some comments.
1889
d766e8ec
RS
18902004-04-14 Richard Sandiford <rsandifo@redhat.com>
1891
1892 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
1893 -{no-}mfix-vr4122-bugs.
1894 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
1895 (append_insn, mips_emit_delays): Update accordingly.
1896 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
1897 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
1898 (md_parse_option): Update after above changes.
1899 (md_show_usage): Add -mfix-vr4120.
1900
ed9589d4
BW
19012004-04-13 Bob Wilson <bob.wilson@acm.org>
1902
1903 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
1904 of .section directive; add a reference to the ELF .subsection
1905 directive.
1906
097dba13
NC
19072004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1908
1909 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
1910 in parallel.
1911
279500de
TS
19122004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1913
1914 * Makefile.am: Remove mips from aout targets.
1915 * Makefile.in: Regenerate.
1916 * configure.in: Remove mips-dec-bsd* target.
1917 * configure: Regenerate.
1918
b7d7dc63
AM
19192004-04-07 Alan Modra <amodra@bigpond.net.au>
1920
1921 PR 96
1922 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
1923 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
1924 Update "mapping". Restrict some @ modifiers to 32 bit.
1925
f55629b8
KK
19262004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
1927 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1928
1929 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
1930 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
1931 dont_adjust_reloc_32 is set.
1932 (md_longopts): Add option -renesas.
1933 (md_parse_option, md_show_usage): Likewise.
1934 * doc/c-sh.texi: Likewise.
1935
a7844384
NC
19362004-04-01 Dave Korn <dk@artimi.com>
1937
1938 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
1939 hi16 and lo16 fixS structs.
1940 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
1941 exactly the same way as for RELOC_DLX_REL16.
1942 (machine_ip): properly respect LO flag in the_insn and
1943 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
1944 (md_apply_fix3): apply RELOC_DLX_LO16.
1945
6c71dbc4
SS
19462004-03-30 Stan Shebs <shebs@apple.com>
1947
1948 Remove long-obsolete MPW support.
1949 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
1950 * configure.in: Remove mention of ppc-*-mpw* config.
1951 * configure.in: Likewise.
1952
7cc69913
NC
19532004-03-30 Nick Clifton <nickc@redhat.com>
1954
1955 * config/tc-arm.c (meabi_flags): Make its use conditional upon
1956 OBJ_ELF being defined.
1957
53fbb48a
AM
19582004-03-27 Alan Modra <amodra@bigpond.net.au>
1959
1960 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
1961
d507cf36
PB
19622004-03-23 Paul Brook <paul@codesourcery.com>
1963
1964 * config/tc-arm.c (meabi_flags): New variable.
1965 (arm_parse_eabi): New function.
1966 (md_begin): Set flags for EABI v3.
1967 (arm_eabis): Add.
1968 (arm_long_opts): Add meabi.
1969 * doc/as.texinf <ARM>: Document -meabi.
1970 * doc/c-arm.texi: Ditto.
1971
88d65ad6
BW
19722004-03-22 Bob Wilson <bob.wilson@acm.org>
1973
1974 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
1975 tables even when use_literal_section flag is not set.
1976
13ef8878
AM
19772004-03-22 Alan Modra <amodra@bigpond.net.au>
1978
1979 * config/tc-sh.c: Remove trailing whitespace.
1980
1048a9ba
HPN
19812004-03-22 Hans-Peter Nilsson <hp@axis.com>
1982
1983 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
1984 --mul-bug-abort and the default behavior.
1985 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
1986 (err_for_dangerous_mul_placement): New variable.
1987 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
1988 macros.
1989 (md_cris_relax_table): Have placeholder for STATE_MUL.
1990 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
1991 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
1992 case doing nothing.
1993 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
1994 STATE_BYTE)>: Ditto.
1995 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
1996 alignment and position of this frag, emit error message if
1997 suspicious.
1998 (md_assemble): For a multiply insn and when checking it,
1999 transform the current frag into a special frag for that purpose.
2000 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
2001 OPTION_MULBUG_ABORT_ON>: Handle new options.
2002
a7877748
BW
20032004-03-19 Bob Wilson <bob.wilson@acm.org>
2004
2005 * config/tc-xtensa.c (mark_literal_frags): New function.
2006 (xtensa_move_literals): Call mark_literal_frags for all literal
2007 segments, including init and fini literal segments.
2008 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
2009
9992270f
DA
20102004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2011
2012 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
2013 (pa_comm): Set BSF_OBJECT in symbol flags.
2014
6e1772d5
AM
20152004-03-19 Alan Modra <amodra@bigpond.net.au>
2016
2017 * Makefile.am: Run "make dep-am".
2018 * Makefile.in: Regenerate.
2019 * doc/Makefile.in: Regenerate.
2020 * config.in: Regenerate.
2021 * po/gas.pot: Regenerate.
2022
3e4caed2
NS
20232004-03-18 Nathan Sidwell <nathan@codesourcery.com>
2024
c95b35a9
NS
2025 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
2026 (demand_empty_rest_of_line): Issue an error here.
2027 (ignore_rest_of_line): Silently skip to end.
2028 (demand_copy_string): Issue an error, not warning.
2029 (equals): Likewise.
2030 * config/obj-elf.c (obj_elf_section_name): Likewise.
2031 (obj_elf_section): Likewise.
2032 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
2033 (arc_extinst): Likewise.
2034 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
2035 (dot_spill): Likewise.
2036 (dot_unwabi): Likewise.
2037 (dot_prologue): Likewise.
2038
3e4caed2
NS
2039 * expr.c (operand): Reject ++ and --.
2040 (operator): Likewise.
2041
2ce4cc60
KK
20422004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2043
2044 * config/tc-sh.c: Include dw2gencfi.h.
2045 (sh_cfi_frame_initial_instructions): New function.
2046 (sh_regname_to_dw2regnum): Likewise.
2047 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
2048 file.
2049 (TARGET_USE_CFIPOP): Define.
2050 (tc_cfi_frame_initial_instructions): Likewise.
2051 (tc_regname_to_dw2regnum): Likewise.
2052 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
2053 * Makefile.am: Update dependencies.
2054 * Makefile.in: Regenerate.
2055
9183ed4b
AM
20562004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2057
2058 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2059 * configure: Regenerate.
2060
00bbdfe7
BW
20612004-03-12 Bob Wilson <bob.wilson@acm.org>
2062
2063 * read.c (s_leb128): Call md_flush_pending_output.
2064
0f10071e
ML
20652004-03-12 Michal Ludvig <mludvig@suse.cz>
2066
2067 * config/tc-i386.c (output_insn): Handle PadLock instructions.
2068 * config/tc-i386.h (CpuPadLock): New define.
2069 (CpuUnknownFlags): Added CpuPadLock.
2070
84c84759
AS
20712004-03-07 Andreas Schwab <schwab@suse.de>
2072
2073 * doc/c-hppa.texi (HPPA Directives): Fix typo.
2074
6ec51dba
RH
20752004-03-07 Richard Henderson <rth@redhat.com>
2076
2077 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
2078 (cfi_finish): Likewise for fde.
2079
bae25f19
L
20802004-03-05 H.J. Lu <hongjiu.lu@intel.com>
2081
2082 * config/tc-ia64.c (md_assemble): Properly handle NULL
2083 align_frag.
2084 (ia64_handle_align): Don't abort if failed to add a stop bit.
2085
ab509236
L
20862004-03-04 H.J. Lu <hongjiu.lu@intel.com>
2087
2088 * Makefile.in: Regenerated.
2089 * aclocal.m4: Likewise.
2090 * configure: Likewise.
2091 * doc/Makefile.in: Likewise.
2092
d9201763
L
20932004-03-03 H.J. Lu <hongjiu.lu@intel.com>
2094
2095 * config/tc-ia64.c (dot_align): New.
2096 (ia64_do_align): Make it static.
2097 (md_pseudo_table): Use "dot_align" for "align".
2098 (ia64_md_do_align): Don't set align_frag here.
2099 (ia64_handle_align): Add a stop bit to the previous bundle if
2100 needed.
2101
2102 * config/tc-ia64.h (ia64_do_align): Removed.
2103
ae51a426
JR
21042003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
2105
2106 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
2107 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
2108 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
2109 the most general type or the user specifically requested it.
2110 (md_assemble): Add a new error message for when an instruction
2111 is understood, but is not allowed due to an -isa option.
2112
9545c4ce
L
21132004-03-02 H.J. Lu <hongjiu.lu@intel.com>
2114
2115 * config/tc-ia64.c (align_frag): New.
2116 (md_assemble): Set the tc_frag_data field in align_frag for
2117 IA64_OPCODE_FIRST instructions.
2118 (ia64_md_do_align): Set align_frag.
2119 (ia64_handle_align): Add a stop bit if needed.
2120
2121 * config/tc-ia64.h (TC_FRAG_TYPE): New.
2122 (TC_FRAG_INIT): New.
2123
676a64f4
RS
21242004-03-01 Richard Sandiford <rsandifo@redhat.com>
2125
2126 * config/tc-frv.c (fr400_audio): New variable.
2127 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
2128 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
2129 (target_implements_insn_p): New function.
2130 (md_assemble): Report an error if the processor doesn't implement
2131 the instruction.
2132
bd337dde
NC
21332004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2134
2135 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
2136 (md_parse_option): Ditto.
2137 (OPTION_NO_SPECIAL_M32R): Added.
2138 (md_show_usage): Document it.
2139 (enable_speial_m32r): Changed a default value from 0 to 1.
2140 * doc/c-m32r.texi: Document the -no-bitinst option.
2141
78878175
NC
21422004-02-27 Nick Clifton <nickc@redhat.com>
2143
2144 * config/tc-sh.c (get_operand): Revert previous delta.
2145 (tc_gen_reloc): Check for an unknown reloc type before processing
2146 the addend.
2147
1d6d62a4
MS
21482004-02-27 Hannes Reinecke <hare@suse.de>
2149
2150 * config/tc-s390.c (s390_insn): Correct range check for opcode in
2151 .insn pseudo operation.
2152
4aa3e325
NC
21532004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
2154
2155 * config/tc-sh.c (get_operand): In case of #Imm, check has been
2156 added for wrong syntax.
2157
73369e65
EC
21582004-02-26 Eric Christopher <echristo@redhat.com>
2159
2160 * config/tc-mips.c (mips_dwarf2_addr_size): New.
2161 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
2162
6a5709a5
JR
21632004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
2164
2165 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
2166 nibble types to assembler.
2167
95385380
FF
21682004-02-25 Fred Fish <fnf@redhat.com>
2169
2170 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
2171
b5e0fabd
JW
21722004-02-20 James E Wilson <wilson@specifixinc.com>
2173
2174 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
2175 finalize_syms.
2176 (fixup_unw_records): New arg before_relax. Pass to slot_index.
2177 (ia64_estimate_size_before_relax): New.
2178 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
2179 (generate_unwind_image): Pass 1 to fixup_unw_records.
2180 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
2181 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
2182
2f01ffbf
JJ
21832004-02-19 Jakub Jelinek <jakub@redhat.com>
2184
2185 * stabs.c (generate_asm_file): Avoid warning about use of
2186 uninitialized variable.
2187
9c59842f
JW
21882004-02-18 David Mosberger <davidm@hpl.hp.com>
2189
2190 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
2191 body, and endp, allow unwind records which do not have a "t"
2192 (time/instruction) field.
2193
34920d91
NC
21942004-02-17 Petko Manolov <petkan@nucleusys.com>
2195
2196 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
2197 (do_mav_dspsc_2): Likewise.
2198 Fix accumulator registers move opcodes.
2199
4dde8e61 22002004-02-13 Hannes Reinecke <hare@suse.de>
13ef8878 2201 Jakub Jelinek <jakub@redhat.com>
4dde8e61
AJ
2202
2203 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
2204
936cf02e
JW
22052004-02-10 Steve Ellcey <sje@cup.hp.com>
2206
2207 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
2208 (tc_frob_symbol): New macro definition.
2209 * config/tc-ia64.c (ia64_frob_symbol): New routine.
2210
e41f12f3
DJ
22112004-02-09 Daniel Jacobowitz <drow@mvista.com>
2212
2213 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
2214 read-only.
2215
a8a3b3b2
NS
22162004-02-09 Nathan Sidwell <nathan@codesourcery.com>
2217
2218 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
2219 (TC_CASE_SENSITIVE): ... this.
2220 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
2221 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
2222
c97b7ef6
JW
22232004-02-06 James E Wilson <wilson@specifixinc.com>
2224
2225 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
2226 (generate_unwind_image): Re-add it here.
2227
e4475e39
NS
22282004-02-06 Nathan Sidwell <nathan@codesourcery.com>
2229
2230 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
2231 * read.h (SKIP_WHITESPACE): Turn into an expression.
2232 * read.c (read_a_source_file): A pseudo is removed by having a
2233 NULL handler.
2234
5738bc24
JW
22352004-02-05 James E Wilson <wilson@specifixinc.com>
2236
2237 * config/tc-ia64.c (output_endp): New.
2238 (count_bits): Delete.
2239 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
2240 endp unwind records.
2241 (fixup_unw_records): Handle endp unwind records. Delete code for
2242 shortening prologue regions not followed by a body record.
2243 (dot_endp): Call add_unwind_entry to emit endp unwind record.
2244 * config/tc-ia64.h (unw_record_type): Add endp.
2245
d6e78c11
JW
22462004-02-03 James E Wilson <wilson@specifixinc.com>
2247
2248 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
2249 fill padding bytes with zeroes.
2250 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
2251 sets unwind_record slot_number and slot_frag fields.
2252
f6a22291
MR
22532004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2254
2255 * config/tc-mips.c (add_got_offset_hilo): New function.
2256 (macro): Use load_register() and add_got_offset_hilo() to load
2257 constants instead of hardcoding code sequences throughout.
2258
127cab00
L
22592004-01-28 H.J. Lu <hongjiu.lu@intel.com>
2260
2261 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
2262
6358301e
NC
22632004-01-26 Bernardo Innocenti <bernie@develer.com>
2264
2265 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
2266 like m68k-elf.
2267 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
2268 of hard-coded test for TARGET_OS=elf.
2269
c8978940
CD
22702004-01-24 Chris Demetriou <cgd@broadcom.com>
2271
2272 * config/tc-mips.c (hilo_interlocks): Change definition
2273 so that MIPS32, MIPS64 and later ISAs are included, along with
2274 the already-included machines. Update comments.
2275
c3ba240c
DJ
22762004-01-23 Daniel Jacobowitz <drow@mvista.com>
2277
2278 * config/tc-arm.c (tc_gen_reloc): Improve error message for
2279 undefined local labels.
2280
e864ceca
RS
22812004-01-23 Richard Sandiford <rsandifo@redhat.com>
2282
2283 * config/tc-mips.c (load_address, macro): Update comments about
2284 NewABI GP relaxation.
2285
67c0d1eb
RS
22862004-01-23 Richard Sandiford <rsandifo@redhat.com>
2287
2288 * config/tc-mips.c (macro_build): Remove place and counter arguments.
2289 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
2290 (mips16_macro_build, macro_build_jalr): Remove counter argument.
2291 (set_at, load_register, load_address, move_register): Likewise.
2292 (load_got_offset, add_got_offset): Likewise.
2293 Update all calls and tidy accordingly.
2294
584892a6
RS
22952004-01-23 Richard Sandiford <rsandifo@redhat.com>
2296
2297 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
2298 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
2299 (RELAX_USE_SECOND): Bump to 0x10000.
2300 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
2301 (mips_macro_warning): New variable.
2302 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
2303 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
2304 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
2305 of RELAX_ENCODE.
2306 (append_insn): Update mips_macro_warning.sizes.
2307 (macro_start, macro_warning, macro_end): New functions.
2308 (macro_build): Don't emit warnings here.
2309 (macro_build_lui, md_estimate_size_before_relax): ...or here.
2310 (md_convert_frag): Check for cases where one macro alternative
2311 needs a warning and the other doesn't. Emit a warning if the
2312 longer sequence was chosen.
2313
4d7206a2
RS
23142004-01-23 Richard Sandiford <rsandifo@redhat.com>
2315
2316 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
2317 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
2318 the first sequence, the size of the second sequence, and a flag
2319 that says whether we should warn.
2320 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
2321 (RELAX_FIRST, RELAX_SECOND): New.
2322 (mips_relax): New variable.
2323 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
2324 (append_insn): Remove "place" argument. Use mips_relax.sequence
2325 rather than "place" to check whether we're expanding the second
2326 alternative of a relaxable macro. Remove redundant check for
2327 branch relaxation. If generating a normal insn, and there
2328 is not enough room in the current frag, call relax_close_frag()
2329 to close it. Update mips_relax.sizes[]. Emit fixups for the
2330 second version of a relaxable macro. Record the first relaxable
2331 fixup in mips_relax. Remove tc_gen_reloc workaround.
2332 (macro_build): Remove all uses of "place". Use mips_relax.sequence
2333 in the same way as in append_insn.
2334 (mips16_macro_build): Remove "place" argument.
2335 (macro_build_lui): As for macro_build. Don't drop the add_symbol
2336 when generating the second version of a relaxable macro.
2337 (load_got_offset, add_got_offset): New functions.
2338 (load_address, macro): Use new relaxation machinery. Remove
2339 tc_gen_reloc workarounds.
2340 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
2341 version of a relaxable macro is needed. Return -RELAX_SECOND if the
2342 first version is needed.
2343 (tc_gen_reloc): Remove relaxation handling.
2344 (md_convert_frag): Go through the fixups for a relaxable macro and
2345 mark those that belong to the unneeded alternative as done. If the
2346 second alternative is needed, adjust the fixup addresses to account
2347 for the deleted first alternative.
2348
0530d30a
RS
23492004-01-23 Richard Sandiford <rsandifo@redhat.com>
2350
2351 * frags.h (frag_room): Declare.
2352 * frags.c (frag_room): New function.
2353 * doc/internals.texi: Document it.
2354
048cdf86
TS
23552004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2356
2357 * config/tc-mips.c (append_insn): Don't do r3900 interlock
2358 optimization for -mtune=r3900, as this will break on other CPUs.
2359
28d39d1a
NC
23602004-01-11 Tom Rix <tcrix@worldnet.att.net>
2361
2362 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
73369e65 2363 be relaxed, use fixup.
28d39d1a
NC
2364 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
2365
26664553
JJ
23662004-01-19 Jakub Jelinek <jakub@redhat.com>
2367
2368 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
2369 precision operands.
2370
895921c9
MR
23712004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2372
2373 * config/tc-mips.c (append_insn): Properly detect variant frags
2374 that preclude swapping of relaxed branches. Correctly swap
2375 instructions between frags when dealing with relaxed branches.
2376
f8b73030
MR
23772004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2378
2379 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
2380 throughout.
2381 * aclocal.m4: Regenerate.
2382 * configure: Regenerate.
2383
ca9a79a1 23842004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
73369e65 2385
ca9a79a1
NC
2386 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
2387 manipulation insns.
2388
cc3d92a5
RS
23892004-01-12 Richard Sandiford <rsandifo@redhat.com>
2390
2391 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
2392 reloc, reserve space for the delay slot as well as the jalr itself.
2393
e45d0630
PB
23942004-01-09 Paul Brook <paul@codesourcery.com>
2395
2396 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
2397 (do_vfp_sp2_from_reg2): New function.
2398 (insns): Use them.
2399 (do_vfp_dp_from_reg2): Check return values properly.
2400
81912461
ILT
24012004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
2402
78849248
ILT
2403 * config/tc-mips.c (warn_nops): Remove static variable.
2404 (macro): Remove test of warn_nops.
2405 (md_shortops): Remove 'n'.
2406 (md_parse_option): Remove 'n' case.
2407 (md_show_usage): Remove -n.
2408 * doc/as.texinfo (Overview): Remove MIPS -n option.
2409 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
2410 * NEWS: Mention removal of MIPS -n option.
2411
81912461
ILT
2412 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
2413 (cop_interlocks): Check ISA level.
2414 (cop_mem_interlocks): Define.
2415 (reg_needs_delay): Check cop_interlocks rather than
2416 ISA_HAS_COPROC_DELAYS.
2417 (append_insn): Likewise. Use cop_mem_interlocks rather than
2418 directly checking mips_opts.isa.
2419 (mips_emit_delays): Likewise.
2420
73f20958
L
24212004-01-07 H.J. Lu <hongjiu.lu@intel.com>
2422
2423 * config/tc-ia64.c (unwind): Move next_slot_number and
2424 next_slot_frag to ...
2425 (unw_rec_list): Here.
2426 (free_list_records): Removed.
2427 (output_unw_records): Likewise.
2428 (generate_unwind_image): Make it void.
2429 (alloc_record): Initialize next_slot_number and next_slot_frag.
2430 (slot_index): Take .org, .space and .align into account.
2431 (fixup_unw_records): Don't set slot_number to 0. Use
2432 list->next_slot_number and list->next_slot_frag instead of
2433 unwind.next_slot_number and unwind.next_slot_frag.
2434 (ia64_convert_frag): New.
2435 (generate_unwind_image): Generate a rs_machine_dependent frag
2436 for unwind record.
2437 (emit_one_bundle): Use list->next_slot_number and
2438 list->next_slot_frag instead of unwind.next_slot_number and
2439 unwind.next_slot_frag.
2440
2441 * config/tc-ia64.h (md_convert_frag): Defined as
2442 ia64_convert_frag.
2443 (md_estimate_size_before_relax): Defined as (f)->fr_var.
2444
99d09cdb
AO
24452004-01-06 Alexandre Oliva <aoliva@redhat.com>
2446
2447 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
2448 * config/tc-frv.h (md_apply_fix3): Don't define.
2449 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
2450 operands.
2451 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2452 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
2453 * config/tc-frv.c (line_separator_chars): Add `!'.
2454 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
2455 * config/tc-frv.c (md_assemble): Clear insn upfront.
2456 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2457 * config/tc-frv.c (OPTION_FDPIC): New macro.
2458 (md_longopts): Add mfdpic.
2459 (md_parse_option): Handle it.
2460 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
2461 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
2462 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
2463 (frv_pic_ptr): Parse funcdesc.
2464
4a4c4a1d
MR
24652004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2466
2467 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
2468 gasver.texi. Remove duplicate symbol definitions for texi2pod.
2469
2251dd89
MR
24702004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2471
2472 * Makefile.am (Makefile): Move the dependency on
2473 $(BFDDIR)/configure.in to...
2474 (CONFIG_STATUS_DEPENDENCIES): ... here.
2475 (AUTOMAKE_OPTIONS): Require automake 1.8.
2476 * Makefile.in: Regenerate.
2477 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
2478 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
2479 $(BFDDIR)/configure.in here as well.
2480 * doc/Makefile.in: Regenerate.
2481
c6581168
MR
24822004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2483
2484 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
2485 * Makefile.in: Regenerate.
2486 * aclocal.m4: Regenerate.
2487 * doc/Makefile.am (install, install-info): Remove.
2488 (install-data-local): A new hook for install-info.
2489 (AUTOMAKE_OPTIONS): Require automake 1.8.
2490 * doc/Makefile.in: Regenerate.
2491
303e7b79
NC
24922004-01-02 Nutan Singh <nutan@kpitcummins.com>
2493
2494 * doc/c-sh.texi: Update description about floating point behavior
2495 of SH family.
2496
b50c15dc
NC
24972004-01-02 Bernardo Innocenti <bernie@develer.com>
2498
2499 * configure.in: Add m68k-uClinux target.
2500 * configure: Regenerate.
7de9afa2 2501
c9e214e5 2502For older changes see ChangeLog-0203
08d56133
NC
2503\f
2504Local Variables:
2505mode: change-log
2506left-margin: 8
2507fill-column: 74
2508version-control: never
2509End:
This page took 0.370491 seconds and 4 git commands to generate.