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