2010-03-15 Thomas Schwinge <thomas@codesourcery.com>
[external/binutils.git] / gas / ChangeLog
1 2010-03-15  Thomas Schwinge  <thomas@codesourcery.com>
2
3         * dw2gencfi.c (output_cie): Make it more explicit which code paths
4         belong to .eh_frame only.
5
6 2010-03-13  Segher Boessenkool  <segher@kernel.crashing.org>
7
8         * config/tc-v850.c (v850_insert_operand): Handle out-of-range
9         assembler constants on 64-bit hosts.
10
11 2010-03-10  Mike Frysinger  <michael.frysinger@analog.com>
12
13         * bfin-defs.h, bfin-lex.l, bfin-parse.y, tc-bfin.c, tc-bfin.h:
14         Strip trailing whitespace.
15
16 2010-03-10  Mike Frysinger  <michael.frysinger@analog.com>
17
18         * doc/c-bfin.texi (-mcpu): Add bf504 and bf506.
19         * config/tc-bfin.c (bfin_cpu_type): Add BFIN_CPU_BF504 and
20         BFIN_CPU_BF506.
21         (bfin_cpus[]): Add 0.0 for bf504 and bf506.
22
23 2010-03-10  Jie Zhang  <jie@codesourcery.com>
24
25         * doc/as.texinfo: Add Blackfin options.
26         * doc/c-bfin.texi: Document -mfdpic, -mno-fdpic and -mnopic.
27         * config/tc-bfin.c (md_show_usage): Show usage for all
28         Blackfin specific options.
29
30 2010-03-09  Alan Modra  <amodra@gmail.com>
31
32         PR gas/11356
33         * listing.c (listing_newline): Correct backslash quote logic.
34
35 2010-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36
37         * config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.
38         (ELF_TARGET_FORMAT64): Define.
39
40 2010-03-05  Paul Brook  <paul@codesourcery.com>
41
42         * config/tc-arm.c (arm_cpu_option_table): Add cortex-m4.
43
44 2010-03-02  Andrew Stubbs  <ams@codesourcery.com>
45
46         * config/tc-sh.c (get_specific): Move overflow checking code to avoid
47         reading uninitialized data.
48
49 2010-03-01  Tristan Gingold  <gingold@adacore.com>
50
51         * config/tc-score7.c (s7_frag_check): Add ATTRIBUTE_UNUSED.
52
53 2010-02-26  Doug Evans  <dje@sebabeach.org>
54
55         * configure.tgt: Fix mep cpu case.
56
57 2010-02-26  Jie Zhang  <jie@codesourcery.com>
58
59         * config/tc-arm.c (do_t_strexd): Remove
60         operand[1] != operand[2] contraint.
61
62 2010-02-26  Jie Zhang  <jie@codesourcery.com>
63
64         * config/tc-arm.c (neon_select_shape): No need to match
65         the remaining operands in the shape when one operand does
66         not match.
67
68 2010-02-26  Jie Zhang  <jie@codesourcery.com>
69
70         * config/tc-arm.c (do_neon_ld_st_interleave): Reject bad
71         alignment.
72
73 2010-02-25  Doug Evans  <dje@sebabeach.org>
74
75         * cgen.c: Whitespace fixes.
76         (weak_operand_overflow_check): Formatting fix.
77
78 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
79
80         * config/tc-i386.c (match_template): Update error messages.
81
82 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
83
84         * config/tc-i386.c (_i386_insn): Add err_msg.
85         (operand_size_match): Set err_msg on failure.
86         (operand_type_match): Likewise.
87         (operand_type_register_match): Likewise.
88         (VEX_check_operands): Likewise.
89         (match_template): Likewise.  Use i.err_msg with as_bad.
90
91 2010-02-25  Wu Zhangjin <wuzhangjin@gmail.com>
92
93         * config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
94         mips_fix_loongson2f_jump): New variables.
95         (md_longopts): Add New options -mfix-loongson2f-nop/jump,
96         -mno-fix-loongson2f-nop/jump.
97         (md_parse_option): Initialize variables via above options.
98         (options): New enums for the above options.
99         (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN.
100         (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump):
101         New functions.
102         (append_insn): call fix_loongson2f().
103         (mips_handle_align): Replace the implicit nops.
104         * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified
105         for the new mips_handle_align().
106         * doc/c-mips.texi: Document the new options.
107
108 2010-02-23  Daniel Gutson  <dgutson@codesourcery.com>
109
110         * config/tc-arm.c (do_rd_rm_rn): Added warning
111         for obsolete insns.
112
113 2010-02-23  Andrew Zabolotny  <anpaza@mail.ru>
114
115         PR binutils/11297
116         * config/tc-avr.c (md_apply_fix): Handle BFD_RELOC_8.
117         (avr_cons_fix_new): Handle fixups of a single byte.
118
119 2010-02-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
120
121         PR 9861
122         * config/tc-arm.c (CPU_DEFAULT): Do not define based upon build
123         compiler's predefines.
124
125 2010-02-19  Alan Modra  <amodra@gmail.com>
126
127         * configure.tgt: Whiltespace.  Sort moxie entry.
128
129 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
130
131         * config/tc-arm.c (arm_convert_symbolic_attribute): Add Tag_DIV_use.
132         * doc/c-arm.texi: Likewise.
133
134 2010-02-12  Daniel Gutson <dgutson@codesourcery.com>
135
136         * config/tc-arm.c (asm_opcode): operands type
137         change.
138         (BAD_PC_ADDRESSING): New macro message.
139         (BAD_PC_WRITEBACK): Likewise.
140         (MIX_ARM_THUMB_OPERANDS): New macro.
141         (operand_parse_code): Added enum values.
142         (parse_operands): Added thumb/arm distinction,
143         plus new enum values handling.
144         (encode_arm_addr_mode_2): Validations enhanced.
145         (encode_arm_addr_mode_3): Likewise.
146         (do_rm_rd_rn): Likewise.
147         (encode_thumb32_addr_mode): Likewise.
148         (do_t_ldrex): Likewise.
149         (do_t_ldst): Likewise.
150         (do_t_strex): Likewise.
151         (md_assemble): Call parse_operands with
152         a new parameter.
153         (OPS_1): New macro.
154         (OPS_2): Likewise.
155         (OPS_3): Likewise.
156         (OPS_4): Likewise.
157         (OPS_5): Likewise.
158         (OPS_6): Likewise.
159         (insns): Updated insns operands.
160
161 2010-02-12  Tristan Gingold  <gingold@adacore.com>
162             Douglas B Rupp  <rupp@gnat.com>
163
164         * config/tc-ia64.c (enum reloc_func): Add FUNC_SLOTCOUNT_RELOC.
165         (DUMMY_RELOC_IA64_SLOTCOUNT): Added.
166         (pseudo_func): Add an entry for slotcount.
167         (md_begin): Initialize slotcount pseudo symbol.
168         (ia64_parse_name): Handle @slotcount parameter.
169         (ia64_gen_real_reloc_type): Handle slotcount.
170         (md_apply_fix): Ditto.
171         * doc/c-ia64.texi (IA-64-Relocs): Document @slotcount.
172
173 2010-02-11  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
174
175         * config/tc-xtensa.c (istack_init): Don't call memset.
176
177 2010-02-11  Sterling Augustine  <sterling@tensilica.com>
178
179         * config/tc-xtensa.c (cache_literal_section): Handle prefixes as
180         well as suffixes.
181
182 2010-02-11  Sterling Augustine  <sterling@tensilica.com>
183
184         * config/tc-xtensa.c (xtensa_find_unaligned_loops): Rewrite.
185
186 2010-02-11  H.J. Lu  <hongjiu.lu@intel.com>
187
188         * config/tc-i386.c (build_modrm_byte): Reformat.
189
190 2010-02-11  H.J. Lu  <hongjiu.lu@intel.com>
191
192         * config/tc-i386.c: Update copyright.
193
194 2010-02-10  Quentin Neill  <quentin.neill@amd.com>
195             Sebastian Pop  <sebastian.pop@amd.com>
196
197         * config/tc-i386.c (vec_imm4) New operand type.
198         (fits_in_imm4): New.
199         (VEX_check_operands): New.
200         (check_reverse): Call VEX_check_operands.
201         (build_modrm_byte): Reintroduce code for 5
202         operand insns.  Fix whitespace.
203
204 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
205
206         * config/tc-ppc.c (md_show_usage): Add -mpwr4, -mpwr5, -mpwr5x,
207         -mpwr6 and -mpwr7.
208
209 2010-02-09  Sterling Augustine  <sterling@tensilica.com>
210
211         * config/tc-xtensa.c (RELAXED_LOOP_INSN_BYTES): New.
212         (next_frag_pre_opcode_bytes): Use RELAXED_LOOP_INSN_BYTES.
213         (xtensa_mark_zcl_first_insns): Rewrite to handle corner case.
214
215 2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
216
217         * config/tc-arm.c (md_pcrel_from_section): Keep base to zero for
218         non-local branches (BFD_RELOC_THUMB_PCREL_BRANCH23,
219         BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_ARM_PCREL_BLX,
220         BFD_RELOC_ARM_PCREL_CALL)
221
222 2010-02-08  Sterling Augustine  <sterling@tensilica.com>
223
224         * config/tc-xtensa.c (frag_format_size): Generalize logic to
225         handle more instruction sizes and fetch widths.
226         (branch_align_power): Likewise.
227         (text_align_power): Likewise.
228         (bytes_to_stretch): Likewise.
229
230 2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
231
232         * config/tc-ppc.c (md_show_usage): Mention -mtitan.  Don't use tabs.
233         (ppc_mach): Handle titan.
234         * doc/c-ppc.texi: Mention -mtitan.
235
236 2010-02-05  Sterling Augustine  <sterling@tensilica.com>
237
238         * config/tc-xtensa.c (UNREACHABLE_MAX_WIDTH): Delete and
239         replace with...
240         (xtensa_fetch_width) ...this.
241
242 2010-02-05  Joseph Myers  <joseph@codesourcery.com>
243
244         * Makefile.am (CPU_TYPES, OBJ_FORMATS, CPU_OBJ_VALID,
245         MULTI_CPU_TYPES, MULTI_CPU_OBJ_VALID): Remove.
246         * Makefile.in: Regenerate.
247
248 2010-02-03  Quentin Neill  <quentin.neill@amd.com>
249
250         * config/tc-i386.c (cpu_arch): Change amdfam15 to bdver1.
251         (i386_align_code): Rename  PROCESSOR_AMDFAM15 to PROCESSOR_BDVER1.
252         * config/tc-i386.h (processor_type): Same.
253         * doc/c-i386.texi: Change amdfam15 to bdver1.
254
255 2010-01-29  Nick Clifton  <nickc@redhat.com>
256
257         PR 11136
258         * config/tc-arm.c (neon_check_type): Handle a neon_shape value of
259         NS_NULL.
260
261 2010-01-27  Dave Korn  <dave.korn.cygwin@gmail.com>
262
263         * NEWS: Mention new feature.
264         * config/obj-coff.c (obj_coff_section): Accept digits and use
265         to override default section alignment power if specified.
266         * doc/as.texinfo (.section directive): Update documentation.
267
268 2010-01-27  H.J. Lu  <hongjiu.lu@intel.com>
269
270         * config/tc-i386.c (avxscalar): New.
271         (OPTION_MAVXSCALAR): Likewise.
272         (build_vex_prefix): Select vector_length for scalar instructions
273         based on avxscalar.
274         (md_longopts): Add OPTION_MAVXSCALAR.
275         (md_parse_option): Handle OPTION_MAVXSCALAR.
276         (md_show_usage): Add -mavxscalar=.
277
278         * doc/c-i386.texi: Document -mavxscalar=.
279
280 2010-01-24  H.J. Lu  <hongjiu.lu@intel.com>
281
282         * config/tc-i386.c (build_vex_prefix): Set i.vex.bytes[0] to
283         0xc4 individually.
284
285 2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
286
287         * write.h (fix_at_start): Declare.
288         * write.c (fix_new_internal): Add at_beginning parameter.
289         Use it instead of REVERSE_SORT_RELOCS.  Fix the handling of
290         seg_fix_tailP for the at_beginning/REVERSE_SORT_RELOCS case.
291         (fix_new, fix_new_exp): Update accordingly.
292         (fix_at_start): New function.
293         * config/tc-ppc.c (md_pseudo_table): Add .ref to the OBJ_XCOFF section.
294         (ppc_ref): New function, for OBJ_XCOFF.
295         (md_apply_fix): Handle BFD_RELOC_NONE for OBJ_XCOFF.
296         * config/te-i386aix.h (REVERSE_SORT_RELOCS): Remove #undef.
297
298 2010-01-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
299
300         * config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only
301         on 64-bit Solaris/x86.
302         Include obj-format.h earlier.
303
304 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
305
306         * config/tc-s390.c (s390_elf_final_processing): New function.
307         * config/tc-s390.h (elf_tc_final_processing): New macro definition.
308         (s390_elf_final_processing): Added prototype.
309
310
311 2010-01-20  Nick Clifton  <nickc@redhat.com>
312
313         PR 11109
314         * config/tc-arm.c (do_neon_cvt): Rename to do_neon_cvt_1.  Add
315         code to handle round-to-zero for VCVT conversions.
316         (do_neon_cvt): New.  Call do_neon_cvt_1.
317         (do_neon_cvtr): New.  Call do_neon_cvt_1.
318         (insns): Use do_neon_cvt for VCVT insn and do_neon_cvtr for VCVTR
319         insn.
320
321 2010-01-18  Tristan Gingold  <gingold@adacore.com>
322
323         * config/tc-ia64.c (ia64_vms_note): Generate 24 bytes note headers.
324
325 2010-01-15  Sebastian Pop  <sebastian.pop@amd.com>
326
327         * config/tc-i386.c (md_assemble): Before accessing the IMM field
328         check that it's not an XOP insn.
329
330 2010-01-14  Jie Zhang  <jie.zhang@analog.com>
331
332         * config/bfin-aux.h: Remove argument names in function
333         declarations.
334         * config/bfin-lex.l (parse_int): Fix shadowed variable name
335         warning.
336         * config/bfin-parse.y (value_match): Remove argument names
337         in declaration.
338         (notethat): Likewise.
339         (yyerror): Likewise.
340
341 2010-01-13  Daniel Jacobowitz  <dan@codesourcery.com>
342
343         * config/tc-arm.c (do_t_nop): Correct check for Thumb-2 NOP.
344
345 2010-01-13  Nick Clifton  <nickc@redhat.com>
346
347         * config/tc-h8300.c (h8300_elf_section): New function - issue a
348         warning message if a new section is created without setting any
349         attributes for it.
350         (md_pseudo_table): Intercept section creation pseudos.
351         (md_pcrel_from): Replace abort with an error message.
352         * config/obj-elf.c (obj_elf_section_name): Export this function.
353         * config/obj-elf.h (obj_elf_section_name): Prototype.
354
355 2010-01-12  Alan Modra  <amodra@gmail.com>
356
357         PR 11122
358         * listing.c (print_source): Add one to line number.
359
360 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
361
362         * Makefile.in: Regenerate.
363         * configure: Regenerate.
364         * doc/Makefile.in: Regenerate.
365
366 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
367
368         * version.c (parse_args): Change to "Copyright 2010".
369
370 2010-01-06  Quentin Neill  <quentin.neill@amd.com>
371
372         * config/tc-i386.c (cpu_arch): Add amdfam15.
373         (i386_align_code): Add PROCESSOR_AMDFAM15 cases.
374         * config/tc-i386.h (processor_type): Add PROCESSOR_AMDFAM15.
375         * doc/c-i386.texi: Add amdfam15.
376
377 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
378
379         * config/tc-arm.c (do_neon_logic): Accept imm value
380         in the third operand too.
381         (operand_parse_code): OP_RNDQ_IMVNb renamed to
382         OP_RNDQ_Ibig.
383         (parse_operands): OP_NILO case removed, applied renaming.
384         (insns): Neon shape changed for some logic instructions.
385
386 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
387
388         * config/tc-arm.c (do_neon_ldx_stx): Added
389         validation for vector load/store insns.
390
391 2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
392
393         * config/tc-ppc.c (md_show_usage): Document -me500mc64.
394
395 2010-01-03  Daniel Gutson  <dgutson@codesourcery.com>
396
397         * config/tc-arm.c (struct arm_it): New flag 'is_neon'.
398         (NEON_ENC_*): Macros renamed to _NEON_ENC_*.
399         (NEON_ENCODE): New macro.
400         (check_neon_suffixes): New macro.
401         (do_vfp_cond_or_thumb): Set the 'is_neon' flag.
402         (do_vfp_nsyn_opcode): Likewise.
403         (do_vfp_nsyn_nmul): Use the new 'NEON_ENCODE' macro.
404         (do_vfp_nsyn_cmp): Likewise.
405         (do_neon_shl_imm): Likewise.
406         (do_neon_qshl_imm): Likewise.
407         (neon_dyadic_misc): Likewise.
408         (do_neon_mac_maybe_scalar): Likewise.
409         (do_neon_qdmulh): Likewise.
410         (do_neon_qmovn): Likewise.
411         (do_neon_qmovun): Likewise.
412         (do_neon_movn): Likewise.
413         (neon_mac_reg_scalar_long): Likewise.
414         (do_neon_vmull): Likewise.
415         (do_neon_trn): Likewise.
416         (do_neon_ldx_stx): Likewise.
417         (neon_dp_fixup): Changed signature and set the flag.
418         (neon_three_same): Call the above with new signature.
419         (neon_two_same): Likewise.
420         (neon_imm_shift): Likewise.
421         (neon_mul_mac): Likewise.
422         (do_neon_abs_neg): Likewise.
423         (neon_mixed_length): Likewise.
424         (do_neon_ext): Likewise.
425         (do_neon_mov): Likewise.
426         (do_neon_tbl_tbx): Likewise.
427         (do_neon_logic): Likewise, and use the new 'NEON_ENCODE' macro.
428         (neon_compare): Likewise.
429         (do_neon_shll): Likewise.
430         (do_neon_cvt): Likewise.
431         (do_neon_mvn): Likewise.
432         (do_neon_dup): Likewise.
433         (md_assemble): Call check_neon_suffixes ().
434
435 For older changes see ChangeLog-2009
436 \f
437 Local Variables:
438 mode: change-log
439 left-margin: 8
440 fill-column: 74
441 version-control: never
442 End: