f7173605b1a0f4290448bbd15be38a6b1644858a
[binutils-gdb.git] / gas / ChangeLog
1 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2
3 * config/tc-arm.c (NEON_ENC_TAB): Add entries for VSEL.
4 (NEON_ENC_FPV8_): New define.
5 (do_vfp_nsyn_fpv8): New function.
6 (do_vsel): Likewise.
7 (insns): Add VSEL instructions.
8
9 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10
11 * config/tc-arm.c (do_rm_rn): New function.
12 (do_strlex): Likewise.
13 (do_t_strlex): Likewise.
14 (insns): Add support for LDRA/STRL instructions.
15
16 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17
18 * config/tc-arm.c (do_t_bkpt_hlt1): New function.
19 (do_t_hlt): New function.
20 (do_t_bkpt): Use do_t_bkpt_hlt1.
21 (insns): Add HLT.
22
23 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
24
25 * config/tc-arm.c (insns): Add DCPS instruction.
26
27 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
28
29 * config/tc-arm.c (T16_32_TAB): Add _sevl.
30 (insns): Add SEVL.
31
32 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
33
34 * config/tc-arm.c (asm_barrier_opt): Add arch field.
35 (mark_feature_used): New function.
36 (parse_barrier): Check specified option is valid for the
37 specified architecture.
38 (UL_BARRIER): New macro.
39 (barrier_opt_names): Update for new barrier options.
40
41 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
42
43 * config/tc-arm.c (do_setend): Warn on deprecated SETEND.
44 (do_t_setend): Likewise.
45
46 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
47
48 * config/tc-arm.c (do_t_it): Fully initialise now_it.
49 (new_automatic_it_block): Likewise.
50 (handle_it_block): Record whether current instruction is
51 conditionally executed.
52 * config/tc-arm.c (depr_insn_mask): New structure.
53 (depr_it_insns): New variable.
54 (it_fsm_post_encode): Warn on deprecated uses.
55 * config/tc-arm.h (current_it): Add new fields.
56
57 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
58
59 * config/tc-arm.c (deprecated_coproc_regs_s): New structure.
60 (deprecated_coproc_regs): New variable.
61 (deprecated_coproc_reg_count): Likewise.
62 (do_co_reg): Error on obsolete & warn on deprecated registers.
63
64 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
65
66 * config/tc-arm.c (check_obsolete): New function.
67 (do_rd_rm_rn): Check swp{b} for obsoletion.
68
69 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
70
71 * config/tc-arm.h (arm_ext_v8): New variable.
72 (fpu_vfp_ext_armv8): Likewise.
73 (fpu_neon_ext_armv8): Likewise.
74 (fpu_crypto_ext_armv8): Likewise.
75 (arm_archs): Add armv8-a.
76 (arm_extensions): Add crypto, fp, and simd.
77 (arm_fpus): Add fp-armv8, neon-fp-armv8, crypto-neon-fp-armv8.
78 (cpu_arch_ver): Add support for ARMv8.
79 (aeabi_set_public_sttributes): Likewise.
80 * doc/c-arm.texi (ARM Options): Document new architecture and
81 extension options for ARMv8.
82
83 2012-08-20 H.J. Lu <hongjiu.lu@intel.com>
84
85 * doc/as.texinfo: Replace --n32 with --x32.
86
87 2012-08-17 Nagajyothi Eggone <nagajyothi.eggone@amd.com>
88
89 * config/tc-i386.c (cpu_arch): Add CPU_BTVER1_FLAGS and
90 CPU_BTVER2_FLAGS.
91 (i386_align_code): Add case for PROCESSOR_BT.
92
93 * config/tc-i386.h (enum processor_type): Add PROCESSOR_BT.
94
95 * doc/c-i386.texi: Add -march={btver1, btver2} options.
96
97 2012-08-14 H.J. Lu <hongjiu.lu@intel.com>
98
99 PR gas/14457
100 * config/tc-i386.c (i386_att_operand): Terminate register name
101 when reporting bad register.
102
103 2012-08-14 Hans-Peter Nilsson <hp@bitrange.com>
104
105 * config/tc-mmix.c (loc_asserts): New variable.
106 (mmix_greg_internal): Handle expressions not determinable at first
107 pass.
108 (s_loc): Ditto. Record expressions where the section isn't
109 determinable at the first pass, and assume they don't refer to
110 other sections.
111 (mmix_md_end): Verify that recorded LOC expressions weren't
112 to other sections, else emit error messages.
113
114 2012-08-13 Ian Bolton <ian.bolton@arm.com>
115 Laurent Desnogues <laurent.desnogues@arm.com>
116 Jim MacArthur <jim.macarthur@arm.com>
117 Marcus Shawcroft <marcus.shawcroft@arm.com>
118 Nigel Stephens <nigel.stephens@arm.com>
119 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
120 Richard Earnshaw <rearnsha@arm.com>
121 Sofiane Naci <sofiane.naci@arm.com>
122 Tejas Belagod <tejas.belagod@arm.com>
123 Yufeng Zhang <yufeng.zhang@arm.com>
124
125 * Makefile.am: Add AArch64.
126 * Makefile.in: Regenerate.
127 * config/tc-aarch64.c: New file.
128 * config/tc-aarch64.h: New file.
129 * configure.tgt: Add AArch64.
130 * doc/Makefile.am: Add AArch64.
131 * doc/Makefile.in: Regenerate.
132 * doc/all.texi: Add AArch64.
133 * doc/as.texinfo: Add AArch64.
134 * doc/c-aarch64.texi: New file.
135 * po/POTFILES.in: Regenerate.
136 * NEWS: Mention the new support.
137
138 2012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
139
140 * config/tc-mips.c (NO_ISA_COP, COP_INSN): Remove macros.
141 (is_opcode_valid): Remove coprocessor instruction exclusions.
142 Replace OPCODE_IS_MEMBER with opcode_is_member.
143 (is_opcode_valid_16): Replace OPCODE_IS_MEMBER with
144 opcode_is_member.
145 (macro): Remove coprocessor instruction exclusions.
146
147 2012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
148
149 * config/tc-mips.c (s_cpload, s_cpsetup): Fail if MIPS16 mode.
150 (s_cplocal, s_cprestore, s_cpreturn): Likewise.
151
152 2012-08-07 Jan Beulich <jbeulich@suse.com>
153
154 * config/tc-i386-intel.c (build_modrm_byte): Split determining
155 default segment from figuring out encoding. Honor RegRex for
156 the former.
157
158 2012-08-07 Jan Beulich <jbeulich@suse.com>
159
160 * config/tc-i386.c (set_check): Renamed from set_sse_check.
161 Generalize to also handle operand checking option.
162 (enum i386_error): New enumerator 'invalid_vector_register_set'.
163 (match_template): Handle it.
164 (enum check_kind): Give it a tag. Drop sse_ prefixes from
165 enumerators.
166 (operand_check): New.
167 (md_pseudo_table): Add "operand_check".
168 (check_VecOperands): Don't special case RIP addressing. Check
169 that vSIB operands use distinct vector registers unless no
170 checking was requested.
171 (OPTION_MOPERAND_CHECK): New.
172 (md_parse_option): Handle it.
173 (OPTION_MAVXSCALAR, OPTION_X32): Adjust.
174 (md_longopts): Add "moperand-check".
175 (md_show_usage): Add help text for it.
176
177 2012-08-07 Jan Beulich <jbeulich@suse.com>
178
179 * config/tc-i386.c (register_number): New function.
180 (build_vex_prefix, process_immext, process_operands,
181 build_modrm_byte, i386_index_check): Use it.
182
183 2012-08-07 Daniel Green <venix1@gmail.com>
184
185 * config/tc-i386.c (lex_got): Provide implementation for PE
186 format.
187
188 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
189
190 * config/tc-mips.c (append_insn): Also handle moving delay-slot
191 instruction across frags for fixed branches.
192
193 2012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
194
195 * frags.c (frag_grow): Never shrink the obstack size requested
196 below the default.
197
198 2012-08-02 Sean Keys <skeys@ipdatasys.com>
199
200 * config/tc-m68hc11.c (s_m68hc11_parse_pseudo_instruction):
201 New function to parse pseudo ops that are unreleated to
202 existing pseudo ops.
203
204 2012-08-01 Catherine Moore <clm@codesourcery.com>
205 Sandra Loosemore <sandra@codesourcery.com>
206
207 * config/mips/tc-mips.c (mips_cpu_info): Add the 34kn.
208 * doc/c-mips.texi (MIPS Opts): Document it.
209
210 2012-08-01 James Lemke <jwlemke@codesourcery.com>
211
212 * dwarf2dbg.c (out_set_addr): Allow for non-constant value of
213 DWARF2_LINE_MIN_INSN_LENGTH
214 * config/tc-ppc.c (ppc_dwarf2_line_min_insn_length): Declare
215 and initialize.
216 (md_apply_fix): Branch addr can be a multiple of 2 or 4.
217 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Now a
218 variable reference.
219
220 2012-07-31 Maciej W. Rozycki <macro@codesourcery.com>
221 Chao-Ying Fu <fu@mips.com>
222 Catherine Moore <clm@codesourcery.com>
223
224 * config/tc-mips.c (ISA_SUPPORTS_DSP_ASE): Also set if microMIPS
225 mode.
226 (ISA_SUPPORTS_DSPR2_ASE): Likewise.
227 (macro_build) <'2'>: Handle microMIPS.
228 (macro) <M_BALIGN>: Update error handling.
229 (validate_micromips_insn) <'2', '3', '4', '5', '6'>: New cases.
230 <'7', '8', '0', '@', '^'>: Likewise.
231 (mips_ip) <'2', '3', '4', '5', '6', '7', '8'>: Handle microMIPS.
232 <'9'>: Fix formatting.
233 <'0', '@'>: Handle microMIPS.
234 <'^'>: New case.
235
236 2012-07-31 Jan Beulich <jbeulich@suse.com>
237
238 * config/tc-i386.c (match_template): Adjust error message
239 for 'bad_imm4' case.
240
241 2012-07-31 Jan Beulich <jbeulich@suse.com>
242
243 * config/tc-i386.c (check_byte_reg): Check for I/O port
244 register earlier, and just once. Drop diagnostic that got
245 issued only for some registers.
246
247 2012-07-31 Jan Beulich <jbeulich@suse.com>
248
249 * config/tc-i386.c (match_template): New local variable
250 'specific_error'. Set it from i.error after failed
251 check_VecOperands or VEX_check_operands. Use it if set in
252 preference to i.error when actually issuing disagnostic.
253
254 2012-07-30 Nick Clifton <nickc@redhat.com>
255
256 * po/gas.pot: Updated template.
257 * po/es.po: Updated Spanish translation.
258 * po/fi.po: Updated Finnish translation.
259 * po/fr.po: Updated French translation.
260
261 2012-07-27 Mike Frysinger <vapier@gentoo.org>
262
263 * configure.in (BFD_VERSION): Run bfd/configure --version and
264 parse the output of that.
265 * configure: Regenerate.
266
267 2012-07-27 Tristan Gingold <gingold@adacore.com>
268
269 * NEWS: Add marker for 2.23.
270
271 2012-07-27 James Murray <jsm@jsm-net.demon.co.uk>
272
273 * config/tc-m68hc11.c: Replace binary with hex for cygwin.
274
275 2012-07-26 Segher Boessenkool <segher@kernel.crashing.org>
276
277 * listing.c (struct list_message): New.
278 (struct list_info_struct): Delete "message". Add "messages"
279 and "last_message".
280 (listing_message): Adjust.
281 (listing_newline): Adjust.
282 (print_lines): Adjust.
283
284 2012-07-24 Jan Beulich <jbeulich@suse.com>
285
286 * config/tc-i386-intel.c (i386_intel_simplify_register): Handle
287 xmm/ymm index register being specified first as well as esp/rsp
288 base register being specified last in a memory operand.
289
290 2012-07-24 Jan Beulich <jbeulich@suse.com>
291
292 * config/tc-i386-intel.c (i386_intel_simplify_register):
293 Replace literal 4 by corresponding ESP_REG_NUM.
294
295 2012-07-24 Sandra Loosemore <sandra@codesourcery.com>
296 Jie Zhang <jzhang918@gmail.com>
297
298 * config/tc-arm.c (md_apply_fix): Use encoding A2 of ADR
299 if offset is negative.
300
301 2012-07-16 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
302
303 * config/tc-i386.c: Add ADX, RDSEED and PRFCHW asm directives.
304 * doc/c-i386.texi: Document the new directives.
305
306 2012-07-05 Sean Keys <skeys@ipdatasys.com>
307
308 * config/tc-xgate.c: Revised assembler so that operands
309 are collected before the addressing mode is determined.
310
311 2012-07-02 Nick Clifton <nickc@redhat.com>
312
313 * write.c (fixup_segment): Only perform the subtraction of an
314 fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is
315 properly defined.
316 * config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.
317
318 2012-06-30 Alan Modra <amodra@gmail.com>
319
320 PR gas/14315
321 * config/obj-elf.c (obj_elf_weak): Don't set local.
322
323 2012-06-30 Johan Olmutz Nielsen <jnielsen@ddci.com>
324
325 * frags.h (frag_offset_fixed_p): Update prototype.
326 * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT.
327 * expr.c (expr, resolve_expression): Likewise for frag_off var.
328
329 2012-06-29 Nick Clifton <nickc@redhat.com>
330
331 PR gas/14263
332 * config/tc-arm.c (parse_operands): Initialise val.
333
334 2012-06-28 Nick Clifton <nickc@redhat.com>
335
336 PR gas/14260
337 * config/tc-arm.c (encode_arm_addr_mode_common): Generate an error
338 message if literal pool addressing is used.
339
340 2012-06-28 Nick Clifton <nickc@redhat.com>
341
342 * dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
343 linker relaxation.
344 (dwarf2_gen_line_info): Generate real, local, labels for line
345 numbers.
346 (dwarf2dbg_convert_frag): Do not finalize the computation of the
347 frag's symbol value when linker relaxation is enabled.
348 (ADDR_DELTA_LIMIT): Define.
349 (size_fixed_inc_line_addr): Use ADDR_DELTA_LIMIT.
350 (emit_fixed_inc_line_addr): Likewise.
351 * write.c (fixup_segment): If the subtraction of two symbols
352 cannot be resolved but is valid, then prevent bogus range warnings
353 by pre-biasing add_number.
354 * config/tc-h8300.h (DWARF2_USE_FIXED_ADVANCE_PC): Define to 0.
355
356 2012-06-28 Sean Keys <skeys@ipdatasys.com>
357
358 * config/tc-xgate.h: Defined tc_frob_symbol.
359 * config/tc-xgate.c (xgate_frob_symbol): Wrote new function to mark
360 symbols as being XGATE by setting st_target_internal value.
361
362 2012-06-22 Roland McGrath <mcgrathr@google.com>
363
364 * NEWS: Mention 'rep ret' too.
365
366 * config/tc-i386.c (parse_insn): Don't complain about REP prefix
367 when the template has opcode_modifier.repprefixok set.
368 * NEWS: Mention the change.
369
370 2012-06-18 Iain Sandoe <iain@codesourcery.com>
371
372 * configure.in: Check DECLS for free, getenv, malloc, realloc,
373 * configure: Regenerate.
374 * config.in: Likewise.
375
376 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
377
378 * config/tc-i386.c (x86_address_bytes): New.
379 * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
380 (x86_address_bytes): Likewise.
381
382 2012-06-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
383
384 PR gas/12698
385 * config/tc-arm.c (do_t_mrs): Do not require an m-profile
386 architecure when assembling for all archiectures.
387 (do_t_msr): Likewise.
388
389 2012-06-11 Georg-Johann Lay <avr@gjlay.de>
390
391 PR 13503
392 * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
393 from 2012-05-16.
394
395 2012-06-09 H.J. Lu <hongjiu.lu@intel.com>
396
397 * input-scrub.c (input_scrub_include_sb): Use sb_build to
398 allocate sufficient space for from_sb. Use sb_terminate to
399 terminate string.
400 * read.c (read_a_source_file): Use sb_build to allocate
401 sufficient space and replace sb_add_string with sb_add_buffer.
402 (s_macro): Likewise.
403 (input_scrub_insert_line): Likewise.
404 (s_irp): Use sb_build to allocate sufficient space.
405 (do_repeat): Use sb_build to allocate sufficient space
406 for many.
407 * sb.c (sb_build): Remove static.
408 * sb.h (sb_build): New prototype.
409
410 2012-06-09 Alan Modra <amodra@gmail.com>
411
412 * sb.c: Include limits.h.
413 (dsize): Delete.
414 (MALLOC_OVERHEAD, INIT_ALLOC): Define.
415 (sb_new): Use INIT_ALLOC.
416 (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
417 (sb_terminate): Don't use sb_add_char.
418
419 2012-06-07 Alan Modra <amodra@gmail.com>
420
421 PR gas/14201
422 * sb.h (sb_max_power_two): Delete.
423 (struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
424 (sb_element): Delete.
425 (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
426 prototypes.
427 * sb.c (string_count, free_list): Delete.
428 (sb_build, sb_kill, sb_check): Rewrite.
429 (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
430 sb_skip_white, sb_skip_comma): Replace assorted int params,
431 vars and return types with size_t.
432 * input-scrub.c: Likewise.
433 * macro.c: Likewise.
434 * macro.h: Likewise.
435 * as.c: Likewise.
436 * as.h: Likewise.
437 * input-file.h: Likewise.
438 * input-file.c: Likewise.
439 * read.c: Likewise.
440 * app.c: ..or ptrdiff_t.
441 * input-file.c (input_file_get): Use ferror.
442 (input_file_give_next_buffer): Use input_file_get.
443
444 2012-05-31 Sean Keys <skeys@ipdatasys.com>
445
446 * config/tc-xgate.c (md_begin): Refactored code.
447
448 2012-05-29 Roland McGrath <mcgrathr@google.com>
449
450 * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
451 (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
452 [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
453 pairs.
454
455 2012-05-28 Nick Clifton <nickc@redhat.com>
456
457 * read.c (read_symbol_name): New function. Reads a symbol names.
458 Allows escape codes in names.
459 (s_comm_internal): Use read_symbol_name.
460 (s_globl, s_lsym, s_set, s_weakref): Likewise.
461 * doc/as.texinfo: Document support for multibyte characters in
462 symbol names.
463
464 2012-05-21 Mike Frysinger <vapier@gentoo.org>
465
466 * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
467 is non-NULL.
468
469 2012-05-19 Alan Modra <amodra@gmail.com>
470
471 * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
472 targets when checking for "comdat".
473
474 2012-05-19 Alan Modra <amodra@gmail.com>
475
476 * config/tc-dlx.c (s_proc): Don't use asprintf.
477
478 2012-05-18 Alan Modra <amodra@gmail.com>
479
480 * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
481 return value.
482
483 2012-05-18 James Lemke <jwlemke@codesourcery.com>
484 Alan Modra <amodra@gmail.com>
485
486 * config/tc-ppc.c: Don't capitalise error and warning messages.
487 (md_parse_option): Add checks for -a32 -mvle.
488
489 2012-05-18 Alan Modra <amodra@gmail.com>
490
491 * config/obj-evax.c: Include as.h first.
492
493 2012-05-18 Andreas Schwab <schwab@linux-m68k.org>
494
495 * aclocal.m4: Regenerate.
496 * configure: Regenerate.
497 * Makefile.in: Regenerate.
498
499 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
500 Nick Clifton <nickc@redhat.com>
501
502 PR 14072
503 * configure.in: Add check that sysdep.h has been included before
504 any system header files.
505 * configure: Regenerate.
506 * config.in: Regenerate.
507 * aclocal.m4: Regenerate.
508 * Makefile.am: Use wrappers around C files generated by flex.
509 * Makefile.in: Regenerate.
510 * doc/Makefile.in: Regenerate.
511 * itbl-lex-wrapper.c: New file.
512 * config/bfin-lex-wrapper.c: New file.
513 * cgen.c: Include as.h before setjmp.h.
514 * config/tc-dlx.c: Include as.h before any other header.
515 * config/tc-h8300.c: Likewise.
516 * config/tc-lm32.c: Likewise.
517 * config/tc-mep.c: Likewise.
518 * config/tc-microblaze.c: Likewise.
519 * config/tc-mmix.c: Likewise.
520 * config/tc-msp430.c: Likewise.
521 * config/tc-or32.c: Likewise.
522 * config/tc-tic4x.c: Likewise.
523 * config/tc-tic54x.c: Likewise.
524 * config/tc-xtensa.c: Likewise.
525
526 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
527
528 * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
529 as the first argument for `bfd_get_section_vma'.
530
531 2012-05-16 Alberto Garcia <agarcia@igalia.com>
532
533 PR gas/14082
534 * app.c (do_scrub_chars): Prevent possible out of bounds access to
535 lex[] array.
536
537 2012-05-16 Georg-Johann Lay <avr@gjlay.de>
538
539 PR target/13503
540 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
541 R_AVR_8_HLO8.
542 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
543 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
544
545 2012-05-16 Nathan Sidwell <nathan@codesourcery.com>
546 Kwok Cheung Yeung <kcy@codesourcery.com>
547
548 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
549 51qm variants.
550
551 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
552
553 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
554 Add option to offset S12 addresses into XGATE memory space.
555 Tweak target flags to match other tools. (i.e. -m m68hc11).
556 * doc/as.texinfo: Mention new options.
557 * doc/c-m68hc11.texi: Document new options.
558 * NEWS: Mention new support.
559
560 2012-05-14 DJ Delorie <dj@redhat.com>
561
562 * config/rx-parse.y (rx_range): declare.
563 (O1,O2,O3,O4): Add calls to rx_range.
564 (UO1,UO2,UO3): Likewise.
565 (IMM2,IMMB): Likewise.
566 (rx_range): New.
567
568 * config/tc-rx.c (rx_fetchalign): Declare.
569 (md_pseudo_table): Add .fetchalign.
570 (RX_NBASE_FETCHALIGN): New.
571 (fetchalign_bytes): New.
572 (rx_fetchalign): New.
573 (rx_frag_init): If a "magic" value is found, also init the
574 machine-specific data.
575 (md_assemble): Note following opcode size if called for.
576 (rx_next_opcode): New.
577 (rx_relax_frag): Support .fetchalign.
578 (md_convert_frag): Likewise.
579 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
580
581 2012-05-14 James Lemke <jwlemke@codesourcery.com>
582
583 * config/tc-ppc.c (insn_validate): New func of existing code to call..
584 (ppc_setup_opcodes): ..from 2 places here.
585 Revise for second (VLE) opcode table.
586 Add #ifdef'd code to print opcode tables.
587
588 2012-05-14 James Lemke <jwlemke@codesourcery.com>
589
590 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
591 for the VLE conditional branches.
592
593 2012-05-14 Catherine Moore <clm@codesourcery.com>
594 Maciej W. Rozycki <macro@codesourcery.com>
595 Rhonda Wittels <rhonda@codesourcery.com>
596
597 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
598 (PPC_VLE_SPLIT16D): New macro.
599 (PPC_VLE_LO16A): New macro.
600 (PPC_VLE_LO16D): New macro.
601 (PPC_VLE_HI16A): New macro.
602 (PPC_VLE_HI16D): New macro.
603 (PPC_VLE_HA16A): New macro.
604 (PPC_VLE_HA16D): New macro.
605 (PPC_APUINFO_VLE): New definition.
606 (md_chars_to_number): New function.
607 (md_parse_option): Check for combinations of little
608 endian and -mvle.
609 (md_show_usage): Document -mvle.
610 (ppc_arch): Recognize VLE.
611 (ppc_mach): Recognize bfd_mach_ppc_vle.
612 (ppc_setup_opcodes): Print the opcode table if
613 * config/tc-ppc.h (ppc_frag_check): Declare.
614 * doc/c-ppc.texi: Document -mvle.
615 * NEWS: Mention PowerPC VLE port.
616
617 2012-05-14 Catherine Moore <clm@codesourcery.com>
618
619 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
620 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
621 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
622 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
623 for DWARF2_LINE_MIN_INSN_LENGTH.
624
625 2012-05-12 H.J. Lu <hongjiu.lu@intel.com>
626
627 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
628 for BFD_RELOC_64.
629
630 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
631
632 PR binutils/14028
633 * configure.in: Invoke ACX_HEADER_STRING.
634 * configure: Regenerate.
635 * config.in: Regenerate.
636 * as.h: If STRINGS_WITH_STRING is defined then include both
637 string.h and strings.h.
638
639 2012-05-11 Georg-Johann Lay <avr@gjlay.de
640
641 PR target/13503
642 * config/tc-avr.c (exp_mod_pm): Remove variable.
643 (exp_mod_data_t): New typedef.
644 (pexp_mod_data, exp_mod_data): New variables.
645 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
646 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
647 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
648 (avr_cons_fix_new): Handle new data expression modifiers shipped
649 in pexp_mod_data.
650 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
651 BFD_RELOC_AVR_8_HHI.
652
653 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
654
655 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
656 addend overflow check.
657
658 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
659
660 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
661 x32 addend overflow check.
662
663 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
664
665 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
666
667 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
668
669 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
670 for BFD_RELOC_64.
671
672 2012-05-08 Alan Modra <amodra@gmail.com>
673
674 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
675 LC and LANG environment vars.
676 * Makefile.in: Regenerate.
677
678 2012-05-07 Alan Modra <amodra@gmail.com>
679
680 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
681 * Makefile.in: Regenerate.
682
683 2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
684
685 * config/tc-z80.h(md_register_arithmetic): Define as 0.
686 * config/tc-z80.c(md_begin): Store register names in symbol table,
687 preventing usage as ordinary symbol.
688 * config/tc-z80.c(contains_register): New function.
689 * config/tc-z80.c(parse_exp2): Removed.
690 * config/tc-z80.c(parse_exp_not_indexed): New function.
691 * config/tc-z80.c(parse_exp): Add code to recogize indexed
692 addressing after parsing.
693 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
694 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
695 condition for jump to register.
696 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
697 parse_exp_not_indexed.
698
699 2012-05-05 Alan Modra <amodra@gmail.com>
700
701 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
702 bfd_und_section and bfd_ind_section with their _ptr variants, or
703 use corresponding bfd_is_* macros.
704 * symbols.c: Likewise.
705 * config/obj-aout.c: Likewise.
706 * config/obj-coff-seh.h: Likewise.
707 * config/tc-hppa.c: Likewise.
708 * config/tc-hppa.h: Likewise.
709 * config/tc-ia64.c: Likewise.
710 * config/tc-m32r.c: Likewise.
711 * config/tc-microblaze.c: Likewise.
712 * config/tc-mips.c: Likewise.
713 * config/tc-score.c: Likewise.
714 * config/tc-score7.c: Likewise.
715 * config/tc-tic6x.c: Likewise.
716
717 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
718
719 * configure.tgt: Support x86_64-*-linux-gnux32.
720
721 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
722
723 * config/tc-i386.c (match_template): Add `instruction' to
724 unsupported error message.
725
726 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
727
728 * config/tc-i386.c (output_insn): Reformat.
729
730 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
731
732 * config/tc-i386.c (output_insn): Remove the extra VEX check.
733
734 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
735
736 * config/tc-i386.c (match_template): Improve unsupported error
737 message.
738
739 2012-05-03 Sean Keys <skeys@ipdatasys.com>
740
741 * configure, Makefile.in: Regenerate.
742 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
743 * configure.tgt: Added cpu type.
744 Added files for XGATE assembler.
745 * config/tc-xgate.c: Assembler for XGATE.
746 * config/tc-xgate.h: Header definition for assembler
747 Added files for XGATE testsuite.
748 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
749 * doc/c-xgate.texi: Document XGATE and XGATE port.
750 * doc/as.texinfo: Ditto.
751 * doc/all.texi: Ditto
752 * NEWS: Mention the new support.
753
754 2012-04-30 DJ Delorie <dj@redhat.com>
755
756 * config/rx-parse.y (rx_intop): Add parameter for operation size.
757 Check for large positive constants really being small negative
758 ones.
759 (BRA, BSR): Update calls to rx_intop.
760 (immediate): Likewise.
761
762 2012-04-26 Mark Wielaard <mjw@redhat.com>
763
764 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
765 (DWARF2_LINE_VERSION): Likewise.
766 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
767 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
768 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
769 DWARF2_VERSION >= 4.
770 (out_debug_info): Use difference between start and end as data
771 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
772 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
773
774 2012-04-27 David S. Miller <davem@davemloft.net>
775
776 * doc/c-sparc.text: Document %l34 and %h34.
777
778 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
779
780 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
781 v8pluse, v8plusv, v9e, and v9v.
782 (v9a_asr_table): Add 'pause'.
783
784 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
785 sparc4, v8pluse, v8plusv, v9e, and v9v.
786 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
787 order to accomodate cbcond which otherwise would require two
788 relocations to be handled in a single instruction..
789
790 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
791 names containing "_".
792 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
793 hwcap masks to v8plusv and v9v.
794
795 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
796 masks.
797 (sparc_md_end): No longer need to translate hwcap_seen values into
798 ELF hwcap bits, they now match exactly.
799 (get_hwcap_name): Use HWCAP_* and handle new values.
800 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
801
802 2012-04-20 Tristan Gingold <gingold@adacore.com>
803
804 * config/tc-ia64.c (obj_elf_vms_common): New function.
805 (md_pseudo_table): Add .vms_common pseudo.
806 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
807 * config/obj-elf.c (obj_elf_section_name): Make it public.
808
809 2012-04-17 Richard Sandiford <r.sandiford@uk.ibm.com>
810
811 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
812
813 2012-04-12 David S. Miller <davem@davemloft.net>
814
815 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
816 BFD_RELOC_SPARC_H34.
817 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
818 (tc_gen_reloc): Likewise.
819
820 2012-04-12 Roland McGrath <mcgrathr@google.com>
821
822 * configure.tgt (arm-*-nacl*): Match it.
823 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
824 (LOCAL_LABELS_DOLLAR): Define.
825 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
826 Use nacl format variants.
827
828 2012-04-12 Jie Zhang <jie@codesourcery.com>
829 Meador Inge <meadori@codesourcery.com>
830
831 * config/tc-arm.c (only_one_reg_in_list): New function.
832 (encode_ldmstm): Ditto.
833 (do_ldmstm): Use a different encoding when pushing or poping
834 a single register.
835 (A_COND_MASK): New macro.
836 (A_PUSH_POP_OP_MASK): Ditto.
837 (A1_OPCODE_PUSH): Ditto.
838 (A2_OPCODE_PUSH): Ditto.
839 (A2_OPCODE_POP): Ditto.
840
841 2012-04-06 Maciej W. Rozycki <macro@linux-mips.org>
842
843 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
844 -mno-fix-24k.
845
846 2012-04-06 Roland McGrath <mcgrathr@google.com>
847
848 * configure.in (AC_CHECK_HEADERS): Add locale.h.
849 * config.in: Regenerate.
850 * configure: Regenerate.
851
852 2012-04-05 Nick Clifton <nickc@redhat.com>
853
854 * configure.in (AC_CHECK_FUNCS): Add setlocale.
855 (AM_LC_MESSAGES): Add.
856 * aclocal.m4: Regenerate.
857 * config.in: Regenerate.
858 * configure: Regenerate.
859
860 2012-04-03 DJ Delorie <dj@redhat.com>
861
862 * config/rx-parse.y: Make the .L optional for ADC and SBB.
863
864 2012-04-02 DJ Delorie <dj@redhat.com>
865
866 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
867 transfer size.
868 (IMM): New, call IMM_ with the default 32.
869 (IMMW,IMMB): Likewise, for 16 and 8.
870 (NIMM, MBIMM): Add size parameter.
871 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
872 (MOV.W): Use IMMW instead of IMM.
873
874 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
875 (op_dp20_rm_l): New.
876 (op_dp20_rim_l): New.
877
878 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
879 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
880
881 2012-03-29 Terry Guo <terry.guo@arm.com>
882
883 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
884 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
885
886 2012-03-23 Maxim Kuvyrkov <maxim@codesourcery.com>
887
888 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
889 * doc/c-mips.texi: Mention XLP.
890
891 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
892
893 [SH] Support the .uaquad and .8byte directives also for non-sh64
894 configurations.
895
896 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
897 BFD_RELOC_64.
898 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
899 description...
900 * doc/c-sh.texi (SH Machine Directives): ... here.
901
902 2012-03-20 Nick Clifton <nickc@redhat.com>
903
904 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
905 registers.
906 (do_vmsr): Likewise.
907 (arm_opcode_insns): Do not default to using the FPSCR register in
908 the VMRS and VMSR registers.
909
910 2012-03-16 Roland McGrath <mcgrathr@google.com>
911
912 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
913 Define for this case.
914 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
915
916 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
917
918 * config/tc-arm.c (aeabi_set_public_attributes): Correct
919 handling of Tag_DIV_use.
920
921 2012-03-15 Thomas Schwinge <thomas@codesourcery.com>
922
923 * doc/as.texinfo (Bundle directives): Fix typo.
924
925 2012-03-14 Ryan Mansfield <rmansfield@qnx.com>
926
927 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
928
929 2012-03-13 Roland McGrath <mcgrathr@google.com>
930
931 * config/tc-arm.c (arm_frag_max_var): New function.
932 * config/tc-arm.h: Declare it.
933 (md_frag_max_var): New macro.
934
935 * config/tc-i386.c (i386_frag_max_var): New function.
936 * config/tc-i386.h: Declare it.
937 (md_frag_max_var): New macro.
938
939 * doc/as.texinfo (Bundle directives): New node.
940 (Pseudo Ops): Add it to the menu.
941 * NEWS: Mention new feature.
942 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
943 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
944 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
945 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
946 New functions.
947 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
948 to md_assembly if not.
949 (read_a_source_file): Call assemble_one in place of md_assemble.
950 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
951 .bundle_lock at end of processing.
952 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
953 New functions.
954 [HANDLE_BUNDLE] (potable): Add their entries.
955 * read.h: Declare new functions.
956
957 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
958
959 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
960 (ppc_handle_align): Add termination nop opcode for e500mc family.
961 * doc/as.texinfo: Document options -me5500 and -me6500.
962 * doc/c-ppc.texi: Likewise.
963
964 2012-03-07 Nick Clifton <nickc@redhat.com>
965
966 * config/tc-mn10300.c (other_registers): Add SSP and USP.
967 (md_assemble): Add support for TLS relocs.
968 (mn10300_parse_name): Likewise.
969
970 2012-02-27 Alan Modra <amodra@gmail.com>
971
972 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
973
974 2012-02-27 Alan Modra <amodra@gmail.com>
975
976 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
977 params. Properly generate NOP pattern. Comment reason for
978 subseg_text_p failure.
979
980 2012-02-27 Alan Modra <amodra@gmail.com>
981
982 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
983 and sign extend before range tests.
984 (constant_fits_size_p): Similarly.
985 (get_specific): Trim X_add_number to 32 bits.
986 (fix_operand_size): Likewise, and use unsigned test for signed
987 ranges.
988
989 2012-02-27 Alan Modra <amodra@gmail.com>
990
991 * config/tc-crx.c: Include bfd_stdint.h.
992 (getconstant): Remove irrelevant comment. Don't fail due to
993 sign-extension of int mask.
994 (check_range): Rewrite using unsigned arithmetic throughout.
995
996 2012-02-25 Walter Lee <walt@tilera.com>
997
998 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
999 non-local before checking sy_value.
1000 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
1001
1002 2012-02-25 Walter Lee <walt@tilera.com>
1003
1004 * tc-tilepro.c (O_tls_le): Define operator.
1005 (O_tls_le_lo16): Ditto.
1006 (O_tls_le_hi16): Ditto.
1007 (O_tls_le_ha16): Ditto.
1008 (O_tls_gd_call): Ditto.
1009 (O_tls_gd_add): Ditto.
1010 (O_tls_ie_load): Ditto.
1011 (md_begin): Delete old operators; handle new operators.
1012 (emit_tilepro_instruction): Ditto.
1013 (md_apply_fix): Ditto.
1014 * tc-tilegx.c (O_hw1_got): Delete operator.
1015 (O_hw2_got): Ditto.
1016 (O_hw3_got): Ditto.
1017 (O_hw2_last_got): Ditto.
1018 (O_hw1_tls_gd): Ditto.
1019 (O_hw2_tls_gd): Ditto.
1020 (O_hw3_tls_gd): Ditto.
1021 (O_hw2_last_tls_gd): Ditto.
1022 (O_hw1_tls_ie): Ditto.
1023 (O_hw2_tls_ie): Ditto.
1024 (O_hw3_tls_ie): Ditto.
1025 (O_hw2_last_tls_ie): Ditto.
1026 (O_hw0_tls_le): Define operator.
1027 (O_hw0_last_tls_le): Ditto.
1028 (O_hw1_last_tls_le): Ditto.
1029 (O_tls_gd_call): Ditto.
1030 (O_tls_gd_add): Ditto.
1031 (O_tls_ie_load): Ditto.
1032 (O_tls_add): Ditto.
1033 (md_begin): Delete old operators; handle new operators.
1034 (emit_tilegx_instruction): Ditto.
1035 (md_apply_fix): Ditto.
1036 * doc/c-tilegx.texi: Delete old operators; document new operators.
1037 * doc/c-tilepro.texi: Ditto.
1038
1039 2012-02-25 Walter Lee <walt@tilera.com>
1040
1041 * tc-tilepro.c (apply_special_operator): delete cases for
1042 got and tls operators.
1043 (md_apply_fix): Ditto.
1044 * tc-tilegx.c (md_begin): Set architecture and machine.
1045 (tilegx_target_format): Handle big endian.
1046 (OPTION_EB): Define.
1047 (OPTION_EL): Define.
1048 (md_longopts): Add entries for "EB" and "EL".
1049 (md_parse_option): Handle OPTION_EB and OPTION_EL.
1050 (md_show_usage): Add -EB and -EL.
1051 (md_number_to_chars): New.
1052 (apply_special_operator): delete cases for got and tls
1053 operators.
1054 (md_apply_fix): Ditto.
1055 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
1056 ifndef.
1057 (md_number_to_chars): Delete.
1058 * configure.tgt (tilegx*be): Handle.
1059 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
1060 * doc/c-tilegx.texi: Ditto.
1061
1062 2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
1065 HLEPrefixAny and HLEPrefixRelease.
1066
1067 2012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1068
1069 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
1070
1071 2012-02-21 Iain Sandoe <idsandoe@googlemail.com>
1072
1073 * write.c (write_object_file): Add md_pre_output_hook.
1074 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
1075 (obj_mach_o_pre_output_hook): New.
1076 * config/obj-macho.h (md_pre_output_hook): Define.
1077 (obj_mach_o_pre_output_hook): Declare.
1078
1079 2012-02-21 Tristan Gingold <gingold@adacore.com>
1080
1081 * config/tc-i386.h (OBJ_MACH_O): New section.
1082 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
1083 (TC_FORCE_RELOCATION_SUB_SAME): New
1084 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
1085 (TC_VALIDATE_FIX_SUB): New.
1086 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
1087 * symbols.c (colon): obj_frob_colon: New hook.
1088 * write.c (write_object_file): md_pre_relax_hook, new
1089 hook.
1090 * config/obj-macho.c (obj_mach_o_frob_colon): New.
1091 (obj_mach_o_frob_label): Record sub-section labels.
1092 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
1093 (obj_mach_o_set_subsections): New.
1094 (obj_mach_o_pre_relax_hook): New.
1095 (obj_mach_o_in_different_subsection): New.
1096 (obj_mach_o_force_reloc_sub_same): New.
1097 (obj_mach_o_force_reloc_sub_local): New.
1098 (obj_mach_o_force_reloc): New.
1099 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
1100 (obj_frob_colon): New Define.
1101 (obj_mach_o_frob_label): Renamed.
1102 (obj_mach_o_frob_symbol): Renamed.
1103 (OBJ_FRAG_TYPE): New.
1104 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
1105 obj_mach_o_force_reloc_sub_same,
1106 obj_mach_o_force_reloc_sub_local): New declarations.
1107
1108 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
1109
1110 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
1111 (obj_mach_o_allow_local_subtract): New.
1112 * config/obj-macho.h (md_allow_local_subtract): Define.
1113 (obj_mach_o_allow_local_subtract): Declare.
1114
1115 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
1116
1117 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
1118 canonical information, try to determine CODE and DEBUG section flags
1119 from the mach-o section data.
1120
1121 2012-02-20 Nick Clifton <nickc@redhat.com>
1122
1123 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
1124 local symbols.
1125
1126 2012-02-12 Iain Sandoe <idsandoe@googlemail.com>
1127
1128 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
1129 any local symbol used as an indirect.
1130
1131 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
1132
1133 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
1134 stub size when provided. (obj_mach_o_section): Flag that stub-size
1135 has been provided.
1136
1137 2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
1138
1139 * config/tc-i386.c (HLE_PREFIX): New.
1140 (check_hle): Likewise.
1141 (_i386_insn): Add have_hle.
1142 (cpu_arch): Add .hle and .rtm.
1143 (md_assemble): Call check_hle if i.have_hle isn't zero.
1144 (parse_insn): Set i.have_hle to 1 for HLE prefix.
1145 (output_jump): Support up to 2 byte opcode.
1146
1147 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
1148
1149 2012-02-02 Tristan Gingold <gingold@adacore.com>
1150
1151 * config/obj-macho.c (obj_mach_o_zerofill): Silent
1152 uninitialized variable warning.
1153
1154 2012-02-02 Nick Clifton <nickc@redhat.com>
1155
1156 PR gas/13224
1157 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
1158 to 'is_clone' to avoid shadowing a gloabl.
1159 (obj_elf_section): Likewise.
1160
1161 2012-01-31 Paul Brook <paul@codesourcery.com>
1162
1163 * doc/c-tic6x.c: Fix typo.
1164
1165 2012-01-26 Alexey Makhalov <makhaloff@gmail.com>
1166
1167 PR gas/13624
1168 * app.c (app_push): Set 'add_newlines' to zero after saving.
1169
1170 2012-01-24 DJ Delorie <dj@redhat.com>
1171
1172 * config/rl78-parse.y (NOT1): Add.
1173
1174 2012-01-23 Roland McGrath <mcgrathr@google.com>
1175
1176 * configure.tgt (i386-*-nacl*): Match it.
1177 * config/te-nacl.h: New file.
1178 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
1179 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
1180 Use TE_GNU et al case for TE_NACL too.
1181
1182 2012-01-20 H.J. Lu <hongjiu.lu@intel.com>
1183
1184 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
1185 disp_encoding.
1186 (md_assemble): Updated.
1187 (output_branch): Likewise.
1188 (parse_insn): Support .d8 suffix.
1189 (build_modrm_byte): Fake zero displacement for .d8 and .d32
1190 suffixes.
1191
1192 * doc/c-i386.texi: Document .d8 suffix.
1193
1194 2012-01-17 Andrew Burgess <aburgess@broadcom.com>
1195
1196 * write.c (fix_new_internal): Don't mark used parameter as unused.
1197
1198 2012-01-17 Alan Modra <amodra@gmail.com>
1199
1200 * as.c (parse_args): Update copyright message year.
1201
1202 2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
1203
1204 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
1205
1206 * doc/c-i386.texi: Document vmfunc.
1207
1208 2012-01-13 Tristan Gingold <gingold@adacore.com>
1209
1210 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
1211 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
1212 (obj_mach_o_reorder_section_relocs): Declare.
1213
1214 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1215
1216 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
1217 absolute indirect symbols.
1218
1219 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1220
1221 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
1222 (obj_mach_o_set_section_vma): New.
1223 (obj_mach_o_post_relax_hook): New.
1224 * config/obj-macho.h (md_post_relax_hook): Define.
1225 (obj_mach_o_post_relax_hook): Declare.
1226
1227 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
1228
1229 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
1230 lazy when the symbol is private_extern.
1231 (obj_mach_o_indirect_sym): New type.
1232 (obj_mach_o_indirect_symbol): New.
1233 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
1234 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
1235 (obj_macho_frob_label): Likewise. Adjust external and comm
1236 symbol tests.
1237 (obj_mach_o_set_indirect_symbols): New.
1238 (obj_mach_o_frob_file_after_relocs): New.
1239 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
1240 (obj_mach_o_frob_file_after_relocs): Declare.
1241
1242 2012-01-12 Tristan Gingold <gingold@adacore.com>
1243
1244 PR gas/13591
1245 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
1246
1247 2012-01-10 Tristan Gingold <gingold@adacore.com>
1248
1249 * struc-symbol.h (struct symbol_flags): New struct, created from...
1250 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
1251 (struct local_symbol): Replace lsy_marker field by lsy_flags.
1252 Adjust comment.
1253 (local_symbol_resolved_p): Adjust.
1254 (local_symbol_mark_resolved): Likewise.
1255 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
1256 (local_symbol_make, local_symbol_convert, colon)
1257 (symbol_clone_if_forward_ref, verify_symbol_chain)
1258 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
1259 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
1260 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
1261 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
1262 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
1263 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
1264 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
1265 (symbol_mark_mri_common, symbol_clear_mri_common)
1266 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
1267 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
1268 (symbol_equated_reloc_p, dot_symbol_init)
1269 (print_symbol_value_1): Adjust.
1270
1271 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
1272
1273 * config/obj-macho.c (obj_mach_o_weak): Remove.
1274 (obj_mach_o_common_parse): Set symbol qualifiers.
1275 (LAZY, REFE): New macros.
1276 (obj_mach_o_symbol_type): New enum.
1277 (obj_mach_o_set_symbol_qualifier): New.
1278 (obj_mach_o_sym_qual): New.
1279 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
1280 a dummy function.
1281 (obj_mach_o_type_for_symbol): New.
1282 (obj_macho_frob_label): New.
1283 (obj_macho_frob_symbol): New.
1284 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
1285 (obj_frob_label, obj_macho_frob_label): Declare.
1286 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
1287
1288 2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
1289
1290 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
1291
1292 2012-01-08 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1293 Richard Sandiford <rdsandiford@googlemail.com>
1294
1295 * config/tc-mips.c (mips_move_labels): Take the list of labels and
1296 textness as parameters.
1297 (mips_move_text_labels): New function.
1298 (append_insn): Use it instead of mips_move_labels.
1299 (mips_emit_delays, start_noreorder): Likewise.
1300 (mips_align): Take the labels rather than just one label.
1301 Move all labels to after the .align.
1302 (s_align): Change the last argument to mips_align.
1303 (s_cons): Likewise.
1304 (s_float_cons): Likewise.
1305 (s_gpword): Likewise.
1306 (s_gpdword): Likewise.
1307
1308 2012-01-06 Tristan Gingold <gingold@adacore.com>
1309
1310 * config/tc-i386.c: Update copyright year.
1311 (lex_got): Also defined for Mach-O.
1312 Add a guard for non-ELF configuration.
1313 (md_longopts): Also handle -64 for Mach-O.
1314 (md_parse_option): Likewise.
1315 (i386_target_format): Adjust for x86_64-darwin.
1316
1317 2012-01-04 Iain Sandoe <idsandoe@googlemail.com>
1318
1319 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
1320 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
1321 (obj_mach_o_make_or_get_sect): Likewise.
1322 (obj_mach_o_section): Split out the functionality shared with zerofill.
1323 (obj_mach_o_zerofill): New.
1324 (obj_mach_o_common_parse): Ensure whitespace is skipped.
1325 (mach_o_pseudo_table): Add .zerofill.
1326
1327 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1328
1329 * config/obj-macho.c (obj_macho_process_stab): New.
1330 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
1331 (obj_macho_process_stab): Declare.
1332
1333 For older changes see ChangeLog-2011
1334 \f
1335 Local Variables:
1336 mode: change-log
1337 left-margin: 8
1338 fill-column: 74
1339 version-control: never
1340 End: