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