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