1 2009-06-18 Nick Clifton <nickc@redhat.com>
4 * gas/tc-arm.c (do_t_ssat): Move common code from here...
5 (do_t_usat): ... and here to...
6 (do_t_ssat_usat): New function: ... here. Add code to check that
7 the shift value, if present, is in range.
9 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
11 Merge cegcc and mingw32ce target name changes
14 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
16 * configure.tgt: Add arm*-*-cegcc* target.
18 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
20 * configure.tgt: Add arm-*-mingw32ce* target.
22 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
24 * config/tc-vax.c (md_estimate_size_before_relax): Accept
25 indirect symbol references in the PIC mode and emit a
26 PC-relative relocation instead of a GOT/PLT one. Likewise
27 for symbols known to be hidden at this point.
29 2009-06-15 Nick Clifton <nickc@redhat.com>
32 * config/tc-arm.c (T16_32_TAB): Fix binary value of SEV.W
35 2009-06-13 H.J. Lu <hongjiu.lu@intel.com>
38 * config/tc-i386.c (md_apply_fix): Use TC_FORCE_RELOCATION
39 instead of generic_force_reloc.
41 * config/tc-i386.h (TC_FORCE_RELOCATION): New.
43 2009-06-11 Anthony Green <green@moxielogic.com>
45 * config/tc-moxie.c (md_chars_to_number): Define.
46 (md_begin): Populate opcode hashtable with more form 3 opcodes.
47 (md_assemble): Assemble MOXIE_F3_PCREL encoded instructions.
48 (md_apply_fix): Handle BFD_RELOC_MOXIE_10_PCREL relocations.
49 (tc_gen_reloc): Ditto.
50 (md_pcrel_from): Ditto.
51 (md_chars_to_number): New function.
53 2009-06-10 Anthony Green <green@moxielogic.com>
55 * config/tc-moxie.c (md_assemble): Handle MOXIE_F1_M encoded
58 2009-06-09 Jakub Jelinek <jakub@redhat.com>
61 * dw2gencfi.c (output_cfi_insn): Initialize fragment before rs_cfa
62 to DW_CFA_advance_loc4.
64 2009-06-08 Dave Korn <dave.korn.cygwin@gmail.com>
67 * config/tc-i386.c (md_estimate_size_before_relax): Don't relax
68 branches to weak symbols.
69 (md_apply_fix): Don't convert fixes against weak symbols to
70 section-relative offsets, but save addend for later reloc emission.
71 (tc_gen_reloc): When emitting reloc against weak symbol, adjust
72 addend to pre-compensate for bfd_install_relocation.
74 2009-06-04 Alan Modra <amodra@bigpond.net.au>
76 * dep-in.sed: Don't use \n in replacement part of s command.
77 * Makefile.am (DEP1, DEPTC, DEPOBJ, DEP2): LC_ALL for uniq.
78 * Makefile.in: Regenerate.
80 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
83 * config/tc-i386-intel.c (i386_intel_operand): Check '$' as '.'.
85 2009-05-26 Catherine Moore <clm@codesourcery.com>
87 * config/tc-mips.c (check_for_24k_errata): Remove.
88 (md_mips_end): Remove call to check_for_24k_errata.
89 (start_noreorder): Likewise.
90 (s_change_sec): Likewise.
91 (s_change_section): Likewise.
92 (insns_between): Add 24k errata checks.
93 (append_insn): Remove declaration and references to nhdx_24k.
94 Remove calls to check_for_24k_errata.
96 2009-05-26 Nick Clifton <nickc@redhat.com>
98 * po/id.po: Updated Indonesian translation.
99 * po/gas.pot: Updated template file.
101 2009-05-26 Nick Clifton <nickc@redhat.com>
104 * config/bfin-parse.y (error): Use "%s" as format string for error
107 2009-05-26 Alan Modra <amodra@bigpond.net.au>
109 * dep-in.sed: Output one filename per line with all lines having
110 continuation backslash. Prefix first line with "A", following
112 * Makefile.am (DEP): Don't use dep.sed here.
113 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
115 (DEPTC, DEPOBJ, DEP2): Use dep.sed on dependencies, sort and uniq.
116 Emit multi dependencies on one line.
117 * Makefile.in: Regenerate.
119 2009-05-25 Tristan Gingold <gingold@adacore.com>
121 * makefile.vms: New file to compile gas on VMS.
123 * configure.com: New file to do configuration on VMS with DCL.
125 2009-05-23 Richard Sandiford <rdsandiford@googlemail.com>
127 * config/tc-mips.c (nops_for_vr4130): Don't check noreorder_p.
128 (nops_for_insn): Likewise.
130 2009-05-22 H.J. Lu <hongjiu.lu@intel.com>
132 * symbols.c (COPIED_SYMFLAGS): Add BSF_GNU_INDIRECT_FUNCTION.
134 2009-05-22 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
136 * config/tc-i386.c (process_drex): Delete. Remove SSE5 support.
137 (build_modrm_byte): Remove DREX handling support.
140 (md_assemble): Remove DREX handling support.
141 (process_operands): Remove DREX, SSE5 support.
142 (i386_insn): Remove DREX.
144 2009-05-22 Alan Modra <amodra@bigpond.net.au>
146 * Makefile.am: Run "make dep-am".
147 * Makefile.in: Regenerate.
149 2009-05-20 Kai Tietz <kai.tietz@onevision.com>
150 H.J. Lu <hongjiu.lu@intel.com>
152 * config/obj-coff.h: Include "coff/x86_64.h" for x86 pe-coff.
153 (TARGET_FORMAT): Removed for x86 pe-coff.
154 (COFF_TARGET_FORMAT): Likewise.
156 * config/tc-i386.c (md_longopts): Allow --64 for x86 pe-coff.
157 (md_parse_option): Likewise.
158 (md_show_usage): Show option --32/--64 for x86 pe-coff.
159 (i386_target_format): Use also for x86 pe-coff.
161 * config/tc-i386.h (TARGET_FORMAT): Defined as i386_target_format
164 2009-05-19 DJ Delorie <dj@redhat.com>
166 * config/tc-mep.c (mep_machine): Only check CPU flags, not COP flags.
167 (mep_process_saved_insns): Remove debugging printfs.
169 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
171 * NEWS: Mention new feature.
172 * config/obj-coff.c (obj_coff_common_parse): New function.
173 (obj_coff_comm): Likewise.
174 (coff_pseudo_table): Override default ".comm" definition on PE.
175 * doc/as.texinfo: Document new feature.
177 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
179 * config/obj-coff.c (obj_coff_section): Add 'y' as
180 specifier for SEC_COFF_NOREAD section flag.
181 * doc/as.texinfo: Add documentation about .section flag 'y'.
183 2009-05-13 DJ Delorie <dj@redhat.com>
185 * cgen.c (gas_cgen_parse_operand): Guard against NULL pointers.
187 2009-05-13 Andrew Jenner <andrew@codesourcery.com>
189 * config/tc-arm.c: Move as.h to start of file.
191 2009-05-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
193 * config/tc-arm.h: Fix typo in comment.
194 (ARM_IS_FUNC): New macro.
195 (MD_APPLY_SYM_VALUE): Define.
197 * config/tc-arm.c (do_blx): Retain BFD_RELOC_ARM_PCREL_BLX for
198 all versions of EABI.
199 (relax_branch): Do not relax for branches to ARM functions.
200 (md_pcrel_from_section): Set up base correctly for
201 BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_THUMB_PCREL_CALL,
202 BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_ARM_PCREL_BLX
203 BFD_RELOC_ARM_PCREL_CALL.
204 (md_apply_fix): Flip bl to blx where possible.
205 Flip blx to bl where possible.
206 (arm_force_relocation): Force relocations for
207 BFD_RELOC_ARM_PCREL_JUMP, BFD_RELOC_ARM_PCREL_JUMP,
208 BFD_RELOC_ARM_PCREL_BLX, BFD_RELOC_THUMB_PCREL_BLX,
209 BFD_RELOC_THUMB_PCREL_BRANCH20, BFD_RELOC_THUMB_PCREL_BRANCH23,
210 BFD_RELOC_THUMB_PCREL_BRANCH25.
211 (arm_apply_sym_value): New function.
213 2009-05-04 Tristan Gingold <gingold@adacore.com>
215 * config/tc-alpha.c: Also declare alpha_prologue_label for OBJ_EVAX.
217 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
219 * config/tc-armlinux-eabi.h (FPU_DEFAULT): Default to plain VFP.
220 * config/tc-armeabi.h (FPU_DEFAULT): Likewise.
221 * config/tc-arm.c (md_begin): If FPU_DEFAULT is set, don't infer
222 the default FPU from the processor.
224 2009-05-01 Julian Brown <julian@codesourcery.com>
226 * config/tc-arm.c (do_t_blx): Always use BFD_RELOC_THUMB_PCREL_BLX.
227 (md_pcrel_from_section): Align address for BLX.
228 (tc_gen_reloc): Change BFD_RELOC_THUMB_PCREL_BLX relocations to
229 BFD_RELOC_THUMB_PCREL_BRANCH23 for EABI v4+.
231 2009-04-29 DJ Delorie <dj@redhat.com>
233 * config/tc-mep.c (md_begin): Check coprocessor type.
234 (md_check_parallel64_scheduling): Use memset to initialize the buffer.
235 (md_check_parallel32_scheduling): Likewise.
237 (mep_check_ivc2_scheduling): New.
238 (mep_check_parallel_scheduling): Call it.
239 (mep_process_saved_insns): Add IVC2 slot support.
240 (md_assemble): Likewise.
242 2009-04-30 Nick Clifton <nickc@redhat.com>
244 * config/obj-elf.c (obj_elf_type): Add support for a
245 gnu_indirect_function type.
246 * config/tc-i386.c (tc_i386_fix_adjustable): Do not adjust fixups
247 against indirect function symbols.
248 * doc/as.texinfo (.type): Document the support for the
249 gnu_indirect_function symbol type.
250 * NEWS: Mention the new feature.
252 2009-04-24 Cary Coutant <ccoutant@google.com>
254 * NEWS: Add item about discriminator support.
255 * dwarf2dbg.h (struct dwarf2_line_info): Add discriminator field.
256 * dwarf2dbg.c (current): Add discriminator field.
257 (dwarf2_where): Copy discriminator value.
258 (dwarf2_consume_line_info): Set discriminator to 0.
259 (dwarf2_directive_loc): Process discriminator sub-op.
260 (out_leb128): New function.
261 (process_entries): Output DW_LNE_set_discriminator.
262 * doc/as.texinfo: Add discriminator operand to .loc directive.
264 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
266 * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
267 as_bad calls to silence compiler warning.
269 2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
271 * config/tc-i386-intel.c (O_XXX): Reorder.
273 2009-04-20 Jan Beulich <jbeulich@novell.com>
275 * Makefile.am: Add explicit dependency of tc-i386.o on
277 * Makefile.in: Likewise.
278 * config/tc-i386.c (i386_finalize_immediate): Declare, broken
279 out from i386_immediate.
280 (i386_immediate): Slightly re-arrange, call
281 i386_finalize_immediate.
282 (i386_finalize_displacement): Declare, broken out from
284 (i386_displacement): Slightly re-arrange, call
285 i386_finalize_displacement.
286 (i386_intel_simplify, i386_intel_parse_name): Declare.
287 (this_operand): Initialize to -1.
288 (set_intel_syntax): Set expression rank for O_full_ptr.
289 (md_assemble): Set this_operand back to -1 after parsing
291 (x86_cons): Negate intel_syntax to indicate state. Call
293 (md_operand): Convert if to switch. Handle '[' for Intel
295 (i386_intel_operand): Delete, including all helper functions
297 * config/tc-i386-intel.c: New file, all new code.
298 * config/tc-i386.h (i386_operator): Declare.
299 (md_operator): Define to i386_operator.
300 (i386_need_index_operator): Declare.
301 (md_need_index_operator): Define to i386_need_index_operator.
302 (O_full_ptr): Define.
304 2009-04-20 Jan Beulich <jbeulich@novell.com>
306 * expr.c (operand): Call md_need_index_operator() and
307 md_operator() if defined. Add unary label.
308 (operator): Call md_operator() if defined.
309 (expr): Adjust assertions on range and rank of op_left and
310 op_right. Don't abort on unhandled operators when reducing
311 expressions with both operands being constant.
312 (expr_set_rank): New.
313 * expr.h (expr_set_rank): Declare.
315 2009-04-15 Anthony Green <green@moxielogic.com>
317 * config/tc-moxie.h: New file.
318 * config/tc-moxie.c: New file.
319 * configure: Add support for moxie.
320 * configure.tgt: Add support for moxie.
322 2009-04-16 Jan Beulich <jbeulich@novell.com>
324 * expr.c: Include limits.h if available, and #define CHAR_BITS
326 (expr): Check range of shift count when evaluating a constant
329 2009-04-15 Jan Beulich <jbeulich@novell.com>
331 * config/tc-i386.c (process_operands): Print operands in
332 correct order depending on intel_syntax.
334 2009-04-09 Catherine Moore <clm@codesourcery.com>
336 * config/tc-mips.c (mips_fix_24k): Declare.
337 (check_for_24k_errata): New.
338 (mips_cleanup): Call check_for_24k_errata.
339 (start_noreorder): Likewise.
340 (md_mips_end): Likewise.
341 (s_change_sec): Likewise.
342 (s_change_section): Likewise.
343 (append_insn): Call check_for_24k_errata. Prevent
344 ERET/DERET instructions from being moved into delay
346 (OPTION_FIX_24K): New.
347 (OPTION_NO_FIX_24k) New.
348 (md_longopts): Add "mfix-24k" and "mno-fix-24k".
349 (md_parse_option): Handle fix-24k options.
350 (md_show_usage): Display fix-24k options.
351 * doc/c-mips.texi: Document.
353 2009-04-09 Adam Nemet <anemet@caviumnetworks.com>
355 * config/tc-mips.c (mips_dwarf2_addr_size): Use HAVE_64BIT_OBJECTS
356 instead of HAVE_64BIT_SYMBOLS.
358 2009-04-07 DJ Delorie <dj@redhat.com>
360 * config/tc-mep.c: Add UCI/DSP instruction support. Add C5 support.
361 (md_show_usage): Change default endian to little.
362 * config/tc-mep.h (TARGET_BYTES_BIG_ENDIAN): Change default to little.
364 2009-04-06 DJ Delorie <dj@redhat.com>
366 * tc-h8300.c (do_a_fix_imm): Pass the insn, force relocs for MOVA
368 (build_bytes): Pass insn to do_a_fix_imm.
370 2009-04-02 Daniel Gutson <dgutson@codesourcery.com>
372 * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
373 * doc/c-arm.texi: Added codes for processors ARM Cortex-M0 and
376 2009-04-01 Matt Thomas <matt@netbsd.org>
378 * config/tc-vax.c (synthetic_votstrs): add "jbbcci" and "jbbssi"
379 (md_assemble): emit symbol name when used as immediate in PIC mode.
380 (md_assemble): fix LP64 bug (use sizeof (valueT) instead 4).
382 2009-04-01 Sterling Augustine <sterling@jaw.hq.tensilica.com>
384 * config/tc-xtensa.c (parse_arguments): call demand_empty_rest_of_line
386 2009-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
388 * config/tc-arm.c (arm_validate_fix): Define only for OBJ_COFF.
389 (find_real_start): Likewise.
390 * config/tc-arm.h (TC_VALIDATE_FIX): Likewise
392 2009-04-01 Nathan Sidwell <nathan@codesourcery.com>
394 * config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
395 (arm_handle_align): Generate v6k ARM, thumb2 wide & narrow nops
398 2009-03-31 Peter Bergner <bergner@vnet.ibm.com>
400 * config/tc-ppc.c (ppc_handle_align): Handle power7's group ending nop.
402 2009-03-31 Dave Korn <dave.korn.cygwin@gmail.com>
404 * doc/internals.texi: Fix trivial syntax errors.
406 2009-03-26 Alan Modra <amodra@bigpond.net.au>
409 * config/tc-i386.c (reloc): Don't abort on lack of required
412 2009-03-25 H.J. Lu <hongjiu.lu@intel.com>
414 * config/tc-i386.c (parse_insn): Use default_arch on unsupported
417 2009-03-23 H.J. Lu <hongjiu.lu@intel.com>
420 * listing.c (listing_newline): Properly handle `\\"' and ';'.
422 * read.c (is_end_of_line): Update comments for line separator.
423 (read_begin): Set line separator in is_end_of_line to 2.
425 2009-03-19 David S. Miller <davem@davemloft.net>
427 * config/tc-sparc.c (md_parse_option): If the user gives
428 us '--64' make sure max_architecture is at least V9.
430 2009-03-18 Andrew Stubbs <ams@codesourcery.com>
432 * config/tc-arm.c (md_apply_fix): Check BFD_RELOC_ARM_IMMEDIATE and
433 BFD_RELOC_ARM_ADRL_IMMEDIATE value is in the correct section.
434 Check BFD_RELOC_ARM_ADRL_IMMEDIATE has a defined symbol.
436 2009-03-18 Alan Modra <amodra@bigpond.net.au>
438 * as.h: Include alloca-conf.h instead of config.h and remove
439 existing #if's handling alloca.
440 * Makefile.am: Run "make dep-am".
441 * Makefile.in: Regenerate.
443 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
445 * config/tc-ppc.c (ppc_frob_symbol): Add csect information for
448 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
450 * config/tc-ppc.c (md_apply_fix): On COFF targets, always reread
451 "value" from fx_offset. Manually resubtract md_pcrel_from_section
454 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
456 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
457 * configure.in: Likewise.
458 * configure: Regenerate.
460 2009-03-11 Hans-Peter Nilsson <hp@axis.com>
462 * config/tc-cris.c (cris_create_short_jump): Remove prototype.
463 Rename, changing all callers, to...
464 (md_create_short_jump): Adjust head comment. Assert
465 word-sized-branch distance for v32. Bail out calling as_fatal for
466 compatibility mode here.
467 (md_create_long_jump): ...not here.
468 * config/tc-cris.h (md_create_short_jump): Do not define.
470 2009-03-10 Hans-Peter Nilsson <hp@axis.com>
472 * write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
473 the jump table for multiple overflowing entries with the same
474 target, handle base symbols being different.
475 (relax_segment) <case rs_broken_word, second loop>: Whenever a
476 single entry overflows, arrange to redirect all entries with the
479 2009-03-10 Alan Modra <amodra@bigpond.net.au>
481 * config/tc-ppc.c (parse_cpu): Delete.
482 (md_parse_option, ppc_machine): Use ppc_parse_cpu.
484 2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
487 * config/tc-i386.h (LOCAL_LABELS_DOLLAR): New. Defined as 0.
488 (LOCAL_LABELS_FB): Undefine befoe define.
490 2009-03-06 Nick Clifton <nickc@redhat.com>
492 * po/es.po: Updated Spanish translation.
494 2009-03-05 Joseph Myers <joseph@codesourcery.com>
496 * read.c (s_fill, s_space, s_float_space, float_cons, stringer,
497 s_incbin): Call md_cons_align (1).
499 2009-03-04 Nick Clifton <nickc@redhat.com>
501 * config/tc-alpha.c (alpha_prologue_label): Only define for ELF
503 (s_alpha_comm): Only define "temp" and "log_align" local variables
506 2009-03-04 Alan Modra <amodra@bigpond.net.au>
508 * config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
509 have non-zero addend.
510 (md_assemble): Parse args of __tls_get_addr calls.
511 (md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
513 2009-03-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
516 * config/tc-hppa.h (tc_frob_symbol): Don't frob absolute symbols with
517 local scope for ELF targets.
519 2009-03-04 Alan Modra <amodra@bigpond.net.au>
521 * config/tc-ppc.c (md_assemble): APUinfo only for e500.
523 2009-03-03 Tristan Gingold <gingold@adacore.com>
524 Eric Botcazou <ebotcazou@adacore.com>
525 Douglas B Rupp <rupp@gnat.com>
527 * doc/as.texinfo (Overview): Mention -replace/-noreplace options
529 * doc/c-alpha.texi (Alpha Options): Document -replace/-noreplace.
530 * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define to 1 (evax).
531 (OBJ_SYMFIELD_TYPE): Remove.
532 (tc_canonicalize_symbol_name): Define to evax_shorten_name.
533 (TC_IMPLICIT_LCOMM_ALIGNMENT): For alignment to 3 on evax.
534 (tc_frob_file_before_fix): Do not defined on evax.
535 * config/tc-alpha.c: Always includes dwarf2dbg.h.
536 Include vms.h if OBJ_EVAX.
537 (struct alpha_fixup): Add xtrasym and procsym (evax only).
538 (enum alpha_macro_arg): Remove trailing comma.
539 (md_longopts): Add replace and noreplace arguments (evax only).
540 (alpha_evax_proc_hash): New variable.
541 (alpha_link_section): Make it global.
542 (alpha_ctors_section, alpha_dtors_section): Removed.
543 (alpha_ctors_symbol, alpha_dtors_symbol): Ditto.
544 (alpha_lit8_section): Ifndef'ed on evax.
545 (alpha_lit8_symbol): Ditto.
546 (alpha_prologue_label): New variable.
547 (alpha_linkage_symbol): New variable (evax only).
548 (alpha_flag_replace): Ditto.
549 (struct alpha_evax_procs): Add handler and handler_data field.
550 (alpha_evax_proc): Now of type pointer.
551 (alpha_linkage_fixup_root, alpha_linkage_fixup_tail): New variables.
552 (struct alpha_reloc_tag): Add sym and psym fields (evax only).
553 (get_alpha_reloc_tag): Initialize sym and psym fields (evax only).
554 (alpha_adjust_relocs): Ifndef'ed on evax.
555 (load_expression): Add opname argument.
556 Implement LDA/BSR optimization for evax.
557 (emit_lda): Adjust for new prototype of load_expression.
558 (emit_ir_load): Ditto. Do not nothing for GP if ..lk symbols.
559 (emit_loadstore): Likewise.
560 (emit_ldXu): Likewise.
561 (emit_stX): Likewise.
562 (emit_jsrjmp): Likewise. Implement LDA/BSR optimization for evax.
563 (emit_ldgp): Avoid warning in evax case.
564 (add_to_link_pool): Make it static. Return symbolic expression rather
565 than number expression for the offset.
566 (s_alpha_text): Create .text symbol for evax if not already created.
567 (s_alpha_comm): Do not create specific section for common symbol.
568 Fill common area with zeros for evax.
569 (s_alpha_prologue): Create alpha_prologue_label.
570 (s_alpha_section_name): New function (evax).
571 (s_alpha_section_word): Likewise.
572 (section_name): New static variabke moved out from ...
573 (s_alpha_section): ... here. Create new sections on demand.
574 (s_alpha_literals): New function (evax).
575 (s_alpha_ent): Create alpha_evax_proc instance and insert it in the
576 alpha_evax_proc_hash table.
577 (s_alpha_handler): New function (evax).
578 (s_alpha_frame): Adjust for new type of alpha_evax_proc.
579 (s_alpha_prologue): New function (evax).
580 (s_alpha_pdesc): Adjust for new type of alpha_evax_proc and new
581 handling of procedures with hash table.
582 Add support for condition handlers.
583 (s_alpha_linkage): Create linkage_fixup instance and chain it.
584 (s_alpha_fp_save): Adjust for new type of alpha_evax_proc.
585 (s_alpha_mask): Likewise.
586 (s_alpha_fmask): Likewise.
587 (s_alpha_end): Clear alpha_evax_proc.
588 (s_alpha_align): Increase max_alignment to 16.
589 (alpha_print_token): Call print_expr_1 instead of print_expr.
590 (md_pseudo_table): Add "section", "literals", "handler" and
591 "handler_data" (evax). Do not ignore "prologue" on evax.
593 (md_begin): Create hash table for alpha_evax_proc_hash.
594 (md_parse_option): Handle OPTION_REPLACE and OPTION_NOREPLACE.
595 (md_show_usage): Mention -replace/-noreplace for evax.
596 (md_apply_fix): Handle evax relocs (_NOP, _LDA, _BSR and _BOH).
597 (alpha_force_relocation): Likewise.
598 (alpha_fix_adjustable): Likewise. Add BFD_RELOC_16 case.
599 (tc_gen_reloc): Likewise. Add BFD_RELOC_ALPHA_LINKAGE for evax.
600 (emit_insn): New cases for evax specific relocs.
601 (assemble_insn): Fix indentation.
602 Take care of -MDISP in operand table.
603 * config/obj-evax.h (struct alpha_linkage_fixups): New struct.
604 (OBJ_SYMFIELD_TYPE): New macro.
605 (obj_symbol_new_hook): Define.
606 (obj_frob_symbol, obj_frob_file_before_adjust): Ditto.
607 (obj_frob_file_before_fix): Ditto.
608 (PDSC_S_M_HANDLER_VALID): New macro.
609 (PDSC_S_M_HANDLER_DATA_VALID): Ditto.
610 (TC_IMPLICIT_LCOMM_ALIGNMENT): Remove.
611 Add prototypes for functions declared in obj-evax.c
612 * config/obj-evax.c: Include subsegs.h, struc-symbol.h, safe-ctype.h.
613 (s_evax_weak): Convert to ansi-C.
614 (evax_symbol_new_hook): New function.
615 (evax_frob_symbol): Ditto.
616 (evax_frob_file_before_adjust): Ditto.
617 (evax_frob_file_before_fix): Ditto.
618 (evax_shorten_name): Ditto.
623 (shorten_identifier): Ditto.
624 (is_truncated_identifier): Ditto.
625 * dwarf2dbg.c (out_debug_info): Do not append trailing slash on VMS.
626 * as.c (close_output_file): Remove #ifndef OBJ_VMS.
629 2009-03-03 Alan Modra <amodra@bigpond.net.au>
631 * Makefile.am: Run "make dep-am".
632 * Makefile.in: Regenerate.
634 2009-03-02 Nick Clifton <nickc@redhat.com>
637 * config/tc-ia64.c (fix_insn): Fix warning reported by
640 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
642 * config/tc-score7.c: New file.
643 * doc/c-score.texi: New file.
644 * Makefile.am: Update dependencies for tc-score.c.
645 * Makefile.in: Regenerate.
646 * NEWS: Mention support for Score7 architecture.
647 * config/tc-score.c: Add support for Score7 architecture.
648 * config/tc-score.h: Likewise.
649 * doc/Makefile.am: Add c-score.texi.
650 * doc/Makefile.in: Regenerate.
651 * doc/all.texi: Add Score7.
652 * doc/as.texinfo: Add Score7.
654 2009-03-01 Mark Mitchell <mark@codesourcery.com>
656 * config/tc-arm.c (md_assemble): Allow barrier instructions on
659 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
661 * configure: Regenerate.
663 2009-02-26 Peter Bergner <bergner@vnet.ibm.com>
665 * config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63",
666 "f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63".
667 (parse_cpu): Extend -mpower7 to accept power7 and isel instructions.
669 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
671 * config/tc-i386.c (fits_in_imm4): Removed.
673 2009-02-24 Helge Deller <deller@gmx.de>
675 * config/tc-hppa.c (pa_ip): Add check of immediate values.
676 (SAVE_IMMEDIATE): New define.
678 2009-02-23 Mark Mitchell <mark@codesourcery.com>
680 * config/tc-arm.c (warn_deprecated_sp): New macro.
681 (do_t_mov_cmp): Permit R13 as the second
684 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
686 * config/tc-i386.c (type_names): Add OPERAND_TYPE_REGYMM.
687 (pt): Replace UINTS_ALL_ZERO with operand_type_all_zero.
689 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
691 * config/tc-i386.c (type_names): Remove OPERAND_TYPE_VEX_IMM4.
693 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
695 * config/tc-i386.c (vex_imm4): Removed.
696 (VEX_check_operands): Likewise.
697 (match_template): Updated.
699 2009-02-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
701 * doc/all.texi: Set S390.
702 * doc/as.texinfo: Add S390 support and pull in c-s390.texi.
703 * doc/Makefile.am (CPU_DOCS): Add c-s390.texi.
704 * doc/Makefile.in: Likewise.
705 * doc/c-s390.texi: New.
707 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
709 * config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR.
710 (mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New.
711 (mcf5307_ctrl): Add VBR.
712 (no_mac): New variable.
713 (m68k_extensions): Refer to no_mac mask.
714 (m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277,
715 52252..52259, 53011..53017.
716 (m68k_ip): Process CPUCR.
717 (init_table): Add cpucr entry.
718 (m68k_set_extension): Allow negated mask to refer to a variable.
719 (md_show_usage): Use '%s' to silence fprintf warning.
720 * config/m68k-parse.h (CPUCR): New control register.
722 2009-02-10 Nathan Sidwell <nathan@codesourcery.com>
724 * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
725 as_bad calls to silence compiler warning.
727 2009-02-06 Nick Clifton <nickc@redhat.com>
730 * config/tc-arm.c (MODE_RECORDED): New define.
731 (output_inst): Record the thumb_mode in the current frag.
732 (arm_handle_align): Ignore the MODE_RECORDED bit in tc_frag_data.
733 (arm_init_frag): Only set the tc_frag_data field if it has not
736 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
738 AVX Programming Reference (January, 2009)
739 * config/tc-i386.c (CPU_FLAGS_PCLMUL_MATCH): New.
740 (CPU_FLAGS_AVX_MATCH): Updated.
741 (CPU_FLAGS_32BIT_MATCH): Likewise.
742 (cpu_flags_match): Likewise.
744 2009-02-03 Sandip Matte <sandip@rmicorp.com>
746 * config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T,
747 M_MSGWAIT and M_MSGWAIT_T.
748 (mips_cpu_info_table): Add XLR entry.
749 * doc/c-mips.texi (-march): Document xlr.
751 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
753 * config/tc-avr.c (mcu_types): Add ata6289.
754 * doc/c-avr.texi: Likewise.
756 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
758 * configure.in: AC_SUBST pdfdir.
759 * Makefile.am: Add install-pdf, install-pdf-am,
760 and install-pdf-recursive targets.
761 * doc/Makefile.am: Define pdf__strip_dir. Add
762 install-pdf and install-pdf-am targets.
763 * po/Make-in: Add install-pdf target.
764 * configure: Regenerate.
765 * Makefile.in: Regenerate.
766 * doc/Makefile.in: Regenerate.
768 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
770 * config/m68k-parse.h (enum pic_relocation): Add values for TLS
772 * config/m68k-parse.y (yylex): Parse TLS relocations.
773 * config/tc-m68k.c (m68k_elf_cons): New static function.
774 (md_pseudo_table): Use it.
775 (get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
777 (md_apply_fix): Fix to set thread local flag.
778 (m68k_elf_suffix): New static function; helper for m68k_elf_cons.
780 2009-02-03 Vince Weaver <vince@csl.cornell.edu>
783 * config/tc-pdp11.c (parse_op_no_deferred): Fix handling of
784 indexed addressing for symbolic expressions.
786 2009-01-29 Mark Mitchell <mark@codesourcery.com>
788 * config/tc-arm.c (BAD_SP): Define.
789 (s_arm_unwind_fnstart): Use REG_SP.
790 (s_arm_unwind_setfp): Likewise.
791 (reject_bad_reg): New macro.
792 (do_co_reg): Check for bad registers.
793 (do_co_reg2c): Likewise.
794 (do_srs): Use REG_SP.
795 (do_t_add_sub): Check for bad registers.
796 (do_t_adr): Likewise.
797 (do_t_arit3): Likewise.
798 (do_t_arit3c): Likewise.
799 (do_t_bfc): Likewise.
800 (do_t_bfi): Likewise.
801 (do_t_bfx): Likewise.
802 (do_t_blx): Likewise.
804 (do_t_bxj): Likewise.
805 (do_t_clz): Likewise.
806 (do_t_div): Likewise.
807 (do_t_mla): Likewise.
808 (do_t_mlal): Likewise.
809 (do_t_mov_cmp): Likewise.
810 (do_t_mov16): Likewise.
811 (do_t_mvn_tst): Likewise.
812 (do_t_mrs): Likewise.
813 (do_t_msr): Likewise.
814 (do_t_mul): Likewise.
815 (do_t_mull): Likewise.
816 (do_t_orn): Likewise.
817 (do_t_pkhbt): Likewise.
818 (do_t_pld): Likewise.
819 (do_t_rbit): Likewise.
820 (do_t_rev): Likewise.
821 (do_t_rrx): Likewise.
822 (do_t_rsb): Likewise.
823 (do_t_shift): Likewise.
824 (do_t_simd): Likewise.
825 (do_t_ssat): Likewise.
826 (do_t_ssat16): Likewise.
827 (do_t_sxtah): Likewise.
828 (do_t_sxth): Likewise.
830 (do_t_usat): Likewise.
831 (do_t_usat16): Likewise.
832 (nysn_insert_sp): Use REG_SP.
834 2009-01-29 Mark Mitchell <mark@codesourcery.com>
836 * config/tc-arm.c (do_t_orn): New function.
837 (do_t_rrx): Likewise.
838 (insns): Add orn and rrx.
840 2009-01-29 Mark Mitchell <mark@codesourcery.com>
842 * config/tc-arm.c (insns): Add qasx, qsax, shasx, shsax, ssax,
843 uasx, uhasx, uhsx, uqasx, uqsax, usax.
845 2009-01-29 Mark Mitchell <mark@codesourcery.com>
847 * config/tc-arm.c (insns): Correct encoding of qadd, qdadd, qsub,
848 qdsub in Thumb-2 mode.
850 2009-01-29 Paul Brook <paul@codesourcery.com>
851 Mark Mitchell <mark@codesourcery.com>
853 * config/tc-arm.c (do_t_mul): In Thumb-2 mode, use 16-bit encoding
854 of MUL when possible.
856 2009-01-29 Nick Clifton <nickc@redhat.com>
858 * config/tc-mep.h (DIFF_EXPR_OK): Do not define.
860 2009-01-29 Nathan Sidwell <nathan@codesourcery.com>
861 Catherine Moore <clm@codesourcery.com?
863 * doc/c-arm.texi (ARM Directives): Alphabetize. Document .2byte,
864 .4byte, .8byte, .bss, .even, .extend, .ldouble, .packed, .secrel32
867 2009-01-27 Nick Clifton <nickc@redhat.com>
869 * config/tc-mips.c (append_insn): Cope with a complex reloc
870 sequence containing an unsupported reloc type.
871 (enum options): Replace computed #define's constants for option
872 numbers with this enum.
873 (struct md_longopts): Use the enum. Allow OPTION_32 in a non-ELF
875 (md_parse_option): Allow -32 in a non-ELF environment.
877 2009-01-26 Andrew Stubbs <ams@codesourcery.com>
879 * config/tc-arm.c (attributes_set_explicitly): New array.
880 (s_arm_eabi_attribute): Check return value from s_vendor_attribute.
881 (cpu_arch): Add ARM_ARCH_V5T.
882 (aeabi_set_attribute_int): New function.
883 (aeabi_set_attribute_string): New function.
884 (aeabi_set_public_attributes): Set attributes according to the user's
885 intentions, rather than the actual state of the binary.
886 Use aeabi_set_attribute_int and aeabi_set_attribute_string instead of
887 bfd_elf_add_proc_attr_int and bfd_elf_add_proc_attr_string.
888 Support WMMXv2. Use attribute names instead of numbers.
889 * read.c (s_vendor_attribute): Change return type to int.
890 Return the tag number that was set.
891 * read.h (s_vendor_attribute): Change return type to int.
893 2009-01-26 Eric B. Weddington <eric.weddington@atmel.com>
896 * config/tc-avr.c (mcu_types): Fix typo in atmega128rfa1 name.
897 * doc/c-avr.texi: Likewise.
899 2009-01-23 Nathan Sidwell <nathan@codesourcery.com>
901 * doc/c-arm.texi (): Document -mwarn-deprecated.
902 * config/tc-arm.c (WARN_DEPRECATED): Remove. Replace with ...
903 (warn_on_deprecated): ... this.
904 (opcode_lookup, md_assemble): Check it before warning.
905 (arm_opts): Add m[no-]warn-deprecated.
906 (md_parse_option): Replace WARN_DEPRECATED with
909 2009-01-23 Andreas Schwab <schwab@suse.de>
911 * config/tc-mips.c (macro) [M_DINS, M_SEQ_I, M_SNE_I]: Cast
912 arguments to macro_build to match format.
914 * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define.
915 * config/tc-s390.h (LOCAL_LABEL_PREFIX): Don't define.
917 2009-01-19 Nick Clifton <nickc@redhat.com>
919 * config/tc-arm.h (CONVERT_SYMBOLIC_ATTRIBUTE): Only define for
920 ELF format ARM targets.
921 * config/tc-arm.c (arm_convert_symbolic_attribute): Likewise.
923 2009-01-19 Nick Clifton <nickc@redhat.com>
925 * configure.tgt: Restore alpha sorting to object format switch
928 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
930 * read.c (s_vendor_attribute): Allow for unknown flag bits in type.
932 2009-01-16 Mark Shinwell <shinwell@codesourcery.com>
934 * config/te-armeabi.h (EABI_DEFAULT): Use EF_ARM_EABI_VER5.
935 * config/te-armlinuxeabi.h (EABI_DEFAULT): Likewise.
937 2009-01-16 Andrew Stubbs <ams@codesourcery.com>
938 Daniel Jacobowitz <dan@codesourcery.com>
940 * config/tc-arm.c (arm_copy_symbol_attributes): New function.
941 * config/tc-arm.h (arm_copy_symbol_attributes): New prototype.
942 (CONVERT_SYMBOLIC_ATTRIBUTE): New define.
943 * read.c (s_vendor_attribute): Add support for symbolic tag names.
944 Improve string parser.
945 * doc/c-arm.texi (ARM Machine Directives): Document
946 .eabi_attribute symbolic tag names.
948 2009-01-16 Alan Modra <amodra@bigpond.net.au>
950 * configure.in (commonbfdlib): Delete.
951 * configure: Regenerate.
952 * po/POTFILES.in: Regenerate.
954 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
955 Julian Brown <julian@codesourcery.com>
957 * config/tc-arm.c (cpu_arch): Change ARM_ARCH_V6M to 11.
959 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
961 * read.c (s_vendor_attribute): bfd_elf_add_obj_attr_compat ->
962 bfd_elf_add_obj_attr_int_string.
964 2009-01-15 Douglas B Rupp <rupp@gnat.com>
966 * configure.tgt(ia64-*-*vms*): New target.
967 * dwarf2dbg.h (dwarf2_loc_mark_labels): Make extern.
968 * tc.h (md_number_to_chars): Declare iff undefined.
969 * config/obj-elf.c (obj_elf_change_section): Change type of arg
971 (obj_elf_parse_section_letters): Return a bfd_vma. Change type of
972 variables attr, md_attr to bfd_vma.
973 (obj_elf_section_word): Likewise.
974 (obj_elf_section): Change type of variable attr to bfd_vma
975 * config/obj-elf.h (obj_elf_change_section): Change type of arg
977 * config/tc-ia64.c (bfdver.h,time.h): Include.
978 (ia64_elf_section_letter): Now returns a bfd_vma.
979 Handle VMS specific attributes.
980 (ia64_elf_section_flags): Arg attr now a bfd_vma.
981 (ia64_init): Don't turn on dependency checking for VMS.
982 (ia64_target_format): Check for VMS flag bit.
983 (do_alias): Hande decc$ functions.
984 (get_vms_time): New function.
985 (ia64_vms_note): New function.
986 * config/tc-ia64.h (ia64_elf_section_letter): Now returns a bfd_vma.
987 (ia64_elf_section_flags): Arg attr now a bfd_vma.
988 (tc_init_after_args): Define for VMS.
989 * config/tc-alpha.c (alpha_elf_section_letter): Return a bfd_vma.
990 (alpha_elf_section_flags): Change type of arg attr to bfd_vma.
991 * config/tc-alpha.h: Likewise.
992 * config/tc-i386.c (x86_64_section_letter): Return a bfd_vma.
993 (x86_64_section_word): Return a bfd_vma.
994 * config/tc-i386.h: Likewise.
995 * config/tc-ip2k.c (ip2k_elf_section_flags): Change type of arg
997 * config/tc-ip2k.h: Likewise.
998 * config/tc-mep.c (mep_elf_section_letter): Return a bfd_vma.
999 (mep_elf_section_flags): Change type of arg attr to bfd_vma.
1000 * config/tc-mep.h: Likewise.
1001 * config/tc-ppc.c (ppc_section_letter): Return a bfd_vma.
1002 (ppc_section_word): Return a bfd_vma.
1003 (ppc_section_flags): Change type of arg attr to bfd_vma.
1004 * config/tc-ppc.h: Likewise.
1005 * config/tc-frv.h: Provide a prototype for frv_md_number_to_chars.
1006 * config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR,
1007 DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME):
1008 New file with new macros
1009 * dwarf2dbg.c (get_filenum, out_file_list): Default and call new
1012 2009-01-15 Nick Clifton <nickc@redhat.com>
1015 * config/tc-arm.c (do_t_nop): Check for availability of Thumb2
1016 instructions before generating a Thumb2 nop.
1018 2009-01-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1020 * config/tc-s390.h: Define LOCAL_LABEL_PREFIX.
1022 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1024 * config/tc-spu.c (md_pseudo_table): Add "brinfo".
1026 (md_assemble): Poke brinfo into branch instructions.
1027 (spu_brinfo): New function.
1028 (md_apply_fix): Don't assume insn fields start off at zero, mask
1029 them to remove possible brinfo.
1031 2009-01-10 H.J. Lu <hongjiu.lu@intel.com>
1033 * doc/c-i386.texi: Reformat.
1035 2009-01-10 H.J. Lu <hongjiu.lu@intel.com>
1037 * config/tc-i386.c (cpu_arch): Add corei7, .clflush and
1039 (i386_align_code): Handle PROCESSOR_COREI7.
1040 (md_show_usage): Add corei7, clflush and syscall.
1041 (i386_target_format): Replace cpup4 with cpuclflush.
1043 * config/tc-i386.h (processor_type): Add PROCESSOR_COREI7.
1045 * doc/c-i386.texi: Document corei7, clflush and syscall.
1047 2009-01-09 H.J. Lu <hongjiu.lu@intel.com>
1049 * config/tc-i386.c (cpu_arch): Add .rdtscp.
1050 (md_show_usage): Display rdtscp.
1052 * doc/c-i386.texi: Document rdtscp.
1054 2009-01-09 Peter Bergner <bergner@vnet.ibm.com>
1056 * config/tc-ppc.c (ppc_setup_opcodes): Remove PPC_OPCODE_NOPOWER4 test.
1057 Test the new "deprecated" opcode field.
1059 2009-01-07 Sterling Augustine <sterling@tensilica.com>
1061 * config/tc-xtensa.c (produce_flix): New.
1062 (option_flix, optoin_no_generate_flix, option_no_flix) Define.
1063 (md_longopts): Add support for them.
1064 (md_parse_option): Likewise.
1065 (md_show_usage): Add help message.
1066 (finish_vinsn): Don't allow multi-slot flix when produce_flix
1067 option is set to FLIX_NONE.
1068 * config/xtensa-relax.c (transition_applies): Only relax to
1069 flix branches when produce_flix equals FLIX_ALL.
1070 * config/xtensa-relax.h (flix_level, FLIX_ALL, FLIX_NO_GENERATE
1072 (produce_flix): Declare.
1074 2009-01-06 Chao-ying Fu <fu@mips.com>
1076 * config/tc-mips.c (mips_ip): Set lastregno to 0xffffffff.
1077 Use strncmp to match jalr and jalr.hb.
1080 2009-01-05 H.J. Lu <hongjiu.lu@intel.com>
1082 AVX Programming Reference (December, 2008)
1083 * config/tc-i386.c (build_modrm_byte): Remove 5 operand instruction
1084 support. Don't swap REG and NDS for FMA.
1086 2009-01-02 Matthias Klose <doko@ubuntu.com>
1088 * itbl-ops.c (itbl_disassemble): Don't rely on undefined sprintf
1091 For older changes see ChangeLog-2008
1097 version-control: never