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