Add assembler support for ARMv8-M Mainline
[external/binutils.git] / gas / ChangeLog
1 2015-12-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2
3         * config/tc-arm.c (arm_ext_m): Include ARMv8-M.
4         (arm_ext_v8m): New feature for ARMv8-M.
5         (arm_ext_atomics): New feature for ARMv8 atomics.
6         (do_tt): New encoding function for TT* instructions.
7         (insns): Add new entries for ARMv8-M specific instructions and
8         reorganize the ones shared by ARMv8-M Mainline and ARMv8-A.
9         (arm_archs): Define armv8-m.main architecture.
10         (cpu_arch_ver): Define ARM_ARCH_V8M_MAIN architecture version and
11         clarify the ordering rule.
12         (aeabi_set_public_attributes): Use TAG_CPU_ARCH_* macro to refer to
13         Tag_CPU_arch values for ARMv7e-M detection.  Add logic to keep setting
14         Tag_CPU_arch to ARMv8-A for -march=all.  Also set Tag_CPU_arch_profile
15         to 'A' if extension bit for atomic instructions is set, unless it is
16         ARMv8-M.  Set Tag_THUMB_ISA_use to 3 for ARMv8-M.  Set Tag_DIV_use to 0
17         for ARMv8-M Mainline.
18
19 2015-12-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20
21         * config/tc-arm.c (move_or_literal_pool): Check mov.w, mvm and movw
22         availability against arm_ext_v6t2 instead of checking arm_arch_t2,
23         fixing comments along the way.
24         (handle_it_state): Check arm_ext_v6t2 instead of arm_arch_t2 to
25         generate IT instruction.
26         (t1_isa_t32_only_insn): New function.
27         (md_assemble): Use above new function to check for invalid wide
28         instruction for CPU Thumb ISA and to determine what Thumb extension
29         bit is necessary for that instruction.
30         (md_apply_fix): Use arm_ext_v6t2 instead of arm_arch_t2 to decide if
31         branch is out of range.
32
33 2015-12-21  Nick Clifton  <nickc@redhat.com>
34
35         PR gas/19386
36         * doc/as.texinfo (Strings): Prepend a space to index entries that
37         start with a backslash.  This works around a problem in the pdf
38         generator.
39
40 2015-12-18  H.J. Lu  <hongjiu.lu@intel.com>
41
42         * config/tc-i386.c (optimize_imm): Store 32-bit immediate in
43         64-bit only for 64-bit BFD.
44         (optimize_disp): Optimize 64-bit displacement to 32-bit only
45         for 64-bit BFD.
46
47 2015-12-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
48
49         * gas/config/tc-arm.c (aeabi_set_public_attributes): Adjust
50         TAG_ARCH_profile for armv8-a.
51         * gas/testsuite/gas/arm/armv8a-automatic-hlt.d: New test.
52         * gas/testsuite/gas/arm/armv8a-automatic-hlt.s: New test.
53         * gas/testsuite/gas/arm/armv8a-automatic-lda.d: New test.
54         * gas/testsuite/gas/arm/armv8a-automatic-lda.s: New test.
55
56 2015-12-16 Mickael Guene <mickael.guene@st.com>
57
58         * doc/c-arm.texi: Add documentation about new directives
59         * config/tc-arm.c (group_reloc_table): Add mapping between gas
60         syntax and new relocations.
61         (do_t_add_sub): Keep new relocations for add operand.
62         (do_t_mov_cmp): Keep new relocations for mov operand.
63         (insns): Use 'shifter operand with possible group relocation'
64         operand parse code for movs operand.
65         (md_apply_fix): Implement mov and add encoding when new
66         relocations on them.
67         (tc_gen_reloc): Add new relocations.
68         (arm_fix_adjustable): Since offset has a limited range ([0:255])
69         we disable adjust_reloc_syms() for new relocations.
70
71 2015-12-15  Nick Clifton  <nickc@redhat.com>
72
73         * doc/c-msp430.texi (MSP430 Options): Remove references to a
74         non-existant silicon errata.
75         * config/tc-msp430.c: Likewise.
76
77 2015-12-14  Matthew Wahab  <matthew.wahab@arm.com>
78
79         * config/tc-aarch64.c (parse_neon_type_for_operand): Adjust to
80         take into account new vector type 2H.
81         (vectype_to_qualifier): Likewise.
82
83 2015-12-14  Matthew Wahab  <matthew.wahab@arm.com>
84
85         * config/tc-aarch64.c (vectype_to_qualifier): Calculate operand
86         qualifier from per-type base and offet.
87
88 2015-12-14  Yoshinori Sato <ysato@users.sourceforge.jp>
89
90         * config/rx-defs.h(rx_cpu_type): Add RXV2 type.
91         * config/tc-rx.c(cpu_type_list): New type lookup table.
92         (md_parse_option): Use lookup table for choose cpu.
93         (md_show_usage): Add rxv2 for mcpu option.
94         * doc/c-rx.texi: Likewise.
95         * config/rx-parse.y: Add v2 instructions and ACC register.
96         (rx_check_v2): check v2 type.
97
98 2015-12-14  Jan Beulich  <jbeulich@suse.com>
99
100         * dw2gencfi.c (dot_cfi_label): Free "name".
101
102 2015-12-11  Matthew Wahab  <matthew.wahab@arm.com>
103
104         * config/tc-aarch64.c (aarch64_hint_opt_hsh): New.
105         (parse_barrier_psb): New.
106         (parse_operands): Add case for AARCH64_OPND_BARRIER_PSB.
107         (md_begin): Set up aarch64_hint_opt_hsh.
108
109 2015-12-11  Matthew Wahab  <matthew.wahab@arm.com>
110
111         * config/tc-aarch64.c (aarch64_features): Add "profile".
112         * doc/c-aarch64.texi (AArch64 Extensions): Add "profile".
113
114 2015-12-10  Matthew Wahab  <matthew.wahab@arm.com>
115
116         * config/tc-aarch64.c (parse_sys_ins_reg): Add check of
117         architectural support for system register.
118
119 2015-12-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
120
121         * doc/c-sparc.texi (Sparc-Regs): Document the %dN and %qN notation
122         for floating-point registers.
123
124 2015-12-10  Matthew Wahab  <matthew.wahab@arm.com>
125
126         * doc/c-aarch64.texi (AArch64 Extensions): Update entry for crc.
127
128 2015-12-10  Andrew Burgess  <andrew.burgess@embecosm.com>
129
130         * config/tc-arc.c (md_parse_option): Return 1 in order to accept
131         dummy arguments.
132
133 2015-12-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
134
135         * config/tc-sparc.c (sparc_ip): Support %dN and %qN notation for
136         double and quad-precision floating-point registers.
137
138 2015-12-09  Nick Clifton  <nickc@redhat.com>
139
140         * config/tc-rx.c (rx_relax_frag): Fix compile time warning.
141
142 2015-12-08  Jan Beulich  <jbeulich@suse.com>
143
144         * read.c (in_bss): New.
145         (do_align): Use it to also warn for non-zero fill in .bss.
146         (do_org): Likewise.
147         (s_space): Likewise.
148         (s_fill): Error on bad use in .bss/.struct.
149         (float_cons): Likewise.
150         (emit_leb128_expr): Likewise.
151         (emit_expr_with_reloc): Defer handling use inside .struct. Also
152         error on non-zero item added to .bss.
153         (stringer_append_char): Error on non-zero character.
154
155 2015-12-08  Jan Beulich  <jbeulich@suse.com>
156
157         * read.c (stringer): Move absolute section check up. Return
158         right away.
159
160 2015-12-08  Jan Beulich  <jbeulich@suse.com>
161
162         * config/obj-elf.c (elf_file_symbol): Tighten condition for
163         moving BSF_FILE symbols.
164
165 2015-12-08  DJ Delorie  <dj@redhat.com>
166
167         * config/rl78-parse.y: Make all branches relaxable via
168         rl78_linkrelax_branch().
169         * config/tc-rl78.c (rl78_linkrelax_branch): Mark all relaxable
170         branches with relocs.
171         (options): Add OPTION_NORELAX.
172         (md_longopts): Add -mnorelax.
173         (md_parse_option): Support OPTION_NORELAX.
174         (op_type_T): Add bh, sk, call, and br.
175         (rl78_opcode_type): Likewise.
176         (rl78_relax_frag): Fix not-relaxing logic.  Add sk.
177         (md_convert_frag): Fix relocation handling.
178         (tc_gen_reloc): Strip relax relocs when not linker relaxing.
179         (md_apply_fix): Defer overflow handling for anything that needs a
180         PLT, to the linker.
181         * config/tc-rl78.h (TC_FORCE_RELOCATION): Force all relocations to
182         the linker when linker relaxing.
183         * doc/c-rl78.texi (norelax): Add.
184
185 2015-12-07  Alan Modra  <amodra@gmail.com>
186
187         * config/tc-ppc.c (md_apply_fix): Localize variables.  Reduce casts.
188
189 2015-12-04  Nick Clifton  <nickc@redhat.com>
190
191         PR gas/19276
192         * config/tc-arm.h (SUB_SEGMENT_ALIGN): Do not define for COFF/PE
193         targets.
194
195 2015-12-04  Claudiu Zissulescu  <claziss@synopsys.com>
196
197         * config/tc-arc.c (arc_option): Sets all internal gas options when
198         parsing .cpu directive.
199         (declare_register_set): Declare all 64 registers.
200         (md_section_align): Refactor.
201         (md_pcrel_from_section): Remove assert.
202         (pseudo_operand_match): Fix pseudo operand match.
203         (find_reloc): Use flags filed, extend matching.
204         * config/tc-arc.h (TC_VALIDATE_FIX): Don't fixup any PLT
205         relocation.
206
207 2015-12-01  Alan Modra  <amodra@gmail.com>
208
209         * config/aout_gnu.h: Invoke aout N_* macros with pointer to
210         struct internal_exec.
211
212 2015-11-27  Matthew Wahab  <matthew.wahab@arm.com>
213
214         * config/tc-aarch64.c (aarch64_features): Add "fp16".
215         * doc/c-aarch64.texi (Architecture Extensions): Add "fp16".
216
217 2015-11-24  Christophe Monat <christophe.monat@st.com>
218
219         * config/tc-arm.c (move_or_literal_pool): Do not transform ldr
220         ri,=imm into movs when ri is a high register in T1.
221
222 2015-11-20  Nick Clifton  <nickc@redhat.com>
223
224         * po/fr.po: Updated French translation.
225         * po/uk.po: Updated Ukraninan translation.
226         * po/zh_CN.po: New simplified Chinese translation.
227         * configure.ac (ALL_LINGUAS): Add zh_CN.
228         * configure: Regenerate.
229
230 2015-11-19  Matthew Wahab  <matthew.wahab@arm.com>
231
232         * config/tc-arm.c (arm_archs): Add "armv8.2-a".
233         * doc/c-arm.texi (-march): Add "armv8.2-a".
234
235 2015-11-19  Matthew Wahab  <matthew.wahab@arm.com>
236
237         * config/tc-aarch64.c (aarch64_archs): Add "armv8.2-a".
238         * doc/c-aarch64.texi (-march): Likewise.
239
240 2015-11-19  Alan Modra  <amodra@gmail.com>
241
242         * read.c (output_big_leb128): Describe "sign" parameter.
243
244 2015-11-19  Alan Modra  <amodra@gmail.com>
245
246         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Define only for ELF.
247
248 2015-11-16  Mike Frysinger  <vapier@gentoo.org>
249
250         * config/tc-microblaze.c (parse_imm): Add an offsetT cast.
251
252 2015-11-13  Tristan Gingold  <gingold@adacore.com>
253
254         * configure: Regenerate.
255
256 2015-11-13  Tristan Gingold  <gingold@adacore.com>
257
258         * NEWS: Add marker for 2.26.
259
260 2015-11-12  James Greenhalgh  <james.greenhalgh@arm.com>
261
262         * config/tc-aarch64.c (aarch64_cpus): Add cortex-a35.
263         * doc/c-aarch64.texi (-mcpu=): Likewise.
264
265 2015-11-12  James Greenhalgh  <james.greenhalgh@arm.com>
266
267         * config/tc-arm.c (arm_cpus): Likewise.
268         * doc/c-arm.texi (-mcpu=): Likewise.
269
270 2015-11-12  Matthew Wahab  <matthew.wahab@arm.com>
271
272         PR gas/19217
273         * config/tc-arm.c (move_or_literal_pool): Remove redundant feature
274         check.  Fix some code formatting.  Drop use of MOVT.  Add some
275         comments.
276
277 2015-11-11  Alan Modra  <amodra@gmail.com>
278             Peter Bergner <bergner@vnet.ibm.com>
279
280         * doc/as.texinfo (Target PowerPC): Document -mpower9 and -mpwr9.
281         * doc/c-ppc.texi (PowerPC-Opts):  Likewise.
282         * config/tc-ppc.c (md_show_usage): Likewise.
283         (md_assemble): Handle BFD_RELOC_PPC_REL16DX_HA.
284         (md_apply_fix): Likewise.
285         (ppc_handle_align): Handle power9's group ending nop.
286
287 2015-11-09  Jim Wilson  <jim.wilson@linaro.org>
288
289         * config/tc-aarch64.c (aarch64_cpus): Add qdf24xx.
290         * config/tc-arm.c (arm_cpus): Likewise.
291         * doc/c-arm.texi, doc/c-aarch64.texi: Likewise.
292
293 2015-11-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
294
295         * read.c (parse_bitfield_cons): Fix left shift of negative value.
296         * config/tc-xstormy16.c (md_section_align): Likewise.
297         * config/tc-xgate.c (md_section_align): Likewise.
298         * config/tc-visium.c (md_section_align): Likewise.
299         * config/tc-v850.c (md_section_align): Likewise.
300         * config/tc-tic6x.c (md_section_align): Likewise.
301         * config/tc-sh.c (SH64PCREL32_M, SH64PCREL48_M, SH64PCREL32_M)
302         (MOVI_32_M, MOVI_48_M, MOVI_32_M, md_section_align): Likewise.
303         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax): Likewise.
304         * config/tc-score.c (s3_section_align): Likewise.
305         * config/tc-score7.c (s7_section_align): Likewise.
306         * config/tc-s390.c (md_section_align): Likewise.
307         * config/tc-rx.c (md_section_align): Likewise.
308         * config/tc-rl78.c (md_section_align): Likewise.
309         * config/tc-ppc.c (md_section_align): Likewise.
310         * config/tc-or1k.c (md_section_align): Likewise.
311         * config/tc-nds32.c (md_section_align): Likewise.
312         * config/tc-mt.c (md_section_align): Likewise.
313         * config/tc-msp430.c (md_section_align): Likewise.
314         * config/tc-mn10300.c (md_section_align): Likewise.
315         * config/tc-mn10200.c (md_section_align): Likewise.
316         * config/tc-mips.c (md_section_align): Likewise.
317         * config/tc-microblaze.c (parse_imm): Likewise.
318         * config/tc-mep.c (md_section_align): Likewise.
319         * config/tc-m68k.c (md_section_align): Likewise.
320         * config/tc-m68hc11.c (md_section_align): Likewise.
321         * config/tc-m32r.c (md_section_align): Likewise.
322         * config/tc-m32c.c (md_section_align): Likewise.
323         * config/tc-lm32.c (md_section_align): Likewise.
324         * config/tc-iq2000.c (md_section_align): Likewise.
325         * config/tc-ip2k.c (md_section_align): Likewise.
326         * config/tc-ia64.c (dot_save, dot_vframe): Likewise.
327         * config/tc-i960.c (md_number_to_field, md_section_align): Likewise.
328         * config/tc-i386.c (md_section_align): Likewise.
329         * config/tc-i370.c (md_section_align): Likewise.
330         * config/tc-frv.c (md_section_align): Likewise.
331         * config/tc-fr30.c (md_section_align): Likewise.
332         * config/tc-epiphany.c (md_section_align): Likewise.
333         * config/tc-d30v.c (md_section_align): Likewise.
334         * config/tc-d10v.c (md_section_align): Likewise.
335         * config/tc-cr16.c (l_cons): Likewise.
336         * config/tc-bfin.c (md_section_align): Likewise.
337         * config/tc-arm.c (md_section_align): Likewise.
338         * config/tc-arc.c (md_section_align): Likewise.
339         * config/bfin-parse.y (expr_1): Likewise.
340
341 2015-11-02  Nick Clifton  <nickc@redhat.com>
342
343         * config/rx-parse.y: Allow zero value for 5-bit displacements.
344
345 2015-11-02  Nick Clifton  <nickc@redhat.com>
346
347         * config/tc-rx.c (parse_rx_section): Align parameter provides a
348         multiple of n argument, not a power of n argument.
349
350 2015-10-29  Nick Clifton  <nickc@redhat.com>
351
352         * config/tc-aarch64.c (elf64_aarch64_target_format): Select the
353         cloudabi format if the TARGET_OS is cloudabi.
354
355 2015-10-29  Thomas Preud'homme  <thomas.preudhomme@arm.com>
356
357         * config/tc-arm.c (insns): Guard cps by arm_ext_v6_notm instead of
358         arm_ext_v6_dsp.
359
360 2015-10-28  Claudiu Zissulescu  <claziss@synopsys.com>
361
362         * config/tc-arc.c (tokenize_arguments): Avoid creating unused
363         symbols when parsing relocation types.
364         (md_apply_fix): Handle TLS relocations. Fix BFD_RELOC_ARC_32_PCREL
365         relocation.
366         (arc_check_reloc): Emit BFD_RELOC_ARC_32_PCREL relocation.
367
368 2015-10-27  Jim Wilson  <jim.wilson@linaro.org>
369
370         * config/tc-arm.c (selected_cpu_name): Increase length of array to
371         accomodate "Samsung Exynos M1".
372         (arm_parse_cpu): Add assertion and length check to prevent
373         overfilling selected_cpu_name.
374
375 2015-10-22  Nick Clifton  <nickc@redhat.com>
376
377         * config/tc-msp430.c (PUSH_1X_WORKAROUND): Delete.
378         (OPTION_SILICON_ERRATA): Define.
379         (OPTION_SILICON_WARN): Define.
380         (md_parse_opton): Handle silicon errata options.
381         (md_longopts): Add silicon errata options.
382         (ms_show_usage): Report silicon errata options.
383         (msp430_srcoperand): Handle silicon errata.
384         (msp430_operands): Likewise. Improve nop insertion.
385         (msp430_fix_adjustable): Update warning generation.
386         * doc/c-msp430.texi: Document silicon errata options.
387
388 2015-10-22  H.J. Lu  <hongjiu.lu@intel.com>
389
390         * configure.ac: Properly check
391         --enable-compressed-debug-sections={yes,all}.
392         * configure: Regenerated.
393
394 2015-10-22  H.J. Lu  <hongjiu.lu@intel.com>
395
396         PR gas/19109
397         * configure.ac: Handle --enable-compressed-debug-sections=*,gas,*.
398         * configure: Regenerated.
399
400 2015-10-22  H.J. Lu  <hongjiu.lu@intel.com>
401
402         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
403         BFD_RELOC_X86_64_GOTPCRELX and BFD_RELOC_X86_64_REX_GOTPCRELX.
404         (tc_gen_reloc): Likewise.
405         (i386_validate_fix): Generate BFD_RELOC_X86_64_GOTPCRELX or
406         BFD_RELOC_X86_64_REX_GOTPCRELX if fx_tcbit2 is set.
407         * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Also return
408         true for BFD_RELOC_X86_64_GOTPCRELX and
409         BFD_RELOC_X86_64_REX_GOTPCRELX.
410
411 2015-10-22  H.J. Lu  <hongjiu.lu@intel.com>
412
413         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
414         BFD_RELOC_386_GOT32X.
415         (tc_gen_reloc): Likewise.
416         (match_template): Force 0x8b encoding for "mov foo@GOT, %eax".
417         (output_disp): Check for "call/jmp *mem", "mov mem, %reg",
418         "test %reg, mem" and "binop mem, %reg" where binop is one of
419         adc, add, and, cmp, or, sbb, sub, xor instructions.  Set
420         fx_tcbit if the REX prefix is generated.  Set fx_tcbit2 if
421         BFD_RELOC_386_GOT32X should be generated.
422         (i386_validate_fix): Generate BFD_RELOC_386_GOT32X if fx_tcbit2
423         is set.
424
425 2015-10-21  Nick Clifton  <nickc@redhat.com>
426
427         PR gas/19109
428         * configure.ac: Restore --enable-compressed-debug-sections, with
429         options of all, none or gas.
430         Do not enable compressed debug sections by default for x86 Linux
431         targets.
432         * configure: Regenerate.
433
434 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
435
436         PR gas/19109
437         * NEWS: Update --enable-compressed-debug-sections=.
438         * configure.ac: Remove --enable-compressed-debug-sections.
439         (DEFAULT_FLAG_COMPRESS_DEBUG): Check
440         --enable-compressed-debug-sections={all,gas} instead of
441         --enable-compressed-debug-sections.  For x86 Linux targets,
442         default to compressing debug sections.
443         * configure: Regenerated.
444
445 2015-10-19  Nick Clifton  <nickc@redhat.com>
446
447         PR gas/19109
448         * configure.ac: Add option --enable-compressed-debug-sections.
449         This sets the default behaviour for compressing debug sections.
450         * as.c (flag_compress_debug): Define and initialise to
451         COMPRESS_DEBUG_GABI_ZLIB if DEFAULT_COMPRESS_DEBUG is set.
452         (show_usage): Indicate whether --no-compress-debug-sections
453         or --compress-debug-sections is the default.
454         * config/tc-i386.c (flag_compress_debug): Delete definition.
455         * doc/as.texinfo (--nocompress-debug-sectionas): Update
456         description.
457         * NEWS: Announce the new feature.
458         * config.in: Regenerate.
459         * configure: Regenerate.
460
461 2015-10-12  Nick Clifton  <nickc@redhat.com>
462
463         * config/tc-msp430.c (msp430_mcu_names): Rename to
464         msp430_mcu_data.  Add fields for the ISA and hardware multiply
465         support.  Update with information from the latest devices.csv
466         file.
467         (md_parse_option): Make use of the new array.
468
469 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
470
471         * config/tc-avr.c (avr_output_property_record): Fix overwrite bug
472         for align and fill records.
473         (avr_handle_align): Record fill information for align frags.
474         (create_record_for_frag): Add next frag assertion, use correct
475         address for align records.
476
477 2015-10-10  Alan Modra  <amodra@gmail.com>
478
479         PR gas/19113
480         * read.c (next_char_of_string): Mask char after escape.  Use
481         CHAR_MASK rather than 0xff.
482
483 2015-10-07  Yao Qi  <yao.qi@linaro.org>
484
485         * config/tc-aarch64.c (md_begin): Access field 'name' rather
486         than 'template'.
487
488 2015-10-07  Claudiu Zissulescu  <claziss@synopsys.com>
489
490         * config/tc-arc.c: Revamped file for ARC support.
491         * config/tc-arc.h: Likewise.
492         * doc/as.texinfo: Add new ARC options.
493         * doc/c-arc.texi: Likewise.
494
495 2015-10-02  Renlin Li <renlin.li@arm.com>
496
497         * config/tc-aarch64.c (s_tlsdescadd): New.
498         (s_tlsdescldr): New.
499         (md_pseudo_table): Handle tlsdescadd and tlsdescldr pseudo ops.
500         (reloc_table): Add entries for BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC and
501         BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC.
502         (process_movw_reloc_info): Support AARCH64_TLSDESC_OFF_G1 and
503         AARCH64_TLSDESC_OFF_G0_NC.
504         (md_apply_fix): Likewise.
505         (aarch64_force_relocation): Likewise.
506
507 2015-10-02  Renlin Li <renlin.li@arm.com>
508
509         * config/tc-aarch64.c (reloc_table): Add two entries for
510         gottprel_g0_nc and gottprel_g1.
511         (process_movw_reloc_info): Add support.
512         (md_apply_fix): Likewise.
513         (aarch64_force_relocation): Likewise.
514
515 2015-10-02  Renlin Li <renlin.li@arm.com>
516
517         * config/tc-aarch64.c (reloc_table): New relocation modifier tlsgd_g0_nc.
518         (process_movw_reloc_info): Support BFD_RELOC_AARCH64_TLSGD_MOVW_G1.
519         (md_apply_fix): Likewise.
520         (aarch64_force_relocation): Likewise.
521
522 2015-10-02  Renlin Li <renlin.li@arm.com>
523
524         * config/tc-aarch64.c (reloc_table): New relocation modifier tlsgd_g1.
525         (process_movw_reloc_info): Support BFD_RELOC_AARCH64_TLSGD_MOVW_G1.
526         (md_apply_fix): Likewise.
527         (aarch64_force_relocation): Likewise.
528
529 2015-10-02  Renlin Li <renlin.li@arm.com>
530
531         * config/tc-aarch64.c (reloc_table): New relocation modifier
532         gotoff_g0_nc.
533         (process_movw_reloc_info): Support gotoff_g0_nc.
534         (md_apply_fix): Likewise.
535
536 2015-10-02  Renlin Li  <renlin.li@arm.com>
537
538         * config/tc-aarch64.c (reloc_table): New relocation modifier
539         gotoff_g1.
540         (process_movw_reloc_info): Support newly added modifier.
541         (md_apply_fix): Likewise.
542
543 2015-09-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
544
545         * doc/c-s390.texi: Add documentation.
546         Add missing code markup.
547         * config/tc-s390.c (current_flags): New static variable.
548         (s390_parse_cpu): Parse cpu flags a la "+nohtm" etc.
549         (s390_setup_opcodes): Use cpu flags to determine the set of opcodes.
550         Fix indentation.
551         (md_parse_option): Call s390_parse_cpu with the new signature.
552         (s390_machine): Likewise.
553         Keep track of current_flags.
554         Simplify code a bit.
555         undefine MAX_HISTORY at end of function.
556         (s390_machinemode): undefine MAX_HISTORY at end of function.
557         Update an error message.
558
559 2015-08-11  Peter Zotov  <whitequark@whitequark.org>
560
561         PR ld/18759
562         * config/tc-or1k.c (tc_gen_reloc): Correct computation of PC
563         relative relocs.
564         * config/tc-or1k.h (GAS_CGEN_PRCEL_R_TYPE): Delete.
565
566 2015-09-25  Ryo ONODERA  <ryo_on@yk.rim.or.jp>
567
568         PR 18994
569         * configure.ac (nds32): Don't use bash == in tests.
570         * configure: Regenerate.
571
572 2015-09-23  Nick Clifton  <nickc@redhat.com>
573
574         * config/tc-ppc.c (insn_validate): Cast PPC_OPSHIFT_INV to an int.
575
576 2015-09-22  Nick Clifton  <nickc@redhat.com>
577
578         * config/tc-rx.c (nop_7): Recode using MAX.
579
580 2015-09-05  Chen Gang  <gang.chen.5i5j@gmail.com>
581
582         * config/tc-avr.c (md_section_align): Append UL for -1 to avoid
583         the latest gcc's warning.
584
585 2015-08-27  Alan Modra  <amodra@gmail.com>
586
587         PR gas/18581
588         * config/tc-aarch64.h (TC_START_LABEL): Redefine.
589         * config/tc-arm.c (tc_start_label_without_colon): Delete params.
590         Use input_line_pointer directly.
591         * config/tc-arm.h (TC_START_LABEL): Redefine.
592         (TC_START_LABEL_WITHOUT_COLON): Redefine.
593         (tc_start_label_without_colon): Update prototype.
594         * config/tc-bfin.c (bfin_start_label): Delete ptr param.  Check
595         for NUL instead.
596         * config/tc-bfin.h (bfin_start_label): Update prototype.
597         (TC_START_LABEL): Redefine.
598         * config/tc-d30v.h (TC_START_LABEL): Redefine.
599         * config/tc-fr30.c (restore_colon): Rewrite.
600         (fr30_is_colon_insn): Add nul_char param.  Return int.  Bump
601         i_l_p over quote.  Update restore_colon calls.
602         * config/tc-fr30.h (TC_START_LABEL): Redefine.
603         (fr30_is_colon_insn): Update prototype.
604         * config/tc-m32c.c (restore_colon, m32c_is_colon_insn): As above.
605         * config/tc-m32c.h (TC_START_LABEL): Redefine.
606         (m32c_is_colon_insn): Update prototype.
607         * config/tc-m32r.h (TC_START_LABEL): Redefine.
608         * config/tc-mep.h (TC_START_LABEL): Redefine.
609         * config/tc-nds32.h (TC_START_LABEL): Redefine.
610         * config/tc-tic54x.c (tic54x_start_label): Replace params with
611         nul_char and next_char.  Step over trailing quote.
612         * config/tc-tic54x.h (TC_START_LABEL_WITHOUT_COLON): Redefine.
613         (tic54x_start_label): Update prototype.
614         * read.c (TC_START_LABEL): Redefine.  Update invocation.
615         (TC_START_LABEL_WITHOUT_COLON): Update invocation.
616         * config/tc-nios2.c (s_nios2_set): Save initial input_line_pointer
617         and restore if calling s_set.  Don't restore delim again.
618
619 2015-08-26  Alan Modra  <amodra@gmail.com>
620
621         PR gas/18581
622         * config/tc-mn10200.c (md_assemble <mdr>): Move restore_line_pointer
623         call to where input line used to be restored.
624         * config/tc-mn10300.c (md_assemble <usp>): Remove redundant input
625         line restore.
626         * config/tc-tilepro.c (parse_reg_expression): Add regname var.
627
628 2015-08-26  Nick Clifton  <nickc@redhat.com>
629
630         PR gas/18842
631         * configure.ac (AS_CHECK_DECLS): Add asprintf.
632         * configure: Regenerate.
633         * config.in: Regenerate.
634
635 2015-08-25  Jose E. Marchesi  <jose.marchesi@oracle.com>
636
637         * config/tc-sparc.c (priv_reg_table): New privileged register
638         %pmcdper.
639
640 2015-08-21  Nick Clifton  <nickc@redhat.com>
641
642         PR gas/18581
643         * expr.c (get_symbol_end): Rename to get_symbol_name.  Add a
644         return parameter pointing to the start of the symbol.  Allow
645         symbol names enclosed in double quotes.
646         (restore_line_pointer): New function.  Replace the NUL character
647         inserted into the input stream with the given character.  If the
648         character was a double quote, advance the input pointer.
649         * expr.h (get_symbol_end): Delete.
650         (get_symbol_name): Add prototype.
651         (restore_line_pointer): Prototype.
652         * read.h (SKIP_WHITESPACE_AFTER_NAME): New macro.
653         * doc/as.texinfo (Symbol Intro): Document that symbol names can
654         now be enclosed in double quotes.
655         * cond.c (s_ifdef): Replace get_symbol_end with get_symbol_name.
656         Use restore_line_pointer to replace the NUL in the input stream.
657         Use SKIP_WHITESPACE_AFTER_NAME to skip past the end of a symbol.
658         Check for the use of double quoted symbol names.
659         * expr.c: Likewise.
660         * config/obj-aout.c: Likewise.
661         * config/obj-coff-seh.c: Likewise.
662         * config/obj-coff.c: Likewise.
663         * config/obj-elf.c: Likewise.
664         * config/obj-evax.c: Likewise.
665         * config/obj-macho.c: Likewise.
666         * config/obj-som.c: Likewise.
667         * config/tc-alpha.c: Likewise.
668         * config/tc-arc.c: Likewise.
669         * config/tc-arm.c: Likewise.
670         * config/tc-dlx.c: Likewise.
671         * config/tc-h8300.c: Likewise.
672         * config/tc-hppa.c: Likewise.
673         * config/tc-i370.c: Likewise.
674         * config/tc-i386-intel.c: Likewise.
675         * config/tc-i386.c: Likewise.
676         * config/tc-i960.c: Likewise.
677         * config/tc-ia64.c: Likewise.
678         * config/tc-iq2000.c: Likewise.
679         * config/tc-m32r.c: Likewise.
680         * config/tc-m68hc11.c: Likewise.
681         * config/tc-m68k.c: Likewise.
682         * config/tc-microblaze.c: Likewise.
683         * config/tc-mips.c: Likewise.
684         * config/tc-mmix.c: Likewise.
685         * config/tc-mn10200.c: Likewise.
686         * config/tc-mn10300.c: Likewise.
687         * config/tc-nios2.c: Likewise.
688         * config/tc-ppc.c: Likewise.
689         * config/tc-s390.c: Likewise.
690         * config/tc-score.c: Likewise.
691         * config/tc-score7.c: Likewise.
692         * config/tc-sparc.c: Likewise.
693         * config/tc-tic4x.c: Likewise.
694         * config/tc-tic54x.c: Likewise.
695         * config/tc-tic6x.c: Likewise.
696         * config/tc-tilegx.c: Likewise.
697         * config/tc-tilepro.c: Likewise.
698         * config/tc-v850.c: Likewise.
699         * config/tc-xtensa.c: Likewise.
700         * config/tc-z80.c: Likewise.
701         * dw2gencfi.c: Likewise.
702         * dwarf2dbgc.: Likewise.
703         * ecoff.c: Likewise.
704         * read.c: Likewise.
705         * stabs.c: Likewise.
706
707 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
708
709         * config/tc-aarch64.c (reloc_table): New relocation types support for
710         dtprel_lo12.
711         (ldst_lo12_determine_real_reloc_type): Support
712         BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
713         BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
714         BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
715         BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
716         BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
717         BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
718         BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
719         BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC.
720         (parse_operands): Likewise.
721         (md_apply_fix): Likewise.
722         (aarch64_force_relocation): Likewise.
723         (process_movw_reloc_info): Likewise.
724
725 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
726
727         * config/tc-aarch64.c (reloc_table): New relocation modifiers,
728         "dtprel_hi12", "dtprel_g0", "dtprel_g0_nc", "dtprel_g1",
729         "dtprel_g1_nc", "dtprel_g2".
730         (md_apply_fix): Support new relocation types.
731         (aarch64_force_relocation): Likewise.
732         (process_movw_reloc_info): Likewise.
733
734 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
735
736         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
737         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC.
738         (aarch64_force_relocation): Likewise.
739
740 2015-08-17  Alan Modra  <amodra@gmail.com>
741
742         * gas/config/tc-arm.c (s_align): Delete.
743         (md_pseudo_table): Use s_align_ptwo for "align".
744         * gas/config/tc-arm.h (TC_ALIGN_ZERO_IS_DEFAULT): Define.
745         * read.c (s_align): Modify for TC_ALIGN_ZERO_IS_DEFAULT.
746
747 2015-08-13  Alan Modra  <amodra@gmail.com>
748
749         * expr.c (operand): Rewrite handling of operands starting with "0f".
750         If atof_generic only parses "-" or "+", treat as expression.
751
752 2015-08-13  Alan Modra  <amodra@gmail.com>
753             DJ Delorie  <dj@redhat.com>
754
755         * expr.c (integer_constant): Return O_absent expression if eol.
756         (operand): For targets with both LOCAL_LABELS_FB and
757         NUMBERS_WITH_SUFFIX set, treat "0b" not followed by binary
758         digits as a local label reference.  Correct handling of 0b prefix.
759         If a suffix is not allowed, error on 0B.
760
761 2015-08-13  Alan Modra  <amodra@gmail.com>
762
763         * doc/as.texinfo (Local Labels): Allowed range of N in local
764         labels is non-negative integers, not positive integers.
765
766 2015-08-12  David Weatherford  <weath@cadence.com>
767
768         * config/tc-xtensa.c (struct litpool_frag, struct litpool_seg):
769         New structures.
770         (xtensa_maybe_create_literal_pool_frag): New function.
771         (litpool_seg_list, auto_litpools, auto_litpool_limit)
772         (litpool_buf, litpool_slotbuf): New static variables.
773         (option_auto_litpools, option_no_auto_litpools)
774         (option_auto_litpool_limit): New enum identifiers.
775         (md_longopts): Add entries for auto-litpools, no-auto-litpools
776         and auto-litpool-limit.
777         (md_parse_option): Handle option_auto_litpools,
778         option_no_auto_litpools and option_auto_litpool_limit.
779         (md_show_usage): Add help for --[no-]auto-litpools and
780         --auto-litpool-limit.
781         (xtensa_mark_literal_pool_location): Record a place for literal
782         pool with a call to xtensa_maybe_create_literal_pool_frag.
783         (get_literal_pool_location): Find highest priority literal pool
784         or convert candidate to literal pool when auto-litpools are used.
785         (xg_assemble_vliw_tokens): Create literal pool after jump
786         instruction.
787         (xtensa_check_frag_count): Create candidate literal pool every
788         auto_litpool_limit frags.
789         (xtensa_relax_frag): Add jump around literals to non-empty
790         literal pool.
791         (xtensa_move_literals): Estimate literal pool addresses and move
792         unreachable literals closer to their users, converting candidate
793         to literal pool if needed.
794         (xtensa_switch_to_non_abs_literal_fragment): Only emit error
795         about missing .literal_position in case auto-litpools are not
796         used.
797         * config/tc-xtensa.h (xtensa_relax_statesE): New relaxation
798         state: RELAX_LITERAL_POOL_CANDIDATE_BEGIN.
799         * doc/as.texinfo (Xtensa options):  Document --auto-litpools and
800         --no-auto-litpools options.
801         * doc/c-xtensa.texi (Xtensa options): Likewise.
802
803 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
804
805         * config/tc-mips.c (move_register): Change to use 'or' only.
806         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Update to
807         use or for move.
808
809 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
810
811         * config/tc-aarch64.c (reloc_table): New relocation modifiers
812         "dtprel_lo12".
813         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12.
814         (aarch64_force_relocation): Likewise.
815
816 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
817
818         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
819         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC.
820         (aarch64_force_relocation): Likewise.
821
822 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
823
824         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
825         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21.
826         (aarch64_force_relocation): Likewise.
827
828 2015-08-11  Nick Clifton  <nickc@redhat.com>
829
830         PR gas/18765
831         * config/tc-arm.c (move_or_literal_pool): Use U suffix to remove
832         compile time warnings about constant expressions being shifted
833         into bit 31.
834         (do_iwmmxt_wldstd): Likewise.
835         (do_iwmmxt_wrwrwr_or_imm5): Likewise.
836         (md_assemble): Likewise.
837
838         PR gas/18574
839         * config/tc-msp430.c (msp430_operands): Rewrite if statements to
840         remove redundant checks.
841         (md_apply_fix): Likewise.
842
843         PR gas/18677
844         * config/tc-mmix.c (md_assemble): Fix typo checking operands with
845         a numeric constant value.
846
847         PR gas/18678
848         * config/tc-tic4x.c (tic4x_insn_check): Fix typo.
849
850         PR gas/18679
851         * config/xtensa-relax.c (same_operand_name): Fix typo.
852
853 2015-08-08  Hans-Peter Nilsson  <hp@axis.com>
854
855         * tc-arm.c (double_to_single, is_double_a_single): Append ULL to
856         0xFFFFFFFFFFFFF to avoid errors on 32-bit hosts.
857
858 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
859
860         * doc/c-aarch64.texi (.xword): Document directive.
861
862 2015-08-03  Nick Clifton  <nickc@redhat.com>
863
864         * doc/as.texinfo (Overview): Add --hash-size to the synopsis and
865         fix typo in its entry: @kindex -> @item.
866
867 2015-07-28  Robert Suchanek  <robert.suchanek@imgtec.com>
868
869         * config/tc-mips.c (mips_cpu_info_table): Add m5100 and m5101 entries.
870         * doc/c-mips.texi: Document m5100 and m5101 for -march=.
871
872 2015-07-28  Robert Suchanek  <robert.suchanek@imgtec.com>
873
874         * config/tc-mips.c (mips_cpu_info_table): Add interaptiv entry.
875         * doc/c-mips.text: Document -march=interaptiv.
876
877 2015-07-27  H.J. Lu  <hongjiu.lu@intel.com>
878
879         * configure: Regenerated.
880
881 2015-07-24  Nick Clifton  <nickc@redhat.com>
882
883         * config/tc-rl78.c (rl78_abs_sym): New local variable.
884         (md_begin): Initialise the new symbol.
885         (OPIMM): Define the value to be relative to the new symbol and not
886         the absolute section symbol.
887
888 2015-07-22  Alan Modra  <amodra@gmail.com>
889
890         PR gas/18687
891         * input-scrub.c (input_scrub_next_buffer): Rearrange and simplify
892         loop.  Don't drop lines at end of file lacking a newline, add a
893         newline instead.  Ensure partial_size is zero whenever
894         partial_where is NULL.  Adjust buffer size for extra char.
895         (input_scrub_push, input_scrub_begin): Adjust buffer size here too.
896
897 2015-07-20  Matthew Wahab  <matthew.wahab@arm.com>
898
899         * NEWS: Mention corrected spelling of armv6kz.
900         * config/tc-arm.c (arm_cpus): Replace ARM_ARCH_V6ZK with
901         ARM_ARCH_V6KZ.
902         (arm_archs): Likewise. Also add "armv6kz" and "armv6kzt2".
903         * doc/c-arm.texi: Replace "armv6zk" with "armv6kz".
904
905 2015-07-16  Jiong Wang  <jiong.wang@arm.com>
906
907         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
908         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADR_PREL21.
909         (aarch64_force_relocation): Ditto.
910
911 2015-07-16  Matthew Wahab  <matthew.wahab@arm.com>
912
913         * config/tc-arm.c (arm_fpus): Add crypto-neon-fp-armv8.1.
914         * doc/c-arm.texi (-mfpu=): Likewise.  Correct the entry for
915         neon-fp-armv8.1.
916
917 2015-07-16  James Greenhalgh  <james.greenhalgh@arm.com>
918
919         * config/tc-arm.c (md_assemble): Rephrase the "selected processor does
920         not support ARM mode" error messages.
921
922 2015-07-15  H.J. Lu  <hongjiu.lu@intel.com>
923
924         * config/tc-i386.c (flag_compress_debug): Replace
925         COMPRESS_DEBUG_GNU_ZLIB with COMPRESS_DEBUG_GABI_ZLIB.
926
927 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
928
929         * as.c (parse_args): Make --compress-debug-sections and
930         --compress-debug-sections=zlib the same as
931         --compress-debug-sections=zlib-gabi.
932         * doc/as.texinfo: Change --compress-debug-sections and
933         --compress-debug-sections=zlib to zlib-gabi.
934
935 2015-07-09  Catherine Moore  <clm@codesourcery.com>
936
937         * config/tc-mips.c (check_fpabi):  Handle
938         VAL_GNU_MIPS_ABI_FP_NAN2008.
939
940 2015-07-08  Ciro Santilli  <ciro.santilli@gmail.com>
941
942         * doc/as.texinfo: Clarify case requirements for pseudo ops.
943
944 2015-07-08  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
945
946         * config/tc-avr.c (tc_gen_reloc): Change 32 bit relocation to
947         32 bit PC relative and update offset if the fixup is pc-relative.
948         * config/tc-avr.h (DIFF_EXPR_OK): Define to enable PC relative diff
949         relocs.
950
951 2015-07-03  Alan Modra  <amodra@gmail.com>
952
953         * config/tc-ppc.c (md_show_usage): Add -m821, -m850, -m860.
954         * doc/c-ppc.texi (PowerPC-Opts): Likewise.
955
956 2015-07-01  Sandra Loosemore  <sandra@codesourcery.com>
957             Cesar Philippidis  <cesar@codesourcery.com>
958
959         * config/tc-nios2.c (nios2_min_align): New.
960         (nop): Replace with....
961         (nop_r1, nop_r2, nop_r2_cdx, nop32, nop16): New.
962         (nios2_align): Handle alignment on 2-byte boundaries when CDX
963         instructions may be present.
964         (s_nios2_align): Adjust reference to nop.
965         (CDXBRANCH, IS_CDXBRANCH): New.
966         (CDX_UBRANCH_SUBTYPE, CDX_CBRANCH_SUBTYPE): New.
967         (nios2_relax_subtype_size): Handle 2-byte CDX branches.
968         (nios2_relax_frag): Likewise.
969         (md_convert_frag): Handle R2 encodings.
970         (nios2_check_overflow): Check that low-order bits are zero
971         before applying rightshift from howto.
972         (nios2_check_overflow): Correct negative overflow calculation.
973         (nios2_diagnose_overflow): Handle signed_immed12_overflow.  Issue
974         generic overflow messages for miscellaneous instruction formats.
975         (md_apply_fix): Recognize new R2 relocations.  For pc_relative
976         relocations, store fixup in *valP.
977         (nios2_reglist_mask, nios2_reglist_dir): New.
978         (nios2_parse_reglist): New.
979         (nios2_parse_base_register): New.
980         (nios2_assemble_expression): Handle constant expressions designated
981         by BFD_RELOC_NONE.
982         (nios2_assemble_reg3): New.
983         (nios2_assemble_arg_c): Handle R2 instruction formats.
984         (nios2_assemble_arg_d): Likewise.
985         (nios2_assemble_arg_s): Likewise.
986         (nios2_assemble_arg_t): Likewise.
987         (nios2_assemble_arg_D): New.
988         (nios2_assemble_arg_S): New.
989         (nios2_assemble_arg_T): New.
990         (nios2_assemble_arg_i): Handle R2 instruction formats.
991         (nios2_assemble_arg_I): New.
992         (nios2_assemble_arg_u): Handle R2 instruction formats.
993         (nios2_assemble_arg_U): New.
994         (nios2_assemble_arg_V): New.
995         (nios2_assemble_arg_W): New.
996         (nios2_assemble_arg_X): New.
997         (nios2_assemble_arg_Y): New.
998         (nios2_assemble_arg_o): Handle R2 instruction formats.
999         (nios2_assemble_arg_O): New.
1000         (nios2_assemble_arg_P): New.
1001         (nios2_assemble_arg_j): Handle R2 instruction formats.
1002         (nios2_assemble_arg_k): New.
1003         (nios2_assemble_arg_l): Handle R2 instruction formats.
1004         (nios2_assemble_arg_m): Likewise.
1005         (nios2_assemble_arg_M): New.
1006         (nios2_assemble_arg_N): New.
1007         (nios2_assemble_arg_e): New.
1008         (nios2_assemble_arg_f): New.
1009         (nios2_assemble_arg_g): New.
1010         (nios2_assemble_arg_h): New.
1011         (nios2_assemble_arg_R): New.
1012         (nios2_assemble_arg_B): New.
1013         (nios2_assemble_args): Handle new argument letters.
1014         (nios2_consume_arg): Likewise.
1015         (nios2_translate_pseudo_insn): Avoid dereferencing null pointer
1016         in error message.
1017         (nios2_ps_insn_info_structs): Add nop.n.
1018         (output_ubranch): Handle CDX branches.
1019         (output_cbranch): Likewise.
1020         (output_call): Handle R2 encodings.
1021         (output_movia): Likewise.
1022         (md_begin): Initialize nios2_min_align.
1023         (md_assemble): Align to nios2_min_align.  Adjust nios2_min_align
1024         if a 16-bit instruction is seen.
1025         (nios2_cons_align): Use appropriate nop pattern.
1026
1027 2015-07-01  Sandra Loosemore  <sandra@codesourcery.com>
1028             Cesar Philippidis  <cesar@codesourcery.com>
1029
1030         * config/tc-nios2.c: Adjust includes.
1031         (OPTION_MARCH): Define.
1032         (md_longopts): Add -march option.
1033         (nios2_architecture): New.
1034         (nios2_use_arch): New.
1035         (md_parse_option): Handle OPTION_MARCH.
1036         (md_show_usage): Document -march.
1037         (md_begin): Set arch in BFD.
1038         (nios2_elf_final_processing): New.
1039         * config/tc-nios2.h (elf_tc_final_processing): Define.
1040         (nios2_elf_final_processing): New.
1041         * doc/c-nios2.texi (-march): Add documentation.
1042
1043 2015-06-30  Amit Pawar  <Amit.Pawar@amd.com>
1044
1045         * config/tc-i386.c (cpu_arch): Add .mwaitx.
1046         (process_immext): Check operands for monitorx/mwaitx instructions.
1047         * doc/c-i386.texi: Document mwaitx.
1048
1049 2015-06-28  H.J. Lu  <hongjiu.lu@intel.com>
1050
1051         * as.c (parse_args): Replace COMPRESS_DEBUG_ZLIB with
1052         COMPRESS_DEBUG_GNU_ZLIB.
1053         * config/tc-i386.c (flag_compress_debug): Likewise.
1054
1055 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1056
1057         * doc/as.texinfo (.cfi_lsda): Remove the extra @section.
1058
1059 2015-06-19  Peter Bergner  <bergner@vnet.ibm.com>
1060
1061         * config/tc-ppc.c (md_assemble): Use ppc_optional_operand_value.
1062         Allow for optional operands without insert functions.
1063
1064 2015-06-18  Nick Clifton  <nickc@redhat.com>
1065
1066         PR gas/18541
1067         * config/tc-arm.c (md_apply_fix): Add support for ADR in thumb
1068         mode against a nearby symbol.
1069
1070 2015-06-18  Nick Clifton  <nickc@redhat.com>
1071
1072         PR gas/18481
1073         * config/tc-arm.c (tc_gen_reloc): Include BFD_RELOC_ARM_TLS_LE32
1074         in the same case as BFD_RELOC_ARM_TLS_IS32.
1075
1076 2015-06-17  Nick Clifton  <nickc@redhat.com>
1077
1078         * config/tc-arm.c (is_double_a_single): Make conditional upon the
1079         availablity of a 64-bit type.  Use this type for the argument and
1080         mantissa.
1081         (double_to_single): Likewise.
1082         * config/tc-arm.c (move_or_literal_pool): Use a 64-bit type for
1083         the constant value, if available.  Generate a 64-bit value from a
1084         bignum if supported.  Only perform the second optimization for
1085         PR 18500 if the 64-bit type is available.
1086
1087 2015-06-17  Alessandro Marzocchi  <alessandro.marzocchi@gmail.com>
1088
1089         PR gas/18500
1090         * config/tc-arm.c (is_double_a_single): New function.
1091         (double_to_single): New function.
1092         (move_or_literal_pool): Add support for converting VLDR to VMOV.
1093
1094         PR gas/18499
1095         * config/tc-arm.c (move_or_literal_pool): Add support for LDR Rx,=
1096         to MOV.w or MVN.w for Thumb2.
1097
1098 2015-06-17  Nicolas Pitre <nico@linaro.org>
1099
1100         * as.c (show_usage): Document --sectname-subst.
1101         (parse_args): Add --sectname-subst.
1102         * as.h (flag_sectname_subst): New.
1103         * config/obj-elf.c (obj_elf_section_name): Add %S substitution.
1104         * doc/as.texinfo: Document it.
1105
1106 2015-06-15  Renlin Li  <renlin.li@arm.com>
1107
1108         * config/tc-aarch64.c (reloc_table): New relocation modifier.
1109         (md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.
1110         (aarch64_force_relocation): Ditto
1111
1112 2015-06-13  Mark Wielaard  <mjw@redhat.com>
1113
1114         * dwarf2dbg.c (out_header): Document EXPR->X_add_number value,
1115         out_debug_aranges depends on it.
1116         (out_debug_aranges): Track size of header to properly pad header
1117         for address alignment.
1118
1119 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
1120
1121         PR gas/18427
1122         * gas/config/tc-hppa.c (last_label_symbol): Declare.
1123         (pa_get_label): Return last label in current space/segment or NULL.
1124         (pa_define_label): Record last label and add to root.
1125         (pa_undefine_label): Remove last label from root.
1126
1127 2015-06-08  Nick Clifton  <nickc@redhat.com>
1128
1129         * config/tc-rx.c (rx_op): Correct handling of integer bignums.
1130
1131 2015-06-04  Matthew Wahab  <matthew.wahab@arm.com>
1132
1133         * NEWS: Mention ARMv8.1 support in the Aarch64 port.
1134         * config/tc-aarch64.c (aarch64_arch_option_table): Add "armv8.1-a".
1135         * doc/c-aarch64.texi (-march): Add "armv8.1-a".
1136
1137 2015-06-04  Renlin Li  <renlin.li@arm.com>
1138
1139         * config/tc-arm.c (arm_init_frag): Use frag's thumb_mode information
1140         when available.
1141
1142 2015-06-04  Nick Clifton  <nickc@redhat.com>
1143
1144         * config/tc-h8300.c (md_section_align): Fix compile time warning
1145         about left shifting a negative value.
1146
1147 2015-06-03  Matthew Wahab  <matthew.wahab@arm.com>
1148
1149         * config/tc-arm.c (arm_archs): Add "armv8.1-a".
1150         * doc/c-arm.texi (ARM Options, -march): Add "armv8.1-a".
1151         * NEWS: Mention ARMv8.1 support.
1152
1153 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
1154
1155         * config/tc-arm.c (arm_ext_pan): New.
1156         (do_setpan): New, encode an ARM SETPAN instruction.
1157         (do_t_setpan): New, encode a Thumb SETPAN instruction.
1158         (insns): Add "setpan".
1159         (arm_extensions): Add "pan".
1160         * doc/c-arm.texi (ARM Options): Add "pan" to list of -mcpu processor
1161         extensions.
1162
1163 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
1164
1165         * config/tc-aarch64.c (aarch64_features): Add "rdma".
1166         * doc/c-aarch64.texi (AArch64 Extensions): Add "rdma".
1167
1168 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
1169
1170         * config/tc-aarch64.c (aarch64_features): Add "lor".
1171         * doc/c-aarch64.c (Aarch64 Extensions): Add "lor" to list of
1172         architecture extensions.
1173
1174 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
1175
1176         * config/tc-aarch64.c (parse_sys_reg): New parameter.  Check target
1177         support.  Fix whitespace.
1178         (parse_operands): Update for parse_sys_reg changes.
1179         (aarch64_features): Add "pan".
1180         * doc/c-aarch64.texi (Aarch64 Extensions): Add "pan".
1181
1182 2015-06-01  Jiong Wang  <jiong.wang@arm.com>
1183
1184         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
1185         (md_apply_fix): Support BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
1186         (aarch64_force_relocation): Ditto.
1187
1188 2015-06-01  Jiong Wang  <jiong.wang@arm.com>
1189
1190         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
1191         (md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
1192         (aarch64_force_relocation): Ditto.
1193
1194 2015-05-28  Catherine Moore  <clm@codesourcery.com>
1195             Bernd Schmidt <bernds@codesourcery.com>
1196             Paul Brook <paul@codesourcery.com>
1197
1198         gas/
1199         * config/tc-alpha.c (all_cfi_sections): Declare.
1200         (s_alpha_ent): Initialize all_cfi_sections.
1201         (alpha_elf_md_end): Invoke cfi_set_sections.
1202         * config/tc-mips.c (md_apply_fix):  Handle BFD_RELOC_NONE.
1203         (s_ehword): Use BFD_RELOC_32_PCREL.
1204         (mips_fix_adjustable): Handle BFD_RELOC_32_PCREL.
1205         (mips_cfi_reloc_for_encoding): New function.
1206         * tc-mips.h (DWARF2_FDE_RELOC_SIZE): Redefine.
1207         (DWARF2_FDE_RELOC_ENCODING): Define.
1208         (tc_cfi_reloc_for_encoding): Define.
1209         (mips_cfi_reloc_for_encoding): Define.
1210         (tc_compact_eh_opcode_stop): Define.
1211         (tc_compact_eh_opcode_pad): Define.
1212         * doc/as.texinfo: Document Compact EH extensions.
1213         * doc/internals.texi: Likewise.
1214         * dw2gencfi.c (EH_FRAME_LINKONCE): Redefine.
1215         (tc_cfi_reloc_for_encoding): Provide default.
1216         (compact_eh): Declare.
1217         (emit_expr_encoded): New function.
1218         (get_debugseg_name): Add Compact EH support.
1219         (alloc_debugseg_item): Likewise.
1220         (cfi_set_sections): New function.
1221         (dot_cfi_fde_data): New function.
1222         (dot_cfi_personality_id): New function.
1223         (dot_cfi_inline_lsda): New function.
1224         (cfi_pseudo_table): Add cfi_fde_data, cfi_personality_id,
1225         and cfi_inline_lsda.
1226         (dot_cfi_personality): Add Compact EH support.
1227         (dot_cfi_lsda): Likewise.
1228         (dot_cfi_sections): Likewise.
1229         (dot_cfi_startproc): Likewise.
1230         (get_cfi_seg): Likewise.
1231         (output_compact_unwind_data): New function.
1232         (output_cfi_insn): Add Compact EH support.
1233         (output_cie): Likewise.
1234         (output_fde): Likewise.
1235         (cfi_finish): Likewise.
1236         (cfi_emit_eh_header): New function.
1237         (output_eh_header): New function.
1238         * dw2gencfi.h (cfi_set_sections): Declare.
1239         (SUPPORT_COMPACT_EH): Define.
1240         (MULTIPLE_FRAME_SECTIONS): Define.
1241         New enumeration to describe the Compact EH header format.
1242         (fde_entry): Add new fields personality_id, eh_header_type, eh_data_size,
1243         eh_data, eh_loc and sections.
1244         (CFI_EMIT_eh_frame, CFI_EMIT_debug_frame, CFI_EMIT_target,
1245         CFI_EMIT_eh_frame_compact): Define.
1246
1247 2015-05-26  Max Filippov  <jcmvbkbc@gmail.com>
1248
1249         * config/tc-xtensa.c (xtensa_move_literals): Check that
1250         search_frag is non-NULL. Report error if literal frag is not
1251         found.
1252
1253 2015-05-22  Nick Clifton  <nickc@redhat.com>
1254
1255         PR gas/18446
1256         * read.c (output_big_sleb128): Use U suffix to prevent compile
1257         time warning.
1258
1259 2015-05-19  Jiong Wang  <jiong.wang@arm.com>
1260
1261         * config/tc-aarch64.c (process_movw_reloc_info): Sort relocation case
1262         labels alphabetically.
1263         (md_apply_fix): Ditto.
1264         (aarch64_force_relocation): Ditto.
1265
1266 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1267
1268         PR binutis/18386
1269         * config/tc-i386.c (OPTION_MAMD64): New.
1270         (OPTION_MINTEL64): Likewise.
1271         (md_longopts): Add -mamd64 and -mintel64.
1272         (md_parse_option): Handle OPTION_MAMD64 and OPTION_MINTEL64.
1273         (md_show_usage): Add -mamd64 and -mintel64.
1274         * doc/c-i386.texi: Document -mamd64 and -mintel64.
1275
1276 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1277
1278         * config/tc-i386.c (shared): New.
1279         (OPTION_MSHARED): Likewise.
1280         (elf_symbol_resolved_in_segment_p): Add relocation argument.
1281         Check PLT relocations and shared.
1282         (md_estimate_size_before_relax): Pass fragP->fr_var to
1283         elf_symbol_resolved_in_segment_p.
1284         (md_longopts): Add -mshared.
1285         (md_show_usage): Likewise.
1286         (md_parse_option): Handle OPTION_MSHARED.
1287         * doc/c-i386.texi: Document -mshared.
1288
1289 2015-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1290
1291         * write.c (compress_debug): Don't write the zlib header, which
1292         is handled by bfd_update_compression_header.
1293
1294 2015-05-13  Max Filippov  <jcmvbkbc@gmail.com>
1295
1296         * config/tc-xtensa.c (xtensa_relax_frag): Allow trampoline to be
1297         closer than J_RANGE / 2 to jump frag.
1298
1299 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1300
1301         * configure.tgt (arch): Set to iamcu for i386-*-elfiamcu target.
1302         * config/tc-i386.c (i386_mach): Support iamcu.
1303         (i386_target_format): Likewise.
1304
1305 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1306
1307         * config/tc-i386.c (cpu_arch): Add iamcu.
1308         (i386_align_code): Handle PROCESSOR_IAMCU.
1309         (i386_arch): Likewise.
1310         (i386_mach): Likewise.
1311         (i386_target_format): Likewise.
1312         (valid_iamcu_cpu_flags): New function.
1313         (check_cpu_arch_compatible): Only allow Intel MCU instructions
1314         when targeting Intel MCU.
1315         (set_cpu_arch): Call valid_iamcu_cpu_flags to check if CPU flags
1316         are valid for Intel MCU.
1317         (md_parse_option): Likewise.
1318         * tc-i386.h (ELF_TARGET_IAMCU_FORMAT): New.
1319         (processor_type): Add PROCESSOR_IAMCU.
1320         * doc/c-i386.texi: Document iamcu.
1321
1322 2015-05-08  Nick Clifton  <nickc@redhat.com>
1323
1324         PR gas/18347
1325         * config/tc-arm.h (TC_EQUAL_IN_INSN): Define.
1326         * config/tc-arm.c (arm_tc_equal_in_insn): New function.  Move
1327         the symbol name checking code to here from...
1328         (md_undefined_symbo): ... here.
1329
1330 2015-05-07  H.J. Lu  <hongjiu.lu@intel.com>
1331
1332         * config/tc-i386.c (elf_symbol_resolved_in_segment_p): New.
1333         (md_estimate_size_before_relax): Use it.
1334
1335 2015-05-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
1336
1337         * config/tc-sparc.c: Typo in comment fixed.
1338
1339 2015-05-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
1340
1341         * config/tc-sparc.c (sparc_ip): Support the %ncc "natural"
1342         condition codes
1343         * doc/c-sparc.texi (Sparc-Regs): Document %ncc.
1344
1345 2015-05-06  Nick Clifton  <nickc@redhat.com>
1346
1347         * doc/as.texinfo (Dollar Local Labels): Note that these are only
1348         supported on some targets.
1349
1350 2015-05-06  Renlin Li  <renlin.li@arm.com>
1351
1352         * config/tc-aarch64.c (mapping_state): Recording alignment before exit.
1353
1354 2015-05-05  Renlin Li  <renlin.li@arm.com>
1355
1356         * config/tc-aarch64.c (aarch64_init_frag): Always generate mapping
1357         symbols.
1358
1359 2015-05-05  Nick Clifton  <nickc@redhat.com>
1360
1361         * config/tc-msp430.c (MAX_OP_LEN): Increase to 4096.
1362         (msp430_make_init_symbols): New function.
1363         (msp430_section): Call it.
1364         (msp430_frob_section): Likewise.
1365
1366 2015-05-02  Max Filippov  <jcmvbkbc@gmail.com>
1367
1368         * config/tc-xtensa.c (cached_fixupS, fixup_cacheS): New typedefs.
1369         (struct cached_fixup, struct fixup_cache): New structures.
1370         (fixup_order, xtensa_make_cached_fixup),
1371         (xtensa_realloc_fixup_cache, xtensa_cache_relaxable_fixups),
1372         (xtensa_find_first_cached_fixup, xtensa_delete_cached_fixup),
1373         (xtensa_add_cached_fixup): New functions.
1374         (xtensa_relax_frag): Cache fixups pointing at potentially
1375         oversized jumps at the beginning of every relaxation pass. Only
1376         check subset of this cache in the reach of single jump from the
1377         trampoline frag currently being relaxed.
1378
1379 2015-05-01  Nick Clifton  <nickc@redhat.com>
1380
1381         * config/rl78-parse.y (MULU): Remove ISA_G14.
1382         (MULH, DIVHU, DIVWU, MACHI, MACH): Update error strings.
1383
1384 2015-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1385
1386         * config/tc-i386.c (i386_elf_emit_arch_note): Removed.
1387         * config/tc-i386.h (md_end): Likewise.
1388         (i386_elf_emit_arch_note): Likewise.
1389
1390 2015-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1391
1392         * configure.tgt: Support i386-*-elf*.
1393
1394 2015-04-30  DJ Delorie  <dj@redhat.com>
1395
1396         * config/rl78-defs.h (rl78_isa_g10): New.
1397         (rl78_isa_g13): New.
1398         (rl78_isa_g14): New.
1399         * config/rl78-parse.y (ISA_G10): New.
1400         (ISA_G13): New.
1401         (ISA_G14): New.
1402         (MULHU, MULH, MULU, DIVHU, DIVWU, MACHU, MACH): Use them.
1403         * config/tc-rl78.c (rl78_isa_g10): New.
1404         (rl78_isa_g13): New.
1405         (rl78_isa_g14): New.
1406
1407 2015-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1408
1409         * config/tc-i386.c (i386_target_format): Use "else if" on
1410         cpu_arch_isa.
1411
1412 2015-04-30  Nick Clifton  <nickc@redhat.com>
1413
1414         PR gas/18347
1415         * config/tc-arm.c (md_undefined_symbol): Issue a warning message
1416         (if enabled) when the user creates a symbol with the same name as
1417         an ARM instruction.
1418         (flag_warn_syms): New static variable.
1419         (arm_opts): Add mwarn-syms and mno-warn-syms.
1420         * doc/c-arm.texi (ARM Options): Document the -m[no-]warn-syms
1421         options.
1422
1423         PR gas/18353
1424         * doc/as.texinfo (Zero): Add documentation of the .zero pseudo-op.
1425
1426 2015-04-29  Nick Clifton  <nickc@redhat.com>
1427
1428         PR 18256
1429         * config/tc-arm.c (encode_arm_cp_address): Issue an error message
1430         if the operand is neither a register nor a vector.
1431
1432 2015-04-29  Nick Clifton  <nickc@redhat.com>
1433
1434         * doc/as.texinfo (Set): Note that a symbol cannot be set multiple
1435         times if the expression is not constant and the target uses linker
1436         relaxation.
1437
1438 2015-04-28  Renlin Li  <renlin.li@arm.com>
1439
1440         * config/tc-arm.c (arm_init_frag): Always emit mapping symbols.
1441
1442 2015-04-28  Nick Clifton  <nickc@redhat.com>
1443
1444         PR 18313
1445         * cond.c (s_if): Stop compile time warning about stopc being used
1446         before it is set.
1447         (s_ifc): Likewise.
1448
1449 2015-04-27  Renlin Li  <renlin.li@arm.com>
1450
1451         * config/tc-aarch64.c (s_aarch64_inst): Don't align code for non-text
1452         section.
1453         (md_assemble): Likewise, move the align code outside the loop.
1454
1455 2015-04-24  Jim Wilson  <jim.wilson@linaro.org>
1456
1457         * config/tc-aarch64.c (aarch64_cpus): Add CRC and CRYPTO features
1458         for thunderx.
1459
1460 2015-04-24  Richard Earnshaw  <rearnsha@arm.com>
1461
1462         * config/tc-arm.h (arm_min): New function.
1463         (SUB_SEGMENT_ALIGN): Define.
1464
1465 2015-04-23  Matthew Fortune  <matthew.fortune@imgtec.com>
1466
1467         * config/tc-mips.c (macro): State the recommended way of creating
1468         32-bit or 64-bit addresses.
1469
1470 2015-04-23  Jan Beulich  <jbeulich@suse.com>
1471
1472         * config/tc-i386.c (match_mem_size): Also allow no size
1473         specification when broadcasting.
1474
1475 2015-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1476
1477         * doc/as.texinfo (Bundle directives): Shorten menu entry and
1478         use @subsection.
1479         (CFI directives): Use @subsection.
1480         (SH-Dependent, SH64-Dependent): Moved after SCORE-Dependent.
1481         * doc/c-i386.texi (i386-Mnemonics): Use @subsection.
1482
1483 2015-04-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1484
1485         * config/tc-avr.c (create_record_for_frag): Rename link to
1486         prop_rec_link.
1487
1488 2015-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1489
1490         * NEWS: Mention
1491         --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
1492
1493 2015-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1494
1495         * as.h (compressed_debug_section_type): Removed.
1496
1497 2015-04-14  Nick Clifton  <nickc@redhat.com>
1498
1499         * config/tc-rl78.h (TC_LINKRELAX_FIXUP): Define.
1500         (TC_FORCE_RELOCATION_SUB_SAME): Define.
1501         (DWARF2_USE_FIXED_ADVANCE_PC): Define.
1502
1503 2015-04-10  Nick Clifton  <nickc@redhat.com>
1504
1505         PR binutils/18198
1506         * doc/c-arm.texi (ARM Options): Add a note about the interaction of
1507         the -EB option with the linker's --be8 option.
1508
1509 2015-04-09  Hans-Peter Nilsson  <hp@axis.com>
1510
1511         * doc/c-rx.texi: Fix markup typos in last change.
1512
1513 2015-04-09  Nick Clifton  <nickc@redhat.com>
1514
1515         * config/tc-rx.c (enum options): Add OPTION_DISALLOW_STRING_INSNS.
1516         (md_longopts): Add -mno-allow-string-insns.
1517         (md_parse_option): Handle -mno-allow-string-insns.
1518         (md_show_usage): Mention -mno-allow-string-insns.
1519         (rx_note_string_insn_use): New function.  Produces an error
1520         message if a string insn is used when it is not allowed.
1521         * config/rx-parse.y (SCMPU): Call rx_note_string_insn_use.
1522         (SMOVU, SMOVB, SMOVF, SUNTIL, SWHILE, RMPA): Likewise.
1523         * config/rx-defs.h (rx_note_string_insn_use): Prototype.
1524         * doc/c-rx.texi: Document -mno-allow-string-insns.
1525
1526 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
1527
1528         * as.c (show_usage): Update --compress-debug-sections.
1529         (std_longopts): Use optional_argument on compress-debug-sections.
1530         (parse_args): Handle
1531         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
1532         * as.h (compressed_debug_section_type): New.
1533         (flag_compress_debug): Change type to compressed_debug_section_type.
1534         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
1535         * write.c (compress_debug): Set BFD_COMPRESS_GABI for
1536         --compress-debug-sections=zlib-gabi.  Call
1537         bfd_get_compression_header_size to get compression header size.
1538         Don't rename section name for --compress-debug-sections=zlib-gabi.
1539         * config/tc-i386.c (compressed_debug_section_type): Set to
1540         COMPRESS_DEBUG_ZLIB.
1541         * doc/as.texinfo: Document
1542         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
1543
1544 2015-04-07  Renlin Li  <renlin.li@arm.com>
1545
1546         * config/tc-aarch64.c (mapping_state): Use subseg_text_p.
1547         (s_aarch64_inst): Likewise.
1548         (md_assemble): Likewise.
1549
1550 2015-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1551
1552         * write.c (compress_debug): Use bfd_putb64 to write uncompressed
1553         section size.
1554
1555 2015-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1556
1557         * write.c (compress_debug): Don't write the zlib header if
1558         compressed section size is the same as before compression.
1559
1560 2015-04-02  Nick Clifton  <nickc@redhat.com>
1561
1562         PR gas/18189
1563         * config/tc-microblaze.c (parse_imm): Use offsetT as the type for
1564         min and max parameters.  Sign extend values before testing.
1565
1566 2015-04-02  Renlin Li  <renlin.li@arm.com>
1567
1568         * config/tc-aarch64.c (mapping_state): Emit MAP_DATA within text section in order.
1569         (mapping_state_2): Don't emit MAP_DATA here.
1570         (s_aarch64_inst): Align frag during state transition.
1571         (md_assemble): Likewise.
1572
1573 2015-04-02  Ed Maste  <emaste@freebsd.org>
1574
1575         * config/tc-aarch64.c (set_error_kind): Delete.
1576         (set_error_message): Delete.
1577
1578 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
1579
1580         * configure: Regenerated.
1581
1582 2015-04-01  Evandro Menezes  <e.menezes@samsung.com>
1583
1584         * config/tc-aarch64.c: Add support for Samsung Exynos M1.
1585         * doc/c-aarch64.texi (-mcpu=): Add "exynos-m1".
1586
1587 2015-04-01  Evandro Menezes  <e.menezes@samsung.com>
1588
1589         * config/tc-arm.c: Add support for Samsung Exynos M1.
1590         * doc/c-arm.texi (-mcpu=): Add "exynos-m1".
1591
1592 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
1593
1594         * configure: Regenerated.
1595
1596 2015-03-31  Ed Schouten  <ed@nuxi.nl>
1597
1598         * configure.tgt (fmt): Set to elf for *-*-cloudabi*.
1599
1600 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1601
1602         * configure.ac: Revert the AM_ZLIB change.
1603         * Makefile.in: Regenerated.
1604         * aclocal.m4: Likewise.
1605         * configure: Likewise.
1606
1607 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1608
1609         * Makefile.am (ZLIBINC): New.
1610         (AM_CFLAGS): Add $(ZLIBINC).
1611         * as.c: (show_usage): Don't check HAVE_ZLIB_H.
1612         (parse_args): Likewise.
1613         * compress-debug.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
1614         (compress_init): Don't check HAVE_ZLIB_H.
1615         (compress_data): Likewise.
1616         (compress_finish): Likewise.
1617         * configure.ac (AM_ZLIB): Removed.
1618         (zlibinc): New.  AC_SUBST.
1619         Add --with-system-zlib.
1620         * Makefile.in: Regenerated.
1621         * config.in: Likewise.
1622         * configure: Likewise.
1623         * doc/Makefile.in: Likewise.
1624
1625 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1626
1627         * config/tc-i386.c (cpu_flags_set): Removed.
1628
1629 2015-03-25  Renlin Li  <renlin.li@arm.com>
1630
1631         * config/tc-aarch64.c (mapping_state): Remove first MAP_DATA emitting
1632         code.
1633         (mapping_state_2): Emit first MAP_DATA symbol here.
1634
1635 2015-03-24  H.J. Lu  <hongjiu.lu@intel.com>
1636
1637         PR gas/18087
1638         * write.c (compress_debug): Don't write the zlib header if
1639         compression didn't make the section smaller.
1640
1641 2015-03-24  Terry Guo  <terry.guo@arm.com>
1642
1643         * config/tc-arm.c (no_cpu_selected): Use new macro to compare
1644         features.
1645         (parse_psr): Likewise.
1646         (do_t_mrs): Likewise.
1647         (do_t_msr): Likewise.
1648         (static const arm_feature_set arm_ext_*): Defined with new macros.
1649         (static const arm_feature_set arm_cext_*): Likewise.
1650         (static const arm_feature_set fpu_fpa_ext_*): Likewise.
1651         (static const arm_feature_set fpu_vfp_ext_*): Likewise.
1652         (deprecated_coproc_regs): Likewise.
1653         (UL_BARRIER): Likewise.
1654         (barrier_opt_names): Likewise.
1655         (arm_cpus): Likewise.
1656         (arm_extensions): Likewise.
1657
1658 2015-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1659
1660         * config/tc-i386.c (i386_align_code): Limit multi-byte nop
1661         instructions to 10 bytes.
1662
1663 2015-03-19  Nick Clifton  <nickc@redhat.com>
1664
1665         * config/tc-rl78.c (enum options): Add G13 and G14.
1666         (md_longopts): Add -mg13 and -mg14.
1667         (md_parse_option): Handle -mg13 and -mg14.
1668         (md_show_usage): List -mg13 and -mg14.
1669         * doc/c-rl78.texi: Add description of -mg13 and -mg14 options.
1670
1671 2015-03-18  Jon Turney  <jon.turney@dronecode.org.uk>
1672             Nick Clifton  <nickc@redhat.com>
1673
1674         PR binutils/18087
1675         * doc/as.texinfo: Note that when gas compresses debug sections the
1676         compression is only performed if it makes the section smaller.
1677         * write.c (compress_debug): Do not compress a debug section if
1678         doing so would make it larger.
1679
1680 2015-03-17  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
1681
1682         * config/tc-i386.c (cpu_arch): Add PROCESSOR_ZNVER flags.
1683         (i386_align_code): Add PROCESSOR_ZNVER cases.
1684         * config/tc-i386.h (processor_type): Add PROCESSOR_ZNVER.
1685         * doc/c-i386.texi: Add znver1 and clzero.
1686
1687 2015-03-16  Nick Clifton  <nickc@redhat.com>
1688
1689         * dwarf2dbg.c (out_header): Remove spurious #if 1.
1690
1691 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
1692
1693         * config/tc-aarch64.c (warn_unpredictable_ldst): Don't warn on reg
1694         number 31.
1695
1696 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
1697
1698         * config/tc-aarch64.h (SUB_SEGMENT_ALIGN): Define to be zero.
1699
1700 2015-03-12  Andrew Bennett  <andrew.bennett@imgtec.com>
1701
1702         * config/tc-mips.c (mips_cpu_info_table): Add i6400 entry.
1703         * doc/c-mips.texi: Document i6400 -march option.
1704
1705 2015-03-12  Nick Clifton  <nickc@redhat.com>
1706
1707         PR gas/17444
1708         * config/tc-arm.h (MD_APPLY_SYM_VALUE): Pass the current segment
1709         to arm_apply_sym_value.  Update prototype.
1710         * config/tc-arm.c (arm_apply_sym_value): Add segment argument.
1711         Do not apply the value if the symbol is in a different segment to
1712         the current segment.
1713
1714 2015-03-11  Alan Modra  <amodra@gmail.com>
1715
1716         * config/tc-ppc.c (md_assemble): Don't abort on 8 byte insn fixups.
1717         (md_apply_fix): Report an error on data-only fixups used with insns.
1718
1719 2015-03-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1720
1721         * config/tc-s390.c (md_gather_operands): Check for valid
1722         length field operands.
1723
1724 2015-03-10  Michael Perkins  <perkinsmg75@yahoo.co.uk>
1725
1726         * config/tc-arm.c (parse_operands): Fix bug setting writeback
1727         values for '^' on OP_REGLSTs.
1728         (do_push_pop): Add new writeback constraint.
1729
1730 2015-03-10  Renlin Li  <renlin.li@arm.com>
1731
1732         * config/tc-arm.c (mapping_state): Remove first MAP_DATA emitting code.
1733         (mapping_state_2): Emit first MAP_DATA symbol here.
1734
1735 2015-03-10  Matthew Wahab  <matthew.wahab@arm.com>
1736
1737         * config/tc-aarch64.c (mapping_state): Set minimum alignment for
1738         code sections.
1739
1740 2015-03-10  Nick Clifton  <nickc@redhat.com>
1741
1742         PR gas/17852
1743         * config/tc-arm.c (md_begin): Ensure that selected_cpu is
1744         initialised when CPU_DEFAULT is defined.
1745
1746 2015-03-05  Nick Clifton  <nickc@redhat.com>
1747
1748         * config/tc-v850.c (md_parse_option): Fix code to set or clear
1749         EF_RH850_DATA_ALIGN8 bit in ELF header, based upon the use of the
1750         -m8byte-align and -m4byte-align command line options.
1751
1752 2015-03-04  Richard Sandiford  <richard.sandiford@arm.com>
1753
1754         PR gas/17843
1755         * config/tc-aarch64.c (process_movw_reloc_info): Allow
1756         R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
1757         for MOVK.
1758
1759 2015-02-28  Alan Modra  <amodra@gmail.com>
1760
1761         * write.c (SUB_SEGMENT_ALIGN): Don't pad non-code sections at
1762         end to their alignment.
1763
1764 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1765
1766         * config/tc-aarch64.c (reloc_table_entry): Generate
1767         BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21.
1768         (md_apply_fix, aarch64_force_relocation): Handle
1769         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
1770
1771 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1772
1773         * config/tc-aarch64.c (reloc_table_entry): Generate
1774         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
1775         (md_apply_fix, aarch64_force_relocation): Handle
1776         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
1777
1778 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1779
1780         * config/tc-aarch64.c (reloc_table_entry): Generate
1781         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
1782         (md_apply_fix, aarch64_force_relocation): Handle
1783         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
1784
1785 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1786
1787         * config/tc-aarch64.c (reloc_table_entry): Add ld_literal_type.
1788         (reloc_table): Likewise.
1789         (parse_address_main): Use ld_literal_type.
1790
1791 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1792
1793         * config/tc-aarch64.c (reloc_table_entry): Add adr_type.
1794         (reloc_table): Likewise.
1795         (parse_address_main): Use adr_type.
1796
1797 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1798
1799         * config/tc-aarch64.c (aarch64_arch_any, aarch64_arch_node): Remove.
1800
1801 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1802
1803         * config/tc-avr.c: Add elf32-avr.h include.
1804         (struct avr_property_record_link): New structure.
1805         (avr_output_property_section_header): New function.
1806         (avr_record_size): New function.
1807         (avr_output_property_record): New function.
1808         (avr_create_property_section): New function.
1809         (avr_handle_align): New function.
1810         (exclude_section_from_property_tables): New function.
1811         (create_record_for_frag): New function.
1812         (append_records_for_section): New function.
1813         (avr_create_and_fill_property_section): New function.
1814         (avr_post_relax_hook): New function.
1815         * config/tc-avr.h (md_post_relax_hook): Define.
1816         (avr_post_relax_hook): Declare.
1817         (HANDLE_ALIGN): Define.
1818         (avr_handle_align): Declare.
1819         (strut avr_frag_data): New structure.
1820         (TC_FRAG_TYPE): Define.
1821
1822 2015-02-25  Matthew Wahab  <matthew.wahab@arm.com>
1823
1824         * doc/c-arm.texi (-mcpu=): Add cortex-a53, cortex-a57 and
1825         cortex-a72.
1826
1827 2015-02-24  Nick Clifton  <nickc@redhat.com>
1828
1829         * config/tc-v850.c (soft_float): New variable.
1830         (v850_data_8): New variable.
1831         (md_show_usage): Add -msoft-float/-mhard-float.
1832         (md_parse_option): Likewise.
1833         (md_begin): Set the default value of soft_float.
1834         (v850_md_end): New function.  Creates a note section.
1835         * config/tc-v850.h (md_end): Define.
1836         * doc/c-v850.texi: Document -msoft-float/-mhard-float.
1837
1838 2015-02-23  Yoshinori Sato  <ysato@users.sourceforge.jp>
1839
1840         * config/tc-h8300.c (line_separater_chars): Add a version for
1841         h8300-linux that includes a separator.
1842         (default_mach): New variable.
1843         (md_main): Use it.
1844         (md_longopts): Add '--march' option.
1845         (md_parse_option): Parse the new option.
1846         * config/tc-h8300.h (TARGET_FORMAT): Add elf32-h8300-linux.
1847         * configure.tgt: Add h8300-*-linux
1848         * doc/c-h8300.texi: Document --march.
1849
1850 2015-02-23  Nick Clifton  <nickc@redhat.com>
1851
1852         PR 17940
1853         * dwarf2dbg.c (out_header): When generating dwarf sections use
1854         real symbols not temps for the start and end symbols.
1855         * config/tc-msp430.h (TC_FORCE_RELOCATION_SUB_SAME): Also prevent
1856         adjustments to relocations in debug sections.
1857         (TC_LINKRELAX_FIXUP): Likewise.
1858
1859 2015-02-19  Alan Modra  <amodra@gmail.com>
1860
1861         * doc/as.texinfo (Local Symbol Names): Don't use ':' in pxref.
1862         * doc/c-i386.texi: Reorder i386-Bugs after i386-Arch.
1863
1864 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
1865
1866         * config/tc-aarch64.c (aarch64_cpus): Fix code formatting.
1867
1868 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
1869
1870         * config/tc-arm.c: Add support for Cortex-A72.
1871
1872 2015-02-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1873
1874         * config/tc-arm.c (warn_deprecated_sp): Use as_tsktsk instead
1875         of as_warn for deprecation messages.
1876         (encode_arm_addr_mode_2): Likewise.
1877         (check_obsolete): Likewise.
1878         (do_rd_rm_rn): Likewise.
1879         (do_co_reg): Likewise.
1880         (do_setend): Likewise.
1881         (do_t_mov_cmp): Likewise.
1882         (do_neon_ldr_str): Likewise.
1883         (opcode_lookup): Likewise.
1884         (if_fsm_post_encode): Likewise.
1885         (md_assemble): Likewise.
1886
1887 2015-02-06  Jan Beulich  <jbeulich@suse.com>
1888
1889         * dw2gencfi.c (select_cie_for_fde): Also bail on CFI_label.
1890         (cfi_change_reg_numbers): Also do nothing for CFI_label.
1891         (cfi_pseudo_table): Also handle .cfi_label when not supporting
1892         CFI directives.
1893
1894 2015-02-05  Alan Modra  <amodra@gmail.com>
1895
1896         * config/tc-msp430.c (md_assemble): Correct size passed to
1897         extract_cmd.  Remove index check.
1898
1899 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1900
1901         * config/tc-aarch64.c (aarch64_cpus): Add support for Cortex-A72.
1902         * doc/c-aarch64.texi (-mcpu=): Add "cortex-a72".
1903
1904 2015-02-04  Nick Clifton  <nickc@redhat.com>
1905
1906         * config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
1907         these instructions.
1908
1909 2015-02-03  Renlin Li  <renlin.li@arm.com>
1910
1911         * doc/c-aarch64.texi (.arch): Document the directive.
1912         (.arch_extension): Likewise.
1913
1914 2015-02-03  Nick Clifton  <nickc@redhat.com>
1915
1916         * config/tc-rl78.h (TC_PARSE_CONS_EXPRESSION): Define.
1917
1918 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
1919
1920         * Makefile.am: Add FT32 files.
1921         * config/tc-ft32.c: New file.
1922         * config/tc-ft32.h: New file.
1923         * configure.tgt: Add FT32 support.
1924         * Makefile.in: Regenerate.
1925         * po/POTFILES.in: Regenerate.
1926
1927 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
1928
1929         * config/tc-nds32.c (do_pseudo_la_internal): Limit the second argument
1930         of instruction la to a symbol.
1931
1932 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
1933
1934         * config/tc-nds32.c (nds32_parse_name): Ignore when the input is
1935         section name.
1936
1937 2015-01-19  Alan Modra  <amodra@gmail.com>
1938
1939         * read.c (s_reloc): Match BFD_RELOC_NONE, BFD_RELOC{8,16,32,64}.
1940         * write.c (get_frag_for_reloc): Allow match just past end of frag.
1941
1942 2015-01-16  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1943
1944         * config/tc-s390.c (struct pd_reg): Remove.
1945         (pre_defined_registers): Remove.
1946         (REG_NAME_CNT): Remove.
1947         (reg_name_search): Calculate the register number instead of doing
1948         a lookup.
1949         (register_name, tc_s390_regname_to_dw2regnum): Adopt to the new
1950         reg_name_search signature.
1951         (s390_parse_cpu): Support the new arch string z13.
1952         (s390_insert_operand): Support for vector registers with the extra
1953         field for the fifth bit of each vector register operand.
1954         (md_gather_operand): Adjust to the new handling of optional
1955         parameters.
1956
1957         * doc/as.texinfo: Document the z13 cpu string.
1958
1959 2015-01-13  Matthew Wahab  <matthew.wahab@arm.com>
1960
1961         * config/tc-arm.c (parse_ifimm_zero): Accept #0x0 as a synonym for
1962         #0, restoring previous behaviour.
1963
1964 2015-01-12  Jan Beulich  <jbeulich@suse.com>
1965
1966         * gas/dw2gencfi.c (cfi_add_label, dot_cfi_label): New.
1967         (cfi_pseudo_table): Add "cfi_label".
1968         (output_cfi_insn): Handle CFI_label.
1969         (select_cie_for_fde): Als terminate CIE when encountering
1970         CFI_label.
1971         * dw2gencfi.h (cfi_add_label): Declare.
1972         (struct cfi_insn_data): New member "sym_name".
1973         (CFI_label): New.
1974         * read.c (read_symbol_name): Drop "static".
1975         * read.h (read_symbol_name): Declare.
1976
1977 2015-01-12  Jan Beulich  <jbeulich@suse.com>
1978
1979         * gas/config/tc-arm.c (do_neon_shl_imm): Check immediate range.
1980         (do_neon_qshl_imm): Likewise.
1981
1982 2015-01-12  Alan Modra  <amodra@gmail.com>
1983
1984         * read.c (s_altmacro, s_reloc): Make definition static.
1985
1986 2015-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
1987
1988         * config/tc-avr.c (md_apply_fix): Update the contents of VALP for
1989         diff fixups.
1990
1991 2015-01-09  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1992
1993         * config/tc-arm.c (arm_cpus): Add support for APM X-Gene 1 and
1994         X-Gene 2.
1995         * doc/c-arm.texi (ARM Options): Mention xgene1 and xgene2.
1996
1997 2015-01-07  Jan Beulich <jbeulich@suse.com>
1998
1999         * config/tc-arm.c (struct arm_option_extension_value_table):
2000         Split field "value" into fields "merge_value" and "clear_value".
2001         (arm_extensions): Adjust initializer accordingly.
2002
2003 2015-01-01  Alan Modra  <amodra@gmail.com>
2004
2005         * as.c (parse_args): Just print current year.
2006
2007 2015-01-01  Alan Modra  <amodra@gmail.com>
2008
2009         Update year range in copyright notice of all files.
2010
2011 For older changes see ChangeLog-2014
2012 \f
2013 Copyright (C) 2015 Free Software Foundation, Inc.
2014
2015 Copying and distribution of this file, with or without modification,
2016 are permitted in any medium without royalty provided the copyright
2017 notice and this notice are preserved.
2018
2019 Local Variables:
2020 mode: change-log
2021 left-margin: 8
2022 fill-column: 74
2023 version-control: never
2024 End: