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