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