Support for Toshiba MeP and for complex relocations.
[binutils.git] / gas / ChangeLog
blob6ea65ea8ea50b4ada61a6c3bea9f7b35b4bb6e19
1 2007-02-05  Dave Brolley  <brolley@redhat.com>
3         * Makefile.am: Add support for Toshiba MeP.
4         * configure.in: Likewise
5         * config/tc-mep.c:
6         * config/obj-elf.c: New file.
7         * config/tc-mep.c: New file.
8         * config/tc-mep.h: New file.
9         * testsuite/gas/mep: New testsuite with content.
10         * Makefile.in: Regenerate.
11         * configure: Regenerate.
13 2007-02-05  Dave Brolley  <brolley@redhat.com>
15         * cgen.c (gas_cgen_install_complex_reloc): Removed.
16         (complex_reloc_installation_howto): Removed.
18 2007-02-05  Dave Brolley  <brolley@redhat.com>
20         * Contribute the following changes:
21         2002-06-06  Graydon Hoare  <graydon@redhat.com>
23         * symbols.c (use_complex_relocs_for): Tighten up conditions on
24         resolving expression symbols.
26         2002-04-04  DJ Delorie  <dj@redhat.com>
28         * symbols.c (use_complex_relocs_for): New, to decide
29         when to use complex relocs.
30         (resolve_symbol_value): Use it.
32         2002-03-07  Graydon Hoare  <graydon@redhat.com>
34         * cgen.c: Minor debugging touchups, warning removal.
36         2002-02-17  Catherine Moore  <clm@redhat.com>
38         * cgen.c (gas_cgen_md_apply_fix3):  Only set signed_p if RELC.
40         2002-01-23  Graydon Hoare  <graydon@redhat.com>
42         * cgen.c (gas_cgen_parse_operand): Add signed RELC support.
43         (queue_fixup_recursively): Likewise.
44         (make_right_shifted_expr): Likewise.
45         * symbols.c (resolve_symbol_value): Likewise.
47         2002-01-15  Graydon Hoare  <graydon@redhat.com>
49         * write.h (struct fix): Add msb_field_p to fx_cgen sub-struct.
50         * cgen.c (make_masked_expr): Remove.
51         (gas_cgen_encode_addend): Add oplen, signed_p, trunc_p params.
52         (gas_cgen_md_apply_fix3): Call encode_addend with new args.
53         (queue_fixup_recursively): Change from masked expr to trunc flag.
54         (queue_fixup_recursively): Restore assignment of sub-field value to
55         temporary in fixups array (lost in recent merge).
57         2002-01-01  Graydon Hoare  <graydon@redhat.com>
59         * cgen.c (make_masked_expr): Add.
60         (queue_fixup_recursively): Call make_masked_expr on non-rightmost
61         fragments of multi-ifield complex relocs.
62         (gas_cgen_parse_operand): Reflect changed meaning of last arg to
63         queue_fixup_recursively.
65         2001-12-18  Graydon Hoare  <graydon@redhat.com>
67         * cgen.c (weak_operand_overflow_check): Improve accuracy of
68         detecting overflows.
70         2001-12-17  Nick Clifton  <nickc@cambridge.redhat.com>
72         * cgen.c: Tidy up RELC code after the merge.
74         2001-11-15  graydon hoare  <graydon@redhat.com>
76         * cgen.c (fixup): Add cgen_maybe_multi_ifield member.
77         (make_right_shifted_expr): New function.
78         (queue_fixup): Change to recursive function that fragments
79         fixups if operand has a multi-ifield.
80         (gas_cgen_parse_operand): Add RELC code to wrap expressions in
81         symbols, call weak_operand_overflow_check, and fragment call
82         queue_fixup with operand fields.
83         (gas_cgen_finish_insn) Modify to manage ifield pointer.
84         (gas_cgen_md_apply_fix3) Modify to get start, length from
85         ifield whenever it is set. Also change condition on which
86         self-describing relocs are encoded.
87         (weak_operand_overflow_check): New function to try to select
88         insns correctly.
89         * cgen.h (GAS_CGEN_MAX_FIXUPS): Bump from 3 up to 32.
90         * write.h (struct fix): Add cgen_maybe_multi_ifield field to
91         fx_cgen substructure
92         * config/tc-mep.c (md_cgen_lookup_reloc): Fall back to
93         BFD_RELOC_RELC when no other reloc types can be found.
95         2001-10-03  graydon hoare  <graydon@redhat.com>
97         * symbols.c (resolve_symbol_value): Unconditionally encode
98         expression symbols as mangled complex relocation symbols (when
99         compiled with -DOBJ_COMPLEX_RELOC)
101         * cgen.c (gas_cgen_encode_addend): New function for relc.
102         (gas_cgen_install_complex_reloc): Likewise.
103         (gas_cgen_md_apply_fix3): Add hook into gas_cgen_encode_addend.
104         (gas_cgen_tc_gen_reloc): Add hook into gas_cgen_install_complex_reloc.
106         2001-06-24  Michael Chastain  <chastain@redhat.com>
108         * symbols.c (symbol_relc_make_expr): Conform to K & R C.
110         2001-06-20  Frank Ch. Eigler  <fche@redhat.com>
112         * symbols.c (resolve_symbol_value): Conditionally generate relc
113         symbols from unresolved expressions.
114         (symbol_relc_make_sym,value,expr): New traversal/conversion routines.
115         * symbols.h: Declare them.
117 2007-02-03  DJ Delorie  <dj@delorie.com>
119         * config/tc-m32c.c (m32c_cons_fix_new): New.  Added to support 3
120         byte relocs.
121         * config/tc-m32c.h (TC_CONS_FIX_NEW): Define.
122         (m32c_cons_fix_new): Prototype.
124 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
125         
126         * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
127         (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
128         
129 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
131         * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
132         (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table.
133         (map_suffix_reloc_to_operator): New.
134         (map_operator_to_reloc): New.
135         (expression_maybe_register): Fix incorrect test of return value from
136         xtensa_elf_suffix.  Rearrange to use map_suffix_reloc_to_operator.
137         (xg_assemble_literal, convert_frag_immed): Use map_operator_to_reloc.
139 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
141         * config/xtensa-istack.h (struct tinsn_struct): Delete fixup field.
142         (tinsn_get_tok): Delete prototype.
143         * config/tc-xtensa.c (tinsn_get_tok): Delete.
144         
145 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
147         * config/xtensa-relax.h (struct build_instr): Delete id field.
148         * config/xtensa-relax.c (widen_spec_list): Remove zeros from LITERAL
149         and LABEL tokens.
150         (append_literal_op, append_label_op): Remove litnum/labnum arguments;
151         set op_data fields to zero.
152         (parse_id_constant): Delete.
153         (build_transition): Remove code to handle numbered literals and labels.
155 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
157         * config/xtensa-relax.c (build_transition): Remove code after as_fatal.
158         (build_transition_table): Likewise.
160 2007-02-01  Bob Wilson  <bob.wilson@acm.org>
162         * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Delete use of
163         fx_tcbit.
164         * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Remove.
166 2007-02-02  Alan Modra  <amodra@bigpond.net.au>
168         * write.h (struct fix <fx_pcrel_adjust, fx_size>): Move.
169         (struct fix <fx_plt>): Rename to tcbit2.
170         * write.c (fix_new_internal): Adjust.
171         (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
172         * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
173         * config/tc-cris.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
174         * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
175         * config/tc-i960.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
176         * config/tc-sh.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
177         * config/tc-sh64.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
178         * config/tc-sparc.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
179         * config/tc-msp430.c (msp430_force_relocation_local): Likewise.
180         * config/tc-ia64.c (emit_one_bundle): Don't set fx_plt.
181         * config/tc-ia64.h (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
182         Instead, compare fx_r_type.
183         * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Use
184         fx_tcbit in place of fx_plt.
185         * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Define.
186         * doc/internals.texi (TC_FORCE_RELOCATION_LOCAL): Remove reference
187         to fx_plt.
189 2007-01-30  Nick Clifton  <nickc@redhat.com>
191         * as.c (main): Mark symbols created via the --defsym command line
192         option as volatile so that they can be overridden later on by a
193         .set directive.  This maintains compatibility with the behaviour
194         of earlier versions of the assembler.
195         * doc/as.texinfo (--defsym): Document that the defined symbol's
196         value can be overridden via a .set directive.
198 2007-01-28  H.J. Lu  <hongjiu.lu@intel.com>
200         * config/tc-i386.c (swap_imm_operands): Renamed to ...
201         (swap_2_operands): This.  Take 2 ints.
202         (md_assemble): Updated.
203         (swap_operands): Call swap_2_operands to swap 2 operands.
205 2007-01-24  DJ Delorie  <dj@redhat.com>
207         * config/tc-m32c.c (md_pseudo_table): Add .3byte.
209 2007-01-22  Nick Clifton  <nickc@redhat.com>
211         PR gas/3871
212         * tc-score.c: Remove unnecessary uses of _().
213         Make the err_msg[] a file level local array in order to save
214         storage space.
215         Remove unnecessary sprintf()s.
217 2007-01-18  Mei Ligang  <ligang@sunnorth.com.cn>
219         PR gas/3871
220         * config/tc-score.c : Using _() for const string.
221         Do not assign inst.error with a local string pointer.
222         (md_section_align): Pad section.
223         
224 2007-01-13  H.J. Lu  <hongjiu.lu@intel.com>
226         * config/tc-i386.c (build_modrm_byte): Check number of operands
227         when procssing memory/register operand.
229 2007-01-12  Nick Clifton  <nickc@redhat.com>
231         PR gas/3856
232         * macro.c (expand_irp): Do not ignore spaces inside quoted
233         strings.
235 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
237         * config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
238         * config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
239         * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
240         (TC_FORCE_RELOCATION): Define.
241         (TC_FORCE_RELOCATION_LOCAL): Define.
242         * config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
244 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
246         * input-file.c (input_file_open): Check fgets return.
248 2007-01-11  Paul Brook  <paul@codesourcery.com>
250         * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
252 2007-01-11  Nick Clifton  <nickc@redhat.com>
254         PR gas/3707
255         * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
256         variable.
258         * config/tc-mcore.c (md_number_to_chars): Use
259         number_to_chars_{big|little}endian.
261 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
263         * config/tc-m68k.c (m68k_archs, m68k_cpus): Treat Fido as an
264         architecture by itself.
265         (m68k_ip): Don't issue a warning for tbl instructions on fido.
266         (m68k_elf_final_processing): Treat Fido as an architecture by
267         itself.
269 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
271         * configure.tgt: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*
273 2007-01-05  H.J. Lu  <hongjiu.lu@intel.com>
275         * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
276         depending on allow_naked_reg.
278 2007-01-04  Paul Brook  <paul@codesourcery.com>
280         * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form.
282 2007-01-04  H.J. Lu  <hongjiu.lu@intel.com>
284         PR gas/3830
285         * config/tc-i386.c (register_prefix): New.
286         (set_intel_syntax): Set set_intel_syntax to "" if register
287         prefix isn't needed.
288         (check_byte_reg): Use register_prefix for error message.
289         (check_long_reg): Likewise.
290         (check_qword_reg): Likewise.
291         (check_word_reg): Likewise.
293 2006-01-04  Julian Brown  <julian@codesourcery.com>
295         * config/tc-arm.c (do_neon_shl_imm): Swap rN, rM.
296         (do_neon_qshl_imm): Likewise.
297         (do_neon_rshl): New function. Handle rounding variants of
298         v{q}shl-by-register.
299         (insns): Use do_neon_rshl for vrshl, vqrshl.
301 2007-01-04  Paul Brook  <paul@codesourcery.com>
303         * config/tc-arm.c (NEON_ENC_TAB): Fix encoding of vclt, vcle, vaclt
304         and vacle.
306 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
308         * config/tc-i386.c (swap_operands): Remove branches.
310 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
312         * config/tc-i386.c: Update copyright year.
313         * config/tc-i386.h: Likewise.
315 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
317         * config/tc-i386.c (smallest_imm_type): Return unsigned int
318         instead of int.
320 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
322         * config/tc-i386.c: Convert to ISO C90 formatting
323         * config/tc-i386.h: Likewise.
325 2007-01-03  David Daney  <ddaney@avtrex.com>
327         * config/tc-mips.c (md_show_usage):  Clean up -mno-shared
328         documentation.
330 For older changes see ChangeLog-2006
332 Local Variables:
333 mode: change-log
334 left-margin: 8
335 fill-column: 74
336 version-control: never
337 End: