<gas changes>
[platform/upstream/binutils.git] / gas / ChangeLog
1 2009-05-22  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2
3         * config/tc-i386.c (process_drex): Delete. Remove SSE5 support.
4         (build_modrm_byte): Remove DREX handling support.
5         (DREX_*): Delete.
6         (drex_byte): Delete.
7         (md_assemble): Remove DREX handling support.
8         (process_operands): Remove DREX, SSE5 support.
9         (i386_insn): Remove DREX.
10         
11 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
12
13         * Makefile.am: Run "make dep-am".
14         * Makefile.in: Regenerate.
15
16 2009-05-20  Kai Tietz  <kai.tietz@onevision.com>
17             H.J. Lu  <hongjiu.lu@intel.com>
18
19         * config/obj-coff.h: Include "coff/x86_64.h" for x86 pe-coff.
20         (TARGET_FORMAT): Removed for x86 pe-coff.
21         (COFF_TARGET_FORMAT): Likewise.
22
23         * config/tc-i386.c (md_longopts): Allow --64 for x86 pe-coff.
24         (md_parse_option): Likewise.
25         (md_show_usage): Show option --32/--64 for x86 pe-coff.
26         (i386_target_format): Use also for x86 pe-coff.
27
28         * config/tc-i386.h (TARGET_FORMAT): Defined as i386_target_format
29         for x86 pe-coff.
30
31 2009-05-19  DJ Delorie  <dj@redhat.com>
32
33         * config/tc-mep.c (mep_machine): Only check CPU flags, not COP flags.
34         (mep_process_saved_insns): Remove debugging printfs.
35
36 2009-05-19  Dave Korn  <dave.korn.cygwin@gmail.com>
37
38         * NEWS:  Mention new feature.
39         * config/obj-coff.c (obj_coff_common_parse):  New function.
40         (obj_coff_comm):  Likewise.
41         (coff_pseudo_table):  Override default ".comm" definition on PE.
42         * doc/as.texinfo:  Document new feature.
43
44 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
45
46         * config/obj-coff.c (obj_coff_section): Add 'y' as
47         specifier for SEC_COFF_NOREAD section flag.
48         * doc/as.texinfo: Add documentation about .section flag 'y'.
49
50 2009-05-13  DJ Delorie  <dj@redhat.com>
51
52         * cgen.c (gas_cgen_parse_operand): Guard against NULL pointers.
53
54 2009-05-13  Andrew Jenner  <andrew@codesourcery.com>
55
56         * config/tc-arm.c: Move as.h to start of file.
57
58 2009-05-05 Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
59
60         * config/tc-arm.h: Fix typo in comment.
61         (ARM_IS_FUNC): New macro.
62         (MD_APPLY_SYM_VALUE): Define.
63
64         * config/tc-arm.c (do_blx): Retain BFD_RELOC_ARM_PCREL_BLX for
65         all versions of EABI.
66         (relax_branch): Do not relax for branches to ARM functions.
67         (md_pcrel_from_section): Set up base correctly for
68         BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_THUMB_PCREL_CALL,
69         BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_ARM_PCREL_BLX
70         BFD_RELOC_ARM_PCREL_CALL.
71         (md_apply_fix): Flip bl to blx where possible.
72         Flip blx to bl where possible.
73         (arm_force_relocation): Force relocations for
74         BFD_RELOC_ARM_PCREL_JUMP, BFD_RELOC_ARM_PCREL_JUMP,
75         BFD_RELOC_ARM_PCREL_BLX, BFD_RELOC_THUMB_PCREL_BLX,
76         BFD_RELOC_THUMB_PCREL_BRANCH20, BFD_RELOC_THUMB_PCREL_BRANCH23,
77         BFD_RELOC_THUMB_PCREL_BRANCH25.
78         (arm_apply_sym_value): New function.
79         
80 2009-05-04  Tristan Gingold  <gingold@adacore.com>
81
82         * config/tc-alpha.c: Also declare alpha_prologue_label for OBJ_EVAX.
83
84 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
85
86         * config/tc-armlinux-eabi.h (FPU_DEFAULT): Default to plain VFP.
87         * config/tc-armeabi.h (FPU_DEFAULT): Likewise.
88         * config/tc-arm.c (md_begin): If FPU_DEFAULT is set, don't infer
89         the default FPU from the processor.
90
91 2009-05-01  Julian Brown  <julian@codesourcery.com>
92
93         * config/tc-arm.c (do_t_blx): Always use BFD_RELOC_THUMB_PCREL_BLX.
94         (md_pcrel_from_section): Align address for BLX.
95         (tc_gen_reloc): Change BFD_RELOC_THUMB_PCREL_BLX relocations to
96         BFD_RELOC_THUMB_PCREL_BRANCH23 for EABI v4+.
97
98 2009-04-29  DJ Delorie  <dj@redhat.com>
99
100         * config/tc-mep.c (md_begin): Check coprocessor type.
101         (md_check_parallel64_scheduling): Use memset to initialize the buffer.
102         (md_check_parallel32_scheduling): Likewise.
103         (slot_ok): New.
104         (mep_check_ivc2_scheduling): New.
105         (mep_check_parallel_scheduling): Call it.
106         (mep_process_saved_insns): Add IVC2 slot support.
107         (md_assemble): Likewise.
108
109 2009-04-30  Nick Clifton  <nickc@redhat.com>
110
111         * config/obj-elf.c (obj_elf_type): Add support for a
112         gnu_indirect_function type.
113         * config/tc-i386.c (tc_i386_fix_adjustable): Do not adjust fixups
114         against indirect function symbols.
115         * doc/as.texinfo (.type): Document the support for the
116         gnu_indirect_function symbol type.
117         * NEWS: Mention the new feature.
118
119 2009-04-24  Cary Coutant  <ccoutant@google.com>
120
121         * NEWS: Add item about discriminator support.
122         * dwarf2dbg.h (struct dwarf2_line_info): Add discriminator field.
123         * dwarf2dbg.c (current): Add discriminator field.
124         (dwarf2_where): Copy discriminator value.
125         (dwarf2_consume_line_info): Set discriminator to 0.
126         (dwarf2_directive_loc): Process discriminator sub-op.
127         (out_leb128): New function.
128         (process_entries): Output DW_LNE_set_discriminator.
129         * doc/as.texinfo: Add discriminator operand to .loc directive.
130
131 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
132
133         * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
134         as_bad calls to silence compiler warning.
135
136 2009-04-21  H.J. Lu  <hongjiu.lu@intel.com>
137
138         * config/tc-i386-intel.c (O_XXX): Reorder.
139
140 2009-04-20  Jan Beulich  <jbeulich@novell.com>
141
142         * Makefile.am: Add explicit dependency of tc-i386.o on
143         tc-i386-intel.c.
144         * Makefile.in: Likewise.
145         * config/tc-i386.c (i386_finalize_immediate): Declare, broken
146         out from i386_immediate.
147         (i386_immediate): Slightly re-arrange, call
148         i386_finalize_immediate.
149         (i386_finalize_displacement): Declare, broken out from
150         i386_displacement.
151         (i386_displacement): Slightly re-arrange, call
152         i386_finalize_displacement.
153         (i386_intel_simplify, i386_intel_parse_name): Declare.
154         (this_operand): Initialize to -1.
155         (set_intel_syntax): Set expression rank for O_full_ptr.
156         (md_assemble): Set this_operand back to -1 after parsing
157         operands.
158         (x86_cons): Negate intel_syntax to indicate state. Call
159         i386_intel_simplify.
160         (md_operand): Convert if to switch. Handle '[' for Intel
161         syntax.
162         (i386_intel_operand): Delete, including all helper functions
163         and data.
164         * config/tc-i386-intel.c: New file, all new code.
165         * config/tc-i386.h (i386_operator): Declare.
166         (md_operator): Define to i386_operator.
167         (i386_need_index_operator): Declare.
168         (md_need_index_operator): Define to i386_need_index_operator.
169         (O_full_ptr): Define.
170
171 2009-04-20  Jan Beulich  <jbeulich@novell.com>
172
173         * expr.c (operand): Call md_need_index_operator() and
174         md_operator() if defined. Add unary label.
175         (operator): Call md_operator() if defined.
176         (expr): Adjust assertions on range and rank of op_left and
177         op_right. Don't abort on unhandled operators when reducing
178         expressions with both operands being constant.
179         (expr_set_rank): New.
180         * expr.h (expr_set_rank): Declare.
181
182 2008-04-15  Anthony Green  <green@moxielogic.com>
183
184         * config/tc-moxie.h: New file.
185         * config/tc-moxie.c: New file.
186         * configure: Add support for moxie.
187         * configure.tgt: Add support for moxie.
188
189 2009-04-16  Jan Beulich  <jbeulich@novell.com>
190
191         * expr.c: Include limits.h if available, and #define CHAR_BITS
192         otherwise.
193         (expr): Check range of shift count when evaluating a constant
194         expression.
195
196 2009-04-15  Jan Beulich  <jbeulich@novell.com>
197
198         * config/tc-i386.c (process_operands): Print operands in
199         correct order depending on intel_syntax.
200
201 2009-04-09  Catherine Moore  <clm@codesourcery.com>
202
203         * config/tc-mips.c (mips_fix_24k): Declare.
204         (check_for_24k_errata): New.
205         (mips_cleanup): Call check_for_24k_errata.
206         (start_noreorder): Likewise.
207         (md_mips_end): Likewise.
208         (s_change_sec): Likewise.
209         (s_change_section): Likewise.
210         (append_insn): Call check_for_24k_errata.  Prevent
211         ERET/DERET instructions from being moved into delay
212         slots.
213         (OPTION_FIX_24K): New.
214         (OPTION_NO_FIX_24k) New.
215         (md_longopts): Add "mfix-24k" and "mno-fix-24k".
216         (md_parse_option): Handle fix-24k options.
217         (md_show_usage): Display fix-24k options.
218         * doc/c-mips.texi: Document.
219
220 2009-04-09  Adam Nemet  <anemet@caviumnetworks.com>
221
222         * config/tc-mips.c (mips_dwarf2_addr_size): Use HAVE_64BIT_OBJECTS
223         instead of HAVE_64BIT_SYMBOLS.
224
225 2009-04-07  DJ Delorie  <dj@redhat.com>
226
227         * config/tc-mep.c: Add UCI/DSP instruction support.  Add C5 support.
228         (md_show_usage): Change default endian to little.
229         * config/tc-mep.h (TARGET_BYTES_BIG_ENDIAN): Change default to little.
230
231 2009-04-06  DJ Delorie  <dj@redhat.com>
232
233         * tc-h8300.c (do_a_fix_imm): Pass the insn, force relocs for MOVA
234         immediates.
235         (build_bytes): Pass insn to do_a_fix_imm.
236
237 2009-04-02  Daniel Gutson <dgutson@codesourcery.com>
238
239         * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
240         * doc/c-arm.texi: Added codes for processors ARM Cortex-M0 and
241         Cortex-M1.
242
243 2009-04-01  Matt Thomas <matt@netbsd.org>
244
245         * config/tc-vax.c (synthetic_votstrs): add "jbbcci" and "jbbssi"
246         (md_assemble): emit symbol name when used as immediate in PIC mode.
247         (md_assemble): fix LP64 bug (use sizeof (valueT) instead 4).
248
249 2009-04-01  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
250
251         * config/tc-xtensa.c (parse_arguments): call demand_empty_rest_of_line
252
253 2009-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
254
255         * config/tc-arm.c (arm_validate_fix): Define only for OBJ_COFF.
256         (find_real_start): Likewise.
257         * config/tc-arm.h (TC_VALIDATE_FIX): Likewise
258
259 2009-04-01  Nathan Sidwell  <nathan@codesourcery.com>
260
261         * config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
262         (arm_handle_align): Generate v6k ARM, thumb2 wide & narrow nops
263         whenever possible.
264
265 2009-03-31  Peter Bergner  <bergner@vnet.ibm.com>
266
267         * config/tc-ppc.c (ppc_handle_align): Handle power7's group ending nop.
268
269 2009-03-31  Dave Korn  <dave.korn.cygwin@gmail.com>
270
271         * doc/internals.texi:  Fix trivial syntax errors.
272
273 2009-03-26  Alan Modra  <amodra@bigpond.net.au>
274
275         PR 10005
276         * config/tc-i386.c (reloc): Don't abort on lack of required
277         reloc type.
278
279 2009-03-25  H.J. Lu  <hongjiu.lu@intel.com>
280
281         * config/tc-i386.c (parse_insn): Use default_arch on unsupported
282         arch.
283
284 2009-03-23  H.J. Lu  <hongjiu.lu@intel.com>
285
286         PR gas/9966
287         * listing.c (listing_newline): Properly handle `\\"' and ';'.
288
289         * read.c (is_end_of_line): Update comments for line separator.
290         (read_begin): Set line separator in is_end_of_line to 2.
291
292 2009-03-19  David S. Miller  <davem@davemloft.net>
293
294         * config/tc-sparc.c (md_parse_option): If the user gives
295         us '--64' make sure max_architecture is at least V9.
296
297 2009-03-18  Andrew Stubbs  <ams@codesourcery.com>
298
299         * config/tc-arm.c (md_apply_fix): Check BFD_RELOC_ARM_IMMEDIATE and
300         BFD_RELOC_ARM_ADRL_IMMEDIATE value is in the correct section.
301         Check BFD_RELOC_ARM_ADRL_IMMEDIATE has a defined symbol.
302
303 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
304
305         * as.h: Include alloca-conf.h instead of config.h and remove
306         existing #if's handling alloca.
307         * Makefile.am: Run "make dep-am".
308         * Makefile.in: Regenerate.
309
310 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
311
312         * config/tc-ppc.c (ppc_frob_symbol): Add csect information for
313         C_AIX_WEAKEXT too.
314
315 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
316
317         * config/tc-ppc.c (md_apply_fix): On COFF targets, always reread
318         "value" from fx_offset.  Manually resubtract md_pcrel_from_section
319         where necessary.
320
321 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
322
323         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
324         * configure.in: Likewise.
325         * configure: Regenerate.
326
327 2009-03-11  Hans-Peter Nilsson  <hp@axis.com>
328
329         * config/tc-cris.c (cris_create_short_jump): Remove prototype.
330         Rename, changing all callers, to...
331         (md_create_short_jump): Adjust head comment.  Assert
332         word-sized-branch distance for v32.  Bail out calling as_fatal for
333         compatibility mode here.
334         (md_create_long_jump): ...not here.
335         * config/tc-cris.h (md_create_short_jump): Do not define.
336
337 2009-03-10  Hans-Peter Nilsson  <hp@axis.com>
338
339         * write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
340         the jump table for multiple overflowing entries with the same
341         target, handle base symbols being different.
342         (relax_segment) <case rs_broken_word, second loop>: Whenever a
343         single entry overflows, arrange to redirect all entries with the
344         same target.
345
346 2009-03-10  Alan Modra  <amodra@bigpond.net.au>
347
348         * config/tc-ppc.c (parse_cpu): Delete.
349         (md_parse_option, ppc_machine): Use ppc_parse_cpu.
350
351 2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>
352
353         PR gas/9915
354         * config/tc-i386.h (LOCAL_LABELS_DOLLAR): New.  Defined as 0.
355         (LOCAL_LABELS_FB): Undefine befoe define.
356
357 2009-03-06  Nick Clifton  <nickc@redhat.com>
358
359         * po/es.po: Updated Spanish translation.
360
361 2009-03-05  Joseph Myers  <joseph@codesourcery.com>
362
363         * read.c (s_fill, s_space, s_float_space, float_cons, stringer,
364         s_incbin): Call md_cons_align (1).
365
366 2009-03-04  Nick Clifton  <nickc@redhat.com>
367
368         * config/tc-alpha.c (alpha_prologue_label): Only define for ELF
369         based targets.
370         (s_alpha_comm): Only define "temp" and "log_align" local variables
371         for EVAX targets.
372
373 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
374
375         * config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
376         have non-zero addend.
377         (md_assemble): Parse args of __tls_get_addr calls.
378         (md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
379
380 2009-03-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
381
382         binutils/3807
383         * config/tc-hppa.h (tc_frob_symbol): Don't frob absolute symbols with
384         local scope for ELF targets.
385
386 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
387
388         * config/tc-ppc.c (md_assemble): APUinfo only for e500.
389
390 2009-03-03  Tristan Gingold  <gingold@adacore.com>
391             Eric Botcazou  <ebotcazou@adacore.com>
392             Douglas B Rupp  <rupp@gnat.com>
393
394         * doc/as.texinfo (Overview): Mention -replace/-noreplace options
395         for Alpha.
396         * doc/c-alpha.texi (Alpha Options): Document -replace/-noreplace.
397         * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define to 1 (evax).
398         (OBJ_SYMFIELD_TYPE): Remove.
399         (tc_canonicalize_symbol_name): Define to evax_shorten_name.
400         (TC_IMPLICIT_LCOMM_ALIGNMENT): For alignment to 3 on evax.
401         (tc_frob_file_before_fix): Do not defined on evax.
402         * config/tc-alpha.c: Always includes dwarf2dbg.h.
403         Include vms.h if OBJ_EVAX.
404         (struct alpha_fixup): Add xtrasym and procsym (evax only).
405         (enum alpha_macro_arg): Remove trailing comma.
406         (md_longopts): Add replace and noreplace arguments (evax only).
407         (alpha_evax_proc_hash): New variable.
408         (alpha_link_section): Make it global.
409         (alpha_ctors_section, alpha_dtors_section): Removed.
410         (alpha_ctors_symbol, alpha_dtors_symbol): Ditto.
411         (alpha_lit8_section): Ifndef'ed on evax.
412         (alpha_lit8_symbol): Ditto.
413         (alpha_prologue_label): New variable.
414         (alpha_linkage_symbol): New variable (evax only).
415         (alpha_flag_replace): Ditto.
416         (struct alpha_evax_procs): Add handler and handler_data field.
417         (alpha_evax_proc): Now of type pointer.
418         (alpha_linkage_fixup_root, alpha_linkage_fixup_tail): New variables.
419         (struct alpha_reloc_tag): Add sym and psym fields (evax only).
420         (get_alpha_reloc_tag): Initialize sym and psym fields (evax only).
421         (alpha_adjust_relocs): Ifndef'ed on evax.
422         (load_expression): Add opname argument.
423         Implement LDA/BSR optimization for evax.
424         (emit_lda): Adjust for new prototype of load_expression.
425         (emit_ir_load): Ditto. Do not nothing for GP if ..lk symbols.
426         (emit_loadstore): Likewise.
427         (emit_ldXu): Likewise.
428         (emit_stX): Likewise.
429         (emit_jsrjmp): Likewise.  Implement LDA/BSR optimization for evax.
430         (emit_ldgp): Avoid warning in evax case.
431         (add_to_link_pool): Make it static.  Return symbolic expression rather
432         than number expression for the offset.
433         (s_alpha_text): Create .text symbol for evax if not already created.
434         (s_alpha_comm): Do not create specific section for common symbol.
435         Fill common area with zeros for evax.
436         (s_alpha_prologue): Create alpha_prologue_label.
437         (s_alpha_section_name): New function (evax).
438         (s_alpha_section_word): Likewise.
439         (section_name): New static variabke moved out from ...
440         (s_alpha_section): ... here.  Create new sections on demand.
441         (s_alpha_literals): New function (evax).
442         (s_alpha_ent): Create alpha_evax_proc instance and insert it in the
443         alpha_evax_proc_hash table.
444         (s_alpha_handler): New function (evax).
445         (s_alpha_frame): Adjust for new type of alpha_evax_proc.
446         (s_alpha_prologue): New function (evax).
447         (s_alpha_pdesc): Adjust for new type of alpha_evax_proc and new
448         handling of procedures with hash table.
449         Add support for condition handlers.
450         (s_alpha_linkage): Create linkage_fixup instance and chain it.
451         (s_alpha_fp_save): Adjust for new type of alpha_evax_proc.
452         (s_alpha_mask): Likewise.
453         (s_alpha_fmask): Likewise.
454         (s_alpha_end): Clear alpha_evax_proc.
455         (s_alpha_align): Increase max_alignment to 16.
456         (alpha_print_token): Call print_expr_1 instead of print_expr.
457         (md_pseudo_table): Add "section", "literals", "handler" and
458         "handler_data" (evax).  Do not ignore "prologue" on evax.
459         Fix indentation.
460         (md_begin): Create hash table for alpha_evax_proc_hash.
461         (md_parse_option): Handle OPTION_REPLACE and OPTION_NOREPLACE.
462         (md_show_usage): Mention -replace/-noreplace for evax.
463         (md_apply_fix): Handle evax relocs (_NOP, _LDA, _BSR and _BOH).
464         (alpha_force_relocation): Likewise.
465         (alpha_fix_adjustable): Likewise. Add BFD_RELOC_16 case.
466         (tc_gen_reloc): Likewise.  Add BFD_RELOC_ALPHA_LINKAGE for evax.
467         (emit_insn): New cases for evax specific relocs.
468         (assemble_insn): Fix indentation.
469         Take care of -MDISP in operand table.
470         * config/obj-evax.h (struct alpha_linkage_fixups): New struct.
471         (OBJ_SYMFIELD_TYPE): New macro.
472         (obj_symbol_new_hook): Define.
473         (obj_frob_symbol, obj_frob_file_before_adjust): Ditto.
474         (obj_frob_file_before_fix): Ditto.
475         (PDSC_S_M_HANDLER_VALID): New macro.
476         (PDSC_S_M_HANDLER_DATA_VALID): Ditto.
477         (TC_IMPLICIT_LCOMM_ALIGNMENT): Remove.
478         Add prototypes for functions declared in obj-evax.c
479         * config/obj-evax.c: Include subsegs.h, struc-symbol.h, safe-ctype.h.
480         (s_evax_weak): Convert to ansi-C.
481         (evax_symbol_new_hook): New function.
482         (evax_frob_symbol): Ditto.
483         (evax_frob_file_before_adjust): Ditto.
484         (evax_frob_file_before_fix): Ditto.
485         (evax_shorten_name): Ditto.
486         (crc32): Ditto.
487         (encode_32): Ditto.
488         (encode_16): Ditto.
489         (decode_16): Ditto.
490         (shorten_identifier): Ditto.
491         (is_truncated_identifier): Ditto.
492         * dwarf2dbg.c (out_debug_info): Do not append trailing slash on VMS.
493         * as.c (close_output_file): Remove #ifndef OBJ_VMS.
494         (main): Ditto.
495
496 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
497
498         * Makefile.am: Run "make dep-am".
499         * Makefile.in: Regenerate.
500
501 2009-03-02  Nick Clifton  <nickc@redhat.com>
502
503         PR 9874
504         * config/tc-ia64.c (fix_insn): Fix warning reported by
505         -Wformat-security.
506
507 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
508
509         * config/tc-score7.c: New file.
510         * doc/c-score.texi: New file.
511         * Makefile.am: Update dependencies for tc-score.c.
512         * Makefile.in: Regenerate.
513         * NEWS: Mention support for Score7 architecture.
514         * config/tc-score.c: Add support for Score7 architecture.
515         * config/tc-score.h: Likewise.
516         * doc/Makefile.am: Add c-score.texi.
517         * doc/Makefile.in: Regenerate.
518         * doc/all.texi: Add Score7.
519         * doc/as.texinfo: Add Score7.
520
521 2009-03-01  Mark Mitchell  <mark@codesourcery.com>
522
523         * config/tc-arm.c (md_assemble): Allow barrier instructions on
524         ARMv6-M cores.
525
526 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
527
528         * configure: Regenerate.
529
530 2009-02-26  Peter Bergner  <bergner@vnet.ibm.com>
531
532         * config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63",
533         "f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63".
534         (parse_cpu): Extend -mpower7 to accept power7 and isel instructions.
535
536 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
537
538         * config/tc-i386.c (fits_in_imm4): Removed.
539
540 2009-02-24  Helge Deller <deller@gmx.de>
541
542         * config/tc-hppa.c (pa_ip): Add check of immediate values.
543         (SAVE_IMMEDIATE): New define.
544
545 2009-02-23  Mark Mitchell  <mark@codesourcery.com>
546
547         * config/tc-arm.c (warn_deprecated_sp): New macro.
548         (do_t_mov_cmp): Permit R13 as the second
549         argument to "cmp.n".
550
551 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
552
553         * config/tc-i386.c (type_names): Add OPERAND_TYPE_REGYMM.
554         (pt): Replace UINTS_ALL_ZERO with operand_type_all_zero.
555
556 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
557
558         * config/tc-i386.c (type_names): Remove OPERAND_TYPE_VEX_IMM4.
559
560 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
561
562         * config/tc-i386.c (vex_imm4): Removed.
563         (VEX_check_operands): Likewise.
564         (match_template): Updated.
565
566 2009-02-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
567
568         * doc/all.texi: Set S390.
569         * doc/as.texinfo: Add S390 support and pull in c-s390.texi.
570         * doc/Makefile.am (CPU_DOCS): Add c-s390.texi.
571         * doc/Makefile.in: Likewise.
572         * doc/c-s390.texi: New.
573
574 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
575
576         * config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR.
577         (mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New.
578         (mcf5307_ctrl): Add VBR.
579         (no_mac): New variable.
580         (m68k_extensions): Refer to no_mac mask.
581         (m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277,
582         52252..52259, 53011..53017.
583         (m68k_ip): Process CPUCR.
584         (init_table): Add cpucr entry.
585         (m68k_set_extension): Allow negated mask to refer to a variable.
586         (md_show_usage): Use '%s' to silence fprintf warning.
587         * config/m68k-parse.h (CPUCR): New control register.
588
589 2009-02-10  Nathan Sidwell  <nathan@codesourcery.com>
590
591         * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
592         as_bad calls to silence compiler warning.
593
594 2009-02-06  Nick Clifton  <nickc@redhat.com>
595
596         PR 9814
597         * config/tc-arm.c (MODE_RECORDED): New define.
598         (output_inst): Record the thumb_mode in the current frag.
599         (arm_handle_align): Ignore the MODE_RECORDED bit in tc_frag_data.
600         (arm_init_frag): Only set the tc_frag_data field if it has not
601         already been set.
602
603 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
604
605         AVX Programming Reference (January, 2009)
606         * config/tc-i386.c (CPU_FLAGS_PCLMUL_MATCH): New.
607         (CPU_FLAGS_AVX_MATCH): Updated.
608         (CPU_FLAGS_32BIT_MATCH): Likewise.
609         (cpu_flags_match): Likewise.
610
611 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
612
613         * config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T,
614         M_MSGWAIT and M_MSGWAIT_T.
615         (mips_cpu_info_table): Add XLR entry.
616         * doc/c-mips.texi (-march): Document xlr.
617
618 2009-02-03  Eric B. Weddington  <eric.weddington@atmel.com>
619
620         * config/tc-avr.c (mcu_types): Add ata6289.
621         * doc/c-avr.texi: Likewise.
622
623 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
624
625         * configure.in: AC_SUBST pdfdir.
626         * Makefile.am: Add install-pdf, install-pdf-am,
627         and install-pdf-recursive targets.
628         * doc/Makefile.am: Define pdf__strip_dir. Add
629         install-pdf and install-pdf-am targets.
630         * po/Make-in: Add install-pdf target.
631         * configure: Regenerate.
632         * Makefile.in: Regenerate.
633         * doc/Makefile.in: Regenerate.
634
635 2009-02-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
636
637         * config/m68k-parse.h (enum pic_relocation): Add values for TLS
638         relocations.
639         * config/m68k-parse.y (yylex): Parse TLS relocations.
640         * config/tc-m68k.c (m68k_elf_cons): New static function.
641         (md_pseudo_table): Use it.
642         (get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
643         relocations.
644         (md_apply_fix): Fix to set thread local flag.
645         (m68k_elf_suffix): New static function; helper for m68k_elf_cons.
646
647 2009-02-03  Vince Weaver <vince@csl.cornell.edu>
648
649         PR 9779
650         * config/tc-pdp11.c (parse_op_no_deferred): Fix handling of
651         indexed addressing for symbolic expressions.
652
653 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
654
655         * config/tc-arm.c (BAD_SP): Define.
656         (s_arm_unwind_fnstart): Use REG_SP.
657         (s_arm_unwind_setfp): Likewise.
658         (reject_bad_reg): New macro.
659         (do_co_reg): Check for bad registers.
660         (do_co_reg2c): Likewise.
661         (do_srs): Use REG_SP.
662         (do_t_add_sub): Check for bad registers.
663         (do_t_adr): Likewise.
664         (do_t_arit3): Likewise.
665         (do_t_arit3c): Likewise.
666         (do_t_bfc): Likewise.
667         (do_t_bfi): Likewise.
668         (do_t_bfx): Likewise.
669         (do_t_blx): Likewise.
670         (do_t_bx): Likewise.
671         (do_t_bxj): Likewise.
672         (do_t_clz): Likewise.
673         (do_t_div): Likewise.
674         (do_t_mla): Likewise.
675         (do_t_mlal): Likewise.
676         (do_t_mov_cmp): Likewise.
677         (do_t_mov16): Likewise.
678         (do_t_mvn_tst): Likewise.
679         (do_t_mrs): Likewise.
680         (do_t_msr): Likewise.
681         (do_t_mul): Likewise.
682         (do_t_mull): Likewise.
683         (do_t_orn): Likewise.
684         (do_t_pkhbt): Likewise.
685         (do_t_pld): Likewise.
686         (do_t_rbit): Likewise.
687         (do_t_rev): Likewise.
688         (do_t_rrx): Likewise.
689         (do_t_rsb): Likewise.
690         (do_t_shift): Likewise.
691         (do_t_simd): Likewise.
692         (do_t_ssat): Likewise.
693         (do_t_ssat16): Likewise.
694         (do_t_sxtah): Likewise.
695         (do_t_sxth): Likewise.
696         (do_t_tb): Likewise.
697         (do_t_usat): Likewise.
698         (do_t_usat16): Likewise.
699         (nysn_insert_sp): Use REG_SP.
700
701 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
702
703         * config/tc-arm.c (do_t_orn): New function.
704         (do_t_rrx): Likewise.
705         (insns): Add orn and rrx.
706
707 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
708
709         * config/tc-arm.c (insns): Add qasx, qsax, shasx, shsax, ssax,
710         uasx, uhasx, uhsx, uqasx, uqsax, usax.
711
712 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
713
714         * config/tc-arm.c (insns): Correct encoding of qadd, qdadd, qsub,
715         qdsub in Thumb-2 mode.
716
717 2009-01-29  Paul Brook  <paul@codesourcery.com>
718             Mark Mitchell  <mark@codesourcery.com>
719
720         * config/tc-arm.c (do_t_mul): In Thumb-2 mode, use 16-bit encoding
721         of MUL when possible.
722
723 2009-01-29  Nick Clifton  <nickc@redhat.com>
724
725         * config/tc-mep.h (DIFF_EXPR_OK): Do not define.
726
727 2009-01-29  Nathan Sidwell  <nathan@codesourcery.com>
728             Catherine Moore <clm@codesourcery.com?
729
730         * doc/c-arm.texi (ARM Directives): Alphabetize. Document .2byte,
731         .4byte, .8byte, .bss, .even, .extend, .ldouble, .packed, .secrel32
732         directives.
733
734 2009-01-27  Nick Clifton  <nickc@redhat.com>
735
736         * config/tc-mips.c (append_insn): Cope with a complex reloc
737         sequence containing an unsupported reloc type.
738         (enum options): Replace computed #define's constants for option
739         numbers with this enum.
740         (struct md_longopts): Use the enum.  Allow OPTION_32 in a non-ELF
741         environment.
742         (md_parse_option): Allow -32 in a non-ELF environment.
743
744 2009-01-26  Andrew Stubbs  <ams@codesourcery.com>
745
746         * config/tc-arm.c (attributes_set_explicitly): New array.
747         (s_arm_eabi_attribute): Check return value from s_vendor_attribute.
748         (cpu_arch): Add ARM_ARCH_V5T.
749         (aeabi_set_attribute_int): New function.
750         (aeabi_set_attribute_string): New function.
751         (aeabi_set_public_attributes): Set attributes according to the user's
752         intentions, rather than the actual state of the binary.
753         Use aeabi_set_attribute_int and aeabi_set_attribute_string instead of
754         bfd_elf_add_proc_attr_int and bfd_elf_add_proc_attr_string.
755         Support WMMXv2. Use attribute names instead of numbers.
756         * read.c (s_vendor_attribute): Change return type to int.
757         Return the tag number that was set.
758         * read.h (s_vendor_attribute): Change return type to int.
759
760 2009-01-26  Eric B. Weddington  <eric.weddington@atmel.com>
761
762         PR 9789
763         * config/tc-avr.c (mcu_types): Fix typo in atmega128rfa1 name.
764         * doc/c-avr.texi: Likewise.
765
766 2009-01-23  Nathan Sidwell  <nathan@codesourcery.com>
767
768         * doc/c-arm.texi (): Document -mwarn-deprecated.
769         * config/tc-arm.c (WARN_DEPRECATED): Remove.  Replace with ...
770         (warn_on_deprecated): ... this.
771         (opcode_lookup, md_assemble): Check it before warning.
772         (arm_opts): Add m[no-]warn-deprecated.
773         (md_parse_option): Replace WARN_DEPRECATED with
774         warn_on_deprecated.
775
776 2009-01-23  Andreas Schwab  <schwab@suse.de>
777
778         * config/tc-mips.c (macro) [M_DINS, M_SEQ_I, M_SNE_I]: Cast
779         arguments to macro_build to match format.
780
781         * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define.
782         * config/tc-s390.h (LOCAL_LABEL_PREFIX): Don't define.
783
784 2009-01-19  Nick Clifton  <nickc@redhat.com>
785
786         * config/tc-arm.h (CONVERT_SYMBOLIC_ATTRIBUTE): Only define for
787         ELF format ARM targets.
788         * config/tc-arm.c (arm_convert_symbolic_attribute): Likewise.
789
790 2009-01-19  Nick Clifton  <nickc@redhat.com>
791
792         * configure.tgt: Restore alpha sorting to object format switch
793         statement.
794
795 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
796
797         * read.c (s_vendor_attribute): Allow for unknown flag bits in type.
798
799 2009-01-16  Mark Shinwell  <shinwell@codesourcery.com>
800
801         * config/te-armeabi.h (EABI_DEFAULT): Use EF_ARM_EABI_VER5.
802         * config/te-armlinuxeabi.h (EABI_DEFAULT): Likewise.
803
804 2009-01-16  Andrew Stubbs  <ams@codesourcery.com>
805             Daniel Jacobowitz  <dan@codesourcery.com>
806
807         * config/tc-arm.c (arm_copy_symbol_attributes): New function.
808         * config/tc-arm.h (arm_copy_symbol_attributes): New prototype.
809         (CONVERT_SYMBOLIC_ATTRIBUTE): New define.
810         * read.c (s_vendor_attribute): Add support for symbolic tag names.
811         Improve string parser.
812         * doc/c-arm.texi (ARM Machine Directives): Document
813         .eabi_attribute symbolic tag names.
814
815 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
816
817         * configure.in (commonbfdlib): Delete.
818         * configure: Regenerate.
819         * po/POTFILES.in: Regenerate.
820
821 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
822             Julian Brown   <julian@codesourcery.com>
823
824         * config/tc-arm.c (cpu_arch): Change ARM_ARCH_V6M to 11.
825
826 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
827
828         * read.c (s_vendor_attribute): bfd_elf_add_obj_attr_compat ->
829         bfd_elf_add_obj_attr_int_string.
830
831 2009-01-15  Douglas B Rupp  <rupp@gnat.com>
832
833         * configure.tgt(ia64-*-*vms*): New target.
834         * dwarf2dbg.h (dwarf2_loc_mark_labels): Make extern.
835         * tc.h (md_number_to_chars): Declare iff undefined.
836         * config/obj-elf.c (obj_elf_change_section): Change type of arg
837         attr to bfd_vma.
838         (obj_elf_parse_section_letters): Return a bfd_vma. Change type of
839         variables attr, md_attr to bfd_vma.
840         (obj_elf_section_word): Likewise.
841         (obj_elf_section): Change type of variable attr to bfd_vma
842         * config/obj-elf.h (obj_elf_change_section): Change type of arg
843         attr to bfd_vma.
844         * config/tc-ia64.c (bfdver.h,time.h): Include.
845         (ia64_elf_section_letter): Now returns a bfd_vma.
846         Handle VMS specific attributes.
847         (ia64_elf_section_flags): Arg attr now a bfd_vma.
848         (ia64_init): Don't turn on dependency checking for VMS.
849         (ia64_target_format): Check for VMS flag bit.
850         (do_alias): Hande decc$ functions.
851         (get_vms_time): New function.
852         (ia64_vms_note): New function.
853         * config/tc-ia64.h (ia64_elf_section_letter): Now returns a bfd_vma.
854         (ia64_elf_section_flags): Arg attr now a bfd_vma.
855         (tc_init_after_args): Define for VMS.
856         * config/tc-alpha.c (alpha_elf_section_letter): Return a bfd_vma.
857         (alpha_elf_section_flags): Change type of arg attr to bfd_vma.
858         * config/tc-alpha.h: Likewise.
859         * config/tc-i386.c (x86_64_section_letter): Return a bfd_vma.
860         (x86_64_section_word): Return a bfd_vma.
861         * config/tc-i386.h: Likewise.
862         * config/tc-ip2k.c (ip2k_elf_section_flags): Change type of arg
863         attr to bfd_vma.
864         * config/tc-ip2k.h: Likewise.
865         * config/tc-mep.c (mep_elf_section_letter): Return a bfd_vma.
866         (mep_elf_section_flags): Change type of arg attr to bfd_vma.
867         * config/tc-mep.h: Likewise.
868         * config/tc-ppc.c  (ppc_section_letter): Return a bfd_vma.
869         (ppc_section_word): Return a bfd_vma.
870         (ppc_section_flags): Change type of arg attr to bfd_vma.
871         * config/tc-ppc.h: Likewise.
872         * config/tc-frv.h: Provide a prototype for frv_md_number_to_chars.
873         * config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR,
874         DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME):
875         New file with new macros
876         * dwarf2dbg.c (get_filenum, out_file_list): Default and call new
877         macros.
878
879 2009-01-15  Nick Clifton  <nickc@redhat.com>
880
881         PR 9722
882         * config/tc-arm.c (do_t_nop): Check for availability of Thumb2
883         instructions before generating a Thumb2 nop.
884
885 2009-01-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
886
887         * config/tc-s390.h: Define LOCAL_LABEL_PREFIX.
888
889 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
890
891         * config/tc-spu.c (md_pseudo_table): Add "brinfo".
892         (brinfo): New var.
893         (md_assemble): Poke brinfo into branch instructions.
894         (spu_brinfo): New function.
895         (md_apply_fix): Don't assume insn fields start off at zero, mask
896         them to remove possible brinfo.
897
898 2009-01-10  H.J. Lu  <hongjiu.lu@intel.com>
899
900         * doc/c-i386.texi: Reformat.
901
902 2009-01-10  H.J. Lu  <hongjiu.lu@intel.com>
903
904         * config/tc-i386.c (cpu_arch): Add corei7, .clflush and
905         .syscall.
906         (i386_align_code): Handle PROCESSOR_COREI7.
907         (md_show_usage): Add corei7, clflush and syscall.
908         (i386_target_format): Replace cpup4 with cpuclflush.
909
910         * config/tc-i386.h (processor_type): Add PROCESSOR_COREI7.
911
912         * doc/c-i386.texi: Document corei7, clflush and syscall.
913
914 2009-01-09  H.J. Lu  <hongjiu.lu@intel.com>
915
916         * config/tc-i386.c (cpu_arch): Add .rdtscp.
917         (md_show_usage): Display rdtscp.
918
919         * doc/c-i386.texi: Document rdtscp.
920
921 2009-01-09  Peter Bergner  <bergner@vnet.ibm.com>
922
923         * config/tc-ppc.c (ppc_setup_opcodes): Remove PPC_OPCODE_NOPOWER4 test.
924         Test the new "deprecated" opcode field.
925
926 2009-01-07  Sterling Augustine  <sterling@tensilica.com>
927
928         * config/tc-xtensa.c (produce_flix): New.
929         (option_flix, optoin_no_generate_flix, option_no_flix) Define.
930         (md_longopts): Add support for them.
931         (md_parse_option): Likewise.
932         (md_show_usage): Add help message.
933         (finish_vinsn): Don't allow multi-slot flix when produce_flix
934         option is set to FLIX_NONE.
935         * config/xtensa-relax.c (transition_applies): Only relax to
936         flix branches when produce_flix equals FLIX_ALL.
937         * config/xtensa-relax.h (flix_level, FLIX_ALL, FLIX_NO_GENERATE
938         FLIX_NONE): New.
939         (produce_flix): Declare.
940
941 2009-01-06  Chao-ying Fu  <fu@mips.com>
942
943         * config/tc-mips.c (mips_ip): Set lastregno to 0xffffffff.
944         Use strncmp to match jalr and jalr.hb.
945         Fix a typo.
946
947 2009-01-05  H.J. Lu  <hongjiu.lu@intel.com>
948
949         AVX Programming Reference (December, 2008)
950         * config/tc-i386.c (build_modrm_byte): Remove 5 operand instruction
951         support.  Don't swap REG and NDS for FMA.
952
953 2009-01-02  Matthias Klose  <doko@ubuntu.com>
954
955         * itbl-ops.c (itbl_disassemble): Don't rely on undefined sprintf
956         behaviour.
957
958 For older changes see ChangeLog-2008
959 \f
960 Local Variables:
961 mode: change-log
962 left-margin: 8
963 fill-column: 74
964 version-control: never
965 End: