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