10ae02c1da2b83af87ca3c960e40bac43f1c6595
[binutils-gdb.git] / gas / ChangeLog
1 2007-02-21 Alan Modra <amodra@bigpond.net.au>
2
3 PR 4082
4 * config/tc-avr.h (TC_FX_SIZE_SLACK): Define.
5
6 2007-02-20 Thiemo Seufer <ths@mips.com>
7
8 * doc/c-mips.texi: Document 74kc, 74kf, 74kx.
9
10 2007-02-20 Thiemo Seufer <ths@mips.com>
11
12 * config/tc-mips.c (mips_cpu_info_table): Add 74K configurations.
13
14 2007-02-20 Thiemo Seufer <ths@mips.com>
15 Chao-Ying Fu <fu@mips.com>
16
17 * config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
18 ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
19 (macro_build): Add case '2'.
20 (macro): Expand M_BALIGN to nop, packrl.ph or balign.
21 (validate_mips_insn): Add support for balign instruction.
22 (mips_ip): Handle DSP R2 instructions. Support balign instruction.
23 (OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
24 md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
25 command line options.
26 (s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
27 (md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
28 * doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
29 .set dspr2, .set nodspr2.
30
31 2007-02-20 Nathan Sidwell <nathan@codesourcery.com>
32
33 * config/tc-m68k.c (mcf5210a_ctrl, mcf52235_ctrl, mcf5225_ctrl): New.
34 (m68k_cpus): Add 5210a..5211a, 52230..52235 5224..5225.
35
36 2007-02-18 Alan Modra <amodra@bigpond.net.au>
37
38 * write.c (TC_FX_SIZE_SLACK): Define.
39 (write_relocs): Reinstate check for fixup within frag.
40 * config/tc-bfin.h (TC_FX_SIZE_SLACK): Define.
41 * config/tc-h8300.h (TC_FX_SIZE_SLACK): Define.
42 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Define.
43 * config/tc-sh.h (TC_FX_SIZE_SLACK): Define.
44 * config/tc-xstormy16.h (TC_FX_SIZE_SLACK): Define.
45
46 2007-02-17 Mark Mitchell <mark@codesourcery.com>
47 Nathan Sidwell <nathan@codesourcery.com>
48 Vladimir Prus <vladimir@codesourcery.com
49 Joseph Myers <joseph@codesourcery.com>
50
51 * configure.in (--with-bugurl): New option.
52 * configure: Regenerate.
53 * dep-in.sed: Remove bin-bugs.h.
54 * Makefile.am (REPORT_BUGS_TO): Define.
55 (INCLUDES): Define REPORT_BUGS_TO.
56 (DEP_INCLUDES): Likewise.
57 ($(OBJS)): No longer depend on bin-bugs.h.
58 * Makefile.in: Regenerate.
59 * doc/Makefile.in: Regenerate.
60 * as.c (show_usage): Don't print empty REPORT_BUGS_TO.
61 * as.h: Remove include of bin-bugs.h.
62
63 2007-02-17 Alan Modra <amodra@bigpond.net.au>
64
65 * write.c: White space fixes.
66 (fixup_segment): Move symbol_mri_common_p adjustments..
67 (write_relocs): ..and symbol_equated_reloc_p adjustments..
68 (adjust_reloc_syms): ..to here.
69
70 2007-02-16 Alan Modra <amodra@bigpond.net.au>
71
72 * subsegs.c (subseg_change, subseg_get): Use xcalloc rather than
73 xmalloc, memset. Don't bother assigning NULL to known zero mem.
74 (subseg_set_rest): Remove unnecessary cast.
75 * write.c: Include libbfd.h. Replace PTR with void * throughout.
76 Remove unnecessary forward declarations and casts.
77 (set_symtab): Delete extern bfd_alloc.
78 (fixup_segment): Move.
79
80 2007-02-15 Nathan Sidwell <nathan@codesourcery.com>
81
82 * config/m68k-parse.h (m68k_register): Add ROMBAR0, ASID.
83 * config/tc-m68k.c (mcfv4e_ctrl): Add ColdFire specific names.
84 (mcf5475_ctrl, mcf5485_ctrl): New.
85 (m68k_cpus): Use mcf5485_ctrl and mcf5485_ctrl for those families.
86 (m68k_ip): Add ASID, MMUBAR, ROMBAR0 handling.
87 (init_table): Add asid, mmubar, adjust rombar0.
88
89 2007-02-14 Alan Modra <amodra@bigpond.net.au>
90
91 * config/tc-i386.h (Seg2ShortForm, Seg3ShortForm): Delete.
92 * config/tc-i386.c: Wrap overly long lines, whitespace fixes.
93 (process_operands): Move old Seg2ShortForm and Seg3ShortForm
94 code, and test for these insns using a combination of
95 opcode_modifier and operand_types.
96
97 2007-02-07 Paul Brook <paul@codesourcery.com>
98
99 * configure.tgt: Add arm*-*-uclinux-*eabi.
100
101 2007-02-05 Dave Brolley <brolley@redhat.com>
102 Richard Sandiford <rsandifo@redhat.com>
103 DJ Delorie <dj@redhat.com>
104 Stan Cox <scox@redhat.com>
105 Jim Blandy <jimb@redhat.com>
106 Nick Clifton <nickc@redhat.com>
107 Jim Wilson <wilson@redhat.com>
108 Frank Ch. Eigler <fche@redhat.com>
109 Graydon Hoare <graydon@redhat.com>
110 Ben Elliston <bje@redhat.com>
111 John Healy <jhealy@redhat.com>
112 Richard Henderson <rth@redhat.com>
113
114 * Makefile.am (CPU_TYPES): Add mep.
115 (TARGET_CPU_CFILES): Add tc-mep.c.
116 (TARGET_CPU_HFILES): Add tc-mep.h.
117 (DEPTC_mep_elf): New variable.
118 (DEPTC_mep_coff): Likewise.
119 (DEPOBJ_mep_coff, DEPOBJ_mep_elf, DEP_mep_coff, DEP_mep_elf): Likewise.
120 * configure.in: Support mep.
121 * configure.tgt: Likewise.
122 * config/tc-mep.c: New file.
123 * config/obj-elf.c: New file.
124 * config/tc-mep.c: New file.
125 * config/tc-mep.h: New file.
126 * testsuite/gas/mep: New testsuite with content.
127 * Makefile.in: Regenerate.
128 * configure: Regenerate.
129
130 2007-02-05 Dave Brolley <brolley@redhat.com>
131
132 * cgen.c (gas_cgen_install_complex_reloc): Removed.
133 (complex_reloc_installation_howto): Removed.
134
135 2007-02-05 Dave Brolley <brolley@redhat.com>
136 Graydon Hoare <graydon@redhat.com>
137 DJ Delorie <dj@redhat.com>
138 Catherine Moore <clm@redhat.com>
139 Michael Chastain <chastain@redhat.com>
140 Frank Ch. Eigler <fche@redhat.com>
141
142 * symbols.c (use_complex_relocs_for): New, to decide
143 when to use complex relocs. Add signed RELC support.
144 (resolve_symbol_value): Call use_complex_relocs_for. Unconditionally
145 encode expression symbols as mangled complex relocation symbols (when
146 compiled with -DOBJ_COMPLEX_RELOC).
147 (symbol_relc_make_sym,value,expr): New traversal/conversion routines.
148 * cgen.c (gas_cgen_md_apply_fix3): Only set signed_p if RELC. Call
149 encode_addend with new args. Modify to get start, length from
150 ifield whenever it is set. Also change condition on which
151 self-describing relocs are encoded. Add hook into
152 gas_cgen_encode_addend.
153 (queue_fixup_recursively): Add signed RELC support. Change from masked
154 expr to trunc flag. Restore assignment of sub-field value to
155 temporary in fixups array. Reflect changed meaning of last arg to
156 queue_fixup_recursively.
157 (fixup): Add cgen_maybe_multi_ifield member.
158 (make_right_shifted_expr): New function.
159 (queue_fixup): Change to recursive function that fragments
160 fixups if operand has a multi-ifield.
161 (gas_cgen_parse_operand): Add RELC code to wrap expressions in
162 symbols, call weak_operand_overflow_check, and fragment call
163 queue_fixup with operand fields.
164 (gas_cgen_finish_insn) Modify to manage ifield pointer.
165 (weak_operand_overflow_check): New function to try to select
166 insns correctly.
167 (gas_cgen_encode_addend): New function for relc.
168 (gas_cgen_install_complex_reloc): Likewise.
169 (gas_cgen_tc_gen_reloc): Add hook into gas_cgen_install_complex_reloc.
170 * write.h (struct fix): Add msb_field_p to fx_cgen sub-struct. Add
171 cgen_maybe_multi_ifield field to fx_cgen substructure.
172 * cgen.h (GAS_CGEN_MAX_FIXUPS): Bump from 3 up to 32.
173 * symbols.h (symbol_relc_make_sym,value,expr): New prototypes.
174
175 2007-02-03 DJ Delorie <dj@delorie.com>
176
177 * config/tc-m32c.c (m32c_cons_fix_new): New. Added to support 3
178 byte relocs.
179 * config/tc-m32c.h (TC_CONS_FIX_NEW): Define.
180 (m32c_cons_fix_new): Prototype.
181
182 2007-02-02 Bob Wilson <bob.wilson@acm.org>
183
184 * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
185 (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
186
187 2007-02-02 Bob Wilson <bob.wilson@acm.org>
188
189 * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
190 (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table.
191 (map_suffix_reloc_to_operator): New.
192 (map_operator_to_reloc): New.
193 (expression_maybe_register): Fix incorrect test of return value from
194 xtensa_elf_suffix. Rearrange to use map_suffix_reloc_to_operator.
195 (xg_assemble_literal, convert_frag_immed): Use map_operator_to_reloc.
196
197 2007-02-02 Bob Wilson <bob.wilson@acm.org>
198
199 * config/xtensa-istack.h (struct tinsn_struct): Delete fixup field.
200 (tinsn_get_tok): Delete prototype.
201 * config/tc-xtensa.c (tinsn_get_tok): Delete.
202
203 2007-02-02 Bob Wilson <bob.wilson@acm.org>
204
205 * config/xtensa-relax.h (struct build_instr): Delete id field.
206 * config/xtensa-relax.c (widen_spec_list): Remove zeros from LITERAL
207 and LABEL tokens.
208 (append_literal_op, append_label_op): Remove litnum/labnum arguments;
209 set op_data fields to zero.
210 (parse_id_constant): Delete.
211 (build_transition): Remove code to handle numbered literals and labels.
212
213 2007-02-02 Bob Wilson <bob.wilson@acm.org>
214
215 * config/xtensa-relax.c (build_transition): Remove code after as_fatal.
216 (build_transition_table): Likewise.
217
218 2007-02-01 Bob Wilson <bob.wilson@acm.org>
219
220 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Delete use of
221 fx_tcbit.
222 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Remove.
223
224 2007-02-02 Alan Modra <amodra@bigpond.net.au>
225
226 * write.h (struct fix <fx_pcrel_adjust, fx_size>): Move.
227 (struct fix <fx_plt>): Rename to tcbit2.
228 * write.c (fix_new_internal): Adjust.
229 (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
230 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
231 * config/tc-cris.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
232 * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
233 * config/tc-i960.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
234 * config/tc-sh.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
235 * config/tc-sh64.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
236 * config/tc-sparc.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
237 * config/tc-msp430.c (msp430_force_relocation_local): Likewise.
238 * config/tc-ia64.c (emit_one_bundle): Don't set fx_plt.
239 * config/tc-ia64.h (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
240 Instead, compare fx_r_type.
241 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Use
242 fx_tcbit in place of fx_plt.
243 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Define.
244 * doc/internals.texi (TC_FORCE_RELOCATION_LOCAL): Remove reference
245 to fx_plt.
246
247 2007-01-30 Nick Clifton <nickc@redhat.com>
248
249 * as.c (main): Mark symbols created via the --defsym command line
250 option as volatile so that they can be overridden later on by a
251 .set directive. This maintains compatibility with the behaviour
252 of earlier versions of the assembler.
253 * doc/as.texinfo (--defsym): Document that the defined symbol's
254 value can be overridden via a .set directive.
255
256 2007-01-28 H.J. Lu <hongjiu.lu@intel.com>
257
258 * config/tc-i386.c (swap_imm_operands): Renamed to ...
259 (swap_2_operands): This. Take 2 ints.
260 (md_assemble): Updated.
261 (swap_operands): Call swap_2_operands to swap 2 operands.
262
263 2007-01-24 DJ Delorie <dj@redhat.com>
264
265 * config/tc-m32c.c (md_pseudo_table): Add .3byte.
266
267 2007-01-22 Nick Clifton <nickc@redhat.com>
268
269 PR gas/3871
270 * tc-score.c: Remove unnecessary uses of _().
271 Make the err_msg[] a file level local array in order to save
272 storage space.
273 Remove unnecessary sprintf()s.
274
275 2007-01-18 Mei Ligang <ligang@sunnorth.com.cn>
276
277 PR gas/3871
278 * config/tc-score.c : Using _() for const string.
279 Do not assign inst.error with a local string pointer.
280 (md_section_align): Pad section.
281
282 2007-01-13 H.J. Lu <hongjiu.lu@intel.com>
283
284 * config/tc-i386.c (build_modrm_byte): Check number of operands
285 when procssing memory/register operand.
286
287 2007-01-12 Nick Clifton <nickc@redhat.com>
288
289 PR gas/3856
290 * macro.c (expand_irp): Do not ignore spaces inside quoted
291 strings.
292
293 2007-01-12 Alan Modra <amodra@bigpond.net.au>
294
295 * config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
296 * config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
297 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
298 (TC_FORCE_RELOCATION): Define.
299 (TC_FORCE_RELOCATION_LOCAL): Define.
300 * config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
301
302 2007-01-12 Alan Modra <amodra@bigpond.net.au>
303
304 * input-file.c (input_file_open): Check fgets return.
305
306 2007-01-11 Paul Brook <paul@codesourcery.com>
307
308 * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
309
310 2007-01-11 Nick Clifton <nickc@redhat.com>
311
312 PR gas/3707
313 * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
314 variable.
315
316 * config/tc-mcore.c (md_number_to_chars): Use
317 number_to_chars_{big|little}endian.
318
319 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
320
321 * config/tc-m68k.c (m68k_archs, m68k_cpus): Treat Fido as an
322 architecture by itself.
323 (m68k_ip): Don't issue a warning for tbl instructions on fido.
324 (m68k_elf_final_processing): Treat Fido as an architecture by
325 itself.
326
327 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
328
329 * configure.tgt: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*
330
331 2007-01-05 H.J. Lu <hongjiu.lu@intel.com>
332
333 * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
334 depending on allow_naked_reg.
335
336 2007-01-04 Paul Brook <paul@codesourcery.com>
337
338 * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form.
339
340 2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
341
342 PR gas/3830
343 * config/tc-i386.c (register_prefix): New.
344 (set_intel_syntax): Set set_intel_syntax to "" if register
345 prefix isn't needed.
346 (check_byte_reg): Use register_prefix for error message.
347 (check_long_reg): Likewise.
348 (check_qword_reg): Likewise.
349 (check_word_reg): Likewise.
350
351 2006-01-04 Julian Brown <julian@codesourcery.com>
352
353 * config/tc-arm.c (do_neon_shl_imm): Swap rN, rM.
354 (do_neon_qshl_imm): Likewise.
355 (do_neon_rshl): New function. Handle rounding variants of
356 v{q}shl-by-register.
357 (insns): Use do_neon_rshl for vrshl, vqrshl.
358
359 2007-01-04 Paul Brook <paul@codesourcery.com>
360
361 * config/tc-arm.c (NEON_ENC_TAB): Fix encoding of vclt, vcle, vaclt
362 and vacle.
363
364 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
365
366 * config/tc-i386.c (swap_operands): Remove branches.
367
368 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
369
370 * config/tc-i386.c: Update copyright year.
371 * config/tc-i386.h: Likewise.
372
373 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
374
375 * config/tc-i386.c (smallest_imm_type): Return unsigned int
376 instead of int.
377
378 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
379
380 * config/tc-i386.c: Convert to ISO C90 formatting
381 * config/tc-i386.h: Likewise.
382
383 2007-01-03 David Daney <ddaney@avtrex.com>
384
385 * config/tc-mips.c (md_show_usage): Clean up -mno-shared
386 documentation.
387
388 For older changes see ChangeLog-2006
389 \f
390 Local Variables:
391 mode: change-log
392 left-margin: 8
393 fill-column: 74
394 version-control: never
395 End: