Add support for using the ADR alias in Thumb mode against nearby symbols.
[external/binutils.git] / gas / ChangeLog
1 2015-06-18  Nick Clifton  <nickc@redhat.com>
2
3         PR gas/18541
4         * config/tc-arm.c (md_apply_fix): Add support for ADR in thumb
5         mode against a nearby symbol.
6
7 2015-06-18  Nick Clifton  <nickc@redhat.com>
8
9         PR gas/18481
10         * config/tc-arm.c (tc_gen_reloc): Include BFD_RELOC_ARM_TLS_LE32
11         in the same case as BFD_RELOC_ARM_TLS_IS32.
12
13 2015-06-17  Nick Clifton  <nickc@redhat.com>
14
15         * config/tc-arm.c (is_double_a_single): Make conditional upon the
16         availablity of a 64-bit type.  Use this type for the argument and
17         mantissa.
18         (double_to_single): Likewise.
19         * config/tc-arm.c (move_or_literal_pool): Use a 64-bit type for
20         the constant value, if available.  Generate a 64-bit value from a
21         bignum if supported.  Only perform the second optimization for
22         PR 18500 if the 64-bit type is available.
23
24 2015-06-17  Alessandro Marzocchi  <alessandro.marzocchi@gmail.com>
25
26         PR gas/18500
27         * config/tc-arm.c (is_double_a_single): New function.
28         (double_to_single): New function.
29         (move_or_literal_pool): Add support for converting VLDR to VMOV.
30
31         PR gas/18499
32         * config/tc-arm.c (move_or_literal_pool): Add support for LDR Rx,=
33         to MOV.w or MVN.w for Thumb2.
34
35 2015-06-17  Nicolas Pitre <nico@linaro.org>
36
37         * as.c (show_usage): Document --sectname-subst.
38         (parse_args): Add --sectname-subst.
39         * as.h (flag_sectname_subst): New.
40         * config/obj-elf.c (obj_elf_section_name): Add %S substitution.
41         * doc/as.texinfo: Document it.
42
43 2015-06-15  Renlin Li  <renlin.li@arm.com>
44
45         * config/tc-aarch64.c (reloc_table): New relocation modifier.
46         (md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.
47         (aarch64_force_relocation): Ditto
48
49 2015-06-13  Mark Wielaard  <mjw@redhat.com>
50
51         * dwarf2dbg.c (out_header): Document EXPR->X_add_number value,
52         out_debug_aranges depends on it.
53         (out_debug_aranges): Track size of header to properly pad header
54         for address alignment.
55
56 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
57
58         PR gas/18427
59         * gas/config/tc-hppa.c (last_label_symbol): Declare.
60         (pa_get_label): Return last label in current space/segment or NULL.
61         (pa_define_label): Record last label and add to root.
62         (pa_undefine_label): Remove last label from root.
63
64 2015-06-08  Nick Clifton  <nickc@redhat.com>
65
66         * config/tc-rx.c (rx_op): Correct handling of integer bignums.
67
68 2015-06-04  Matthew Wahab  <matthew.wahab@arm.com>
69
70         * NEWS: Mention ARMv8.1 support in the Aarch64 port.
71         * config/tc-aarch64.c (aarch64_arch_option_table): Add "armv8.1-a".
72         * doc/c-aarch64.texi (-march): Add "armv8.1-a".
73
74 2015-06-04  Renlin Li  <renlin.li@arm.com>
75
76         * config/tc-arm.c (arm_init_frag): Use frag's thumb_mode information
77         when available.
78
79 2015-06-04  Nick Clifton  <nickc@redhat.com>
80
81         * config/tc-h8300.c (md_section_align): Fix compile time warning
82         about left shifting a negative value.
83
84 2015-06-03  Matthew Wahab  <matthew.wahab@arm.com>
85
86         * config/tc-arm.c (arm_archs): Add "armv8.1-a".
87         * doc/c-arm.texi (ARM Options, -march): Add "armv8.1-a".
88         * NEWS: Mention ARMv8.1 support.
89
90 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
91
92         * config/tc-arm.c (arm_ext_pan): New.
93         (do_setpan): New, encode an ARM SETPAN instruction.
94         (do_t_setpan): New, encode a Thumb SETPAN instruction.
95         (insns): Add "setpan".
96         (arm_extensions): Add "pan".
97         * doc/c-arm.texi (ARM Options): Add "pan" to list of -mcpu processor
98         extensions.
99
100 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
101
102         * config/tc-aarch64.c (aarch64_features): Add "rdma".
103         * doc/c-aarch64.texi (AArch64 Extensions): Add "rdma".
104
105 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
106
107         * config/tc-aarch64.c (aarch64_features): Add "lor".
108         * doc/c-aarch64.c (Aarch64 Extensions): Add "lor" to list of
109         architecture extensions.
110
111 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
112
113         * config/tc-aarch64.c (parse_sys_reg): New parameter.  Check target
114         support.  Fix whitespace.
115         (parse_operands): Update for parse_sys_reg changes.
116         (aarch64_features): Add "pan".
117         * doc/c-aarch64.texi (Aarch64 Extensions): Add "pan".
118
119 2015-06-01  Jiong Wang  <jiong.wang@arm.com>
120
121         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
122         (md_apply_fix): Support BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
123         (aarch64_force_relocation): Ditto.
124
125 2015-06-01  Jiong Wang  <jiong.wang@arm.com>
126
127         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
128         (md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
129         (aarch64_force_relocation): Ditto.
130
131 2015-05-28  Catherine Moore  <clm@codesourcery.com>
132             Bernd Schmidt <bernds@codesourcery.com>
133             Paul Brook <paul@codesourcery.com>
134
135         gas/
136         * config/tc-alpha.c (all_cfi_sections): Declare.
137         (s_alpha_ent): Initialize all_cfi_sections.
138         (alpha_elf_md_end): Invoke cfi_set_sections.
139         * config/tc-mips.c (md_apply_fix):  Handle BFD_RELOC_NONE.
140         (s_ehword): Use BFD_RELOC_32_PCREL.
141         (mips_fix_adjustable): Handle BFD_RELOC_32_PCREL.
142         (mips_cfi_reloc_for_encoding): New function.
143         * tc-mips.h (DWARF2_FDE_RELOC_SIZE): Redefine.
144         (DWARF2_FDE_RELOC_ENCODING): Define.
145         (tc_cfi_reloc_for_encoding): Define.
146         (mips_cfi_reloc_for_encoding): Define.
147         (tc_compact_eh_opcode_stop): Define.
148         (tc_compact_eh_opcode_pad): Define.
149         * doc/as.texinfo: Document Compact EH extensions.
150         * doc/internals.texi: Likewise.
151         * dw2gencfi.c (EH_FRAME_LINKONCE): Redefine.
152         (tc_cfi_reloc_for_encoding): Provide default.
153         (compact_eh): Declare.
154         (emit_expr_encoded): New function.
155         (get_debugseg_name): Add Compact EH support.
156         (alloc_debugseg_item): Likewise.
157         (cfi_set_sections): New function.
158         (dot_cfi_fde_data): New function.
159         (dot_cfi_personality_id): New function.
160         (dot_cfi_inline_lsda): New function.
161         (cfi_pseudo_table): Add cfi_fde_data, cfi_personality_id,
162         and cfi_inline_lsda.
163         (dot_cfi_personality): Add Compact EH support.
164         (dot_cfi_lsda): Likewise.
165         (dot_cfi_sections): Likewise.
166         (dot_cfi_startproc): Likewise.
167         (get_cfi_seg): Likewise.
168         (output_compact_unwind_data): New function.
169         (output_cfi_insn): Add Compact EH support.
170         (output_cie): Likewise.
171         (output_fde): Likewise.
172         (cfi_finish): Likewise.
173         (cfi_emit_eh_header): New function.
174         (output_eh_header): New function.
175         * dw2gencfi.h (cfi_set_sections): Declare.
176         (SUPPORT_COMPACT_EH): Define.
177         (MULTIPLE_FRAME_SECTIONS): Define.
178         New enumeration to describe the Compact EH header format.
179         (fde_entry): Add new fields personality_id, eh_header_type, eh_data_size,
180         eh_data, eh_loc and sections.
181         (CFI_EMIT_eh_frame, CFI_EMIT_debug_frame, CFI_EMIT_target,
182         CFI_EMIT_eh_frame_compact): Define.
183
184 2015-05-26  Max Filippov  <jcmvbkbc@gmail.com>
185
186         * config/tc-xtensa.c (xtensa_move_literals): Check that
187         search_frag is non-NULL. Report error if literal frag is not
188         found.
189
190 2015-05-22  Nick Clifton  <nickc@redhat.com>
191
192         PR gas/18446
193         * read.c (output_big_sleb128): Use U suffix to prevent compile
194         time warning.
195
196 2015-05-19  Jiong Wang  <jiong.wang@arm.com>
197
198         * config/tc-aarch64.c (process_movw_reloc_info): Sort relocation case
199         labels alphabetically.
200         (md_apply_fix): Ditto.
201         (aarch64_force_relocation): Ditto.
202
203 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
204
205         PR binutis/18386
206         * config/tc-i386.c (OPTION_MAMD64): New.
207         (OPTION_MINTEL64): Likewise.
208         (md_longopts): Add -mamd64 and -mintel64.
209         (md_parse_option): Handle OPTION_MAMD64 and OPTION_MINTEL64.
210         (md_show_usage): Add -mamd64 and -mintel64.
211         * doc/c-i386.texi: Document -mamd64 and -mintel64.
212
213 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
214
215         * config/tc-i386.c (shared): New.
216         (OPTION_MSHARED): Likewise.
217         (elf_symbol_resolved_in_segment_p): Add relocation argument.
218         Check PLT relocations and shared.
219         (md_estimate_size_before_relax): Pass fragP->fr_var to
220         elf_symbol_resolved_in_segment_p.
221         (md_longopts): Add -mshared.
222         (md_show_usage): Likewise.
223         (md_parse_option): Handle OPTION_MSHARED.
224         * doc/c-i386.texi: Document -mshared.
225
226 2015-05-14  H.J. Lu  <hongjiu.lu@intel.com>
227
228         * write.c (compress_debug): Don't write the zlib header, which
229         is handled by bfd_update_compression_header.
230
231 2015-05-13  Max Filippov  <jcmvbkbc@gmail.com>
232
233         * config/tc-xtensa.c (xtensa_relax_frag): Allow trampoline to be
234         closer than J_RANGE / 2 to jump frag.
235
236 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
237
238         * configure.tgt (arch): Set to iamcu for i386-*-elfiamcu target.
239         * config/tc-i386.c (i386_mach): Support iamcu.
240         (i386_target_format): Likewise.
241
242 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
243
244         * config/tc-i386.c (cpu_arch): Add iamcu.
245         (i386_align_code): Handle PROCESSOR_IAMCU.
246         (i386_arch): Likewise.
247         (i386_mach): Likewise.
248         (i386_target_format): Likewise.
249         (valid_iamcu_cpu_flags): New function.
250         (check_cpu_arch_compatible): Only allow Intel MCU instructions
251         when targeting Intel MCU.
252         (set_cpu_arch): Call valid_iamcu_cpu_flags to check if CPU flags
253         are valid for Intel MCU.
254         (md_parse_option): Likewise.
255         * tc-i386.h (ELF_TARGET_IAMCU_FORMAT): New.
256         (processor_type): Add PROCESSOR_IAMCU.
257         * doc/c-i386.texi: Document iamcu.
258
259 2015-05-08  Nick Clifton  <nickc@redhat.com>
260
261         PR gas/18347
262         * config/tc-arm.h (TC_EQUAL_IN_INSN): Define.
263         * config/tc-arm.c (arm_tc_equal_in_insn): New function.  Move
264         the symbol name checking code to here from...
265         (md_undefined_symbo): ... here.
266
267 2015-05-07  H.J. Lu  <hongjiu.lu@intel.com>
268
269         * config/tc-i386.c (elf_symbol_resolved_in_segment_p): New.
270         (md_estimate_size_before_relax): Use it.
271
272 2015-05-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
273
274         * config/tc-sparc.c: Typo in comment fixed.
275
276 2015-05-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
277
278         * config/tc-sparc.c (sparc_ip): Support the %ncc "natural"
279         condition codes
280         * doc/c-sparc.texi (Sparc-Regs): Document %ncc.
281
282 2015-05-06  Nick Clifton  <nickc@redhat.com>
283
284         * doc/as.texinfo (Dollar Local Labels): Note that these are only
285         supported on some targets.
286
287 2015-05-06  Renlin Li  <renlin.li@arm.com>
288
289         * config/tc-aarch64.c (mapping_state): Recording alignment before exit.
290
291 2015-05-05  Renlin Li  <renlin.li@arm.com>
292
293         * config/tc-aarch64.c (aarch64_init_frag): Always generate mapping
294         symbols.
295
296 2015-05-05  Nick Clifton  <nickc@redhat.com>
297
298         * config/tc-msp430.c (MAX_OP_LEN): Increase to 4096.
299         (msp430_make_init_symbols): New function.
300         (msp430_section): Call it.
301         (msp430_frob_section): Likewise.
302
303 2015-05-02  Max Filippov  <jcmvbkbc@gmail.com>
304
305         * config/tc-xtensa.c (cached_fixupS, fixup_cacheS): New typedefs.
306         (struct cached_fixup, struct fixup_cache): New structures.
307         (fixup_order, xtensa_make_cached_fixup),
308         (xtensa_realloc_fixup_cache, xtensa_cache_relaxable_fixups),
309         (xtensa_find_first_cached_fixup, xtensa_delete_cached_fixup),
310         (xtensa_add_cached_fixup): New functions.
311         (xtensa_relax_frag): Cache fixups pointing at potentially
312         oversized jumps at the beginning of every relaxation pass. Only
313         check subset of this cache in the reach of single jump from the
314         trampoline frag currently being relaxed.
315
316 2015-05-01  Nick Clifton  <nickc@redhat.com>
317
318         * config/rl78-parse.y (MULU): Remove ISA_G14.
319         (MULH, DIVHU, DIVWU, MACHI, MACH): Update error strings.
320
321 2015-05-01  H.J. Lu  <hongjiu.lu@intel.com>
322
323         * config/tc-i386.c (i386_elf_emit_arch_note): Removed.
324         * config/tc-i386.h (md_end): Likewise.
325         (i386_elf_emit_arch_note): Likewise.
326
327 2015-05-01  H.J. Lu  <hongjiu.lu@intel.com>
328
329         * configure.tgt: Support i386-*-elf*.
330
331 2015-04-30  DJ Delorie  <dj@redhat.com>
332
333         * config/rl78-defs.h (rl78_isa_g10): New.
334         (rl78_isa_g13): New.
335         (rl78_isa_g14): New.
336         * config/rl78-parse.y (ISA_G10): New.
337         (ISA_G13): New.
338         (ISA_G14): New.
339         (MULHU, MULH, MULU, DIVHU, DIVWU, MACHU, MACH): Use them.
340         * config/tc-rl78.c (rl78_isa_g10): New.
341         (rl78_isa_g13): New.
342         (rl78_isa_g14): New.
343
344 2015-04-30  H.J. Lu  <hongjiu.lu@intel.com>
345
346         * config/tc-i386.c (i386_target_format): Use "else if" on
347         cpu_arch_isa.
348
349 2015-04-30  Nick Clifton  <nickc@redhat.com>
350
351         PR gas/18347
352         * config/tc-arm.c (md_undefined_symbol): Issue a warning message
353         (if enabled) when the user creates a symbol with the same name as
354         an ARM instruction.
355         (flag_warn_syms): New static variable.
356         (arm_opts): Add mwarn-syms and mno-warn-syms.
357         * doc/c-arm.texi (ARM Options): Document the -m[no-]warn-syms
358         options.
359
360         PR gas/18353
361         * doc/as.texinfo (Zero): Add documentation of the .zero pseudo-op.
362
363 2015-04-29  Nick Clifton  <nickc@redhat.com>
364
365         PR 18256
366         * config/tc-arm.c (encode_arm_cp_address): Issue an error message
367         if the operand is neither a register nor a vector.
368
369 2015-04-29  Nick Clifton  <nickc@redhat.com>
370
371         * doc/as.texinfo (Set): Note that a symbol cannot be set multiple
372         times if the expression is not constant and the target uses linker
373         relaxation.
374
375 2015-04-28  Renlin Li  <renlin.li@arm.com>
376
377         * config/tc-arm.c (arm_init_frag): Always emit mapping symbols.
378
379 2015-04-28  Nick Clifton  <nickc@redhat.com>
380
381         PR 18313
382         * cond.c (s_if): Stop compile time warning about stopc being used
383         before it is set.
384         (s_ifc): Likewise.
385
386 2015-04-27  Renlin Li  <renlin.li@arm.com>
387
388         * config/tc-aarch64.c (s_aarch64_inst): Don't align code for non-text
389         section.
390         (md_assemble): Likewise, move the align code outside the loop.
391
392 2015-04-24  Jim Wilson  <jim.wilson@linaro.org>
393
394         * config/tc-aarch64.c (aarch64_cpus): Add CRC and CRYPTO features
395         for thunderx.
396
397 2015-04-24  Richard Earnshaw  <rearnsha@arm.com>
398
399         * config/tc-arm.h (arm_min): New function.
400         (SUB_SEGMENT_ALIGN): Define.
401
402 2015-04-23  Matthew Fortune  <matthew.fortune@imgtec.com>
403
404         * config/tc-mips.c (macro): State the recommended way of creating
405         32-bit or 64-bit addresses.
406
407 2015-04-23  Jan Beulich  <jbeulich@suse.com>
408
409         * config/tc-i386.c (match_mem_size): Also allow no size
410         specification when broadcasting.
411
412 2015-04-20  H.J. Lu  <hongjiu.lu@intel.com>
413
414         * doc/as.texinfo (Bundle directives): Shorten menu entry and
415         use @subsection.
416         (CFI directives): Use @subsection.
417         (SH-Dependent, SH64-Dependent): Moved after SCORE-Dependent.
418         * doc/c-i386.texi (i386-Mnemonics): Use @subsection.
419
420 2015-04-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
421
422         * config/tc-avr.c (create_record_for_frag): Rename link to
423         prop_rec_link.
424
425 2015-04-15  H.J. Lu  <hongjiu.lu@intel.com>
426
427         * NEWS: Mention
428         --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
429
430 2015-04-14  H.J. Lu  <hongjiu.lu@intel.com>
431
432         * as.h (compressed_debug_section_type): Removed.
433
434 2015-04-14  Nick Clifton  <nickc@redhat.com>
435
436         * config/tc-rl78.h (TC_LINKRELAX_FIXUP): Define.
437         (TC_FORCE_RELOCATION_SUB_SAME): Define.
438         (DWARF2_USE_FIXED_ADVANCE_PC): Define.
439
440 2015-04-10  Nick Clifton  <nickc@redhat.com>
441
442         PR binutils/18198
443         * doc/c-arm.texi (ARM Options): Add a note about the interaction of
444         the -EB option with the linker's --be8 option.
445
446 2015-04-09  Hans-Peter Nilsson  <hp@axis.com>
447
448         * doc/c-rx.texi: Fix markup typos in last change.
449
450 2015-04-09  Nick Clifton  <nickc@redhat.com>
451
452         * config/tc-rx.c (enum options): Add OPTION_DISALLOW_STRING_INSNS.
453         (md_longopts): Add -mno-allow-string-insns.
454         (md_parse_option): Handle -mno-allow-string-insns.
455         (md_show_usage): Mention -mno-allow-string-insns.
456         (rx_note_string_insn_use): New function.  Produces an error
457         message if a string insn is used when it is not allowed.
458         * config/rx-parse.y (SCMPU): Call rx_note_string_insn_use.
459         (SMOVU, SMOVB, SMOVF, SUNTIL, SWHILE, RMPA): Likewise.
460         * config/rx-defs.h (rx_note_string_insn_use): Prototype.
461         * doc/c-rx.texi: Document -mno-allow-string-insns.
462
463 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
464
465         * as.c (show_usage): Update --compress-debug-sections.
466         (std_longopts): Use optional_argument on compress-debug-sections.
467         (parse_args): Handle
468         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
469         * as.h (compressed_debug_section_type): New.
470         (flag_compress_debug): Change type to compressed_debug_section_type.
471         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
472         * write.c (compress_debug): Set BFD_COMPRESS_GABI for
473         --compress-debug-sections=zlib-gabi.  Call
474         bfd_get_compression_header_size to get compression header size.
475         Don't rename section name for --compress-debug-sections=zlib-gabi.
476         * config/tc-i386.c (compressed_debug_section_type): Set to
477         COMPRESS_DEBUG_ZLIB.
478         * doc/as.texinfo: Document
479         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
480
481 2015-04-07  Renlin Li  <renlin.li@arm.com>
482
483         * config/tc-aarch64.c (mapping_state): Use subseg_text_p.
484         (s_aarch64_inst): Likewise.
485         (md_assemble): Likewise.
486
487 2015-04-06  H.J. Lu  <hongjiu.lu@intel.com>
488
489         * write.c (compress_debug): Use bfd_putb64 to write uncompressed
490         section size.
491
492 2015-04-05  H.J. Lu  <hongjiu.lu@intel.com>
493
494         * write.c (compress_debug): Don't write the zlib header if
495         compressed section size is the same as before compression.
496
497 2015-04-02  Nick Clifton  <nickc@redhat.com>
498
499         PR gas/18189
500         * config/tc-microblaze.c (parse_imm): Use offsetT as the type for
501         min and max parameters.  Sign extend values before testing.
502
503 2015-04-02  Renlin Li  <renlin.li@arm.com>
504
505         * config/tc-aarch64.c (mapping_state): Emit MAP_DATA within text section in order.
506         (mapping_state_2): Don't emit MAP_DATA here.
507         (s_aarch64_inst): Align frag during state transition.
508         (md_assemble): Likewise.
509
510 2015-04-02  Ed Maste  <emaste@freebsd.org>
511
512         * config/tc-aarch64.c (set_error_kind): Delete.
513         (set_error_message): Delete.
514
515 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
516
517         * configure: Regenerated.
518
519 2015-04-01  Evandro Menezes  <e.menezes@samsung.com>
520
521         * config/tc-aarch64.c: Add support for Samsung Exynos M1.
522         * doc/c-aarch64.texi (-mcpu=): Add "exynos-m1".
523
524 2015-04-01  Evandro Menezes  <e.menezes@samsung.com>
525
526         * config/tc-arm.c: Add support for Samsung Exynos M1.
527         * doc/c-arm.texi (-mcpu=): Add "exynos-m1".
528
529 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
530
531         * configure: Regenerated.
532
533 2015-03-31  Ed Schouten  <ed@nuxi.nl>
534
535         * configure.tgt (fmt): Set to elf for *-*-cloudabi*.
536
537 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
538
539         * configure.ac: Revert the AM_ZLIB change.
540         * Makefile.in: Regenerated.
541         * aclocal.m4: Likewise.
542         * configure: Likewise.
543
544 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
545
546         * Makefile.am (ZLIBINC): New.
547         (AM_CFLAGS): Add $(ZLIBINC).
548         * as.c: (show_usage): Don't check HAVE_ZLIB_H.
549         (parse_args): Likewise.
550         * compress-debug.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
551         (compress_init): Don't check HAVE_ZLIB_H.
552         (compress_data): Likewise.
553         (compress_finish): Likewise.
554         * configure.ac (AM_ZLIB): Removed.
555         (zlibinc): New.  AC_SUBST.
556         Add --with-system-zlib.
557         * Makefile.in: Regenerated.
558         * config.in: Likewise.
559         * configure: Likewise.
560         * doc/Makefile.in: Likewise.
561
562 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
563
564         * config/tc-i386.c (cpu_flags_set): Removed.
565
566 2015-03-25  Renlin Li  <renlin.li@arm.com>
567
568         * config/tc-aarch64.c (mapping_state): Remove first MAP_DATA emitting
569         code.
570         (mapping_state_2): Emit first MAP_DATA symbol here.
571
572 2015-03-24  H.J. Lu  <hongjiu.lu@intel.com>
573
574         PR gas/18087
575         * write.c (compress_debug): Don't write the zlib header if
576         compression didn't make the section smaller.
577
578 2015-03-24  Terry Guo  <terry.guo@arm.com>
579
580         * config/tc-arm.c (no_cpu_selected): Use new macro to compare
581         features.
582         (parse_psr): Likewise.
583         (do_t_mrs): Likewise.
584         (do_t_msr): Likewise.
585         (static const arm_feature_set arm_ext_*): Defined with new macros.
586         (static const arm_feature_set arm_cext_*): Likewise.
587         (static const arm_feature_set fpu_fpa_ext_*): Likewise.
588         (static const arm_feature_set fpu_vfp_ext_*): Likewise.
589         (deprecated_coproc_regs): Likewise.
590         (UL_BARRIER): Likewise.
591         (barrier_opt_names): Likewise.
592         (arm_cpus): Likewise.
593         (arm_extensions): Likewise.
594
595 2015-03-20  H.J. Lu  <hongjiu.lu@intel.com>
596
597         * config/tc-i386.c (i386_align_code): Limit multi-byte nop
598         instructions to 10 bytes.
599
600 2015-03-19  Nick Clifton  <nickc@redhat.com>
601
602         * config/tc-rl78.c (enum options): Add G13 and G14.
603         (md_longopts): Add -mg13 and -mg14.
604         (md_parse_option): Handle -mg13 and -mg14.
605         (md_show_usage): List -mg13 and -mg14.
606         * doc/c-rl78.texi: Add description of -mg13 and -mg14 options.
607
608 2015-03-18  Jon Turney  <jon.turney@dronecode.org.uk>
609             Nick Clifton  <nickc@redhat.com>
610
611         PR binutils/18087
612         * doc/as.texinfo: Note that when gas compresses debug sections the
613         compression is only performed if it makes the section smaller.
614         * write.c (compress_debug): Do not compress a debug section if
615         doing so would make it larger.
616
617 2015-03-17  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
618
619         * config/tc-i386.c (cpu_arch): Add PROCESSOR_ZNVER flags.
620         (i386_align_code): Add PROCESSOR_ZNVER cases.
621         * config/tc-i386.h (processor_type): Add PROCESSOR_ZNVER.
622         * doc/c-i386.texi: Add znver1 and clzero.
623
624 2015-03-16  Nick Clifton  <nickc@redhat.com>
625
626         * dwarf2dbg.c (out_header): Remove spurious #if 1.
627
628 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
629
630         * config/tc-aarch64.c (warn_unpredictable_ldst): Don't warn on reg
631         number 31.
632
633 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
634
635         * config/tc-aarch64.h (SUB_SEGMENT_ALIGN): Define to be zero.
636
637 2015-03-12  Andrew Bennett  <andrew.bennett@imgtec.com>
638
639         * config/tc-mips.c (mips_cpu_info_table): Add i6400 entry.
640         * doc/c-mips.texi: Document i6400 -march option.
641
642 2015-03-12  Nick Clifton  <nickc@redhat.com>
643
644         PR gas/17444
645         * config/tc-arm.h (MD_APPLY_SYM_VALUE): Pass the current segment
646         to arm_apply_sym_value.  Update prototype.
647         * config/tc-arm.c (arm_apply_sym_value): Add segment argument.
648         Do not apply the value if the symbol is in a different segment to
649         the current segment.
650
651 2015-03-11  Alan Modra  <amodra@gmail.com>
652
653         * config/tc-ppc.c (md_assemble): Don't abort on 8 byte insn fixups.
654         (md_apply_fix): Report an error on data-only fixups used with insns.
655
656 2015-03-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
657
658         * config/tc-s390.c (md_gather_operands): Check for valid
659         length field operands.
660
661 2015-03-10  Michael Perkins  <perkinsmg75@yahoo.co.uk>
662
663         * config/tc-arm.c (parse_operands): Fix bug setting writeback
664         values for '^' on OP_REGLSTs.
665         (do_push_pop): Add new writeback constraint.
666
667 2015-03-10  Renlin Li  <renlin.li@arm.com>
668
669         * config/tc-arm.c (mapping_state): Remove first MAP_DATA emitting code.
670         (mapping_state_2): Emit first MAP_DATA symbol here.
671
672 2015-03-10  Matthew Wahab  <matthew.wahab@arm.com>
673
674         * config/tc-aarch64.c (mapping_state): Set minimum alignment for
675         code sections.
676
677 2015-03-10  Nick Clifton  <nickc@redhat.com>
678
679         PR gas/17852
680         * config/tc-arm.c (md_begin): Ensure that selected_cpu is
681         initialised when CPU_DEFAULT is defined.
682
683 2015-03-05  Nick Clifton  <nickc@redhat.com>
684
685         * config/tc-v850.c (md_parse_option): Fix code to set or clear
686         EF_RH850_DATA_ALIGN8 bit in ELF header, based upon the use of the
687         -m8byte-align and -m4byte-align command line options.
688
689 2015-03-04  Richard Sandiford  <richard.sandiford@arm.com>
690
691         PR gas/17843
692         * config/tc-aarch64.c (process_movw_reloc_info): Allow
693         R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
694         for MOVK.
695
696 2015-02-28  Alan Modra  <amodra@gmail.com>
697
698         * write.c (SUB_SEGMENT_ALIGN): Don't pad non-code sections at
699         end to their alignment.
700
701 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
702
703         * config/tc-aarch64.c (reloc_table_entry): Generate
704         BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21.
705         (md_apply_fix, aarch64_force_relocation): Handle
706         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
707
708 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
709
710         * config/tc-aarch64.c (reloc_table_entry): Generate
711         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
712         (md_apply_fix, aarch64_force_relocation): Handle
713         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
714
715 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
716
717         * config/tc-aarch64.c (reloc_table_entry): Generate
718         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
719         (md_apply_fix, aarch64_force_relocation): Handle
720         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
721
722 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
723
724         * config/tc-aarch64.c (reloc_table_entry): Add ld_literal_type.
725         (reloc_table): Likewise.
726         (parse_address_main): Use ld_literal_type.
727
728 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
729
730         * config/tc-aarch64.c (reloc_table_entry): Add adr_type.
731         (reloc_table): Likewise.
732         (parse_address_main): Use adr_type.
733
734 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
735
736         * config/tc-aarch64.c (aarch64_arch_any, aarch64_arch_node): Remove.
737
738 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
739
740         * config/tc-avr.c: Add elf32-avr.h include.
741         (struct avr_property_record_link): New structure.
742         (avr_output_property_section_header): New function.
743         (avr_record_size): New function.
744         (avr_output_property_record): New function.
745         (avr_create_property_section): New function.
746         (avr_handle_align): New function.
747         (exclude_section_from_property_tables): New function.
748         (create_record_for_frag): New function.
749         (append_records_for_section): New function.
750         (avr_create_and_fill_property_section): New function.
751         (avr_post_relax_hook): New function.
752         * config/tc-avr.h (md_post_relax_hook): Define.
753         (avr_post_relax_hook): Declare.
754         (HANDLE_ALIGN): Define.
755         (avr_handle_align): Declare.
756         (strut avr_frag_data): New structure.
757         (TC_FRAG_TYPE): Define.
758
759 2015-02-25  Matthew Wahab  <matthew.wahab@arm.com>
760
761         * doc/c-arm.texi (-mcpu=): Add cortex-a53, cortex-a57 and
762         cortex-a72.
763
764 2015-02-24  Nick Clifton  <nickc@redhat.com>
765
766         * config/tc-v850.c (soft_float): New variable.
767         (v850_data_8): New variable.
768         (md_show_usage): Add -msoft-float/-mhard-float.
769         (md_parse_option): Likewise.
770         (md_begin): Set the default value of soft_float.
771         (v850_md_end): New function.  Creates a note section.
772         * config/tc-v850.h (md_end): Define.
773         * doc/c-v850.texi: Document -msoft-float/-mhard-float.
774
775 2015-02-23  Yoshinori Sato  <ysato@users.sourceforge.jp>
776
777         * config/tc-h8300.c (line_separater_chars): Add a version for
778         h8300-linux that includes a separator.
779         (default_mach): New variable.
780         (md_main): Use it.
781         (md_longopts): Add '--march' option.
782         (md_parse_option): Parse the new option.
783         * config/tc-h8300.h (TARGET_FORMAT): Add elf32-h8300-linux.
784         * configure.tgt: Add h8300-*-linux
785         * doc/c-h8300.texi: Document --march.
786
787 2015-02-23  Nick Clifton  <nickc@redhat.com>
788
789         PR 17940
790         * dwarf2dbg.c (out_header): When generating dwarf sections use
791         real symbols not temps for the start and end symbols.
792         * config/tc-msp430.h (TC_FORCE_RELOCATION_SUB_SAME): Also prevent
793         adjustments to relocations in debug sections.
794         (TC_LINKRELAX_FIXUP): Likewise.
795
796 2015-02-19  Alan Modra  <amodra@gmail.com>
797
798         * doc/as.texinfo (Local Symbol Names): Don't use ':' in pxref.
799         * doc/c-i386.texi: Reorder i386-Bugs after i386-Arch.
800
801 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
802
803         * config/tc-aarch64.c (aarch64_cpus): Fix code formatting.
804
805 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
806
807         * config/tc-arm.c: Add support for Cortex-A72.
808
809 2015-02-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
810
811         * config/tc-arm.c (warn_deprecated_sp): Use as_tsktsk instead
812         of as_warn for deprecation messages.
813         (encode_arm_addr_mode_2): Likewise.
814         (check_obsolete): Likewise.
815         (do_rd_rm_rn): Likewise.
816         (do_co_reg): Likewise.
817         (do_setend): Likewise.
818         (do_t_mov_cmp): Likewise.
819         (do_neon_ldr_str): Likewise.
820         (opcode_lookup): Likewise.
821         (if_fsm_post_encode): Likewise.
822         (md_assemble): Likewise.
823
824 2015-02-06  Jan Beulich  <jbeulich@suse.com>
825
826         * dw2gencfi.c (select_cie_for_fde): Also bail on CFI_label.
827         (cfi_change_reg_numbers): Also do nothing for CFI_label.
828         (cfi_pseudo_table): Also handle .cfi_label when not supporting
829         CFI directives.
830
831 2015-02-05  Alan Modra  <amodra@gmail.com>
832
833         * config/tc-msp430.c (md_assemble): Correct size passed to
834         extract_cmd.  Remove index check.
835
836 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
837
838         * config/tc-aarch64.c (aarch64_cpus): Add support for Cortex-A72.
839         * doc/c-aarch64.texi (-mcpu=): Add "cortex-a72".
840
841 2015-02-04  Nick Clifton  <nickc@redhat.com>
842
843         * config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
844         these instructions.
845
846 2015-02-03  Renlin Li  <renlin.li@arm.com>
847
848         * doc/c-aarch64.texi (.arch): Document the directive.
849         (.arch_extension): Likewise.
850
851 2015-02-03  Nick Clifton  <nickc@redhat.com>
852
853         * config/tc-rl78.h (TC_PARSE_CONS_EXPRESSION): Define.
854
855 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
856
857         * Makefile.am: Add FT32 files.
858         * config/tc-ft32.c: New file.
859         * config/tc-ft32.h: New file.
860         * configure.tgt: Add FT32 support.
861         * Makefile.in: Regenerate.
862         * po/POTFILES.in: Regenerate.
863
864 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
865
866         * config/tc-nds32.c (do_pseudo_la_internal): Limit the second argument
867         of instruction la to a symbol.
868
869 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
870
871         * config/tc-nds32.c (nds32_parse_name): Ignore when the input is
872         section name.
873
874 2015-01-19  Alan Modra  <amodra@gmail.com>
875
876         * read.c (s_reloc): Match BFD_RELOC_NONE, BFD_RELOC{8,16,32,64}.
877         * write.c (get_frag_for_reloc): Allow match just past end of frag.
878
879 2015-01-16  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
880
881         * config/tc-s390.c (struct pd_reg): Remove.
882         (pre_defined_registers): Remove.
883         (REG_NAME_CNT): Remove.
884         (reg_name_search): Calculate the register number instead of doing
885         a lookup.
886         (register_name, tc_s390_regname_to_dw2regnum): Adopt to the new
887         reg_name_search signature.
888         (s390_parse_cpu): Support the new arch string z13.
889         (s390_insert_operand): Support for vector registers with the extra
890         field for the fifth bit of each vector register operand.
891         (md_gather_operand): Adjust to the new handling of optional
892         parameters.
893
894         * doc/as.texinfo: Document the z13 cpu string.
895
896 2015-01-13  Matthew Wahab  <matthew.wahab@arm.com>
897
898         * config/tc-arm.c (parse_ifimm_zero): Accept #0x0 as a synonym for
899         #0, restoring previous behaviour.
900
901 2015-01-12  Jan Beulich  <jbeulich@suse.com>
902
903         * gas/dw2gencfi.c (cfi_add_label, dot_cfi_label): New.
904         (cfi_pseudo_table): Add "cfi_label".
905         (output_cfi_insn): Handle CFI_label.
906         (select_cie_for_fde): Als terminate CIE when encountering
907         CFI_label.
908         * dw2gencfi.h (cfi_add_label): Declare.
909         (struct cfi_insn_data): New member "sym_name".
910         (CFI_label): New.
911         * read.c (read_symbol_name): Drop "static".
912         * read.h (read_symbol_name): Declare.
913
914 2015-01-12  Jan Beulich  <jbeulich@suse.com>
915
916         * gas/config/tc-arm.c (do_neon_shl_imm): Check immediate range.
917         (do_neon_qshl_imm): Likewise.
918
919 2015-01-12  Alan Modra  <amodra@gmail.com>
920
921         * read.c (s_altmacro, s_reloc): Make definition static.
922
923 2015-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
924
925         * config/tc-avr.c (md_apply_fix): Update the contents of VALP for
926         diff fixups.
927
928 2015-01-09  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
929
930         * config/tc-arm.c (arm_cpus): Add support for APM X-Gene 1 and
931         X-Gene 2.
932         * doc/c-arm.texi (ARM Options): Mention xgene1 and xgene2.
933
934 2015-01-07  Jan Beulich <jbeulich@suse.com>
935
936         * config/tc-arm.c (struct arm_option_extension_value_table):
937         Split field "value" into fields "merge_value" and "clear_value".
938         (arm_extensions): Adjust initializer accordingly.
939
940 2015-01-01  Alan Modra  <amodra@gmail.com>
941
942         * as.c (parse_args): Just print current year.
943
944 2015-01-01  Alan Modra  <amodra@gmail.com>
945
946         Update year range in copyright notice of all files.
947
948 For older changes see ChangeLog-2014
949 \f
950 Copyright (C) 2015 Free Software Foundation, Inc.
951
952 Copying and distribution of this file, with or without modification,
953 are permitted in any medium without royalty provided the copyright
954 notice and this notice are preserved.
955
956 Local Variables:
957 mode: change-log
958 left-margin: 8
959 fill-column: 74
960 version-control: never
961 End: