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