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