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