bundle_lock message tidy
[binutils-gdb.git] / gas / ChangeLog
1 2017-11-07 Alan Modra <amodra@gmail.com>
2
3 * read.c (assemble_one, s_bundle_unlock): Formatting.
4 Consistently add comma and "bytes" to error message.
5 * testsuite/gas/i386/bundle-bad.l: Adjust to suit.
6
7 2017-11-07 Alan Modra <amodra@gmail.com>
8
9 * testsuite/gas/arm/got_prel.d,
10 * testsuite/gas/elf/dwarf2-1.d,
11 * testsuite/gas/elf/dwarf2-2.d,
12 * testsuite/gas/elf/dwarf2-3.d,
13 * testsuite/gas/elf/dwarf2-5.d,
14 * testsuite/gas/elf/dwarf2-6.d,
15 * testsuite/gas/i386/debug1.d,
16 * testsuite/gas/i386/dw2-compress-1.d,
17 * testsuite/gas/i386/dw2-compress-3a.d,
18 * testsuite/gas/i386/dw2-compress-3b.d,
19 * testsuite/gas/i386/dw2-compressed-1.d,
20 * testsuite/gas/i386/dw2-compressed-3a.d,
21 * testsuite/gas/i386/dw2-compressed-3b.d,
22 * testsuite/gas/i386/ilp32/x86-64-localpic.d,
23 * testsuite/gas/i386/localpic.d,
24 * testsuite/gas/i386/x86-64-localpic.d,
25 * testsuite/gas/ia64/pr13167.d,
26 * testsuite/gas/mips/loc-swap-2.d,
27 * testsuite/gas/mips/loc-swap.d,
28 * testsuite/gas/mips/micromips@loc-swap-2.d,
29 * testsuite/gas/mips/micromips@loc-swap.d,
30 * testsuite/gas/mips/mips16-dwarf2-n32.d,
31 * testsuite/gas/mips/mips16-dwarf2.d,
32 * testsuite/gas/mips/mips16@loc-swap-2.d,
33 * testsuite/gas/mips/mips16@loc-swap.d,
34 * testsuite/gas/mips/mips16e@loc-swap.d,
35 * testsuite/gas/mmix/bspec-1.d,
36 * testsuite/gas/mmix/bspec-2.d,
37 * testsuite/gas/tic6x/unwind-1.d,
38 * testsuite/gas/tic6x/unwind-2.d,
39 * testsuite/gas/tic6x/unwind-3.d: Update for pluralization
40 fixes.
41
42 2017-11-07 Alan Modra <amodra@gmail.com>
43
44 * as.c (main): Properly pluralize messages.
45 * frags.c (frag_grow): Likewise.
46 * read.c (emit_expr_with_reloc, emit_expr_fix): Likewise.
47 (parse_bitfield_cons): Likewise.
48 * write.c (fixup_segment, compress_debug, write_contents): Likewise.
49 (relax_segment): Likewise.
50 * config/tc-arm.c (s_arm_elf_cons): Likewise.
51 * config/tc-cr16.c (l_cons): Likewise.
52 * config/tc-i370.c (i370_elf_cons): Likewise.
53 * config/tc-m68k.c (m68k_elf_cons): Likewise.
54 * config/tc-msp430.c (msp430_operands): Likewise.
55 * config/tc-s390.c (s390_elf_cons, s390_literals): Likewise.
56 * config/tc-mcore.c (md_apply_fix): Likewise.
57 * config/tc-tic54x.c (md_assemble): Likewise.
58 * config/tc-xtensa.c (xtensa_elf_cons): Likewise.
59 (xg_expand_assembly_insn): Likewise.
60 * config/xtensa-relax.c (build_transition): Likewise.
61
62 2017-11-07 Alan Modra <amodra@gmail.com>
63
64 * asintl.h (textdomain, bindtextdomain): Use safer "do nothing".
65 (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
66
67 2017-11-03 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
68 Jim Wilson <jim.wilson@linaro.org>
69
70 * config/tc-aarch64.c (aarch64_cpus): Add saphira.
71 * doc/c-aarch64.texi: Likewise.
72
73 2017-11-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
74
75 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v6t2-1.d: Add
76 --disassembler-options=force-thumb to objdump options.
77 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v6t2-2.d: Likewise.
78
79 2017-11-01 James Bowman <james.bowman@ftdichip.com>
80
81 * config/tc-ft32.c (md_assemble): Add relaxation reloc
82 BFD_RELOC_FT32_RELAX.
83 (md_longopts): Add "norelax" and "no-relax".
84 (md_apply_fix): Add reloc BFD_RELOC_FT32_DIFF32.
85 (relaxable_section, ft32_validate_fix_sub, ft32_force_relocation,
86 ft32_allow_local_subtract): New function.
87 * config/tc-ft32.h: Remove unused MD_PCREL_FROM_SECTION.
88 * testsuite/gas/ft32/insnsc.s: New test exercising all FT32B
89 shortcodes.
90 * testsuite/gas/ft32/insnsc.d: New driver file.
91 * testsuite/gas/all/gas.exp: Update.
92 * testsuite/gas/ft32/ft32.exp: Run the new test.
93 * testsuite/gas/ft32/insn.d: Update.
94 * testsuite/gas/elf/dwarf2-11.d: Update.
95 * testsuite/gas/elf/dwarf2-12.d: Update.
96 * testsuite/gas/elf/dwarf2-13.d: Update.
97 * testsuite/gas/elf/dwarf2-14.d: Update.
98 * testsuite/gas/elf/dwarf2-15.d: Update.
99 * testsuite/gas/elf/dwarf2-16.d: Update.
100 * testsuite/gas/elf/dwarf2-17.d: Update.
101 * testsuite/gas/elf/dwarf2-18.d: Update.
102 * testsuite/gas/elf/dwarf2-3.d: Update.
103 * testsuite/gas/elf/dwarf2-5.d: Update.
104 * testsuite/gas/elf/dwarf2-7.d: Update.
105
106 2017-11-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
107
108 * config/tc-arm.c (arm_ext_v2): Define to ARM_EXT_V2 feature bit.
109 * testsuite/gas/arm/copro.s: Split into
110 * testsuite/gas/arm/copro-arm_v2plus-thumb_v6t2plus.s: This while
111 changing it to unified syntax and
112 * testsuite/gas/arm/copro-arm_v5plus-thumb_v6t2plus.s: this and ...
113 * testsuite/gas/arm/copro-arm_v5teplus-thumb_v6t2plus.s: This and ...
114 * testsuite/gas/arm/copro-arm_v6plus-thumb_v6t2plus.s: This.
115 * testsuite/gas/arm/copro.d: Split into ...
116 * testsuite/gas/arm/copro-arm_v2plus-arm_v2.d: This but target ARMv2
117 and ...
118 * testsuite/gas/arm/copro-arm_v5plus-arm_v5.d: this but target ARMv5
119 and ...
120 * testsuite/gas/arm/copro-arm_v5teplus-arm_v5te.d: This but target
121 ARMv5TE and ...
122 * testsuite/gas/arm/copro-arm_v6plus-arm_v6.d: This but target ARMv6.
123 * testsuite/gas/arm/copro-arm_v2plus-arm_v1.d: New testcase.
124 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v4t-1.d: New testcase.
125 * testsuite/gas/arm/copro-arm_v2plus-thumb_v6t2plus-unavail.l: Expected
126 errors for the above two testcases.
127 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v6t2-1.d: New testcase.
128 * testsuite/gas/arm/copro-arm_v5plus-arm_v4.d: New testcase.
129 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v4t-2.d: New testcase.
130 * testsuite/gas/arm/copro-arm_v5plus-thumb_v6t2plus-unavail.l:
131 Expected errors for the above two testcases.
132 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v6t2-2.d: New testcase.
133 * testsuite/gas/arm/copro-arm_v5teplus-arm_v5.d: New testcase.
134 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v4t-3.d: New testcase.
135 * testsuite/gas/arm/copro-arm_v5teplus-thumb_v6t2plus-unavail.l:
136 Expected errors for the above two testcases.
137 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v6t2-3.d: New testcase.
138 * testsuite/gas/arm/copro-arm_v6plus-arm_v5te.d: New testcase.
139 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v4t-4.d: New testcase.
140 * testsuite/gas/arm/copro-arm_v6plus-thumb_v6t2plus-unavail.l:
141 Expected errors for the above two testcases.
142 * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v6t2-4.d: New testcase.
143
144 2017-10-26 H.J. Lu <hongjiu.lu@intel.com>
145
146 PR gas/22352
147 * config/tc-i386.c (check_VecOperands): Also check XMM register
148 for invalid register in AVX512 gathers.
149 * testsuite/gas/i386/vgather-check.s: Add tests for AVX512
150 gathers with XMM register.
151 * testsuite/gas/i386/x86-64-vgather-check.s: Likewise.
152 * testsuite/gas/i386/vgather-check-error.l: Updated.
153 * testsuite/gas/i386/vgather-check-none.d: Likewise.
154 * testsuite/gas/i386/vgather-check-warn.d: Likewise.
155 * testsuite/gas/i386/vgather-check-warn.e: Likewise.
156 * testsuite/gas/i386/vgather-check.d: Likewise.
157 * testsuite/gas/i386/x86-64-vgather-check-error.l: Likewise.
158 * testsuite/gas/i386/x86-64-vgather-check-none.d: Likewise.
159 * testsuite/gas/i386/x86-64-vgather-check-warn.d: Likewise.
160 * testsuite/gas/i386/x86-64-vgather-check-warn.e: Likewise.
161 * testsuite/gas/i386/x86-64-vgather-check.d: Likewise.
162
163 2017-10-26 Hans-Peter Nilsson <hp@bitrange.com>
164
165 * testsuite/gas/all/fill-1.s: Use L2 rather than .L2.
166
167 2017-10-25 Alan Modra <amodra@gmail.com>
168
169 PR 22348
170 * config/tc-crx.c (instruction, output_opcode): Make static.
171 (relocatable, ins_parse, cur_arg_num): Likewise.
172 (parse_insn): Adjust for renamed opcodes globals.
173 (check_range): Likewise
174
175 2017-10-25 Alan Modra <amodra@gmail.com>
176
177 * testsuite/gas/all/fill-1.d: Exclude tic4x and tic54x.
178 * testsuite/gas/all/fill-1.s: Use L1 rather than .L1.
179
180 2017-10-24 Andrew Waterman <andrew@sifive.com>
181
182 * testsuite/gas/riscv/c-addi16sp-fail.d: New test.
183 * testsuite/gas/riscv/c-addi16sp-fail.l: Likewise.
184 * testsuite/gas/riscv/c-addi16sp-fail.s: Likewise.
185 * testsuite/gas/riscv/c-addi4spn-fail.d: Likewise.
186 * testsuite/gas/riscv/c-addi4spn-fail.l: Likewise.
187 * testsuite/gas/riscv/c-addi4spn-fail.s: Likewise.
188 * testsuite/gas/riscv/riscv.exp: Add new tests.
189
190 2017-10-24 Andrew Waterman <andrew@sifive.com>
191
192 * testsuite/gas/riscv/c-lui-fail.d: New testcase.
193 * gas/testsuite/gas/riscv/c-lui-fail.l: Likewise.
194 * gas/testsuite/gas/riscv/c-lui-fail.s: Likewise.
195 * gas/testsuite/gas/riscv/riscv.exp: Likewise.
196
197 2017-10-24 H.J. Lu <hongjiu.lu@intel.com>
198
199 * config/tc-i386.c (md_pseudo_table): Add .code64 directive
200 only if BFD64 is defined.
201 * testsuite/gas/i386/code64-inval.l: New file.
202 * gas/testsuite/gas/i386/code64-inval.s: Likewise.
203 * gas/testsuite/gas/i386/code64.d: Likewise.
204 * gas/testsuite/gas/i386/code64.s: Likewise.
205 * testsuite/gas/i386/i386.exp: Run mixed-mode-reloc32,
206 att-regs, intel-regs, intel-expr and string-ok tests only if
207 assembler supports x86-64. Run code64 and code64-inval.
208
209 2017-10-23 Palmer Dabbelt <palmer@dabbelt.com>
210
211 * config/tc-riscv.c (riscv_frag_align_code): Align code by 4
212 bytes on non-RVC systems.
213
214 2017-10-23 Maciej W. Rozycki <macro@imgtec.com>
215
216 * config/tc-mips.c (mips_elf_final_processing): Don't set
217 EF_MIPS_ABI2 in `e_flags'.
218
219 2017-10-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
220
221 * config/tc-i386.c (cpu_arch): Add .avx512_bitalg.
222 (cpu_noarch): noavx512_bitalg.
223 * doc/c-i386.texi: Document .avx512_bitalg, noavx512_bitalg.
224 * testsuite/gas/i386/i386.exp: Add AVX512_BITALG tests.
225 * testsuite/gas/i386/avx512f_bitalg-intel.d: New test.
226 * testsuite/gas/i386/avx512f_bitalg.d: Likewise.
227 * testsuite/gas/i386/avx512f_bitalg.s: Likewise.
228 * testsuite/gas/i386/avx512vl_bitalg-intel.d: Likewise.
229 * testsuite/gas/i386/avx512vl_bitalg.d: Likewise.
230 * testsuite/gas/i386/avx512vl_bitalg.s: Likewise.
231 * testsuite/gas/i386/x86-64-avx512f_bitalg-intel.d: Likewise.
232 * testsuite/gas/i386/x86-64-avx512f_bitalg.d: Likewise.
233 * testsuite/gas/i386/x86-64-avx512f_bitalg.s: Likewise.
234 * testsuite/gas/i386/x86-64-avx512vl_bitalg-intel.d: Likewise.
235 * testsuite/gas/i386/x86-64-avx512vl_bitalg.d: Likewise.
236 * testsuite/gas/i386/x86-64-avx512vl_bitalg.s: Likewise.
237
238 2017-10-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
239
240 * config/tc-i386.c (cpu_arch): Add .avx512_vnni.
241 (cpu_noarch): Add noavx512_vnni.
242 * doc/c-i386.texi: Document .avx512_vnni.
243 * testsuite/gas/i386/i386.exp: Add AVX512_VNNI tests.
244 * testsuite/gas/i386/avx512vnni-intel.d: New test.
245 * testsuite/gas/i386/avx512vnni.d: Likewise.
246 * testsuite/gas/i386/avx512vnni.s: Likewise.
247 * testsuite/gas/i386/avx512vnni_vl-intel.d: Likewise.
248 * testsuite/gas/i386/avx512vnni_vl.d: Likewise.
249 * testsuite/gas/i386/avx512vnni_vl.s: Likewise.
250 * testsuite/gas/i386/x86-64-avx512vnni-intel.d: Likewise.
251 * testsuite/gas/i386/x86-64-avx512vnni.d: Likewise.
252 * testsuite/gas/i386/x86-64-avx512vnni.s: Likewise.
253 * testsuite/gas/i386/x86-64-avx512vnni_vl-intel.d: Likewise.
254 * testsuite/gas/i386/x86-64-avx512vnni_vl.d: Likewise.
255 * testsuite/gas/i386/x86-64-avx512vnni_vl.s: Likewise.
256
257 2017-10-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
258
259 * config/tc-i386.c (cpu_arch): Add VPCLMULQDQ.
260 * doc/c-i386.texi: Document VPCLMULQDQ.
261 * testsuite/gas/i386/i386.exp: Run VPCLMULQDQ tests.
262 * testsuite/gas/i386/avx512f_vpclmulqdq-intel.d: New test.
263 * testsuite/gas/i386/avx512f_vpclmulqdq-wig.s: Ditto.
264 * testsuite/gas/i386/avx512f_vpclmulqdq-wig1-intel.d: Ditto.
265 * testsuite/gas/i386/avx512f_vpclmulqdq-wig1.d: Ditto.
266 * testsuite/gas/i386/avx512f_vpclmulqdq.d: Ditto.
267 * testsuite/gas/i386/avx512f_vpclmulqdq.s: Ditto.
268 * testsuite/gas/i386/avx512vl_vpclmulqdq-intel.d: Ditto.
269 * testsuite/gas/i386/avx512vl_vpclmulqdq-wig.s: Ditto.
270 * testsuite/gas/i386/avx512vl_vpclmulqdq-wig1-intel.d: Ditto.
271 * testsuite/gas/i386/avx512vl_vpclmulqdq-wig1.d: Ditto.
272 * testsuite/gas/i386/avx512vl_vpclmulqdq.d: Ditto.
273 * testsuite/gas/i386/avx512vl_vpclmulqdq.s: Ditto.
274 * testsuite/gas/i386/vpclmulqdq-intel.d: Ditto.
275 * testsuite/gas/i386/vpclmulqdq.d: Ditto.
276 * testsuite/gas/i386/vpclmulqdq.s: Ditto.
277 * testsuite/gas/i386/x86-64-avx512f_vpclmulqdq-intel.d: Ditto.
278 * testsuite/gas/i386/x86-64-avx512f_vpclmulqdq-wig.s: Ditto.
279 * testsuite/gas/i386/x86-64-avx512f_vpclmulqdq-wig1-intel.d: Ditto.
280 * testsuite/gas/i386/x86-64-avx512f_vpclmulqdq-wig1.d: Ditto.
281 * testsuite/gas/i386/x86-64-avx512f_vpclmulqdq.d: Ditto.
282 * testsuite/gas/i386/x86-64-avx512f_vpclmulqdq.s: Ditto.
283 * testsuite/gas/i386/x86-64-avx512vl_vpclmulqdq-intel.d: Ditto.
284 * testsuite/gas/i386/x86-64-avx512vl_vpclmulqdq-wig.s: Ditto.
285 * testsuite/gas/i386/x86-64-avx512vl_vpclmulqdq-wig1-intel.d: Ditto.
286 * testsuite/gas/i386/x86-64-avx512vl_vpclmulqdq-wig1.d: Ditto.
287 * testsuite/gas/i386/x86-64-avx512vl_vpclmulqdq.d: Ditto.
288 * testsuite/gas/i386/x86-64-avx512vl_vpclmulqdq.s: Ditto.
289 * testsuite/gas/i386/x86-64-vpclmulqdq-intel.d: Ditto.
290 * testsuite/gas/i386/x86-64-vpclmulqdq.d: Ditto.
291 * testsuite/gas/i386/x86-64-vpclmulqdq.s: Ditto.
292
293 2017-10-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
294
295 * config/tc-i386.c (cpu_arch): Add VAES.
296 * doc/c-i386.texi: Document VAES.
297 * testsuite/gas/i386/i386.exp: Run VAES tests.
298 * testsuite/gas/i386/avx512f_vaes-intel.d: New test.
299 * testsuite/gas/i386/avx512f_vaes-wig.s: Ditto.
300 * testsuite/gas/i386/avx512f_vaes-wig1-intel.d: Ditto.
301 * testsuite/gas/i386/avx512f_vaes-wig1.d: Ditto.
302 * testsuite/gas/i386/avx512f_vaes.d: Ditto.
303 * testsuite/gas/i386/avx512f_vaes.s: Ditto.
304 * testsuite/gas/i386/avx512vl_vaes-intel.d: Ditto.
305 * testsuite/gas/i386/avx512vl_vaes-wig.s: Ditto.
306 * testsuite/gas/i386/avx512vl_vaes-wig1-intel.d: Ditto.
307 * testsuite/gas/i386/avx512vl_vaes-wig1.d: Ditto.
308 * testsuite/gas/i386/avx512vl_vaes.d: Ditto.
309 * testsuite/gas/i386/avx512vl_vaes.s: Ditto.
310 * testsuite/gas/i386/vaes-intel.d: Ditto.
311 * testsuite/gas/i386/vaes.d: Ditto.
312 * testsuite/gas/i386/vaes.s: Ditto.
313 * testsuite/gas/i386/x86-64-avx512f_vaes-intel.d: Ditto.
314 * testsuite/gas/i386/x86-64-avx512f_vaes-wig.s: Ditto.
315 * testsuite/gas/i386/x86-64-avx512f_vaes-wig1-intel.d: Ditto.
316 * testsuite/gas/i386/x86-64-avx512f_vaes-wig1.d: Ditto.
317 * testsuite/gas/i386/x86-64-avx512f_vaes.d: Ditto.
318 * testsuite/gas/i386/x86-64-avx512f_vaes.s: Ditto.
319 * testsuite/gas/i386/x86-64-avx512vl_vaes-intel.d: Ditto.
320 * testsuite/gas/i386/x86-64-avx512vl_vaes-wig.s: Ditto.
321 * testsuite/gas/i386/x86-64-avx512vl_vaes-wig1-intel.d: Ditto.
322 * testsuite/gas/i386/x86-64-avx512vl_vaes-wig1.d: Ditto.
323 * testsuite/gas/i386/x86-64-avx512vl_vaes.d: Ditto.
324 * testsuite/gas/i386/x86-64-avx512vl_vaes.s: Ditto.
325 * testsuite/gas/i386/x86-64-vaes-intel.d: Ditto.
326 * testsuite/gas/i386/x86-64-vaes.d: Ditto.
327 * testsuite/gas/i386/x86-64-vaes.s: Ditto.
328
329 2017-10-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
330
331 * config/tc-i386.c (cpu_arch): Add .gfni.
332 * doc/c-i386.texi: Document .gfni.
333 * testsuite/gas/i386/i386.exp: Add GFNI tests.
334 * testsuite/gas/i386/avx.s: New GFNI test.
335 * testsuite/gas/i386/x86-64-avx.s: Likewise.
336 * testsuite/gas/i386/avx.d: Adjust.
337 * testsuite/gas/i386/avx-intel.d: Likewise
338 * testsuite/gas/i386/ilp32/x86-64-avx-intel.d: Likewise.
339 * testsuite/gas/i386/ilp32/x86-64-avx.d: Likewise.
340 * testsuite/gas/i386/avx512f_gfni-intel.d: New test.
341 * testsuite/gas/i386/avx512f_gfni.d: Likewise.
342 * testsuite/gas/i386/avx512f_gfni.s: Likewise.
343 * testsuite/gas/i386/avx512vl_gfni-intel.d: Likewise.
344 * testsuite/gas/i386/avx512vl_gfni.d: Likewise.
345 * testsuite/gas/i386/avx512vl_gfni.s: Likewise.
346 * testsuite/gas/i386/gfni-intel.d: Likewise.
347 * testsuite/gas/i386/gfni.d: Likewise.
348 * testsuite/gas/i386/gfni.s: Likewise.
349 * testsuite/gas/i386/x86-64-avx512f_gfni-intel.d: Likewise.
350 * testsuite/gas/i386/x86-64-avx512f_gfni.d: Likewise.
351 * testsuite/gas/i386/x86-64-avx512f_gfni.s: Likewise.
352 * testsuite/gas/i386/x86-64-avx512vl_gfni-intel.d: Likewise.
353 * testsuite/gas/i386/x86-64-avx512vl_gfni.d: Likewise.
354 * testsuite/gas/i386/x86-64-avx512vl_gfni.s: Likewise.
355 * testsuite/gas/i386/x86-64-avx_gfni-intel.d: Likewise.
356 * testsuite/gas/i386/x86-64-avx_gfni.d: Likewise.
357 * testsuite/gas/i386/x86-64-avx_gfni.s: Likewise.
358 * testsuite/gas/i386/x86-64-gfni-intel.d: Likewise.
359 * testsuite/gas/i386/x86-64-gfni.d: Likewise.
360 * testsuite/gas/i386/x86-64-gfni.s: Likewise.
361
362 2017-10-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
363
364 * config/tc-i386.c (cpu_arch): Add .avx512_vbmi2.
365 (cpu_noarch): noavx512_vbmi2.
366 * doc/c-i386.texi: Document .avx512_vbmi2, noavx512_vbmi2.
367 * testsuite/gas/i386/i386.exp: Add AVX512_VBMI2 tests.
368 * testsuite/gas/i386/avx512vbmi2-intel.d: New test.
369 * testsuite/gas/i386/avx512vbmi2.d: Likewise.
370 * testsuite/gas/i386/avx512vbmi2.s: Likewise.
371 * testsuite/gas/i386/avx512vbmi2_vl-intel.d: Likewise.
372 * testsuite/gas/i386/avx512vbmi2_vl.d: Likewise.
373 * testsuite/gas/i386/avx512vbmi2_vl.s: Likewise.
374 * testsuite/gas/i386/x86-64-avx512vbmi2-intel.d: Likewise.
375 * testsuite/gas/i386/x86-64-avx512vbmi2.d: Likewise.
376 * testsuite/gas/i386/x86-64-avx512vbmi2.s: Likewise.
377 * testsuite/gas/i386/x86-64-avx512vbmi2_vl-intel.d: Likewise.
378 * testsuite/gas/i386/x86-64-avx512vbmi2_vl.d: Likewise.
379 * testsuite/gas/i386/x86-64-avx512vbmi2_vl.s: Likewise.
380
381 2017-10-22 Hans-Peter Nilsson <hp@axis.com>
382
383 PR gas/22304
384 * testsuite/gas/cris/range-err-1.s: Remove quotes left from last edit.
385
386 2017-10-20 Nick Clifton <nickc@redhat.com>
387
388 PR 22324
389 * read.c (s_rept): Use size_t type for count parameter.
390 (do_repeat): Change type of count parameter to size_t.
391 Issue an error is the count parameter is negative.
392 (do_repeat_with_expression): Likewise.
393 * read.h: Update prototypes for do_repeat and
394 do_repeat_with_expression.
395 * doc/as.texinfo (Rept): Document that a zero count is allowed but
396 negative counts are not.
397 * config/tc-rx.c (rx_rept): Use size_t type for count parameter.
398 * config/tc-tic54x.c (tic54x_loop): Cast count parameter to size_t
399 type.
400 * testsuite/gas/macros/end.s: Add a test using a negative repeat
401 count.
402 * testsuite/gas/macros/end.l: Add expected error message.
403
404 2017-10-19 Palmer Dabbelt <palmer@dabbelt.com>
405
406 * config/tc-riscv.c (md_apply_fix): Mark
407 BFD_RELOC_RISCV_PCREL_HI20 as relaxable when relaxations are
408 enabled.
409
410 2017-10-19 Nick Clifton <nickc@redhat.com>
411
412 PR 21621
413 * config/tc-avr.h (struct avr_frag_data): Add prev_opcode field.
414 (TC_FRAG_INIT): Define.
415 (avr_frag_init): Add prototype.
416 * config/tc-avr.c (avr_frag_init): New function.
417 (avr_operands): Replace static local 'prev' variable with
418 prev_opcode field in current frag.
419 * testsuite/gas/avr/pr21621.s: New test source file.
420 * testsuite/gas/avr/pr21621.d: New test driver file.
421 * testsuite/gas/avr/pr21621.s: New test error output file.
422
423 2017-10-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
424
425 * testsuite/gas/all/fill-1.s: Use normal labels. Change .text to
426 .data. Pick different values. Use .dc.w instead of .word.
427 * testsuite/gas/all/fill-1.d: New objdump output check.
428 * testsuite/gas/all/gas.exp: Use run_dump_test to execute fill-1
429 testcase.
430
431 2017-10-18 Palmer Dabbelt <palmer@dabbelt.com>
432
433 * testsuite/gas/all/align.d: Mark as unsupported on RISC-V.
434 testsuite/gas/all/relax.d: Likewise.
435 testsuite/gas/all/sleb128-2.d: Likewise.
436 testsuite/gas/all/sleb128-4.d: Likewise.
437 testsuite/gas/all/sleb128-5.d: Likewise.
438 testsuite/gas/all/sleb128-7.d: Likewise.
439 testsuite/gas/elf/section11.d: Likewise.
440 testsuite/gas/all/gas.exp (diff1.s): Likewise.
441
442 2017-10-18 Nick Clifton <nickc@redhat.com>
443
444 PR gas/22304
445 * testsuite/gas/cris/range-err-1.s: Remove spurious xfails.
446 * testsuite/gas/cris/cris.exp: Expect the shexpr-1 test to pass.
447
448 2017-10-18 Nick Clifton <nickc@redhat.com>
449
450 * po/sv.po: Updated Swedish translation.
451
452 2017-10-16 Sandra Loosemore <sandra@codesourcery.com>
453 Henry Wong <henry@stuffedcow.net>
454
455 * config/tc-nios2.c (nios2_translate_pseudo_insn): Check for
456 correct number of arguments.
457 (md_assemble): Handle failure of nios2_translate_pseudo_insn.
458 * testsuite/gas/nios2/illegal_pseudoinst.l: New file.
459 * testsuite/gas/nios2/illegal_pseudoinst.s: New file.
460 * testsuite/gas/nios2/nios2.exp: Add illegal_pseudoinst test.
461
462 2017-10-12 James Bowman <james.bowman@ftdichip.com>
463
464 * config/tc-ft32.c (md_assemble): Replace FT32_FLD_K8 with
465 K15.
466 (md_apply_fix, tc_gen_reloc): Add BFD_RELOC_FT32_15.
467
468 2017-10-11 Nick Clifton <nickc@redhat.com>
469
470 PR 21977
471 * listing.c (listing_newline): Use the name of the current
472 physical input file, rather than the current logical input file,
473 unless including high level source in the listing.
474 * input-scrub.c (as_where_physical): New function. Returns the
475 name of the current physical input file.
476 * as.h: Add prototype for as_where_physical.
477
478 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
479
480 * testsuite/gas/s390/zarch-arch12.d (prno, tpei, irbm): New
481 instructions added.
482 * testsuite/gas/s390/zarch-arch12.s: Likewise.
483 * testsuite/gas/s390/zarch-z13.d: Rename ppno to prno.
484
485 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
486
487 * testsuite/gas/all/fill-1.s: Replace nop with .word 42
488
489 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
490
491 * read.c (s_fill): Invoke expression instead of
492 get_known_segmented_expression.
493 * testsuite/gas/all/fill-1.s: New testcase.
494 * testsuite/gas/all/gas.exp: Run fill-1 testcase
495
496 2017-10-05 Nick Clifton <nickc@redhat.com>
497
498 PR 22133
499 * config/tc-msp430.c (parse_exp): Skip an 'h' suffix to constant
500 expressions.
501 (msp430_srcoperand): Check that the entire text was parsed by
502 parse_exp.
503 (msp430_operands): Likewise.
504 * testsuite/gas/msp430/pr22133.s: New test file.
505 * testsuite/gas/msp430/pr22133.d: New test driver.
506 * testsuite/gas/msp430/pr22133.s: Expected error output.
507 * testsuite/gas/msp430/msp430.exp: Run the new test.
508
509 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
510
511 PR gas/21167
512 * testsuite/gas/elf/elf.exp: Run group3.
513 * testsuite/gas/elf/group3.d: New file.
514 * testsuite/gas/elf/group3.s: Likewise.
515
516 2017-10-05 Alan Modra <amodra@gmail.com>
517
518 PR 21167
519 * config/obj-elf.c (struct group_list): Delete elt_count.
520 (groups): New static.
521 (build_group_lists): Don't count elements.
522 (elf_adjust_symtab): Use "groups" rather than auto "list". Set up
523 pointer from group member to SHT_GROUP section. Don't size
524 SHT_GROUP section or clean up here..
525 (elf_frob_file_after_relocs): ..do so here instead.
526 * testsuite/gas/arc/jli-1.d,
527 * testsuite/gas/elf/groupautob.d,
528 * testsuite/gas/mips/compact-eh-eb-2.d,
529 * testsuite/gas/mips/compact-eh-eb-5.d,
530 * testsuite/gas/mips/compact-eh-el-2.d,
531 * testsuite/gas/mips/compact-eh-el-5.d: Adjust.
532
533 2017-10-01 Alexander Fedotov <alfedotov@gmail.com>
534
535 * testsuite/gas/ppc/vle-mult-ld-st-insns.s: New file: Tests the
536 support for the VLE multiple load/store instructions.
537 * testsuite/gas/ppc/vle-mult-ld-st-insns.d: New file: Test
538 driver.
539 * testsuite/gas/ppc/ppc.exp: Run it.
540
541 2017-09-27 Nick Clifton <nickc@redhat.com>
542
543 PR 22179
544 * testsuite/gas/riscv/fmv.x.s: New file: Tests the support for the
545 renamed fmv.x.s and fmv.s.x instructions.
546 * testsuite/gas/riscv/fmv.x.d: New file: Test driver.
547
548 2017-09-21 Maciej W. Rozycki <macro@imgtec.com>
549
550 * testsuite/gas/mips/elf_mach_5900.d: New test.
551 * testsuite/gas/mips/mips.exp: Run it.
552
553 2017-09-21 James Cowgill <James.Cowgill@imgtec.com>
554
555 PR gas/21762
556 * config/tc-mips.c (s_mips_stab): Insert call to
557 file_mips_check_options.
558 * testsuite/gas/mips/micromips@stabs-symbol-type.d: New test.
559 * testsuite/gas/mips/mips.exp: Run the new tests.
560 * testsuite/gas/mips/mips16@stabs-symbol-type.d: New test.
561 * testsuite/gas/mips/stabs-symbol-type.d: New test.
562 * testsuite/gas/mips/stabs-symbol-type.s: New test source.
563
564 2017-09-21 Alan Modra <amodra@gmail.com>
565
566 * config/tc-ppc.h (EH_FRAME_ALIGNMENT): Define.
567
568 2017-09-14 Alan Modra <amodra@gmail.com>
569
570 PR 22127
571 * write.c (resolve_reloc_expr_symbols): Don't segfault when
572 sec has been set to NULL.
573
574 2017-09-09 H.J. Lu <hongjiu.lu@intel.com>
575
576 * config/tc-i386.c (NOTRACK_PREFIX): Removed.
577 (REX_PREFIX): Updated.
578 (MAX_PREFIXES): Likewise.
579 (parse_insn): Remove restriction on NOTRACK prefix position.
580 * testsuite/gas/i386/notrack.s: Add tests with NOTRACK prefix
581 before other prefixes.
582 * testsuite/gas/i386/x86-64-notrack.s: Likewise.
583 * testsuite/gas/i386/notrackbad.s: Remove tests with NOTRACK
584 prefix before other prefixes.
585 * testsuite/gas/i386/x86-64-notrackbad.s: Likewise.
586 * testsuite/gas/i386/notrack-intel.d: Updated.
587 * testsuite/gas/i386/notrack.d: Likewise.
588 * testsuite/gas/i386/notrackbad.l: Likewise.
589 * testsuite/gas/i386/x86-64-notrack-intel.d: Likewise.
590 * testsuite/gas/i386/x86-64-notrack.d: Likewise.
591 * testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
592
593 2017-09-07 Palmer Dabbelt <palmer@dabbelt.com>
594
595 * config/tc-riscv.c (riscv_frag_align_code): Emit the entire
596 alignment sequence inside R_RISCV_ALIGN.
597
598 2017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
599 Edmar Wienskoski <edmar.wienskoski@nxp.com
600
601 * config/tc-ppc.c (md_parse_option): Handle "mno-vle" flag.
602 (ppc_elf_section_letter): New function.
603 * config/tc-ppc.h (md_elf_section_letter): New.
604 * testsuite/gas/elf/section10.d: Adjust for VLE.
605
606 2017-09-01 Tamar Christina <tamar.christina@arm.com>
607
608 * config/tc-aarch64.c (aarch64_cpus): Enable DOTPROD for
609 cortex-a55 and cortx-a75.
610
611 2017-08-30 Maciej W. Rozycki <macro@imgtec.com>
612
613 * testsuite/gas/mips/branch-addend-micromips.d: New test.
614 * testsuite/gas/mips/branch-addend-micromips-n32.d: New test.
615 * testsuite/gas/mips/branch-addend-micromips-n64.d: New test.
616 * testsuite/gas/mips/branch-addend-micromips.s: New test source.
617 * testsuite/gas/mips/mips.exp: Run the new tests.
618
619 2017-08-30 Maciej W. Rozycki <macro@imgtec.com>
620
621 * config/tc-mips.c (md_convert_frag): Respect
622 `mips_ignore_branch_isa'.
623 * testsuite/gas/mips/branch-local-5.d: New test.
624 * testsuite/gas/mips/branch-local-n32-5.d: New test.
625 * testsuite/gas/mips/branch-local-n64-5.d: New test.
626 * testsuite/gas/mips/branch-local-6.d: New test.
627 * testsuite/gas/mips/branch-local-n32-6.d: New test.
628 * testsuite/gas/mips/branch-local-n64-6.d: New test.
629 * testsuite/gas/mips/branch-local-7.d: New test.
630 * testsuite/gas/mips/branch-local-n32-7.d: New test.
631 * testsuite/gas/mips/branch-local-n64-7.d: New test.
632 * testsuite/gas/mips/branch-local-ignore-5.d: New test.
633 * testsuite/gas/mips/branch-local-ignore-n32-5.d: New test.
634 * testsuite/gas/mips/branch-local-ignore-n64-5.d: New test.
635 * testsuite/gas/mips/branch-local-ignore-6.d: New test.
636 * testsuite/gas/mips/branch-local-ignore-n32-6.d: New test.
637 * testsuite/gas/mips/branch-local-ignore-n64-6.d: New test.
638 * testsuite/gas/mips/branch-local-5.l: New stderr output.
639 * testsuite/gas/mips/branch-local-6.l: New stderr output.
640 * testsuite/gas/mips/branch-local-5.s: New test source.
641 * testsuite/gas/mips/branch-local-6.s: New test source.
642 * testsuite/gas/mips/branch-local-7.s: New test source.
643 * testsuite/gas/mips/mips.exp: Run the new tests.
644
645 2017-08-30 Maciej W. Rozycki <macro@imgtec.com>
646
647 * testsuite/gas/mips/branch-local-n32-2.d: Use `branch-local-2.l'
648 for `error-output'.
649 * testsuite/gas/mips/branch-local-n64-2.d: Likewise.
650 * testsuite/gas/mips/branch-local-n32-3.d: Use `branch-local-3.l'
651 for `error-output'.
652 * testsuite/gas/mips/branch-local-n64-3.d: Likewise.
653 * testsuite/gas/mips/branch-local-n32-2.l: Remove file.
654 * testsuite/gas/mips/branch-local-n64-2.l: Remove file.
655 * testsuite/gas/mips/branch-local-n32-3.l: Remove file.
656 * testsuite/gas/mips/branch-local-n64-3.l: Remove file.
657
658 2017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
659
660 * config/tc-msp430.c (md_parse_option): Define high data and high
661 bss symbols if -mdata-region is passed.
662 Define -mdata-region open.
663 * doc/c-msp430.texi: Document -mdata-region.
664 * testsuite/gas/msp430/high-data-bss-sym.d: New test.
665 * testsuite/gas/msp430/high-data-bss-sym.s: New.
666 * testsuite/gas/msp430/msp430.exp: Add -mdata-region tests.
667
668 2017-08-23 Alexander Fedotov <alexander.fedotov@nxp.com>
669 Edmar Wienskoski <edmar.wienskoski@nxp.com
670
671 * config/tc-ppc.c:
672 (md_parse_option): Add mspe2 switch.
673 (md_show_usage): Document -mspe2.
674 (ppc_setup_opcodes): Handle spe2_opcodes.
675 * doc/as.texinfo: Document -mspe2.
676 * doc/c-ppc.texi: Likewise.
677 * testsuite/gas/ppc/efs.d: New file.
678 * testsuite/gas/ppc/efs.s: Likewise.
679 * testsuite/gas/ppc/efs2.d: Likewise.
680 * testsuite/gas/ppc/efs2.s: Likewise.
681 * testsuite/gas/ppc/ppc.exp: Run new tests.
682 * testsuite/gas/ppc/spe.d: New file.
683 * testsuite/gas/ppc/spe.s: Likewise.
684 * testsuite/gas/ppc/spe2-checks.d: Likewise.
685 * testsuite/gas/ppc/spe2-checks.l: Likewise.
686 * testsuite/gas/ppc/spe2-checks.s: Likewise.
687 * testsuite/gas/ppc/spe2.d: Likewise.
688 * testsuite/gas/ppc/spe2.s: Likewise.
689 * testsuite/gas/ppc/spe_ambiguous.d: Likewise.
690 * testsuite/gas/ppc/spe_ambiguous.s: Likewise.
691
692 2017-08-23 James Clarke <jrtc27@jrtc27.com>
693
694 * config/tc-sparc.c (tc_gen_reloc): Convert BFD_RELOC_8/16/32/64
695 into the corresponding BFD_RELOC_8/16/32/64_PCREL relocation
696 when requested.
697 * config/tc-sparc.h (DIFF_EXPR_OK): Define to enable PC-relative
698 diff relocations.
699 (TC_FORCE_RELOCATION_SUB_LOCAL): Define to ensure only supported
700 relocations are made PC-relative.
701 (CFI_DIFF_EXPR_OK): Define to 0 to force BFD_RELOC_32_PCREL to
702 be used directly, since otherwise BFD_RELOC_SPARC_UA32 will be
703 used for .eh_frame which cannot in general be converted to a
704 BFD_RELOC_32_PCREL due to alignment requirements.
705
706 2017-08-22 Alan Modra <amodra@gmail.com>
707
708 * testsuite/gas/ppc/lsp-checks.d: Assemble with -a32.
709 * testsuite/gas/ppc/lsp.d: Likewise.
710
711 2017-08-21 Alexander Fedotov <alexander.fedotov@nxp.com>
712 Edmar Wienskoski <edmar.wienskoski@nxp.com
713
714 * testsuite/gas/ppc/lsp-checks.d,
715 * testsuite/gas/ppc/lsp-checks.l,
716 * testsuite/gas/ppc/lsp-checks.s: New test.
717 * testsuite/gas/ppc/lsp.d,
718 * testsuite/gas/ppc/lsp.s: New test.
719 * testsuite/gas/ppc/ppc.exp: Run new tests.
720
721 2017-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
722
723 * config/tc-aarch64.c (REGDEF_ALIAS): Define
724 (reg_names): Update for ip0, ip1, fp, lr to use REGDEF_ALIAS
725 * doc/c-aarch64.texi: Update documentation on .req.
726 * testsuite/gas/diagnostic.s: Update
727 * testsuite/gas/diagnostic.l: Likewise
728 * testsuite/gas/register_aliases.s: New file.
729 * testsuite/gas/register_aliases.d: New file.
730
731 2017-08-11 H.J. Lu <hongjiu.lu@intel.com>
732
733 PR gas/21667
734 * read.c (pseudo_set): Update error message for alias of common
735 symbol.
736 * write.c (write_object_file): Disallow both local and global
737 aliases of common symbol.
738 * testsuite/gas/elf/common5a.d: New file.
739 * testsuite/gas/elf/common5a.l: Likewise.
740 * testsuite/gas/elf/common5a.s: Likewise.
741 * testsuite/gas/elf/common5b.d: Likewise.
742 * testsuite/gas/elf/common5b.l: Likewise.
743 * testsuite/gas/elf/common5b.s: Likewise.
744 * testsuite/gas/elf/common5c.d: Likewise.
745 * testsuite/gas/elf/common5c.s: Likewise.
746 * testsuite/gas/elf/common5d.d: Likewise.
747 * testsuite/gas/elf/common5d.s: Likewise.
748 * testsuite/gas/elf/elf.exp: Run common5a, common5b, common5c
749 and common5d.
750
751 2017-08-10 Nick Clifton <nickc@redhat.com>
752
753 PR gas/21939
754 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Increase
755 size of indirect_syms array so that it is large enough to hold
756 every symbol if necessary.
757
758 2017-08-09 Jiong Wang <jiong.wang@arm.com>
759
760 * config/tc-arm.c (do_crc32_1): Remove warning on REG_SP for thumb_mode.
761 * testsuite/gas/arm/crc32-armv8-a-bad.d: Update exepcted result.
762 * testsuite/gas/arm/crc32-armv8-r-bad.d: Likewise.
763 * testsuite/gas/arm/crc32-armv8-a.d: Likewise.
764 * testsuite/gas/arm/crc32-armv8-r.d: Likewise.
765 * testsuite/gas/arm/crc32-armv8-ar-bad.s: Update test case.
766 * testsuite/gas/arm/crc32-armv8-ar.s: Likewise.
767 * testsuite/gas/arm/crc32-bad.l: Update expected error message.
768
769 2017-08-02 Nick Clifton <nickc@redhat.com>
770
771 * testsuite/gas/all/gas.exp: Add am33 to the skip lists of tests
772 passed over by the mn10300 target.
773 * testsuite/gas/elf/elf.exp: Likewise.
774 * testsuite/gas/elf/dwarf2-11.d: Correct skip of am33 target.
775 * testsuite/gas/elf/dwarf2-12.d: Likewise.
776 * testsuite/gas/elf/dwarf2-13.d: Likewise.
777 * testsuite/gas/elf/dwarf2-14.d: Likewise.
778 * testsuite/gas/elf/dwarf2-15.d: Likewise.
779 * testsuite/gas/elf/dwarf2-16.d: Likewise.
780 * testsuite/gas/elf/dwarf2-17.d: Likewise.
781 * testsuite/gas/elf/dwarf2-18.d: Likewise.
782 * testsuite/gas/elf/dwarf2-5.d: Likewise.
783 * testsuite/gas/elf/dwarf2-6.d: Likewise.
784 * testsuite/gas/elf/dwarf2-7.d: Likewise.
785
786 2017-08-01 H.J. Lu <hongjiu.lu@intel.com>
787
788 PR gas/21874
789 * config/tc-i386-intel.c (i386_intel_operand): Update segment
790 register check.
791 * testsuite/gas/i386/intelok.s: Replace "fs:gs:[eax]" with
792 "fs:[eax]".
793 * testsuite/gas/i386/inval-seg.s: Add tests for invalid segment
794 register.
795 * testsuite/gas/i386/x86-64-inval-seg.s: Likewise.
796 * testsuite/gas/i386/inval-seg.l: Updated.
797 * testsuite/gas/i386/x86-64-inval-seg.l: Likewise.
798
799 2017-07-31 John David Anglin <danglin@gcc.gnu.org>
800
801 * config/tc-hppa.c (pa_ip): Clear `d' bit in branch on bit instructions
802 with a double-word condition and a fixed bit position greater than 31.
803
804 2017-07-28 Andrew Waterman <andrew@sifive.com>
805
806 * config/tc-riscv.c (riscv_set_arch): Handle the Q subset like
807 all other subsets.
808 Obviate use-after-free.
809
810 2017-07-25 Nick Clifton <nickc@redhat.com>
811
812 PR 21739
813 * testsuite/gas/arc/add_s-err.s: Update expected error message.
814
815 2017-07-24 Nick Clifton <nickc@redhat.com>
816
817 PR 21809
818 * config/tc-aarch64.c (aarch64_init_frag): Do not set a mapping
819 state for frags in debug sections.
820 * config/tc-arm.c (arm_init_frag): Likewise.
821
822 2017-07-24 Hans-Peter Nilsson <hp@bitrange.com>
823
824 * dwarf2dbg.c (dwarf2dbg_final_check): Rename local variable exp
825 from expr.
826
827 2017-07-21 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
828
829 * config/tc-s390.c (s390_parse_cpu): Add z14 as alternate CPU
830 name.
831 * doc/as.texinfo: Add z14 to CPU string list.
832 * doc/c-s390.texi: Likewise.
833
834 2017-07-21 Alexandre Oliva <aoliva@redhat.com>
835
836 * dwarf2dbg.c (unused): Check offset of next in struct line_entry.
837 (current): Initialize view.
838 (force_reset_view, view_assert_failed): New variables.
839 (reverse_line_entry_list): New function.
840 (set_or_check_view): Likewise.
841 (dwarf2_gen_line_info_1): Call it.
842 (dwarf2_where): Set view to NULL.
843 (dwarf2_emit_insn): Return early when called before first file.
844 (dwarf2_directive_loc): Add view support. Emit insn
845 immediately when view option is given.
846 (process_entries): Avoid set_address to reset view when a known
847 address change already implies the view reset.
848 (dwarf2dbg_final_check): New function.
849 * dwarf2dbg.h (struct dwarf2_line_info): Add view.
850 (dwarf2dbg_final_check): Declare.
851 * read.c (s_leb128): Parse expression as deferred.
852 * write.c (write_object_file): Check pending view asserts.
853 (cvt_frag_to_fill): Complain about undefined leb128 operand.
854 * doc/as.texinfo (.loc): Document view support.
855 * NEWS: Mention the new feature.
856 * testsuite/gas/all/gas.exp: Run sleb128-9.
857 * testsuite/gas/all/sleb128-9.d: New.
858 * testsuite/gas/all/sleb128-9.l: New.
859 * testsuite/gas/all/sleb128-9.s: New.
860 * testsuite/gas/elf/dwarf2-1.d: Add nonzero views.
861 * testsuite/gas/elf/dwarf2-2.d: Likewise.
862 * testsuite/gas/elf/dwarf2-5.d: New.
863 * testsuite/gas/elf/dwarf2-5.s: New.
864 * testsuite/gas/elf/dwarf2-6.d: New.
865 * testsuite/gas/elf/dwarf2-6.s: New.
866 * testsuite/gas/elf/dwarf2-7.d: New.
867 * testsuite/gas/elf/dwarf2-7.s: New.
868 * testsuite/gas/elf/dwarf2-8.d: New.
869 * testsuite/gas/elf/dwarf2-8.l: New.
870 * testsuite/gas/elf/dwarf2-8.s: New.
871 * testsuite/gas/elf/dwarf2-9.d: New.
872 * testsuite/gas/elf/dwarf2-9.l: New.
873 * testsuite/gas/elf/dwarf2-9.s: New.
874 * testsuite/gas/elf/dwarf2-10.d: New.
875 * testsuite/gas/elf/dwarf2-10.l: New.
876 * testsuite/gas/elf/dwarf2-10.s: New.
877 * testsuite/gas/elf/dwarf2-11.d: New.
878 * testsuite/gas/elf/dwarf2-11.s: New.
879 * testsuite/gas/elf/dwarf2-12.d: New.
880 * testsuite/gas/elf/dwarf2-12.s: New.
881 * testsuite/gas/elf/dwarf2-13.d: New.
882 * testsuite/gas/elf/dwarf2-13.s: New.
883 * testsuite/gas/elf/dwarf2-14.d: New.
884 * testsuite/gas/elf/dwarf2-14.s: New.
885 * testsuite/gas/elf/dwarf2-15.d: New.
886 * testsuite/gas/elf/dwarf2-15.s: New.
887 * testsuite/gas/elf/dwarf2-16.d: New.
888 * testsuite/gas/elf/dwarf2-16.s: New.
889 * testsuite/gas/elf/dwarf2-17.d: New.
890 * testsuite/gas/elf/dwarf2-17.s: New.
891 * testsuite/gas/elf/dwarf2-18.d: New.
892 * testsuite/gas/elf/dwarf2-18.s: New.
893 * testsuite/gas/elf/elf.exp: Run dwarf2-5..18 tests.
894 * testsuite/gas/i386/dw2-compress-1.d: Add nonzero views.
895 * testsuite/gas/i386/dw2-compressed-1.d: Likewise.
896 * testsuite/gas/i386/ilp32/lns/lns-duplicate.d: Likewise.
897 * testsuite/gas/lns/lns-big-delta.d: Likewise.
898 * testsuite/gas/lns/lns-duplicate.d: Likewise.
899 * testsuite/gas/mips/loc-swap-2.d: Likewise.
900 * testsuite/gas/mips/loc-swap-3.d: Likewise.
901 * testsuite/gas/mips/loc-swap.d: Likewise.
902 * testsuite/gas/mips/micromips@loc-swap-2.d: Likewise.
903 * testsuite/gas/mips/micromips@loc-swap.d: Likewise.
904 * testsuite/gas/mips/mips16@loc-swap-2.d: Likewise.
905 * testsuite/gas/mips/mips16@loc-swap.d: Likewise.
906 * testsuite/gas/mips/mips16e@loc-swap.d: Likewise.
907
908 2017-07-19 Claudiu Zissulescu <claziss@synopsys.com>
909
910 * testsuite/gas/arc/jli-1.d: New file.
911 * testsuite/gas/arc/jli-1.s: Likewise.
912 * testsuite/gas/arc/taux.d: Update for jli_base.
913
914 2017-07-19 Tristan Gingold <gingold@adacore.com>
915
916 * as.c (start_sbrk): Remove.
917 (main): Remove assignment.
918 (dump_statistics): Remove display of data size.
919
920 2017-07-19 Tristan Gingold <gingold@adacore.com>
921
922 * testsuite/gas/pe/seh-x64-err-2.s: New test.
923 * testsuite/gas/pe/seh-x64-err-2.l: New stderr output.
924 * testsuite/gas/pe/pe.exp: Add test.
925 * config/obj-coff-seh.c (obj_coff_seh_do_final): Don't try to end
926 seh part.
927
928 2017-07-18 Nick Clifton <nickc@redhat.com>
929
930 PR 21775
931 * config/tc-arm.c: Fix spelling typos.
932 * config/tc-mips.c: Likewise.
933 * config/tc-msp430.c: Likewise.
934 * config/tc-sh64.c: Likewise.
935 * config/tc-tic4x.c: Likewise.
936 * ecoff.c: Likewise.
937 * testsuite/gas/arm/ldr-bad.l: Likewise.
938 * testsuite/gas/arm/ldr-t-bad.l: Likewise.
939 * testsuite/gas/tic54x/opcodes.s: Likewise.
940 * testsuite/gas/msp340/errata_warns.l: Likewise.
941
942 2017-07-18 Nick Clifton <nickc@redhat.com>
943
944 * po/uk.po: Updated Ukranian translation.
945
946 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
947
948 PR 21472
949 * config/tc-avr.c (mcu_types): Add entries for: attiny212,
950 attiny214, attiny412, attiny414, attiny814, attiny1614,
951 attiny1616, attiny1617, attiny3214, attiny3216, attiny3217.
952 (md_show_usage): Adjust doc for "avrxmega3".
953 * doc/c-avr.texi (AVR options) [-mmcu=]: Adjust doc for avrxmega3.
954 Add MCUs: attiny212, attiny214, attiny412, attiny414, attiny416,
955 attiny417, attiny814, attiny816, attiny817, attiny1614,
956 attiny1616, attiny1617, attiny3214, attiny3216, attiny3217.
957
958 2017-07-13 Jim Wilson <jim.wilson@linaro.org>
959
960 * config/tc-arch64.c (aarch64_cpus): Add AARCH64_FEATURE_RDMA to
961 falkor and qdf24xx entries.
962
963 2017-07-12 Alan Modra <amodra@gmail.com>
964
965 * po/es.po: Update from translationproject.org/latest/gas/.
966 * po/fi.po: Likewise.
967 * po/fr.po: Likewise.
968 * po/id.po: Likewise.
969 * po/ja.po: Likewise.
970 * po/ru.po: Likewise.
971 * po/sv.po: Likewise.
972 * po/tr.po: Likewise.
973 * po/uk.po: Likewise.
974 * po/zh_CN.po: Likewise.
975
976 2017-07-12 Nick Clifton <nickc@redhat.com>
977
978 Fix compile time warnings using gcc 7.1.1.
979 * config/tc-pru.c (md_assemble): Add continue statement after
980 handling 'E' operand character.
981 * config/tc-v850.c (md_assemble): Initialise the 'insn' variable.
982
983 2017-07-05 James Greenhalgh <james.greenhalgh@arm.com>
984
985 * config/tc-arm.c (arm_cpus): Add Cortex-A55 and Cortex-A75.
986 * doc/c-arm.texi (-mcpu): Document Cortex-A55 and Cortex-A75.
987
988 2017-07-05 Borislav Petkov <bp@suse.de>
989
990 * testsuite/gas/i386/opcode.s: Add tests for ModRM.reg == 6 variants.
991 * testsuite/gas/i386/opcode.d: ditto.
992 * testsuite/gas/i386/x86-64-opcode.s: Add x86_64 variants too.
993 * testsuite/gas/i386/x86-64-opcode.d: ditto.
994
995 2017-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
996
997 * config/tc-arm.c (arm_regs): Add MVFR2.
998 (do_vmrs): Constraint for MVFR2 and armv8.
999 (do_vmsr): Likewise.
1000 * testsuite/gas/arm/armv8-a+fp.d: Update.
1001 * testsuite/gas/arm/armv8-ar+fp.s: Likewise.
1002 * testsuite/gas/arm/armv8-r+fp.d: Likewise.
1003 * testsuite/gas/arm/vfp-bad.s: Likewise.
1004 * testsuite/gas/arm/vfp-bad.l: Likewise.
1005
1006 2017-07-04 Tristan Gingold <gingold@adacore.com>
1007
1008 * configure: Regenerate.
1009
1010 2017-07-04 Tristan Gingold <gingold@adacore.com>
1011
1012 * NEWS: Add marker for 2.29.
1013
1014 2017-07-03 Alan Modra <amodra@gmail.com>
1015
1016 * testsuite/gas/elf/symver.d: Don't run on hppa64-hpux.
1017
1018 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
1019
1020 * config/tc-mips.c (md_convert_frag): Use a switch on the
1021 microMIPS relaxation type rather than a chain of conditionals.
1022
1023 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
1024
1025 * config/tc-mips.c (md_convert_frag): Rewrite `fix_new_exp'
1026 calls in terms of `fix_new'.
1027
1028 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
1029
1030 * config/tc-mips.c (md_convert_frag): Don't make a helper
1031 expression symbol for `fix_new_exp' called with a non-zero
1032 offset.
1033 * testsuite/gas/mips/relax-offset.d: New test.
1034 * testsuite/gas/mips/mips1@relax-offset.d: New test.
1035 * testsuite/gas/mips/r3000@relax-offset.d: New test.
1036 * testsuite/gas/mips/r3900@relax-offset.d: New test.
1037 * testsuite/gas/mips/micromips@relax-offset.d: New test.
1038 * testsuite/gas/mips/relax-offset.l: New stderr output.
1039 * testsuite/gas/mips/relax-offset.s: New test source.
1040 * testsuite/gas/mips/mips.exp: Run the new tests.
1041
1042 2017-06-30 Georg-Johann Lay <avr@gjlay.de>
1043
1044 PR gas/21683
1045 * doc/c-avr.texi (AVR Options) <-mgcc-isr>: Document it.
1046 (AVR Pseudo Instructions): New node.
1047 * config/tc-avr.h (md_pre_output_hook): Define to avr_pre_output_hook.
1048 (md_undefined_symbol): Define to avr_undefined_symbol.
1049 (avr_pre_output_hook, avr_undefined_symbol): New protos.
1050 * config/tc-avr.c (struc-symbol.h): Include it.
1051 (ISR_CHUNK_Done, ISR_CHUNK_Prologue, ISR_CHUNK_Epilogue): New enums.
1052 (avr_isr, avr_gccisr_opcode)
1053 (avr_no_sreg_hash, avr_no_sreg): New static variables.
1054 (avr_opt_s) <have_gccisr>: Add field.
1055 (avr_opt): Add initializer for have_gccisr.
1056 (enum options) <OPTION_HAVE_GCCISR>: Add enum.
1057 (md_longopts) <"mgcc-isr">: Add entry.
1058 (md_show_usage): Document -mgcc-isr.
1059 (md_parse_option) [OPTION_HAVE_GCCISR]: Handle it.
1060 (md_undefined_symbol): Remove.
1061 (avr_undefined_symbol, avr_pre_output_hook): New fuctions.
1062 (md_begin) <avr_no_sreg_hash, avr_gccisr_opcode>: Initialize them.
1063 (avr_operand) <pregno>: Add argument and set *pregno if function
1064 is called for a register constraint.
1065 [N]: Handle constraint.
1066 (avr_operands) <avr_operand>: Pass 5th parameter to calls.
1067 [avr_opt.have_gccisr]: Call avr_update_gccisr. Call
1068 avr_gccisr_operands instead of avr_operands.
1069 (avr_update_gccisr, avr_emit_insn, avr_patch_gccisr_frag)
1070 (avr_gccisr_operands, avr_check_gccisr_done): New static functions.
1071 * testsuite/gas/avr/gccisr-01.d: New test.
1072 * testsuite/gas/avr/gccisr-01.s: New test.
1073 * testsuite/gas/avr/gccisr-02.d: New test.
1074 * testsuite/gas/avr/gccisr-02.s: New test.
1075 * testsuite/gas/avr/gccisr-03.d: New test.
1076 * testsuite/gas/avr/gccisr-03.s: New test.
1077
1078 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
1079
1080 * config/tc-mips.c (match_float_constant): Update description.
1081 (match_operand): Likewise.
1082
1083 2017-06-30 Andrew Bennett <andrew.bennett@imgtec.com>
1084 Maciej W. Rozycki <macro@imgtec.com>
1085
1086 * config/tc-mips.c (mips_ases): Add microMIPS XPA support.
1087 * testsuite/gas/mips/micromips@xpa.d: New test.
1088 * testsuite/gas/mips/mips.exp: Run the new test. Enable
1089 `xpa-virt-err' test for `micromips'.
1090
1091 2017-06-30 Andrew Bennett <andrew.bennett@imgtec.com>
1092 Maciej W. Rozycki <macro@imgtec.com>
1093
1094 * testsuite/gas/mips/micromips@r5.d: New test.
1095 * testsuite/gas/mips/mips.exp: Run the new test.
1096
1097 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
1098 Andrew Bennett <andrew.bennett@imgtec.com>
1099
1100 * config/tc-mips.c (mips_set_ase): Handle the ASE_XPA_VIRT flag.
1101 * testsuite/gas/mips/xpa.d: Remove `xpa' from `-M' in `objdump'
1102 flags. Add `-mvirt' to `as' flags.
1103 * testsuite/gas/mips/xpa-err.d: New test.
1104 * testsuite/gas/mips/xpa-virt-err.d: New test.
1105 * testsuite/gas/mips/xpa-err.l: New stderr output.
1106 * testsuite/gas/mips/xpa-virt-err.l: New stderr output.
1107 * testsuite/gas/mips/xpa-err.s: New test source.
1108 * testsuite/gas/mips/xpa-virt-err.s: New test source.
1109 * testsuite/gas/mips/mips.exp: Run the new tests.
1110
1111 2017-06-29 Maciej W. Rozycki <macro@imgtec.com>
1112
1113 * testsuite/gas/mips/mips16e2@mips16e2-mt-sub.d: Adjust for the
1114 ASE_MIPS16E2_MT flag disassembler fix.
1115 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e2-mt-sub.d:
1116 Likewise.
1117
1118 2017-06-29 Maciej W. Rozycki <macro@imgtec.com>
1119
1120 * config/tc-mips.c (mips_set_ase): Clear the ASE_MIPS16E2_MT
1121 flag before recalculating.
1122 * testsuite/gas/mips/mips16e2-mt-err.d: New test.
1123 * testsuite/gas/mips/mips16e2-mt-err.l: New stderr output.
1124 * testsuite/gas/mips/mips16e2-mt-err.s: New test source.
1125 * testsuite/gas/mips/mips.exp: Run the new test.
1126
1127 2017-06-28 Tamar Christina <tamar.christina@arm.com>
1128
1129 * config/tc-aarch64.c (aarch64_reg_parse_32_64): Accept 4B.
1130 (aarch64_features): Added dotprod.
1131 * doc/c-aarch64.texi: Added dotprod.
1132 * testsuite/gas/aarch64/dotproduct.d: New.
1133 * testsuite/gas/aarch64/dotproduct.s: New.
1134
1135 2017-06-28 Jiong Wang <jiong.wang@arm.com>
1136
1137 * config/tc-arm.c (fpu_neon_ext_dotprod): New variable.
1138 (neon_scalar_for_mul): Improve comments.
1139 (do_neon_dotproduct): New function to encode Dot Product instructions.
1140 (do_neon_dotproduct_s): Wrapper function for signed Dot Product
1141 instructions.
1142 (do_neon_dotproduct_u): Wrapper function for unsigned Dot Product
1143 instructions.
1144 (insns): New entries for vsdot and vudot.
1145 (arm_extensions): New entry for "dotprod".
1146 * doc/c-arm.texi: Document new "dotprod" extension.
1147 * testsuite/gas/arm/dotprod.s: New test source.
1148 * testsuite/gas/arm/dotprod-illegal.s: New test source.
1149 * testsuite/gas/arm/dotprod.d: New test.
1150 * testsuite/gas/arm/dotprod-thumb2.d: New test.
1151 * testsuite/gas/arm/dotprod-illegal.d: New test.
1152 * testsuite/gas/arm/dotprod-legacy-arch.d: New test.
1153 * testsuite/gas/arm/dotprod-illegal.l: New error file.
1154 * testsuite/gas/arm/dotprod-legacy-arch.l: New error file.
1155
1156 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
1157
1158 * testsuite/gas/mips/elf_mach_interaptiv-mr2.d: New test.
1159 * testsuite/gas/mips/save-err.d: New test.
1160 * testsuite/gas/mips/save-sub.d: New test.
1161 * testsuite/gas/mips/interaptiv-mr2@save.d: New test.
1162 * testsuite/gas/mips/mips1@save-sub.d: New test.
1163 * testsuite/gas/mips/mips2@save-sub.d: New test.
1164 * testsuite/gas/mips/mips3@save-sub.d: New test.
1165 * testsuite/gas/mips/mips4@save-sub.d: New test.
1166 * testsuite/gas/mips/mips5@save-sub.d: New test.
1167 * testsuite/gas/mips/mips32@save-sub.d: New test.
1168 * testsuite/gas/mips/mips64@save-sub.d: New test.
1169 * testsuite/gas/mips/mips16@save-sub.d: New test.
1170 * testsuite/gas/mips/mips16e@save-sub.d: New test.
1171 * testsuite/gas/mips/r3000@save-sub.d: New test.
1172 * testsuite/gas/mips/r3900@save-sub.d: New test.
1173 * testsuite/gas/mips/r4000@save-sub.d: New test.
1174 * testsuite/gas/mips/vr5400@save-sub.d: New test.
1175 * testsuite/gas/mips/interaptiv-mr2@save-sub.d: New test.
1176 * testsuite/gas/mips/sb1@save-sub.d: New test.
1177 * testsuite/gas/mips/octeon2@save-sub.d: New test.
1178 * testsuite/gas/mips/octeon3@save-sub.d: New test.
1179 * testsuite/gas/mips/xlr@save-sub.d: New test.
1180 * testsuite/gas/mips/r5900@save-sub.d: New test.
1181 * testsuite/gas/mips/mips16e2-copy.d: New test.
1182 * testsuite/gas/mips/mips16e2-copy-err.d: New test.
1183 * testsuite/gas/mips/save.d: Remove `MIPS16e' from the `name'
1184 option. Adjust for trailing padding change.
1185 * testsuite/gas/mips/mips16e2-copy-err.l: New stderr output.
1186 * testsuite/gas/mips/save-sub.s: New test source.
1187 * testsuite/gas/mips/mips16e2-copy.s: New test source.
1188 * testsuite/gas/mips/mips16e2-copy-err.s: New test source.
1189 * testsuite/gas/mips/save.s: Update description, change trailing
1190 padding and remove trailing white space.
1191 * testsuite/gas/mips/mips.exp: Expand `save' and `save-err'
1192 tests across the regular MIPS interAptiv MR2 architecture. Run
1193 the new tests.
1194
1195 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
1196
1197 * testsuite/gas/mips/mips.exp (interaptiv-mr2): New architecture.
1198 (mips16e2-interaptiv-mr2): Likewise.
1199 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro.d: New
1200 test.
1201 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-t.d:
1202 New test.
1203 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-e.d:
1204 New test.
1205 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-t.d:
1206 New test.
1207 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-e.d:
1208 New test.
1209 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-64.d: New
1210 test.
1211 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-sub.d: New
1212 test.
1213 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-sub.d: New
1214 test.
1215 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-64-sub.d:
1216 New test.
1217 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e2-mt-sub.d:
1218 New test.
1219 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-asmacro.d:
1220 New test.
1221 * testsuite/gas/mips/interaptiv-mr2@mcu.d: New test.
1222 * testsuite/gas/mips/interaptiv-mr2@isa-override-1.d: New test.
1223 * testsuite/gas/mips/interaptiv-mr2@isa-override-2.d: New test.
1224 * testsuite/gas/mips/attr-gnu-4-5.d: Ignore any number of ASE
1225 flag lines present rather than just one.
1226 * testsuite/gas/mips/attr-gnu-4-6.d: Likewise.
1227 * testsuite/gas/mips/attr-gnu-4-7.d: Likewise.
1228 * testsuite/gas/mips/attr-none-o32-fp64-nooddspreg.d: Likewise.
1229 * testsuite/gas/mips/attr-none-o32-fp64.d: Likewise.
1230 * testsuite/gas/mips/attr-none-o32-fpxx.d: Likewise.
1231 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro.l: New
1232 stderr output.
1233 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-t.l:
1234 New stderr output.
1235 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-e.l:
1236 New stderr output.
1237 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-t.l:
1238 New stderr output.
1239 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-e.l:
1240 New stderr output.
1241 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-sub.l: New
1242 stderr output.
1243 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-sub.l: New
1244 stderr output.
1245 * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-64-sub.l:
1246 New stderr output.
1247 * testsuite/gas/mips/interaptiv-mr2@isa-override-1.l: New stderr
1248 output.
1249 * testsuite/gas/mips/interaptiv-mr2@isa-override-2.l: New stderr
1250 output.
1251
1252 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
1253 Matthew Fortune <matthew.fortune@imgtec.com>
1254
1255 * config/tc-mips.c (validate_mips_insn): Handle
1256 OP_SAVE_RESTORE_LIST specially.
1257 (mips_encode_save_restore, mips16_encode_save_restore): New
1258 functions.
1259 (match_save_restore_list_operand): Factor out SAVE/RESTORE
1260 operand insertion into the instruction word or halfword to these
1261 new functions.
1262 (mips_cpu_info_table): Add "interaptiv-mr2" entry.
1263
1264 * doc/c-mips.texi (MIPS Options): Add `interaptiv-mr2' to the
1265 `-march=' argument list.
1266
1267 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1268
1269 * testsuite/gas/mips/mips16e-save.d: Rename to...
1270 * testsuite/gas/mips/save.d: ... this.
1271 * testsuite/gas/mips/mips16e-save-err.d: Update the
1272 `error-output' option and rename to...
1273 * testsuite/gas/mips/save-err.d: ... this.
1274 * testsuite/gas/mips/mips16e-save-err.l: Rename to...
1275 * testsuite/gas/mips/save-err.l: ... this.
1276 * testsuite/gas/mips/mips16e-save.s: Rename to...
1277 * testsuite/gas/mips/save.s: ... this.
1278 * testsuite/gas/mips/mips16e-save-err.s: Rename to...
1279 * testsuite/gas/mips/save-err.s: ... this.
1280 * testsuite/gas/mips/mips.exp: Rename `mips16e-save' and
1281 `mips16e-save-err' invocations to `save' and `save-err'
1282 respectively and reorder these tests away from MIPS16 tests.
1283
1284 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1285
1286 * testsuite/gas/mips/mips16e-save.d: Remove `-mmips:isa32
1287 -mmips:16' from `objdump' flags and `-march=mips32 -mips16' from
1288 `as' flags.
1289 * testsuite/gas/mips/mips16e-save-err.d: Remove `-march=mips32'
1290 from `as' flags.
1291 * testsuite/gas/mips/mips16e-save.s: Remove the `.set mips16'
1292 pseudo-op.
1293 * testsuite/gas/mips/mips16e-save-err.s: Likewise.
1294 * testsuite/gas/mips/mips.exp: Run SAVE/RESTORE tests across all
1295 MIPS16e architectures.
1296
1297 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1298
1299 * testsuite/gas/mips/mips16e-save-err.d: New test.
1300 * gas/testsuite/gas/mips/mips.exp: Fold `mips16e-save-err' list
1301 test into the new test.
1302
1303 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1304
1305 * testsuite/gas/mips/mips16e-save.d: Capitalize the `name'
1306 option.
1307
1308 2017-06-26 Kuan-Lin Chen <rufus@andestech.com>
1309
1310 * config/tc-riscv.c (md_apply_fix) [BFD_RELOC_32]: Convert to a
1311 R_RISCV_32_PCREL relocation.
1312
1313 2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
1314
1315 PR gas/21661
1316 * config/obj-elf.c (obj_elf_symver): Don't allow .symver with
1317 common symbol.
1318 (elf_frob_symbol): Likewise.
1319 * testsuite/gas/elf/elf.exp: Run pr21661.
1320 * testsuite/gas/elf/pr21661.d: New file.
1321 * testsuite/gas/elf/pr21661.s: Likewise.
1322
1323 2017-06-26 Nick Clifton <nickc@redhat.com>
1324
1325 * config/tc-arm.c (fpu_any): Only define for ELF based targets.
1326
1327 2017-06-26 Claudiu Zissulescu <claziss@synopsys.com>
1328
1329 * /config/tc-arc.c (is_br_jmp_insn_p): Update macro with known
1330 instructions to be accounted as jumps.
1331 (assemble_insn): Check for limms into the delay slots. Emit an
1332 error if so.
1333 * testsuite/gas/arc/asm-errors-3.d: New file.
1334 * testsuite/gas/arc/asm-errors-3.err: Likewise.
1335 * testsuite/gas/arc/asm-errors-3.s: Likewise.
1336
1337 2017-06-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1338
1339 * NEWS: Mention support of ARM Cortex-R52 processor.
1340 * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-R52 processor.
1341 * doc/c-arm.texi: Mention support for -mcpu=cortex-r52.
1342
1343 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
1344
1345 * NEWS: Mention support for ARMv8-R architecture.
1346 * config/tc-arm.c (arm_archs): Add entry for ARMv8-R.
1347 (arm_extensions): Restrict pan, ras and rdma extension to
1348 ARMv8-A and make crypto, fp and simd extensions available to
1349 ARMv8-R.
1350 (cpu_arch_ver): Add entry for ARMv8-R.
1351 (aeabi_set_public_attributes): Update gas_assert for Tag_DIV_use
1352 logic.
1353 * testsuite/gas/arm/armv8-a+fp.s: Rename into ...
1354 * testsuite/gas/arm/armv8-ar+fp.s: This. Remove .arch directive.
1355 * testsuite/gas/arm/armv8-a+fp.d: Specify source to assemble and
1356 architecture to assemble for.
1357 * testsuite/gas/arm/armv8-r+fp.d: New.
1358 * testsuite/gas/arm/armv8-a+simd.s: Rename into ...
1359 * testsuite/gas/arm/armv8-ar+simd.s: This. Remove .arch directive.
1360 * testsuite/gas/arm/armv8-a+simd.d: Specify source to assemble and
1361 architecture to assemble for.
1362 * testsuite/gas/arm/armv8-r+simd.d: New.
1363 * testsuite/gas/arm/armv8-a-bad.s: Rename into ...
1364 * testsuite/gas/arm/armv8-ar-bad.s: This. Remove .arch directive.
1365 * testsuite/gas/arm/armv8-a-bad.l: Rename into ...
1366 * testsuite/gas/arm/armv8-ar-bad.l: This. Decrement line number by 1.
1367 * testsuite/gas/arm/armv8-a-bad.d: Specify source to assemble,
1368 architecture to assemble for and adjust error output file.
1369 * testsuite/gas/arm/armv8-r-bad.d: New.
1370 * testsuite/gas/arm/armv8-a-barrier.s: Rename into ...
1371 * testsuite/gas/arm/armv8-ar-barrier.s: This.
1372 * testsuite/gas/arm/armv8-a-barrier-arm.d: Adjust source.
1373 * testsuite/gas/arm/armv8-a-barrier-thumb.d: Likewise.
1374 * testsuite/gas/arm/armv8-r-barrier-arm.d: New.
1375 * testsuite/gas/arm/armv8-r-barrier-thumb.d: New.
1376 * testsuite/gas/arm/armv8-a-it-bad.s: Rename into ...
1377 * testsuite/gas/arm/armv8-ar-it-bad.s: This. Remove .arch directive.
1378 * testsuite/gas/arm/armv8-a-it-bad.l: Rename into ...
1379 * testsuite/gas/arm/armv8-ar-it-bad.l: This. Decrement line number
1380 by 1.
1381 * testsuite/gas/arm/armv8-a-it-bad.d: Specify source to assemble,
1382 architecture to assemble for and adjust error output file.
1383 * testsuite/gas/arm/armv8-r-it-bad.d: New.
1384 * testsuite/gas/arm/armv8-a.s: Rename into ...
1385 * testsuite/gas/arm/armv8-ar.s: This. Remove .arch directive.
1386 * testsuite/gas/arm/armv8-a.d: Specify source to assemble and
1387 architecture to assemble for.
1388 * testsuite/gas/arm/armv8-r.d: New.
1389 * testsuite/gas/arm/attr-march-armv8-r+crypto.d: New.
1390 * testsuite/gas/arm/attr-march-armv8-r+fp.d: New.
1391 * testsuite/gas/arm/attr-march-armv8-r+simd.d: New.
1392 * testsuite/gas/arm/attr-march-armv8-r.d: New.
1393 * testsuite/gas/arm/crc32.s: Rename into ...
1394 * testsuite/gas/arm/crc32-armv8-ar.s: This.
1395 * testsuite/gas/arm/crc32.d: Rename into ...
1396 * testsuite/gas/arm/crc32-armv8-a.d: This. Specify source to assemble.
1397 * testsuite/gas/arm/crc32-armv8-r.d: New.
1398 * testsuite/gas/arm/crc32-bad.s: Rename into ...
1399 * testsuite/gas/arm/crc32-armv8-ar-bad.s: This.
1400 * testsuite/gas/arm/crc32-bad.d: Rename into ...
1401 * testsuite/gas/arm/crc32-armv8-a-bad.d: This. Specify source to
1402 assemble.
1403 * testsuite/gas/arm/crc32-armv8-r-bad.d: New.
1404 * testsuite/gas/arm/mask_1.s: Rename into ...
1405 * testsuite/gas/arm/mask_1-armv8-ar.s: This.
1406 * testsuite/gas/arm/mask_1.d: Rename into ...
1407 * testsuite/gas/arm/mask_1-armv8-a.d: This. Specify source to
1408 assemble.
1409 * testsuite/gas/arm/mask_1-armv8-r.d: new.
1410
1411 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
1412
1413 * config/tc-arm.c (arm_ext_v6m): Delete.
1414 (arm_ext_v7m): Delete.
1415 (arm_ext_m): Remove ARM_EXT_OS from the set of feature defined M
1416 profile.
1417 (arm_arch_v6m_only): Delete.
1418 (do_t_swi): Remove special case for ARMv6S-M.
1419 (md_assemble): Display error message previously in do_t_swi when
1420 SVC is not available.
1421 (insns): Guard swi and svc by arm_ext_os for Thumb mode.
1422 (aeabi_set_public_attributes): Remove special case for ARMv6S-M.
1423
1424 2017-05-11 Andrew Waterman <andrew@sifive.com>
1425
1426 * config/tc-riscv.c (riscv_ip): Changes as_warn to as_bad for improper
1427 shift amounts.
1428
1429 2017-06-22 Nick Clifton <nickc@redhat.com>
1430
1431 * config/tc-arm.c (arm_ext_v7m): Add ATTRIBUTE_UNUSED.
1432
1433 2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1434
1435 * config/tc-arm.c (fpu_any): Defined from FPU_ANY.
1436 (cpu_arch_ver): Add all architectures and sort by release date.
1437 (have_ext_for_needed_feat_p): New.
1438 (get_aeabi_cpu_arch_from_fset): New.
1439 (aeabi_set_public_attributes): Call above function to determine
1440 Tag_CPU_arch and Tag_CPU_arch_profile values. Adapt Tag_ARM_ISA_use
1441 and Tag_THUMB_ISA_use selection logic to check absence of feature bit
1442 accordingly.
1443 * testsuite/gas/arm/attr-march-armv1.d: Fix expected Tag_CPU_arch build
1444 attribute value.
1445 * testsuite/gas/arm/attr-march-armv2.d: Likewise.
1446 * testsuite/gas/arm/attr-march-armv2a.d: Likewise.
1447 * testsuite/gas/arm/attr-march-armv2s.d: Likewise.
1448 * testsuite/gas/arm/attr-march-armv3.d: Likewise.
1449 * testsuite/gas/arm/attr-march-armv3m.d: Likewise.
1450 * testsuite/gas/arm/pr12198-2.d: Likewise.
1451
1452 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1453
1454 * testsuite/gas/i386/cet-intel.d: Updated.
1455 * testsuite/gas/i386/cet.d: Likewise.
1456 * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
1457 * testsuite/gas/i386/x86-64-cet.d: Likewise.
1458 * testsuite/gas/i386/cet.s: Update incsspd and setssbsy tests.
1459 * testsuite/gas/i386/x86-64-cet.s: Likewise.
1460
1461 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1462
1463 * testsuite/gas/i386/cet-intel.d: Updated.
1464 * testsuite/gas/i386/cet.d: Likewise.
1465 * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
1466 * testsuite/gas/i386/x86-64-cet.d: Likewise.
1467 * testsuite/gas/i386/cet.s: Replace savessp with saveprevssp.
1468 * testsuite/gas/i386/x86-64-cet.s: Likewise.
1469
1470 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1471
1472 * config/tc-i386.c (md_assemble): Update NOTRACK prefix check.
1473 * testsuite/gas/i386/notrack-intel.d: Updated.
1474 * testsuite/gas/i386/notrack.d: Likewise.
1475 * testsuite/gas/i386/notrackbad.l: Likewise.
1476 * testsuite/gas/i386/x86-64-notrack-intel.d: Likewise.
1477 * testsuite/gas/i386/x86-64-notrack.d: Likewise.
1478 * testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
1479 * testsuite/gas/i386/notrack.s: Add NOTRACK prefix tests with
1480 memory indirect branch.
1481 * testsuite/gas/i386/x86-64-notrack.s: Likewise.
1482 * testsuite/gas/i386/notrackbad.s: Remove memory indirect branch
1483 with NOTRACK prefix.
1484 * testsuite/gas/i386/x86-64-notrackbad.s: Likewise.
1485
1486 2017-06-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
1487
1488 * config/tc-arm.c (arm_extensions): New duplicate idiv entry to enable
1489 Thumb division for ARMv7 architecture.
1490 (arm_parse_extension): Document expected behavior for duplicate
1491 entries.
1492 (s_arm_arch_extension): Likewise.
1493 * testsuite/gas/arm/forbid-armv7-idiv-ext.d: New test.
1494 * testsuite/gas/arm/forbid-armv7-idiv-ext.l: New expected output for
1495 above test.
1496
1497 2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1498
1499 * config/tc-arm.c (aeabi_set_public_attributes): Populate flags from
1500 feature bits used or selected_cpu depending on whether a CPU was
1501 selected by the user.
1502
1503 2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1504
1505 * config/tc-arm.c (aeabi_set_public_attributes): Test *mcpu_ext_opt to
1506 decide whether to set Tag_DSP_extension build attribute value. Remove
1507 now useless arm_arch variable.
1508
1509 2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1510
1511 * config/tc-arm.c (dyn_mcpu_ext_opt): New static variable.
1512 (dyn_march_ext_opt): Likewise.
1513 (md_begin): Copy extension feature bits alongside architecture ones.
1514 Merge extensions feature bits in selected_cpu and cpu_variant if there
1515 is some.
1516 (arm_parse_extension): Pass architecture and extension feature bits in
1517 separate parameters, with architecture bits being read only. Update
1518 **opt_p directly rather than *ext_set and initialize it if needed.
1519 (arm_parse_cpu): Stop merging architecture and extension feature bits
1520 and instead use mcpu_cpu_opt and dyn_mcpu_ext_opt to memorize them
1521 respectively. Adapt to change in parameters of arm_parse_extension.
1522 (arm_parse_arch): Adapt to change in parameters of arm_parse_extension.
1523 (aeabi_set_attribute_string): Make function static.
1524 (arm_md_post_relax): New function.
1525 (s_arm_cpu): Stop merging architecture and extension feature bits and
1526 instead use mcpu_cpu_opt and dyn_mcpu_ext_opt to memorize them
1527 respectively. Merge extension feature bits in cpu_variant
1528 if there is any.
1529 (s_arm_arch): Reset extension feature bit. Set selected_cpu from
1530 *mcpu_cpu_opt and cpu_variant from selected_cpu and *mfpu_opt for
1531 consistency with s_arm_cpu.
1532 (s_arm_arch_extension): Update *dyn_mcpu_ext_opt rather than
1533 selected_cpu, allocating it before hand if needed. Set selected_cpu
1534 from it and then cpu_variant.
1535 (s_arm_fpu): Merge *mcpu_ext_opt feature bits if any in cpu_variant.
1536 * config/tc-arm.h (md_post_relax_hook): Set to arm_md_post_relax.
1537 (aeabi_set_public_attributes): Delete external declaration.
1538 (arm_md_post_relax): Declare externally.
1539
1540 2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1541
1542 * config/tc-arm.c (struct arm_cpu_option_table): New ext field.
1543 (ARM_CPU_OPT): Add parameter to set new ext field and reorder canonical
1544 name field just after the name field.
1545 (arm_cpus): Move extension feature bit from value field to ext field,
1546 reorder parameter according to changes in ARM_CPU_OPT and reindent.
1547 (arm_parse_cpu): Point mcpu_cpu_opt to a bitfield merging the value and
1548 ext field from the selected arm_cpus entry.
1549 (s_arm_cpu): Likewise.
1550
1551 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
1552
1553 * config/tc-aarch64.c (aarch64_cpus): Add cortex-a55 and cortex-a75.
1554 * doc/c-aarch64.texi (-mcpu): Document cortex-a55 and cortex-a75.
1555
1556 2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
1557
1558 PR binutils/21594
1559 * testsuite/gas/i386/mpx.s: Add 2 tests with invalid bnd
1560 register.
1561 * testsuite/gas/i386/x86-64-mpx.s: Likewise.
1562 * testsuite/gas/i386/mpx.d: Updated.
1563 * testsuite/gas/i386/x86-64-mpx.d: Likewise.
1564
1565 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
1566
1567 * config/tc-xtensa.c (density_supported, xtensa_fetch_width,
1568 absolute_literals_supported): Leave definitions uninitialized.
1569 (directive_state): Leave entries for directive_density and
1570 directive_absolute_literals initialized to false.
1571 (xg_init_global_config, xtensa_init): New functions.
1572 * config/tc-xtensa.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
1573 (HOST_SPECIAL_INIT): New definition.
1574 (xtensa_init): New declaration.
1575
1576 2017-06-07 Michael Collison <michael.collison@arm.com>
1577
1578 * config/tc-aarch64.c (reg_entry_reg_names): Add IP0,
1579 IP1, FP, and LR as register aliases of register 16, 17, 29
1580 and 30 respectively.
1581 * testsuite/gas/aarch64/diagnostic.l: Remove diagnostic
1582 prohibiting register 'lr' which is now an alias.
1583 * testsuite/gas/aarch64/diagnostic.s: Remove instruction
1584 utilizing register 'lr' which is now an alias.
1585
1586 2017-06-06 Jiong Wang <jiong.wang@arm.com>
1587
1588 * config/tc-arm.c (reject_bad_reg): Allow REG_SP on ARMv8-A.
1589 (parse_operands): Allow REG_SP for OP_oRRnpcsp and OP_RRnpcsp on
1590 ARMv8-A.
1591 (do_co_reg): Allow REG_SP for Rd on ARMv8-A.
1592 (do_t_add_sub): Likewise.
1593 (do_t_mov_cmp): Likewise.
1594 (do_t_tb): Likewise.
1595 * testsuite/gas/arm/ld-sp-warn.l: Delete the warning on REG_SP as Rt for
1596 ldrsb.
1597 * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.d: New test.
1598 * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: New test.
1599 * testsuite/gas/arm/sp-pc-validations-bad-t.d: Specifies -march=armv7-a.
1600 * testsuite/gas/arm/sp-pc-validations-bad-t.s: Remove ".arch armv7-a".
1601 * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.d: New test.
1602 * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.l: New test.
1603 * testsuite/gas/arm/sp-usage-thumb2-relax-on-v8.d: New test.
1604 * testsuite/gas/arm/sp-usage-thumb2-relax.s: New test.
1605 * testsuite/gas/arm/strex-bad-t.d: Specifies -march=armv7-a.
1606
1607 2017-06-05 Jim Wilson <jim.wilson@linaro.org>
1608
1609 * config/tc-arm.c (arm_cpus): Delete falkor and qdf24xx entries.
1610 * doc/c-arm.texi (-mcpu): Likewise.
1611
1612 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
1613
1614 * config/tc-arc.c (cpu_types): Include arc-cpu.def
1615
1616 2017-05-23 H.J. Lu <hongjiu.lu@intel.com>
1617
1618 * gas/testsuite/gas/i386/notrackbad.l: Updated for non-ELF
1619 targets.
1620 * gas/testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
1621
1622 2017-05-23 Claudiu Zissulescu <claziss@synopsys.com>
1623
1624 * config/tc-arc.c (md_apply_fix): Use as_bad_where.
1625 (assemble_insn): Use as_bad.
1626
1627 2017-05-22 H.J. Lu <hongjiu.lu@intel.com>
1628
1629 * config/tc-i386.c (REX_PREFIX): Changed to 7.
1630 (NOTRACK_PREFIX): New.
1631 (MAX_PREFIXES): Changed to 8.
1632 (_i386_insn): Add notrack_prefix.
1633 (PREFIX_GROUP): Add PREFIX_DS.
1634 (add_prefix): Return PREFIX_DS for DS_PREFIX_OPCODE.
1635 (md_assemble): Check if NOTRACK prefix is supported.
1636 (parse_insn): Set notrack_prefix and issue an error for
1637 other prefixes after NOTRACK prefix.
1638 * testsuite/gas/i386/i386.exp: Run tests for NOTRACK prefix.
1639 * testsuite/gas/i386/notrack-intel.d: New file.
1640 * testsuite/gas/i386/notrack.d: Likewise.
1641 * testsuite/gas/i386/notrack.s: Likewise.
1642 * testsuite/gas/i386/notrackbad.l: Likewise.
1643 * testsuite/gas/i386/notrackbad.s: Likewise.
1644 * testsuite/gas/i386/x86-64-notrack-intel.d: Likewise.
1645 * testsuite/gas/i386/x86-64-notrack.d: Likewise.
1646 * testsuite/gas/i386/x86-64-notrack.s: Likewise.
1647 * testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
1648 * testsuite/gas/i386/x86-64-notrackbad.s: Likewise.
1649
1650 2017-05-22 Jiong Wang <jiong.wang@arm.com>
1651
1652 * configure.tgt: Set "arch" to "aarch64" if ${cpu} equals "aarch64".
1653 Recognize the new triplet name aarch64*-linux-gnu_ilp32.
1654 * configure.ac: Output DEFAULT_ARCH macro for AArch64.
1655 * configure: Regenerate.
1656 * config/tc-aarch64.h (aarch64_after_parse_args): New declaration.
1657 (md_after_parse_args): New define.
1658 * config/tc-aarch64.c (aarch64_abi_type): New enumeration
1659 AARCH64_ABI_NONE.
1660 (DEFAULT_ARCH): New define.
1661 (aarch64_abi): Set default value to AARCH64_ABI_NONE.
1662 (aarch64_after_parse_args): New function.
1663
1664 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
1665
1666 * config/tc-sparc.c (sparc_arch_table): Entries for `sparc6',
1667 `v9m8' and `v8plusm8'.
1668 (sparc_md_end): Handle SPARC_OPCODE_ARCH_M8.
1669 (get_hwcap_name): Support the M8 hardware capabilities.
1670 (sparc_ip): Handle new operand types.
1671 * doc/c-sparc.texi (Sparc-Opts): Document -Av9m8, -Av8plusm8 and
1672 -Asparc6, and the corresponding -xarch aliases.
1673 * testsuite/gas/sparc/sparc6.s: New file.
1674 * testsuite/gas/sparc/sparc6.d: Likewise.
1675 * testsuite/gas/sparc/sparc6-diag.s: Likewise.
1676 * testsuite/gas/sparc/sparc6-diag.l: Likewise.
1677 * testsuite/gas/sparc/fpcmpshl.s: Likewise.
1678 * testsuite/gas/sparc/fpcmpshl.d: Likewise.
1679 * testsuite/gas/sparc/fpcmpshl-diag.s: Likewise.
1680 * testsuite/gas/sparc/fpcmpshl-diag.l: Likewise.
1681 * testsuite/gas/sparc/ldm-stm.s: Likewise.
1682 * testsuite/gas/sparc/ldm-stm.d: Likewise.
1683 * testsuite/gas/sparc/ldm-stm-diag.s: Likewise.
1684 * testsuite/gas/sparc/ldm-stm-diag.l: Likewise.
1685 * testsuite/gas/sparc/ldmf-stmf.s: Likewise.
1686 * testsuite/gas/sparc/ldmf-stmf.d: Likewise.
1687 * testsuite/gas/sparc/ldmf-stmf-diag.s: Likewise.
1688 * testsuite/gas/sparc/ldmf-stmf-diag.l: Likewise.
1689 * testsuite/gas/sparc/on.s: Likewise.
1690 * testsuite/gas/sparc/on.d: Likewise.
1691 * testsuite/gas/sparc/on-diag.s: Likewise.
1692 * testsuite/gas/sparc/on-diag.l: Likewise.
1693 * testsuite/gas/sparc/rle.s: Likewise.
1694 * testsuite/gas/sparc/rle.d: Likewise.
1695 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run new tests.
1696 * testsuite/gas/sparc/rdasr.s: Add test for RDENTROPY.
1697 * testsuite/gas/sparc/rdasr.d: Likewise.
1698
1699 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
1700
1701 * testsuite/gas/sparc/call-relax.d: Support 32-bit targets.
1702 * testsuite/gas/sparc/sparc.exp (gas_64_check): Use -64 to
1703 run asi-bump-warn.
1704
1705 2017-05-19 Georg-Johann Lay <avr@gjlay.de>
1706
1707 PR ld/21472
1708 * config/tc-avr.c (mcu_types): Add entries for: attiny416,
1709 attiny417, attiny816, attiny817.
1710
1711 2017-05-18 Alan Modra <amodra@gmail.com>
1712
1713 * config/tc-aarch64.c: Don't compare booleans against TRUE or FALSE.
1714 * config/tc-hppa.c: Likewise.
1715 * config/tc-mips.c: Likewise.
1716 * config/tc-score7.c: Likewise.
1717
1718 2017-05-16 Alan Modra <amodra@gmail.com>
1719
1720 * write.c (GENERIC_FORCE_RELOCATION_LOCAL): Define.
1721 (TC_FORCE_RELOCATION_LOCAL): Use it.
1722 (GENERIC_FORCE_RELOCATION_SUB_SAME): Define.
1723 (TC_FORCE_RELOCATION_SUB_SAME): Use it.
1724 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL,
1725 TC_FORCE_RELOCATION_SUB_SAME): Use GENERIC defines.
1726 * config/tc-aarch64.h: Similarly.
1727 * config/tc-avr.h: Similarly.
1728 * config/tc-cris.h: Similarly.
1729 * config/tc-i386.h: Similarly.
1730 * config/tc-i960.h: Similarly.
1731 * config/tc-ia64.h: Similarly.
1732 * config/tc-microblaze.h: Similarly.
1733 * config/tc-mips.h: Similarly.
1734 * config/tc-msp430.h: Similarly.
1735 * config/tc-nds32.h: Similarly.
1736 * config/tc-pru.h: Similarly.
1737 * config/tc-riscv.h: Similarly.
1738 * config/tc-rl78.h: Similarly.
1739 * config/tc-s390.h: Similarly.
1740 * config/tc-sh.h: Similarly.
1741 * config/tc-sh64.h: Similarly.
1742 * config/tc-sparc.h: Similarly.
1743 * config/tc-xtensa.h: Similarly.
1744 * config/tc-mn10300.h: Similarly.
1745 (GENERIC_FORCE_RELOCATION_LOCAL): Define.
1746 * config/tc-msp430.c (msp430_force_relocation_local): Modify to
1747 be addition to rather than replacement of standard
1748 TC_FORCE_RELOCATION_LOCAL.
1749
1750 2017-05-15 Nick Clifton <nickc@redhat.com>
1751
1752 PR gas/21458
1753 * config/tc-arm.c (do_adr): If the ADR involves a thumb function
1754 symbol, ensure that the T bit will be set.
1755 (do_adrl): Likewise.
1756 (do_t_adr): Likewise.
1757 * testsuite/gas/arm/pr21458.s: New test.
1758 * testsuite/gas/arm/pr21458.d: New test driver.
1759
1760 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
1761
1762 * testsuite/gas/mips/mips16-pcrel-1.d: Remove `-mips3' from `as'
1763 flags.
1764 * testsuite/gas/mips/mips16-pcrel-pic-1.d: Likewise.
1765 * testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
1766 * testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
1767 * testsuite/gas/mips/mips16-pcrel-n64-0.d: Likewise.
1768 * testsuite/gas/mips/mips16-pcrel-n64-1.d: Likewise.
1769 * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
1770 * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
1771 * testsuite/gas/mips/mips16-pcrel-reloc-4.d: Likewise.
1772 * testsuite/gas/mips/mips16-pcrel-reloc-5.d: Likewise.
1773 * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Likewise.
1774 * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Likewise.
1775 * testsuite/gas/mips/mips16-pcrel-addend-4.d: Likewise.
1776 * testsuite/gas/mips/mips16-pcrel-addend-5.d: Likewise.
1777 * testsuite/gas/mips/mips16-pcrel-addend-6.d: Likewise.
1778 * testsuite/gas/mips/mips16-pcrel-addend-7.d: Likewise.
1779 * testsuite/gas/mips/mips16-pcrel-addend-9.d: Likewise.
1780 * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: Likewise.
1781 * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: Likewise.
1782 * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: Likewise.
1783 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d:
1784 Likewise.
1785 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d:
1786 Likewise.
1787 * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: Likewise.
1788 * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: Likewise.
1789 * testsuite/gas/mips/mips16-pcrel-absolute-2.d: Likewise.
1790 * testsuite/gas/mips/mips16-pcrel-absolute-3.d: Likewise.
1791 * testsuite/gas/mips/mips16-pcrel-absolute-6.d: Likewise.
1792 * testsuite/gas/mips/mips16-pcrel-absolute-7.d: Likewise.
1793 * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: Likewise.
1794 * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: Likewise.
1795 * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: Likewise.
1796 * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: Likewise.
1797 * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: Likewise.
1798 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d:
1799 Likewise.
1800 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d:
1801 Likewise.
1802 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d:
1803 Likewise.
1804 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d:
1805 Likewise.
1806 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d:
1807 Likewise.
1808 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d:
1809 Likewise.
1810 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
1811 Likewise.
1812 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
1813 Likewise.
1814 * testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: New test.
1815 * testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: New test.
1816 * testsuite/gas/mips/mips16e2@mips16-pcrel-2.d: New test.
1817 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: New test.
1818 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: New test.
1819 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d: New
1820 test.
1821 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d: New
1822 test.
1823 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: New test.
1824 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: New test.
1825 * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-2.d: New test.
1826 * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-3.d: New test.
1827 * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-6.d: New test.
1828 * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-7.d: New test.
1829 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-2.d: New test.
1830 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-3.d: New test.
1831 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-6.d: New test.
1832 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-7.d: New test.
1833 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-8.d: New test.
1834 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-9.d: New test.
1835 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n32-8.d: New
1836 test.
1837 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n32-9.d: New
1838 test.
1839 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n64-sym32-8.d:
1840 New test.
1841 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n64-sym32-9.d:
1842 New test.
1843 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute.d: New test.
1844 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-1.d: New
1845 test.
1846 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-2.d: New
1847 test.
1848 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-3.d: New
1849 test.
1850 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-4.d: New
1851 test.
1852 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-5.d: New
1853 test.
1854 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-6.d: New
1855 test.
1856 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-7.d: New
1857 test.
1858 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-4.d: New
1859 test.
1860 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-6.d: New
1861 test.
1862 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n32-4.d: New
1863 test.
1864 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n32-6.d: New
1865 test.
1866 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n64-sym32-4.d:
1867 New test.
1868 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n64-sym32-6.d:
1869 New test.
1870 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n32-4.d:
1871 New test.
1872 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n32-6.d:
1873 New test.
1874 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n64-sym32-4.d:
1875 New test.
1876 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n64-sym32-6.d:
1877 New test.
1878 * testsuite/gas/mips/mips16-pcrel-1.l: Adjust line numbers.
1879 * testsuite/gas/mips/mips16-pcrel-1.s: Adjust for alignment
1880 preservation between MIPS16 and MIPS16e2 code.
1881 * testsuite/gas/mips/mips.exp: Run MIPS16 relaxation tests over
1882 all MIPS16 architectures.
1883
1884 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
1885
1886 * testsuite/gas/mips/mips16e2.d: New test.
1887 * testsuite/gas/mips/mips16e2-mt.d: New test.
1888 * testsuite/gas/mips/mips16e2-sub.d: New test.
1889 * testsuite/gas/mips/mips16e2@mips16e2-sub.d: New test.
1890 * testsuite/gas/mips/mips16e2-mt-sub.d: New test.
1891 * testsuite/gas/mips/mips16e2@mips16e2-mt-sub.d: New test.
1892 * testsuite/gas/mips/mips16e2-hilo.d: New test.
1893 * testsuite/gas/mips/mips16e2-hilo-n32.d: New test.
1894 * testsuite/gas/mips/mips16e2-reloc-error.d: New test.
1895 * testsuite/gas/mips/mips16e2-imm-error.d: New test.
1896 * testsuite/gas/mips/elf_ase_mips16e2.d: New test.
1897 * testsuite/gas/mips/elf_ase_mips16e2-2.d: New test.
1898 * testsuite/gas/mips/elf-rel9-mips16e2.d: New test.
1899 * testsuite/gas/mips/mips16e2-lui.d: New test.
1900 * testsuite/gas/mips/mips16e2@mips32r2-sync.d: New test.
1901 * testsuite/gas/mips/mips16e2@mips32r2-sync-1.d: New test.
1902 * testsuite/gas/mips/mips16e2@lui-2.d: New test.
1903 * testsuite/gas/mips/mips16e2-reloc-error.l: New stderr output.
1904 * testsuite/gas/mips/mips16e2-imm-error.l: New stderr output.
1905 * testsuite/gas/mips/mips16e2@lui-2.l: New stderr output.
1906 * testsuite/gas/mips/mips16e2.s: New test source.
1907 * testsuite/gas/mips/mips16e2-mt.s: New test source.
1908 * testsuite/gas/mips/mips16e2-sub.s: New test source.
1909 * testsuite/gas/mips/mips16e2-mt-sub.s: New test source.
1910 * testsuite/gas/mips/mips16e2-hilo.s: New test source.
1911 * testsuite/gas/mips/mips16e2-reloc-error.s: New test source.
1912 * testsuite/gas/mips/mips16e2-imm-error.s: New test source.
1913 * testsuite/gas/mips/elf-rel9-mips16e2.s: New test source.
1914 * testsuite/gas/mips/mips16e2-lui.s: New test source.
1915 * testsuite/gas/mips/mips.exp: Expand `mips32r2-sync',
1916 `mips32r2-sync-1', `lui-1' and `lui-2' tests across MIPS16e2
1917 architectures. Run the new tests.
1918
1919 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
1920
1921 * testsuite/gas/mips/mips.exp (run_dump_test_arch): Add
1922 `mips16e2@' prefix.
1923 (run_list_test_arch): Likewise.
1924 (mips16e2-32, mips16e2-64): New architectures.
1925 * testsuite/gas/mips/mips16e2-32@mips16-macro.d: New test.
1926 * testsuite/gas/mips/mips16e2-32@mips16-macro-t.d: New test.
1927 * testsuite/gas/mips/mips16e2-32@mips16-macro-e.d: New test.
1928 * testsuite/gas/mips/mips16e2-32@mips16-insn-t.d: New test.
1929 * testsuite/gas/mips/mips16e2-32@mips16-insn-e.d: New test.
1930 * testsuite/gas/mips/mips16e2-32@mips16e-64.d: New test.
1931 * testsuite/gas/mips/mips16e2-32@mips16-sub.d: New test.
1932 * testsuite/gas/mips/mips16e2-32@mips16e-64-sub.d: New test.
1933 * testsuite/gas/mips/mips16e2@relax-swap3.d: New test.
1934 * testsuite/gas/mips/mips16-32@mips16-asmacro.d: Remove `source'
1935 tag. Add `-I$srcdir/$subdir' to `as' flags.
1936 * testsuite/gas/mips/mips16-64@mips16-asmacro.d: Likewise.
1937 * testsuite/gas/mips/mips16e2-32@mips16-macro.l: New stderr
1938 output.
1939 * testsuite/gas/mips/mips16e2-32@mips16-macro-t.l: New stderr
1940 output.
1941 * testsuite/gas/mips/mips16e2-32@mips16-macro-e.l: New stderr
1942 output.
1943 * testsuite/gas/mips/mips16e2-32@mips16-insn-t.l: New stderr
1944 output.
1945 * testsuite/gas/mips/mips16e2-32@mips16-insn-e.l: New stderr
1946 output.
1947 * testsuite/gas/mips/mips16-sub.s: Add `.set nomips16e2'.
1948 * testsuite/gas/mips/mips16e-sub.s: Likewise.
1949 * testsuite/gas/mips/mips16e-64-sub.s: Likewise.
1950 * testsuite/gas/mips/mips16-asmacro.s: Remove `.set mips32'.
1951 * testsuite/gas/mips/mips16-32@mips16-asmacro.s: New test
1952 source.
1953 * testsuite/gas/mips/mips16-64@mips16-asmacro.s: New test
1954 source.
1955
1956 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
1957 Matthew Fortune <matthew.fortune@imgtec.com>
1958 Andrew Bennett <andrew.bennett@imgtec.com>
1959
1960 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `e2' flag.
1961 (RELAX_MIPS16_E2): New macro.
1962 (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO)
1963 (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
1964 (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
1965 (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
1966 (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
1967 (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
1968 (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED, RELAX_MIPS16_MACRO)
1969 (RELAX_MIPS16_MARK_MACRO, RELAX_MIPS16_CLEAR_MACRO): Shift bits.
1970 (mips16_immed_extend): New prototype.
1971 (options): Add OPTION_MIPS16E2 and OPTION_NO_MIPS16E2 enum
1972 values.
1973 (md_longopts): Add "mmips16e2" and "mno-mips16e2" options.
1974 (mips_ases): Add "mips16e2" entry.
1975 (mips_set_ase): Handle MIPS16e2 ASE.
1976 (insn_insert_operand): Explicitly handle immediates with MIPS16
1977 instructions that require 32-bit encoding.
1978 (is_opcode_valid_16): Pass enabled ASE bitmask on to
1979 `opcode_is_member'.
1980 (validate_mips_insn): Explicitly handle immediates with MIPS16
1981 instructions that require 32-bit encoding.
1982 (operand_reg_mask) <OP_REG28>: Add handler.
1983 (match_reg28_operand): New function.
1984 (match_operand) <OP_REG28>: Add handler.
1985 (append_insn): Pass ASE_MIPS16E2 setting to RELAX_MIPS16_ENCODE.
1986 (match_mips16_insn): Handle MIPS16 instructions that require
1987 32-bit encoding and `V' and `u' operand codes.
1988 (mips16_ip): Allow any characters except from `.' in opcodes.
1989 (mips16_immed_extend): Handle 9-bit immediates. Do not shuffle
1990 immediates whose width is not one of these listed.
1991 (md_estimate_size_before_relax): Handle MIPS16e2 relaxation.
1992 (mips_relax_frag): Likewise.
1993 (md_convert_frag): Likewise.
1994 (mips_convert_ase_flags): Handle MIPS16e2 ASE.
1995
1996 * doc/as.texinfo (Target MIPS options): Add `-mmips16e2' and
1997 `-mno-mips16e2' options.
1998 (-mmips16e2, -mno-mips16e2): New options.
1999 * doc/c-mips.texi (MIPS Options): Add `-mmips16e2' and
2000 `-mno-mips16e2' options.
2001 (MIPS ASE Instruction Generation Overrides): Add `.set mips16e2'
2002 and `.set nomips16e2'.
2003
2004 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2005
2006 * config/tc-mips.c (match_int_operand): Call
2007 `match_out_of_range' before returning failure for 0x8000-0xffff
2008 values conditionally allowed.
2009
2010 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2011
2012 * config/tc-mips.c (match_int_operand): Call
2013 `match_not_constant' before returning failure for a non-constant
2014 16-bit immediate conditionally allowed.
2015
2016 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2017
2018 * config/tc-mips.c (match_const_int): Call `match_out_of_range'
2019 rather than `match_not_constant' for unrelocated operands
2020 retrieved as an `O_big' expression.
2021 (match_int_operand): Call `match_out_of_range' for relocatable
2022 operands retrieved as an `O_big' expression.
2023 (match_mips16_insn): Call `match_out_of_range' for relaxable
2024 operands retrieved as an `O_big' expression.
2025 * testsuite/gas/mips/addiu-error.d: New test.
2026 * testsuite/gas/mips/mips16@addiu-error.d: New test.
2027 * testsuite/gas/mips/micromips@addiu-error.d: New test.
2028 * testsuite/gas/mips/break-error.d: New test.
2029 * testsuite/gas/mips/lui-1.l: Adjust error message.
2030 * testsuite/gas/mips/addiu-error.l: New stderr output.
2031 * testsuite/gas/mips/mips16@addiu-error.l: New stderr output.
2032 * testsuite/gas/mips/micromips@addiu-error.l: New stderr output.
2033 * testsuite/gas/mips/break-error.l: New stderr output.
2034 * testsuite/gas/mips/addiu-error.s: New test source.
2035 * testsuite/gas/mips/break-error.s: New test source.
2036 * testsuite/gas/mips/mips.exp: Run the new tests.
2037
2038 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2039
2040 * config/tc-mips.c (match_mips16_insn): Remove the explicit
2041 OT_INTEGER check before the `match_expression' call.
2042 * testsuite/gas/mips/mips16-insn-e.l: Adjust messages.
2043 * testsuite/gas/mips/mips16-32@mips16-insn-e.l: Likewise.
2044 * testsuite/gas/mips/mips16-64@mips16-insn-e.l: Likewise.
2045 * testsuite/gas/mips/mips16e-32@mips16-insn-e.l: Likewise.
2046 * testsuite/gas/mips/mips16-reg-error.d: New test.
2047 * testsuite/gas/mips/mips16-reg-error.l: New stderr output.
2048 * testsuite/gas/mips/mips16-reg-error.s: New test source.
2049 * testsuite/gas/mips/mips.exp: Run the new test.
2050
2051 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2052
2053 * config/tc-mips.c (match_mips16_insn): Call
2054 `match_not_constant' for a disallowed relocation operation.
2055 * testsuite/gas/mips/mips16-reloc-error.d: New test.
2056 * testsuite/gas/mips/mips16-reloc-error.l: New stderr output.
2057 * testsuite/gas/mips/mips16-reloc-error.s: New test source.
2058 * testsuite/gas/mips/mips.exp: Run the new test.
2059
2060 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2061
2062 * testsuite/gas/mips/lui-1.d: New test.
2063 * testsuite/gas/mips/lui-2.d: New test.
2064 * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
2065 into the new tests.
2066
2067 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2068
2069 * config/tc-mips.c (match_const_int): Update description.
2070
2071 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2072
2073 * doc/as.texinfo (-mips16, -no-mips16): Refer to `.module
2074 mips16' rather than `.set mips16'.
2075 (-mmicromips, -mno-micromips): Refer to `.module micromips' and
2076 `.module nomicromips' rather than `.set micromips' and `.set
2077 nomicromips'.
2078 (-msmartmips, -mno-smartmips): Refer to `.module smartmips'
2079 rather than `.set smartmips'.
2080 * doc/c-mips.texi (MIPS Options): Refer to `.module mips16',
2081 `.module micromips', `.module nomicromips' and `.module
2082 smartmips' rather than `.set mips16', `.set micromips', `.set
2083 nomicromips' and `.set smartmips' respectively.
2084
2085 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
2086 Matthew Fortune <matthew.fortune@imgtec.com>
2087
2088 * config/tc-mips.c (mips_percent_op): Add "%gprel".
2089 (mips16_percent_op): Add "%gp_rel".
2090 * testsuite/gas/mips/elf-rel8.s:: Add `%gprel' forms.
2091 * testsuite/gas/mips/elf-rel8-mips16.s: Add `%gp_rel' forms.
2092 * testsuite/gas/mips/elf-rel8.d: Adjust accordingly.
2093 * testsuite/gas/mips/elf-rel8-mips16.d: Likewise.
2094
2095 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
2096
2097 * testsuite/gas/mips/mips16.d: Adjust BREAK disassembly.
2098 * testsuite/gas/mips/mips16-64@mips16.d: Likewise.
2099 * testsuite/gas/mips/mips16-64.d: Likewise.
2100 * testsuite/gas/mips/mips16-64@mips16-64.d: Likewise.
2101 * testsuite/gas/mips/mips16-macro.d: Likewise.
2102 * testsuite/gas/mips/mips16-64@mips16-macro.d: Likewise.
2103 * testsuite/gas/mips/mips16-sub.d: Likewise.
2104 * testsuite/gas/mips/mips16-32@mips16-sub.d: Likewise.
2105
2106 2017-05-11 Maciej W. Rozycki <macro@imgtec.com>
2107
2108 * testsuite/gas/mips/mips32r2-sync-1.d: New test.
2109 * testsuite/gas/mips/micromips@mips32r2-sync-1.d: New test.
2110 * testsuite/gas/mips/mips.exp: Run the new tests.
2111
2112 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
2113
2114 * testsuite/gas/mips/isa-override-2.d: New test.
2115 * testsuite/gas/mips/mips1@isa-override-2.d: New test.
2116 * testsuite/gas/mips/r3000@isa-override-2.d: New test.
2117 * testsuite/gas/mips/r3900@isa-override-2.d: New test.
2118 * testsuite/gas/mips/mips2@isa-override-2.d: New test.
2119 * testsuite/gas/mips/mips32@isa-override-2.d: New test.
2120 * testsuite/gas/mips/mips32r2@isa-override-2.d: New test.
2121 * testsuite/gas/mips/mips32r3@isa-override-2.d: New test.
2122 * testsuite/gas/mips/mips32r5@isa-override-2.d: New test.
2123 * testsuite/gas/mips/mips32r6@isa-override-2.d: New test.
2124 * testsuite/gas/mips/octeon3@isa-override-2.d: New test.
2125 * testsuite/gas/mips/r3000@isa-override-2.l: Remove list test.
2126 * testsuite/gas/mips/mips1@isa-override-2.s: Remove test source.
2127 * testsuite/gas/mips/r3000@isa-override-2.s: Remove test source.
2128 * testsuite/gas/mips/r3900@isa-override-2.s: Remove test source.
2129 * testsuite/gas/mips/mips2@isa-override-2.s: Remove test source.
2130 * testsuite/gas/mips/mips32@isa-override-2.s: Remove test
2131 source.
2132 * testsuite/gas/mips/mips32r2@isa-override-2.s: Remove test
2133 source.
2134 * testsuite/gas/mips/mips32r3@isa-override-2.s: Remove test
2135 source.
2136 * testsuite/gas/mips/mips32r5@isa-override-2.s: Remove test
2137 source.
2138 * testsuite/gas/mips/mips32r6@isa-override-2.s: Remove test
2139 source.
2140 * testsuite/gas/mips/octeon3@isa-override-2.s: Remove test
2141 source.
2142 * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
2143 into the new tests.
2144
2145 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
2146
2147 * testsuite/gas/mips/mips16e-sub.d: Correct test name.
2148 * testsuite/gas/mips/mips16-32@mips16e-sub.d: Likewise.
2149 * testsuite/gas/mips/mips16-64@mips16e-sub.d: Likewise.
2150 * testsuite/gas/mips/mips16e-64-sub.d: Likewise.
2151 * testsuite/gas/mips/mips16-32@mips16e-64-sub.d: Likewise.
2152 * testsuite/gas/mips/mips16-64@mips16e-64-sub.d: Likewise.
2153 * testsuite/gas/mips/mips16e-32@mips16e-64-sub.d: Likewise.
2154
2155 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
2156
2157 * testsuite/gas/mips/mips16-macro.l: Remove list test.
2158
2159 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
2160
2161 * testsuite/gas/mips/r3900@ecoff@ld.d: Remove test.
2162 * testsuite/gas/mips/mips2@ecoff@ld.d: Remove test.
2163 * testsuite/gas/mips/mips32@ecoff@ld.d: Remove test.
2164 * testsuite/gas/mips/mips32r2@ecoff@ld.d: Remove test.
2165 * testsuite/gas/mips/r3900@ecoff@ld-forward.d: Remove test.
2166 * testsuite/gas/mips/mips2@ecoff@ld-forward.d: Remove test.
2167 * testsuite/gas/mips/mips32@ecoff@ld-forward.d: Remove test.
2168 * testsuite/gas/mips/mips32r2@ecoff@ld-forward.d: Remove test.
2169 * testsuite/gas/mips/mips1@ecoff@sd.d: Remove test.
2170 * testsuite/gas/mips/r3000@ecoff@sd.d: Remove test.
2171 * testsuite/gas/mips/r3900@ecoff@sd.d: Remove test.
2172 * testsuite/gas/mips/mips2@ecoff@sd.d: Remove test.
2173 * testsuite/gas/mips/mips32@ecoff@sd.d: Remove test.
2174 * testsuite/gas/mips/mips32r2@ecoff@sd.d: Remove test.
2175 * testsuite/gas/mips/mips1@ecoff@sd-forward.d: Remove test.
2176 * testsuite/gas/mips/r3000@ecoff@sd-forward.d: Remove test.
2177 * testsuite/gas/mips/r3900@ecoff@sd-forward.d: Remove test.
2178 * testsuite/gas/mips/mips2@ecoff@sd-forward.d: Remove test.
2179 * testsuite/gas/mips/mips32@ecoff@sd-forward.d: Remove test.
2180 * testsuite/gas/mips/mips32r2@ecoff@sd-forward.d: Remove test.
2181
2182 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
2183
2184 * testsuite/gas/arc/attr-arc600.d: New file.
2185 * testsuite/gas/arc/attr-arc600_mul32x16.d: Likewise.
2186 * testsuite/gas/arc/attr-arc600_norm.d: Likewise.
2187 * testsuite/gas/arc/attr-arc601.d: Likewise.
2188 * testsuite/gas/arc/attr-arc601_mul32x16.d: Likewise.
2189 * testsuite/gas/arc/attr-arc601_mul64.d: Likewise.
2190 * testsuite/gas/arc/attr-arc601_norm.d: Likewise.
2191 * testsuite/gas/arc/attr-arc700.d: Likewise.
2192 * testsuite/gas/arc/attr-arcem.d: Likewise.
2193 * testsuite/gas/arc/attr-archs.d: Likewise.
2194 * testsuite/gas/arc/attr-autodetect-1.d: Likewise.
2195 * testsuite/gas/arc/attr-autodetect-1.s: Likewise.
2196 * testsuite/gas/arc/attr-cpu-a601.d: Likewise.
2197 * testsuite/gas/arc/attr-cpu-a601.s: Likewise.
2198 * testsuite/gas/arc/attr-cpu-a700.d: Likewise.
2199 * testsuite/gas/arc/attr-cpu-a700.s: Likewise.
2200 * testsuite/gas/arc/attr-cpu-em.d: Likewise.
2201 * testsuite/gas/arc/attr-cpu-em.s: Likewise.
2202 * testsuite/gas/arc/attr-cpu-hs.d: Likewise.
2203 * testsuite/gas/arc/attr-cpu-hs.s: Likewise.
2204 * testsuite/gas/arc/attr-em.d: Likewise.
2205 * testsuite/gas/arc/attr-em4.d: Likewise.
2206 * testsuite/gas/arc/attr-em4_dmips.d: Likewise.
2207 * testsuite/gas/arc/attr-em4_fpuda.d: Likewise.
2208 * testsuite/gas/arc/attr-em4_fpus.d: Likewise.
2209 * testsuite/gas/arc/attr-hs.d: Likewise.
2210 * testsuite/gas/arc/attr-hs34.d: Likewise.
2211 * testsuite/gas/arc/attr-hs38.d: Likewise.
2212 * testsuite/gas/arc/attr-hs38_linux.d: Likewise.
2213 * testsuite/gas/arc/attr-mul64.d: Likewise.
2214 * testsuite/gas/arc/attr-name.d: Likewise.
2215 * testsuite/gas/arc/attr-name.s: Likewise.
2216 * testsuite/gas/arc/attr-nps400.d: Likewise.
2217 * testsuite/gas/arc/attr-override-mcpu.d: Likewise.
2218 * testsuite/gas/arc/attr-override-mcpu.s
2219 * testsuite/gas/arc/attr-quarkse_em.d: Likewise.
2220 * testsuite/gas/arc/blank.s: Likewise.
2221 * testsuite/gas/elf/section2.e-arc: Likewise.
2222 * testsuite/gas/arc/cpu-pseudop-1.d: Update test.
2223 * testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
2224 * testsuite/gas/arc/nps400-0.d: Likewise.
2225 * testsuite/gas/elf/elf.exp: Set target_machine for ARC.
2226 * config/tc-arc.c (opcode/arc-attrs.h): Include.
2227 (ARC_GET_FLAG, ARC_SET_FLAG, streq): Define.
2228 (arc_attribute): Declare new function.
2229 (md_pseudo_table): Add arc_attribute.
2230 (cpu_types): Rename default cpu features.
2231 (selected_cpu): Set the default OSABI flag.
2232 (mpy_option): New variable.
2233 (pic_option): Likewise.
2234 (sda_option): Likewise.
2235 (tls_option): Likewise.
2236 (feature_type, feature_list): Remove.
2237 (arc_initial_eflag): Likewise.
2238 (attributes_set_explicitly): New variable.
2239 (arc_check_feature): Check also for the conflicting features.
2240 (arc_select_cpu): Refactor assignment of selected_cpu.eflags.
2241 (arc_option): Remove setting of private flags and architecture.
2242 (check_cpu_feature): Refactor feature names.
2243 (autodetect_attributes): New function.
2244 (assemble_tokens): Use above function.
2245 (md_parse_option): Refactor feature names.
2246 (arc_attribute): New function.
2247 (arc_set_attribute_int): Likewise.
2248 (arc_set_attribute_string): Likewise.
2249 (arc_stralloc): Likewise.
2250 (arc_set_public_attributes): Likewise.
2251 (arc_md_end): Likewise.
2252 (arc_copy_symbol_attributes): Likewise.
2253 (rc_convert_symbolic_attribute): Likewise.
2254 * config/tc-arc.h (md_end): Define.
2255 (CONVERT_SYMBOLIC_ATTRIBUTE): Likewise.
2256 (TC_COPY_SYMBOL_ATTRIBUTES): Likewise.
2257 * doc/c-arc.texi: Document ARC object attributes.
2258
2259 2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
2260
2261 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `pic', `sym32' and
2262 `nomacro' flags.
2263 (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO):
2264 New macros.
2265 (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
2266 (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
2267 (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
2268 (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
2269 (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
2270 (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): Shift bits.
2271 (RELAX_MIPS16_MACRO, RELAX_MIPS16_MARK_MACRO)
2272 (RELAX_MIPS16_CLEAR_MACRO): New macros.
2273 (append_insn): Pass `mips_pic', HAVE_32BIT_SYMBOLS and
2274 `mips_opts.warn_about_macros' settings to RELAX_MIPS16_ENCODE.
2275 (mips16_macro_frag): New function.
2276 (md_estimate_size_before_relax): Handle HI16/LO16 relaxation.
2277 (mips_relax_frag): Likewise.
2278 (md_convert_frag): Likewise.
2279
2280 * testsuite/gas/mips/mips16@relax-swap3.d: Remove error output,
2281 add dump patterns.
2282 * testsuite/gas/mips/mips16e@relax-swap3.d: New test
2283 subarchitecture.
2284 * testsuite/gas/mips/micromips@relax-swap3.d: Remove trailing
2285 NOP padding.
2286 * testsuite/gas/mips/mips16-pcrel-reloc-2.d: Remove error
2287 output, add dump patterns.
2288 * testsuite/gas/mips/mips16-pcrel-reloc-3.d: Remove error
2289 output, add dump patterns.
2290 * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Remove error
2291 output, add dump patterns.
2292 * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Remove error
2293 output, add dump patterns.
2294 * testsuite/gas/mips/mips16-pcrel-addend-2.d: Remove error
2295 output, add dump patterns.
2296 * testsuite/gas/mips/mips16-pcrel-addend-3.d: Remove error
2297 output, add dump patterns.
2298 * testsuite/gas/mips/mips16-pcrel-absolute.d: Remove error
2299 output, add dump patterns.
2300 * testsuite/gas/mips/mips16-pcrel-absolute-1.d: Remove error
2301 output, add dump patterns.
2302 * testsuite/gas/mips/mips16@relax-swap3.l: Remove file.
2303 * testsuite/gas/mips/mips16-pcrel-reloc-2.l: Remove file.
2304 * testsuite/gas/mips/mips16-pcrel-reloc-3.l: Remove file.
2305 * testsuite/gas/mips/mips16-pcrel-reloc-6.l: Remove file.
2306 * testsuite/gas/mips/mips16-pcrel-reloc-7.l: Remove file.
2307 * testsuite/gas/mips/mips16-pcrel-addend-2.l: Remove file.
2308 * testsuite/gas/mips/mips16-pcrel-addend-3.l: Remove file.
2309 * testsuite/gas/mips/mips16-pcrel-absolute.l: Remove file.
2310 * testsuite/gas/mips/mips16-pcrel-absolute-1.l: Remove file.
2311 * testsuite/gas/mips/relax-swap3.s: Adjust trailing padding.
2312
2313 * testsuite/gas/mips/mips16-pcrel-0.d: New test.
2314 * testsuite/gas/mips/mips16-pcrel-1.d: New test.
2315 * testsuite/gas/mips/mips16-pcrel-2.d: New test.
2316 * testsuite/gas/mips/mips16-pcrel-3.d: New test.
2317 * testsuite/gas/mips/mips16-pcrel-4.d: New test.
2318 * testsuite/gas/mips/mips16-pcrel-5.d: New test.
2319 * testsuite/gas/mips/mips16-pcrel-pic-0.d: New test.
2320 * testsuite/gas/mips/mips16-pcrel-pic-1.d: New test.
2321 * testsuite/gas/mips/mips16-pcrel-n32-0.d: New test.
2322 * testsuite/gas/mips/mips16-pcrel-n32-1.d: New test.
2323 * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: New test.
2324 * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: New test.
2325 * testsuite/gas/mips/mips16-pcrel-n64-0.d: New test.
2326 * testsuite/gas/mips/mips16-pcrel-n64-1.d: New test.
2327 * testsuite/gas/mips/mips16-pcrel-delay-0.d: New test.
2328 * testsuite/gas/mips/mips16-pcrel-delay-1.d: New test.
2329 * testsuite/gas/mips/mips16-pcrel-addend-4.d: New test.
2330 * testsuite/gas/mips/mips16-pcrel-addend-5.d: New test.
2331 * testsuite/gas/mips/mips16-pcrel-addend-6.d: New test.
2332 * testsuite/gas/mips/mips16-pcrel-addend-7.d: New test.
2333 * testsuite/gas/mips/mips16-pcrel-addend-8.d: New test.
2334 * testsuite/gas/mips/mips16-pcrel-addend-9.d: New test.
2335 * testsuite/gas/mips/mips16-pcrel-addend-pic-8.d: New test.
2336 * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: New test.
2337 * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: New test.
2338 * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: New test.
2339 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d: New test.
2340 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d: New test.
2341 * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: New test.
2342 * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: New test.
2343 * testsuite/gas/mips/mips16-pcrel-absolute-2.d: New test.
2344 * testsuite/gas/mips/mips16-pcrel-absolute-3.d: New test.
2345 * testsuite/gas/mips/mips16-pcrel-absolute-4.d: New test.
2346 * testsuite/gas/mips/mips16-pcrel-absolute-5.d: New test.
2347 * testsuite/gas/mips/mips16-pcrel-absolute-6.d: New test.
2348 * testsuite/gas/mips/mips16-pcrel-absolute-7.d: New test.
2349 * testsuite/gas/mips/mips16-pcrel-absolute-pic-4.d: New test.
2350 * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: New test.
2351 * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: New test.
2352 * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: New test.
2353 * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: New test.
2354 * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: New test.
2355 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d: New
2356 test.
2357 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d: New
2358 test.
2359 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d: New
2360 test.
2361 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d: New
2362 test.
2363 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d: New
2364 test.
2365 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d: New
2366 test.
2367 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
2368 New test.
2369 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
2370 New test.
2371 * testsuite/gas/mips/mips16-pcrel-0.l: New stderr output.
2372 * testsuite/gas/mips/mips16-pcrel-1.l: New stderr output.
2373 * testsuite/gas/mips/mips16-pcrel-2.l: New stderr output.
2374 * testsuite/gas/mips/mips16-pcrel-3.l: New stderr output.
2375 * testsuite/gas/mips/mips16-pcrel-4.l: New stderr output.
2376 * testsuite/gas/mips/mips16-pcrel-5.l: New stderr output.
2377 * testsuite/gas/mips/mips16-pcrel-delay-0.l: New stderr output.
2378 * testsuite/gas/mips/mips16-pcrel-delay-1.l: New stderr output.
2379 * testsuite/gas/mips/mips16-pcrel-addend-8.l: New stderr output.
2380 * testsuite/gas/mips/mips16-pcrel-addend-9.l: New stderr output.
2381 * testsuite/gas/mips/mips16-pcrel-absolute-4.l: New stderr
2382 output.
2383 * testsuite/gas/mips/mips16-pcrel-absolute-6.l: New stderr
2384 output.
2385 * testsuite/gas/mips/mips16-pcrel-0.s: New test source.
2386 * testsuite/gas/mips/mips16-pcrel-1.s: New test source.
2387 * testsuite/gas/mips/mips16-pcrel-2.s: New test source.
2388 * testsuite/gas/mips/mips16-pcrel-3.s: New test source.
2389 * testsuite/gas/mips/mips16-pcrel-4.s: New test source.
2390 * testsuite/gas/mips/mips16-pcrel-5.s: New test source.
2391 * testsuite/gas/mips/mips16-pcrel-delay-0.s: New test source.
2392 * testsuite/gas/mips/mips16-pcrel-delay-1.s: New test source.
2393 * testsuite/gas/mips/mips16-pcrel-addend-4.s: New test source.
2394 * testsuite/gas/mips/mips16-pcrel-addend-5.s: New test source.
2395 * testsuite/gas/mips/mips16-pcrel-addend-6.s: New test source.
2396 * testsuite/gas/mips/mips16-pcrel-addend-7.s: New test source.
2397 * testsuite/gas/mips/mips16-pcrel-addend-8.s: New test source.
2398 * testsuite/gas/mips/mips16-pcrel-addend-9.s: New test source.
2399 * testsuite/gas/mips/mips16-pcrel-absolute-2.s: New test.
2400 * testsuite/gas/mips/mips16-pcrel-absolute-3.s: New test.
2401 * testsuite/gas/mips/mips16-pcrel-absolute-4.s: New test.
2402 * testsuite/gas/mips/mips16-pcrel-absolute-5.s: New test.
2403 * testsuite/gas/mips/mips16-pcrel-absolute-6.s: New test.
2404 * testsuite/gas/mips/mips16-pcrel-absolute-7.s: New test.
2405 * testsuite/gas/mips/mips.exp: Run the new tests.
2406
2407 2017-05-03 Nick Clifton <nickc@redhat.com>
2408
2409 PR gas/20941
2410 * symbols.c (snapshot_symbol): Handle the case where
2411 resolve_expression returns a local symbol.
2412
2413 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
2414
2415 * config/tc-mips.c (append_insn): Call `symbol_append' for any
2416 expression symbol created for MIPS16 relaxation.
2417 (match_mips16_insn): Don't encode a constant value as an
2418 immediate with a PC-relative operand.
2419
2420 * testsuite/gas/mips/mips16-pcrel-absolute-1.d: New test.
2421 * testsuite/gas/mips/mips16-branch-absolute-1.d: New test.
2422 * testsuite/gas/mips/mips16-branch-absolute-2.d: New test.
2423 * testsuite/gas/mips/mips16-branch-absolute-addend-1.d: New
2424 test.
2425 * testsuite/gas/mips/mips16-branch-absolute-n32-1.d: New test.
2426 * testsuite/gas/mips/mips16-branch-absolute-n32-2.d: New test.
2427 * testsuite/gas/mips/mips16-branch-absolute-addend-n32-1.d: New
2428 test.
2429 * testsuite/gas/mips/mips16-branch-absolute-n64-1.d: New test.
2430 * testsuite/gas/mips/mips16-branch-absolute-n64-2.d: New test.
2431 * testsuite/gas/mips/mips16-branch-absolute-addend-n64-1.d: New
2432 test.
2433 * testsuite/gas/mips/mips16-pcrel-absolute-1.l: New stderr
2434 output.
2435 * testsuite/gas/mips/mips16-pcrel-absolute-1.s: New test source.
2436 * testsuite/gas/mips/mips16-branch-absolute-1.s: New test
2437 source.
2438 * testsuite/gas/mips/mips16-branch-absolute-2.s: New test
2439 source.
2440 * testsuite/gas/mips/mips16-branch-absolute-addend-1.s: New test
2441 source.
2442 * testsuite/gas/mips/mips.exp: Run the new tests.
2443
2444 2017-04-27 Maciej W. Rozycki <macro@imgtec.com>
2445
2446 * config/tc-mips.c (mips16_pcrel_val): New function, factored
2447 out from...
2448 (mips16_extended_frag): ... here.
2449 (md_convert_frag): Use `mips16_pcrel_val' rather than repeated
2450 code in MIPS16 relaxation, with `stretch' hardcoded to 0.
2451
2452 2017-04-27 Maciej W. Rozycki <macro@imgtec.com>
2453
2454 * config/tc-mips.c (RELAX_MIPS16_LONG_BRANCH): Rename to...
2455 (RELAX_MIPS16_ALWAYS_EXTENDED): ... this.
2456 (RELAX_MIPS16_MARK_LONG_BRANCH): Rename to...
2457 (RELAX_MIPS16_MARK_ALWAYS_EXTENDED): ... this.
2458 (RELAX_MIPS16_CLEAR_LONG_BRANCH): Rename to...
2459 (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): ... this.
2460 (mips16_extended_frag): Adjust accordingly.
2461
2462 2017-04-27 Alan Modra <amodra@gmail.com>
2463
2464 * symbols.c (S_FORCE_RELOC): Separate section and symbol tests.
2465
2466 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
2467
2468 * config/tc-mips.c (RELAX_ENCODE): Add `PIC' flag.
2469 (RELAX_PIC): New macro.
2470 (RELAX_USE_SECOND, RELAX_SECOND_LONGER, RELAX_NOMACRO)
2471 (RELAX_DELAY_SLOT, RELAX_DELAY_SLOT_16BIT)
2472 (RELAX_DELAY_SLOT_SIZE_FIRST, RELAX_DELAY_SLOT_SIZE_SECOND):
2473 Shift bits.
2474 (RELAX_BRANCH_ENCODE): Add `pic' flag.
2475 (RELAX_BRANCH_UNCOND, RELAX_BRANCH_LIKELY, RELAX_BRANCH_LINK)
2476 (RELAX_BRANCH_TOOFAR): Shift bits.
2477 (RELAX_BRANCH_PIC): New macro.
2478 (RELAX_MICROMIPS_ENCODE): Add `pic' flag.
2479 (RELAX_MICROMIPS_PIC): New macro.
2480 (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
2481 (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_NODS)
2482 (RELAX_MICROMIPS_RELAX32): Shift bits.
2483 (relax_close_frag): Pass `mips_pic' setting to RELAX_ENCODE.
2484 (append_insn): Pass `mips_pic' setting to RELAX_BRANCH_ENCODE
2485 and RELAX_MICROMIPS_ENCODE, and record it in `fx_tcbit2' of the
2486 first fixup created.
2487 (md_apply_fix) <BFD_RELOC_16_PCREL_S2>: Use `fx_tcbit2' of the
2488 fixup processed rather than `mips_pic' in choosing to relax an
2489 out of range branch to a jump.
2490 (relaxed_branch_length): Use the `pic' flag of the relaxed frag
2491 rather than `mips_pic'.
2492 (relaxed_micromips_32bit_branch_length): Likewise.
2493 (md_estimate_size_before_relax): Likewise.
2494 (md_convert_frag): Likewise.
2495
2496 * testsuite/gas/mips/option-pic-relax-0.d: New test.
2497 * testsuite/gas/mips/option-pic-relax-1.d: New test.
2498 * testsuite/gas/mips/option-pic-relax-2.d: New test.
2499 * testsuite/gas/mips/option-pic-relax-3.d: New test.
2500 * testsuite/gas/mips/option-pic-relax-3a.d: New test.
2501 * testsuite/gas/mips/option-pic-relax-4.d: New test.
2502 * testsuite/gas/mips/option-pic-relax-5.d: New test.
2503 * testsuite/gas/mips/option-pic-relax-2.l: New stderr output.
2504 * testsuite/gas/mips/option-pic-relax-3.l: New stderr output.
2505 * testsuite/gas/mips/option-pic-relax-4.l: New stderr output.
2506 * testsuite/gas/mips/option-pic-relax-5.l: New stderr output.
2507 * testsuite/gas/mips/option-pic-relax-0.s: New test source.
2508 * testsuite/gas/mips/option-pic-relax-1.s: New test source.
2509 * testsuite/gas/mips/option-pic-relax-2.s: New test source.
2510 * testsuite/gas/mips/option-pic-relax-3.s: New test source.
2511 * testsuite/gas/mips/option-pic-relax-4.s: New test source.
2512 * testsuite/gas/mips/option-pic-relax-5.s: New test source.
2513 * testsuite/gas/mips/mips.exp: Run the new tests.
2514
2515 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
2516
2517 * testsuite/gas/arc/leave_enter.d: Update test.
2518 * testsuite/gas/arc/leave_enter.s: Likewise.
2519
2520 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
2521
2522 * testsuite/gas/arc/b.d: Update test.
2523 * testsuite/gas/arc/noargs_hs.d: Likewise.
2524
2525 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
2526
2527 * config/tc-mips.c (md_convert_frag): Correct
2528 BFD_RELOC_MIPS16_16_PCREL_S1 fixup size.
2529 * testsuite/gas/mips/mips16-branch-addend-4.d: New test.
2530 * testsuite/gas/mips/mips16-branch-addend-5.d: New test.
2531 * testsuite/gas/mips/mips16-branch-addend-5.l: New stderr
2532 output.
2533 * testsuite/gas/mips/mips16-branch-addend-4.s: New test source.
2534 * testsuite/gas/mips/mips16-branch-addend-5.s: New test source.
2535 * testsuite/gas/mips/mips.exp: Run the new tests.
2536
2537 2017-04-25 Jose E. Marchesi <jose.marchesi@oracle.com>
2538
2539 PR gas/21407
2540 * config/tc-sparc.c (md_apply_fix): Do not transform `call'
2541 instructions into branch instructions in fixups generating
2542 additional relocations.
2543 * testsuite/gas/sparc/call-relax.s: New file.
2544 * testsuite/gas/sparc/call-relax.d: Likewise.
2545 * testsuite/gas/sparc/call-relax-aout.d: Likewise.
2546 * testsuite/gas/sparc/sparc.exp: Test call-relax and call-relax-aout.
2547
2548 2017-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
2549
2550 * config/tc-arm.c (move_or_literal_pool): Remove code generating MOVS.
2551 Forbid MOV.W and MOVW if destination is SP or PC.
2552 * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s: Explain
2553 expectation of LDR not generating a MOVS for low registers and small
2554 constants. Add tests of MOVW generation.
2555 * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Update
2556 expected disassembly.
2557
2558 2017-04-22 Alan Modra <amodra@gmail.com>
2559
2560 * testsuite/gas/ppc/vle.s: Format. Add se_rfgi and e_sc.
2561 * testsuite/gas/ppc/vle.d: Update.
2562
2563 2017-04-21 Nick Clifton <nickc@redhat.com>
2564
2565 PR binutils/21380
2566 * testsuite/gas/aarch64/illegal-3.s: New file.
2567 * testsuite/gas/aarch64/illegal-3.d: New file.
2568
2569 2017-04-11 Alan Modra <amodra@gmail.com>
2570
2571 * config/tc-ppc.c (md_show_usage): Delete mention of -mhtm.
2572 * testsuite/gas/ppc/htm.d: Pass -mpower8 and -Mpower8.
2573
2574 2017-04-10 Max Filippov <jcmvbkbc@gmail.com>
2575
2576 * config/tc-xtensa.c (xtensa_maybe_create_literal_pool_frag):
2577 Initialize lps->frag_count with auto_litpool_limit.
2578 (xg_promote_candidate_litpool): New function.
2579 (xtensa_move_literals): Extract candidate litpool promotion code
2580 into separate function. Call it for all possible found
2581 candidates.
2582 (xtensa_switch_to_literal_fragment): Drop 'recursive' flag and
2583 call to xtensa_mark_literal_pool_location that it guards.
2584 Replace it with call to xtensa_maybe_create_literal_pool_frag.
2585 Initialize pool_location with created literal pool candidate.
2586 * testsuite/gas/xtensa/all.exp: Add new tests.
2587 * testsuite/gas/xtensa/auto-litpools-first1.d: New test results.
2588 * testsuite/gas/xtensa/auto-litpools-first1.s: New test.
2589 * testsuite/gas/xtensa/auto-litpools-first2.d: New test results.
2590 * testsuite/gas/xtensa/auto-litpools-first2.s: New test.
2591 * testsuite/gas/xtensa/auto-litpools.d: Fix offsets changed due
2592 to additional jump instruction.
2593
2594 2017-04-07 Alan Modra <amodra@gmail.com>
2595
2596 * testsuite/gas/ppc/altivec2.s: Delete E6500 vector insns.
2597 * testsuite/gas/ppc/altivec2.d: Adjust to suit.
2598
2599 2017-04-07 Alan Modra <amodra@gmail.com>
2600
2601 * testsuite/gas/elf/section12a.d: Don't expect alignment of 1
2602 for .mbind.text.
2603
2604 2017-04-06 Pip Cet <pipcet@gmail.com>
2605
2606 * testsuite/gas/wasm32/allinsn.d: Adjust test for disassembler
2607 changes.
2608 * testsuite/gas/wasm32/disass.d: New test.
2609 * testsuite/gas/wasm32/disass.s: New test.
2610 * testsuite/gas/wasm32/disass-2.d: New test.
2611 * testsuite/gas/wasm32/disass-2.s: New test.
2612 * testsuite/gas/wasm32/reloc.d: Adjust test for changed reloc
2613 names.
2614 * testsuite/gas/wasm32/reloc.s: Update test for changed assembler
2615 syntax.
2616 * testsuite/gas/wasm32/wasm32.exp: Run new tests. Expect allinsn
2617 test to succeed.
2618
2619 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
2620
2621 * NEWS: Mention support for ELF SHF_GNU_MBIND.
2622 * config/obj-elf.c (section_match): New.
2623 (get_section): Match both sh_info and group name.
2624 (obj_elf_change_section): Add argument for sh_info. Pass both
2625 sh_info and group name to get_section. Issue an error for
2626 SHF_GNU_MBIND section without SHF_ALLOC. Set sh_info.
2627 (obj_elf_parse_section_letters): Set SHF_GNU_MBIND for 'd'.
2628 (obj_elf_section): Support SHF_GNU_MBIND section info.
2629 * config/obj-elf.h (obj_elf_change_section): Add argument for
2630 sh_info.
2631 * config/tc-arm.c (start_unwind_section): Pass 0 as sh_info to
2632 obj_elf_change_section.
2633 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
2634 * config/tc-microblaze.c (microblaze_s_data): Likewise.
2635 (microblaze_s_sdata): Likewise.
2636 (microblaze_s_rdata): Likewise.
2637 (microblaze_s_bss): Likewise.
2638 * config/tc-mips.c (s_change_section): Likewise.
2639 * config/tc-msp430.c (msp430_profiler): Likewise.
2640 * config/tc-rx.c (parse_rx_section): Likewise.
2641 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
2642 * doc/as.texinfo: Document 'd' for SHF_GNU_MBIND.
2643 * testsuite/gas/elf/elf.exp: Run section12a, section12b and
2644 section13.
2645 * testsuite/gas/elf/section10.d: Updated.
2646 * testsuite/gas/elf/section10.s: Likewise.
2647 * testsuite/gas/elf/section12.s: New file.
2648 * testsuite/gas/elf/section12a.d: Likewise.
2649 * testsuite/gas/elf/section12b.d: Likewise.
2650 * testsuite/gas/elf/section13.l: Likewise.
2651 * testsuite/gas/elf/section13.d: Likewise.
2652 * testsuite/gas/elf/section13.s: Likewise.
2653
2654 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
2655
2656 * config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to
2657 avoid const warnings.
2658
2659 2017-03-30 Palmer Dabbelt <palmer@dabbelt.com>
2660
2661 * config/tc-riscv.c (riscv_clear_subsets): New function.
2662 (riscv_add_subset): Call riscv_clear_subsets and riscv_set_rvc to
2663 clear RVC when it's been previously set.
2664
2665 2017-03-31 Nick Clifton <nickc@redhat.com>
2666
2667 PR gas/21333
2668 * config/tc-s390.c (tc_s390_fix_adjustable): Allow non pc-relative
2669 fixups in mergeable sections to be adjusted.
2670
2671 2017-03-30 Pip Cet <pipcet@gmail.com>
2672
2673 * config/tc-wasm32.h: New file: Add WebAssembly assembler target.
2674 * config/tc-wasm32.c: New file: Add WebAssembly assembler target.
2675 * Makefile.am: Add WebAssembly assembler target.
2676 * configure.tgt: Add WebAssembly assembler target.
2677 * doc/c-wasm32.texi: New file: Start documenting WebAssembly
2678 assembler.
2679 * doc/all.texi: Define WASM32.
2680 * doc/as.texinfo: Add WebAssembly entries.
2681 * NEWS: Mention the new support.
2682 * Makefile.in: Regenerate.
2683 * po/gas.pot: Regenerate.
2684 * po/POTFILES.in: Regenerate.
2685 * testsuite/gas/wasm32: New directory.
2686 * testsuite/gas/wasm32/allinsn.d: New file.
2687 * testsuite/gas/wasm32/allinsn.s: New file.
2688 * testsuite/gas/wasm32/illegal.l: New file.
2689 * testsuite/gas/wasm32/illegal.s: New file.
2690 * testsuite/gas/wasm32/illegal-2.l: New file.
2691 * testsuite/gas/wasm32/illegal-2.s: New file.
2692 * testsuite/gas/wasm32/illegal-3.l: New file.
2693 * testsuite/gas/wasm32/illegal-3.s: New file.
2694 * testsuite/gas/wasm32/illegal-4.l: New file.
2695 * testsuite/gas/wasm32/illegal-4.s: New file.
2696 * testsuite/gas/wasm32/illegal-5.l: New file.
2697 * testsuite/gas/wasm32/illegal-5.s: New file.
2698 * testsuite/gas/wasm32/illegal-6.l: New file.
2699 * testsuite/gas/wasm32/illegal-6.s: New file.
2700 * testsuite/gas/wasm32/illegal-7.l: New file.
2701 * testsuite/gas/wasm32/illegal-7.s: New file.
2702 * testsuite/gas/wasm32/illegal-8.l: New file.
2703 * testsuite/gas/wasm32/illegal-8.s: New file.
2704 * testsuite/gas/wasm32/illegal-9.l: New file.
2705 * testsuite/gas/wasm32/illegal-9.s: New file.
2706 * testsuite/gas/wasm32/illegal-10.l: New file.
2707 * testsuite/gas/wasm32/illegal-10.s: New file.
2708 * testsuite/gas/wasm32/illegal-11.l: New file.
2709 * testsuite/gas/wasm32/illegal-11.s: New file.
2710 * testsuite/gas/wasm32/illegal-12.l: New file.
2711 * testsuite/gas/wasm32/illegal-12.s: New file.
2712 * testsuite/gas/wasm32/illegal-13.l: New file.
2713 * testsuite/gas/wasm32/illegal-13.s: New file.
2714 * testsuite/gas/wasm32/illegal-14.l: New file.
2715 * testsuite/gas/wasm32/illegal-14.s: New file.
2716 * testsuite/gas/wasm32/illegal-15.l: New file.
2717 * testsuite/gas/wasm32/illegal-15.s: New file.
2718 * testsuite/gas/wasm32/illegal-16.l: New file.
2719 * testsuite/gas/wasm32/illegal-16.s: New file.
2720 * testsuite/gas/wasm32/illegal-17.l: New file.
2721 * testsuite/gas/wasm32/illegal-17.s: New file.
2722 * testsuite/gas/wasm32/illegal-18.l: New file.
2723 * testsuite/gas/wasm32/illegal-18.s: New file.
2724 * testsuite/gas/wasm32/illegal-19.l: New file.
2725 * testsuite/gas/wasm32/illegal-19.s: New file.
2726 * testsuite/gas/wasm32/illegal-20.l: New file.
2727 * testsuite/gas/wasm32/illegal-20.s: New file.
2728 * testsuite/gas/wasm32/illegal-21.l: New file.
2729 * testsuite/gas/wasm32/illegal-21.s: New file.
2730 * testsuite/gas/wasm32/illegal-22.l: New file.
2731 * testsuite/gas/wasm32/illegal-22.s: New file.
2732 * testsuite/gas/wasm32/illegal-24.l: New file.
2733 * testsuite/gas/wasm32/illegal-24.s: New file.
2734 * testsuite/gas/wasm32/illegal-25.l: New file.
2735 * testsuite/gas/wasm32/illegal-25.s: New file.
2736 * testsuite/gas/wasm32/reloc.d: New file.
2737 * testsuite/gas/wasm32/reloc.s: New file.
2738 * testsuite/gas/wasm32/wasm32.exp: New tests for WebAssembly
2739 architecture.
2740
2741 2017-03-29 Alan Modra <amodra@gmail.com>
2742
2743 * config/tc-ppc.c (md_parse_option): Reject -mraw.
2744
2745 2017-03-27 Alan Modra <amodra@gmail.com>
2746
2747 PR 21303
2748 * testsuite/gas/ppc/pr21303.d,
2749 * testsuite/gas/ppc/pr21303.s: New test
2750 * testsuite/gas/ppc/ppc.exp: Run it.
2751
2752 2017-03-27 Rinat Zelig <rinat@mellanox.com>
2753
2754 * testsuite/gas/arc/nps400-12.s: New file.
2755 * testsuite/gas/arc/nps400-12.d: New file.
2756
2757 2017-03-24 Thomas preud'homme <thomas.preudhomme@arm.com>
2758
2759 * config/tc-arm.: (md_begin): Set selected_cpu from *mcpu_cpu_opt when
2760 CPU_DEFAULT is defined.
2761
2762 2017-03-21 Palmer Dabbbelt <palmer@dabbelt.com>
2763
2764 * config/tc-riscv.c (md_show_usage): Remode defuct -m32, -m64,
2765 -msoft-float, -mhard-float, -mno-rvc, and -mrvc options; and don't
2766 print an invalid default ISA string.
2767 * doc/c-riscv.texi (OPTIONS): Add -fpic and -fno-pic options.
2768
2769 2017-03-22 Max Filippov <jcmvbkbc@gmail.com>
2770
2771 * config/tc-xtensa.c (xtensa_relax_frag): Change fx_size of the
2772 reassigned fixup to size of jump instruction (3) and fx_r_type
2773 to BFD_RELOC_XTENSA_SLOT0_OP, as there's only one slot.
2774 (add_jump_to_trampoline): Search
2775 origfrag->tc_frag_data.slot_symbols for the slot with non-NULL
2776 symbol and use that slot instead of slot 0.
2777
2778 2017-03-21 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2779
2780 * config/tc-s390.c (s390_parse_cpu): Remove S390_INSTR_FLAG_VX2
2781 from cpu_table. Remove vx2, and novx2 from cpu_flags.
2782
2783 2017-03-21 Rinat Zelig <rinat@mellanox.com>
2784
2785 * testsuite/gas/arc/nps400-11.s: New file.
2786 * testsuite/gas/arc/nps400-11.d: New file.
2787
2788 2017-03-20 Nick Clifton <nickc@redhat.com>
2789
2790 * doc/as.texinfo (2byte): Note that if no expressions are present
2791 the directive does nothing. Emphasize that the output is
2792 unaligned, and that this can have an effect on the relocations
2793 generated.
2794 (4byte): Simplify description. Refer back to the 2byte
2795 description.
2796 (8byte): Likewise.
2797
2798 2017-03-20 Richard Earnshaw <rearnsha@arm.com>
2799
2800 * config/tc-arm.c (arm_fpus): Note entires that should not be
2801 documented.
2802 * doc/c-arm.texi (-mfpu): Add missing FPU entries for neon-vfpv3 and
2803 neon-fp16. Fix spelling error.
2804
2805 2017-03-20 Richard Earnshaw <rearnsha@arm.com>
2806
2807 * config/tc-arm.c (arm_fpus): Add neon-vfpv3 as an alias for neon.
2808
2809 2017-03-16 Rinat Zelig <rinat@mellanox.com>
2810
2811 * config/tc-arc.c (assemble_insn): Only handle ".t" and ".nt"
2812 specially for ARCv2.
2813
2814 2017-03-14 Kito Cheng <kito.cheng@gmail.com>
2815
2816 * config/tc-riscv.c (validate_riscv_insn): Add 'o' RVC immediate
2817 encoding format, which can accept 0-valued immediates.
2818 (riscv_ip): Likewise.
2819
2820 2017-03-15 Nick Clifton <nickc@redhat.com>
2821
2822 * config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
2823 warning about discarding a const qualifier.
2824
2825 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
2826
2827 * config/tc-riscv.h (HWARD2_USE_FIXED_ADVANCE_PC): New define.
2828
2829 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
2830
2831 * config/tc-riscv.c (md_apply_fix): Set fx_frag and
2832 fx_next->fx_frag for CFA_advance_loc relocations.
2833
2834 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
2835
2836 * config/tc-riscv.c (md_apply_fix): Compute the correct offsets
2837 for CFA relocations.
2838
2839 2017-03-13 Nick Clifton <nickc@redhat.com>
2840
2841 PR binutils/21202
2842 * config/tc-aarch64.c (reloc_table): Rename
2843 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC to
2844 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. Rname
2845 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC to
2846 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
2847 (md_apply_fix): Likewise.
2848 (aarch64_force_relocation): Likewise.
2849 * testsuite/gas/aarch64/tls.d: Update regexp.
2850
2851 2017-03-10 Tobin C. Harding <me@tobin.cc>
2852 Nick Clifton <nickc@redhat.com>
2853
2854 * doc/as.texinfo (2byte): Tidy up wording. Add note that
2855 overlarge values will produce a warning message and be trunacted.
2856 (4byte): Likewise.
2857
2858 2017-03-09 H.J. Lu <hongjiu.lu@intel.com>
2859
2860 * config/tc-i386.c (_i386_insn): Add dir_encoding and
2861 vec_encoding. Remove swap_operand and need_vrex.
2862 (extra_symbol_chars): Add '}'.
2863 (md_begin): Mark '}' with LEX_BEGIN_NAME. Allow '}' in
2864 mnemonic.
2865 (build_vex_prefix): Don't use 2-byte VEX encoding with
2866 {vex3}. Check dir_encoding and load.
2867 (parse_insn): Check pseudo prefixes. Set dir_encoding.
2868 (VEX_check_operands): Likewise.
2869 (match_template): Check dir_encoding and load.
2870 (parse_real_register): Set vec_encoding instead of need_vrex.
2871 (parse_register): Likewise.
2872 * doc/c-i386.texi: Document {disp8}, {disp32}, {load}, {store},
2873 {vex2}, {vex3} and {evex}. Remove ".s", ".d8" and ".d32"
2874 * testsuite/gas/i386/i386.exp: Run pseudos and x86-64-pseudos.
2875 * testsuite/gas/i386/pseudos.d: New file.
2876 * testsuite/gas/i386/pseudos.s: Likewise.
2877 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
2878 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
2879
2880 2017-03-08 Peter Bergner <bergner@vnet.ibm.com>
2881
2882 * testsuite/gas/ppc/altivec2.d (as): Use the -mpower8 option.
2883 (objdump): Use the -Mpower8 option.
2884
2885 2017-03-08 Peter Bergner <bergner@vnet.ibm.com>
2886
2887 * testsuite/gas/ppc/power9.d <lnia> New test.
2888 * testsuite/gas/ppc/power9.s: Likewise.
2889
2890 2017-03-07 Alan Modra <amodra@gmail.com>
2891
2892 * doc/as.texinfo (2byte, 4byte, 8byte): Correct @section placement.
2893
2894 2017-03-07 Tobin C. Harding <me@tobin.cc>
2895 Alan Modra <amodra@gmail.com>
2896
2897 * doc/as.texinfo (2byte, 4byte, 8byte): Document.
2898 * doc/c-arm.texi (2byte, 4byte, 8byte): Omit if ELF.
2899
2900 2017-03-06 H.J. Lu <hongjiu.lu@intel.com>
2901
2902 * config/tc-i386.c (cpu_arch): Add .cet.
2903 * doc/c-i386.texi: Document cet.
2904 * testsuite/gas/i386/cet-intel.d: New file.
2905 * testsuite/gas/i386/cet.d: Likewise.
2906 * testsuite/gas/i386/cet.s: Likewise.
2907 * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
2908 * testsuite/gas/i386/x86-64-cet.d: Likewise.
2909 * testsuite/gas/i386/x86-64-cet.s: Likewise.
2910 * testsuite/gas/i386/i386.exp: Run Intel CET tests.
2911
2912 2017-03-06 H.J. Lu <hongjiu.lu@intel.com>
2913
2914 * testsuite/gas/i386/x86-64-mpx-inval-2.s: Force a good alignment.
2915 * testsuite/gas/i386/x86-64-mpx-inval-2.l: Expect [0-9A-F]+.
2916
2917 2017-03-06 Alan Modra <amodra@gmail.com>
2918
2919 * dw2gencfi.c (encoding_size): Return unsigned int.
2920 (emit_expr_encoded): Assert size matches reloc bitsize.
2921 (output_fde): Use unsigned for offset_size and addr_size. Set
2922 addr_size earlier and use in place of constant 4 and uses of
2923 DWARF2_FDE_RELOC_SIZE. Assert it matches reloc bitsize.
2924
2925 2017-03-06 Alan Modra <amodra@gmail.com>
2926
2927 * dw2gencfi.c: Wrap overlong lines. Add parens for emacs
2928 auto reformat. Formatting and whitespace fixes.
2929
2930 2017-03-05 Mark Wielaard <mark@klomp.org>
2931
2932 * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_strp instead of
2933 DW_FORM_string for DW_AT_name, DW_AT_comp_dir and DW_AT_producer.
2934 (out_debug_info): Accept symbols to name, comp_dir and producer in
2935 the .debug_str section and emit those offsets not full strings.
2936 (out_debug_str): New function that outputs the strings for name,
2937 comp_dir and producer in .debug_str and generates symbols to those
2938 strings.
2939 (out_debug_line): Create a .debug_str section if necessary and call
2940 out_debug_str before calling out_debug_info.
2941 * testsuite/gas/aarch64/dwarf.d: Add extra section symbol to expected
2942 output.
2943
2944 2017-03-02 Maciej W. Rozycki <macro@imgtec.com>
2945
2946 * write.c (relax_segment) <rs_org>: Only bail out if the fixed
2947 part of the frag has overrun the location requested.
2948
2949 * testsuite/gas/all/org-1.d: New test.
2950 * testsuite/gas/all/org-2.d: New test.
2951 * testsuite/gas/all/org-3.d: New test.
2952 * testsuite/gas/all/org-4.d: New test.
2953 * testsuite/gas/all/org-5.d: New test.
2954 * testsuite/gas/all/org-6.d: New test.
2955 * testsuite/gas/all/org-1.l: New stderr output.
2956 * testsuite/gas/all/org-2.l: New stderr output.
2957 * testsuite/gas/all/org-3.l: New stderr output.
2958 * testsuite/gas/all/org-1.s: New test source.
2959 * testsuite/gas/all/org-2.s: New test source.
2960 * testsuite/gas/all/org-3.s: New test source.
2961 * testsuite/gas/all/org-4.s: New test source.
2962 * testsuite/gas/all/org-5.s: New test source.
2963 * testsuite/gas/all/org-6.s: New test source.
2964 * testsuite/gas/all/gas.exp: Run the new tests.
2965
2966 * testsuite/gas/mips/org-1.d: New test.
2967 * testsuite/gas/mips/org-2.d: New test.
2968 * testsuite/gas/mips/org-3.d: New test.
2969 * testsuite/gas/mips/org-4.d: New test.
2970 * testsuite/gas/mips/org-5.d: New test.
2971 * testsuite/gas/mips/org-6.d: New test.
2972 * testsuite/gas/mips/org-7.d: New test.
2973 * testsuite/gas/mips/org-8.d: New test.
2974 * testsuite/gas/mips/org-9.d: New test.
2975 * testsuite/gas/mips/org-10.d: New test.
2976 * testsuite/gas/mips/org-11.d: New test.
2977 * testsuite/gas/mips/org-12.d: New test.
2978 * testsuite/gas/mips/org-1.l: New stderr output.
2979 * testsuite/gas/mips/org-4.l: New stderr output.
2980 * testsuite/gas/mips/org-5.l: New stderr output.
2981 * testsuite/gas/mips/org-6.l: New stderr output.
2982 * testsuite/gas/mips/org-10.l: New stderr output.
2983 * testsuite/gas/mips/org-1.s: New test source.
2984 * testsuite/gas/mips/org-2.s: New test source.
2985 * testsuite/gas/mips/org-3.s: New test source.
2986 * testsuite/gas/mips/org-4.s: New test source.
2987 * testsuite/gas/mips/org-5.s: New test source.
2988 * testsuite/gas/mips/org-6.s: New test source.
2989 * testsuite/gas/mips/org-7.s: New test source.
2990 * testsuite/gas/mips/org-8.s: New test source.
2991 * testsuite/gas/mips/org-9.s: New test source.
2992 * testsuite/gas/mips/org-10.s: New test source.
2993 * testsuite/gas/mips/org-11.s: New test source.
2994 * testsuite/gas/mips/org-12.s: New test source.
2995 * testsuite/gas/mips/mips.exp: Run the new tests.
2996
2997 2017-03-01 Szabolcs Nagy <szabolcs.nagy@arm.com>
2998
2999 * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
3000
3001 2017-02-28 Jan Beulich <jbeulich@suse.com>
3002
3003 * testsuite/gas/i386/x86-64-avx.s: Add suffixed variants of
3004 VPCMPESTR{I,M}.
3005 * testsuite/gas/i386/x86-64-sse2avx.s: Likewise.
3006 * testsuite/gas/i386/x86-64-sse4_2.s: Add suffixed variants
3007 of PCMPESTR{I,M}.
3008 * testsuite/gas/i386/ilp32/x86-64-avx-intel.d: Likewise.
3009 * testsuite/gas/i386/ilp32/x86-64-avx.d: Likewise.
3010 * testsuite/gas/i386/ilp32/x86-64-sse2avx.d: Likewise.
3011 * testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d: Likewise.
3012 * testsuite/gas/i386/ilp32/x86-64-sse4_2.d: Likewise.
3013 * testsuite/gas/i386/x86-64-avx-intel.d: Likewise.
3014 * testsuite/gas/i386/x86-64-avx.d: Likewise.
3015 * testsuite/gas/i386/x86-64-sse2avx.d: Likewise.
3016 * testsuite/gas/i386/x86-64-sse4_2-intel.d: Likewise.
3017 * testsuite/gas/i386/x86-64-sse4_2.d: Likewise.
3018
3019 2017-02-28 Alan Modra <amodra@gmail.com>
3020
3021 * config/tc-nios2.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3022
3023 2017-02-28 Alan Modra <amodra@gmail.com>
3024
3025 * config/tc-ppc.c (md_assemble): Use BFD_RELOC_PPC_16DX_HA for addpcis.
3026 (md_apply_fix): Remove fx_subsy check. Move code converting to
3027 pcrel reloc earlier and handle BFD_RELOC_PPC_16DX_HA. Remove code
3028 emiiting errors on seeing fx_pcrel set on unexpected relocs, as
3029 that is done now by the generic code via..
3030 * config/tc-ppc.h (TC_FORCE_RELOCATION_SUB_LOCAL): ..this. Define.
3031 (TC_VALIDATE_FIX_SUB): Define.
3032
3033 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
3034
3035 * testsuite/gas/mips/jalr4.s: Add `jalr $0, $25' instructions.
3036 * testsuite/gas/mips/jalr4.d: Adjust accordingly. Remove MIPSr6
3037 encoding patterns.
3038 * testsuite/gas/mips/jalr4-n64.d: Likewise.
3039 * testsuite/gas/mips/mipsr6@jalr4.d: New test.
3040 * testsuite/gas/mips/mipsr6@jalr4-n32.d: New test.
3041 * testsuite/gas/mips/mipsr6@jalr4-n64.d: New test.
3042
3043 2017-02-25 Alan Modra <amodra@gmail.com>
3044
3045 * testsuite/gas/elf/strtab.s: Don't put directives on first
3046 column or continuation with labels not in first column.
3047
3048 2017-02-24 Richard Sandiford <richard.sandiford@arm.com>
3049
3050 * doc/c-aarch64.texi: Document that sve implies fp16, simd and compnum.
3051 * config/tc-aarch64.c (parse_vector_type_for_operand): Allow .q
3052 to be used with SVE registers.
3053 (parse_operands): Handle new SVE operands.
3054 (aarch64_features): Make "sve" require F16 rather than FP. Also
3055 require COMPNUM.
3056 * testsuite/gas/aarch64/sve.s: Add tests for new instructions.
3057 Include compnum tests.
3058 * testsuite/gas/aarch64/sve.d: Update accordingly.
3059 * testsuite/gas/aarch64/sve-invalid.s: Add tests for new instructions.
3060 * testsuite/gas/aarch64/sve-invalid.l: Update accordingly. Also
3061 update expected output for new FMOV and MOV alternatives.
3062
3063 2017-02-24 Richard Sandiford <richard.sandiford@arm.com>
3064
3065 * doc/c-aarch64.texi: Add a "compnum" entry.
3066 * config/tc-aarch64.c (aarch64_features): Likewise,
3067 * testsuite/gas/aarch64/advsimd-compnum.s: New test.
3068 * testsuite/gas/aarch64/advsimd-compnum.d: Likewise.
3069
3070 2017-02-24 Jan Beulich <jbeulich@suse.com>
3071
3072 * testsuite/gas/i386/opcode.s: Add alternative TEST forms.
3073 * testsuite/gas/i386/x86-64-opcode.s: Likewise.
3074 * testsuite/gas/i386/opcode.d: Adjust accordingly.
3075 * testsuite/gas/i386/opcode-intel.d: Likewise.
3076 * testsuite/gas/i386/x86-64-opcode.d: Likewise.
3077 * testsuite/gas/i386/ilp32/x86-64-opcode.d: Likewise.
3078
3079 2017-02-24 Sheldon Lobo <sheldon.lobo@oracle.com>
3080
3081 Test cases for the architecture level aware SPARC ASI work.
3082 * gas/testsuite/gas/sparc/sparc.exp: 2 new tests
3083 * gas/testsuite/gas/sparc/asi-bump-warn.s: New test
3084 * gas/testsuite/gas/sparc/asi-bump-warn.l: Likewise
3085 * gas/testsuite/gas/sparc/asi-arch-error.s: Likewise
3086 * gas/testsuite/gas/sparc/asi-arch-error.l: Likewise
3087
3088 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
3089
3090 * testsuite/gas/mips/jalr4.d: New test.
3091 * testsuite/gas/mips/jalr4-n32.d: New test.
3092 * testsuite/gas/mips/jalr4-n64.d: New test.
3093 * testsuite/gas/mips/jalr4.s: New test source.
3094 * testsuite/gas/mips/mips.exp: Run the new tests.
3095
3096 2017-02-23 Sheldon Lobo <sheldon.lobo@oracle.com>
3097
3098 Add support for associating SPARC ASIs with an architecture level.
3099 * config/tc-sparc.c (parse_sparc_asi): New encode SPARC ASIs.
3100
3101 2017-02-23 Jan Beulich <jbeulich@suse.com>
3102
3103 * testsuite/gas/all/err-sizeof.s: Don't use sums or differences
3104 of symbols as expression.
3105
3106 2017-02-23 Jan Beulich <jbeulich@suse.com>
3107
3108 * gas/testsuite/gas/i386/x86-64-mpx-inval-2.d: Add 32- and 16-
3109 bit GPR forms of BNDCL, BNDCU, and BNDCN. Add RSP-as-index
3110 Intel syntax forms of BNDMK, BNDSTX, and BNDLDX.
3111 * gas/testsuite/gas/i386/x86-64-mpx-inval-2.l: Adjust.
3112
3113 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
3114
3115 * ecoff.c (ecoff_directive_end) [md_flush_pending_output]: Call
3116 `md_flush_pending_output'.
3117 * config/tc-mips.c (s_mips_end) [md_flush_pending_output]: Call
3118 `md_flush_pending_output' unconditionally.
3119 * testsuite/gas/mips/debug-label-end-1.d: New test.
3120 * testsuite/gas/mips/debug-label-end-2.d: New test.
3121 * testsuite/gas/mips/debug-label-end-3.d: New test.
3122 * testsuite/gas/mips/debug-label-end.s: New test source.
3123 * testsuite/gas/mips/mips.exp: Run the new tests.
3124
3125 2017-02-22 Hans-Peter Nilsson <hp@axis.com>
3126
3127 * testsuite/gas/all/err-sizeof.s: Include cris*-*-* in the list of
3128 targets yielding an error message matching "too complex".
3129
3130 2017-02-22 Nick Clifton <nickc@redhat.com>
3131
3132 * testsuite/gas/arm/vcmp-noprefix-imm.d: Skip for non-ELF targets.
3133
3134 2017-02-21 Jan Beulich <jbeulich@suse.com>
3135
3136 * expr.c (operand): Handle missing operand to .startof.() and
3137 .sizeof.().
3138 * testsuite/gas/all/err-sizeof.s: New.
3139
3140 2017-02-20 Alan Modra <amodra@gmail.com>
3141
3142 PR 21118
3143 * NEWS: Revise powerpc register check.
3144 * config/tc-ppc.c (ppc_optimize_expr, md_assemble): Make "invalid
3145 register expression" a warning.
3146
3147 2017-02-17 Maciej W. Rozycki <macro@imgtec.com>
3148
3149 * ecoff.c (ecoff_directive_ent, add_procedure): Handle `.aent'.
3150 * config/obj-ecoff.c (obj_pseudo_table): Add "aent" entry.
3151 * config/obj-elf.c (ecoff_debug_pseudo_table): Likewise.
3152 * testsuite/gas/mips/aent-2.d: New test.
3153 * testsuite/gas/mips/aent-mdebug.d: New test.
3154 * testsuite/gas/mips/aent-mdebug-2.d: New test.
3155 * testsuite/gas/mips/mips.exp: Run the new tests.
3156
3157 2017-02-15 Richard Sandiford <richard.sandiford@arm.com>
3158
3159 * testsuite/gas/aarch64/sve-sysreg.s,
3160 testsuite/gas/aarch64/sve-sysreg.d,
3161 testsuite/gas/aarch64/sve-sysreg-invalid.d,
3162 testsuite/gas/aarch64/sve-sysreg-invalid.l: New tests.
3163
3164 2017-02-15 Richard Sandiford <richard.sandiford@arm.com>
3165
3166 * doc/c-aarch64.texi: Fix sve entry.
3167
3168 2017-02-15 Claudiu Zissulescu <claziss@synopsys.com>
3169
3170 * config/tc-arc.c (md_convert_frag): Remove @pcl relocation
3171 information from input expression.
3172 (assemble_insn): Make sure pcrel is correctly set.
3173 (arc_pcrel_adjust): Compensate for PCL rounding.
3174 * testsuite/gas/arc/relax-add01.d: New file.
3175 * testsuite/gas/arc/relax-add01.s: Likewise.
3176 * testsuite/gas/arc/relax-add02.d: Likewise.
3177 * testsuite/gas/arc/relax-add02.s: Likewise.
3178 * testsuite/gas/arc/relax-add03.d: Likewise.
3179 * testsuite/gas/arc/relax-add03.s: Likewise.
3180 * testsuite/gas/arc/relax-add04.d: Likewise.
3181 * testsuite/gas/arc/relax-add04.s: Likewise.
3182 * testsuite/gas/arc/relax-ld01.d: Likewise.
3183 * testsuite/gas/arc/relax-ld01.s: Likewise.
3184 * testsuite/gas/arc/relax-ld02.d: Likewise.
3185 * testsuite/gas/arc/relax-ld02.s: Likewise.
3186 * testsuite/gas/arc/relax-mov01.d: Likewise.
3187 * testsuite/gas/arc/relax-mov01.s: Likewise.
3188 * testsuite/gas/arc/relax-mov02.d: Likewise.
3189 * testsuite/gas/arc/relax-mov02.s: Likewise.
3190 * testsuite/gas/arc/relax-mpy01.d: Likewise.
3191 * testsuite/gas/arc/relax-mpy01.s: Likewise.
3192 * testsuite/gas/arc/relax-sub01.d: Likewise.
3193 * testsuite/gas/arc/relax-sub01.s: Likewise.
3194 * testsuite/gas/arc/relax-sub02.d: Likewise.
3195 * testsuite/gas/arc/relax-sub02.s: Likewise.
3196 * testsuite/gas/arc/relax-sub03.d: Likewise.
3197 * testsuite/gas/arc/relax-sub03.s: Likewise.
3198 * testsuite/gas/arc/relax-sub04.d: Likewise.
3199 * testsuite/gas/arc/relax-sub04.s: Likewise.
3200
3201 2017-02-09 Vineet Gupta <vgupta@synopsys.com>
3202
3203 * testsuite/gas/arc/st.d: Update for 0xe having a name now
3204
3205 2017-02-14 Alan Modra <amodra@gmail.com>
3206
3207 PR 21118
3208 * NEWS: Mention powerpc register checks.
3209 * config/tc-ppc.c (struct pd_reg): Make value a short. Add flags.
3210 (pre_defined_registers): Delete fpscr and pmr entries. Set
3211 register type in flags.
3212 (cr_names): Set type in flags.
3213 (reg_name_search): Return pointer to struct pd_reg rather than value.
3214 (register_name): Adjust to suit. Set X_md from flags.
3215 (ppc_parse_name): Likewise.
3216 (ppc_optimize_expr): New function.
3217 (md_assemble): Verify expresion reg flags match operand.
3218 * config/tc-ppc.h (md_optimize_expr): Define.
3219 (ppc_optimize_expr): Declare.
3220
3221 2017-02-14 Alan Modra <amodra@gmail.com>
3222
3223 * testsuite/gas/ppc/cell.s: Correct invalid registers.
3224 * testsuite/gas/ppc/vle-simple-1.s: Likewise.
3225 * testsuite/gas/ppc/vle-simple-2.s: Likewise.
3226
3227 2017-02-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3228
3229 * config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified
3230 syntax.
3231 * testsuite/gas/arm/vcmp-noprefix-imm.d: New file.
3232 * testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
3233
3234 2017-02-10 Nicholas Piggin <npiggin@gmail.com>
3235
3236 * testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
3237
3238 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
3239
3240 * doc/as.texinfo (Overview): Select MIPS options for man page
3241 inclusion.
3242
3243 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
3244
3245 * config/tc-mips.c (mips_ignore_branch_isa): New variable.
3246 (options): Add OPTION_IGNORE_BRANCH_ISA and
3247 OPTION_NO_IGNORE_BRANCH_ISA enum values.
3248 (md_longopts): Add "mignore-branch-isa" and
3249 "mno-ignore-branch-isa" options.
3250 (md_parse_option): Handle OPTION_IGNORE_BRANCH_ISA and
3251 OPTION_NO_IGNORE_BRANCH_ISA.
3252 (fix_bad_cross_mode_branch_p): Return FALSE if
3253 `mips_ignore_branch_isa' has been set.
3254 (md_show_usage): Add `-mignore-branch-isa' and
3255 `-mno-ignore-branch-isa'.
3256
3257 * doc/as.texinfo (Target MIPS options): Add
3258 `-mignore-branch-isa' and `-mno-ignore-branch-isa' options.
3259 (-mignore-branch-isa, -mno-ignore-branch-isa): New options.
3260 * doc/c-mips.texi (MIPS Options): Add `-mignore-branch-isa' and
3261 `-mno-ignore-branch-isa' options.
3262
3263 * testsuite/gas/mips/branch-local-ignore-2.d: New test.
3264 * testsuite/gas/mips/branch-local-ignore-3.d: New test.
3265 * testsuite/gas/mips/branch-local-ignore-n32-2.d: New test.
3266 * testsuite/gas/mips/branch-local-ignore-n32-3.d: New test.
3267 * testsuite/gas/mips/branch-local-ignore-n64-2.d: New test.
3268 * testsuite/gas/mips/branch-local-ignore-n64-3.d: New test.
3269 * testsuite/gas/mips/mips.exp: Run the new tests.
3270
3271 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
3272
3273 * testsuite/gas/mips/branch-local-2.d: New test.
3274 * testsuite/gas/mips/branch-local-3.d: New test.
3275 * testsuite/gas/mips/branch-local-n32-2.d: New test.
3276 * testsuite/gas/mips/branch-local-n32-3.d: New test.
3277 * testsuite/gas/mips/branch-local-n64-2.d: New test.
3278 * testsuite/gas/mips/branch-local-n64-3.d: New test.
3279 * testsuite/gas/mips/mips.exp: Fold corresponding list tests
3280 into the new tests.
3281
3282 2017-01-27 Alexis Deruell <alexis.deruelle@gmail.com>
3283
3284 PR 21056
3285 * testsuite/gas/tic6x/insns16-parallel.s: New test case.
3286 * testsuite/gas/tic6x/insns16-parallel.d: New test driver.
3287
3288 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3289
3290 * configure.tgt (aarch64*-*-rtems*): Remove.
3291 (bfin-*-rtems*): Likewise.
3292 (h8300-*-rtems*): Likewise.
3293 (i386-*-rtems*): Likewise.
3294 (m32c-*-rtems*): Likewise.
3295 (m32r-*-rtems*): Likewise.
3296 (m68k-*-rtems*): Likewise.
3297 (mips-*-rtems*): Likewise.
3298 (nios2-*-rtems*): Likewise.
3299 (ppc-*-rtems*): Likewise.
3300 (sh-*-rtems*): Likewise.
3301 (sparc64-*-rtems*): Likewise.
3302 (sparc-*-rtems*): Likewise.
3303 (*-*-rtems*) Use ELF format.
3304
3305 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3306
3307 * configure.tgt (arm-*-rtems*): Move to (arm-*-eabi*).
3308
3309 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3310
3311 * configure.tgt (sh-*-rtemscoff*): Remove.
3312
3313 2017-01-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
3314
3315 * configure.tgt (riscv*-*-*): Remove em=linux.
3316
3317 2017-01-23 Sebastian Rasmussen <sebras@gmail.com>
3318
3319 PR gas/21072
3320 * asintl.h: Fix spelling mistakes and typos.
3321 * atof-generic.c: Likewise.
3322 * bit_fix.h: Likewise.
3323 * config/atof-ieee.c: Likewise.
3324 * config/bfin-defs.h: Likewise.
3325 * config/bfin-parse.y: Likewise.
3326 * config/obj-coff-seh.h: Likewise.
3327 * config/obj-coff.c: Likewise.
3328 * config/obj-evax.c: Likewise.
3329 * config/obj-macho.c: Likewise.
3330 * config/rx-parse.y: Likewise.
3331 * config/tc-aarch64.c: Likewise.
3332 * config/tc-alpha.c: Likewise.
3333 * config/tc-arc.c: Likewise.
3334 * config/tc-arm.c: Likewise.
3335 * config/tc-avr.c: Likewise.
3336 * config/tc-bfin.c: Likewise.
3337 * config/tc-cr16.c: Likewise.
3338 * config/tc-cris.c: Likewise.
3339 * config/tc-crx.c: Likewise.
3340 * config/tc-d10v.c: Likewise.
3341 * config/tc-d30v.c: Likewise.
3342 * config/tc-dlx.c: Likewise.
3343 * config/tc-epiphany.c: Likewise.
3344 * config/tc-frv.c: Likewise.
3345 * config/tc-hppa.c: Likewise.
3346 * config/tc-i370.c: Likewise.
3347 * config/tc-i386-intel.c: Likewise.
3348 * config/tc-i386.c: Likewise.
3349 * config/tc-i960.c: Likewise.
3350 * config/tc-ia64.c: Likewise.
3351 * config/tc-m32r.c: Likewise.
3352 * config/tc-m68hc11.c: Likewise.
3353 * config/tc-m68k.c: Likewise.
3354 * config/tc-mcore.c: Likewise.
3355 * config/tc-mep.c: Likewise.
3356 * config/tc-mep.h: Likewise.
3357 * config/tc-metag.c: Likewise.
3358 * config/tc-microblaze.c: Likewise.
3359 * config/tc-mips.c: Likewise.
3360 * config/tc-mmix.c: Likewise.
3361 * config/tc-mn10200.c: Likewise.
3362 * config/tc-mn10300.c: Likewise.
3363 * config/tc-msp430.c: Likewise.
3364 * config/tc-msp430.h: Likewise.
3365 * config/tc-nds32.c: Likewise.
3366 * config/tc-nds32.h: Likewise.
3367 * config/tc-nios2.c: Likewise.
3368 * config/tc-nios2.h: Likewise.
3369 * config/tc-ns32k.c: Likewise.
3370 * config/tc-pdp11.c: Likewise.
3371 * config/tc-ppc.c: Likewise.
3372 * config/tc-pru.c: Likewise.
3373 * config/tc-rx.c: Likewise.
3374 * config/tc-s390.c: Likewise.
3375 * config/tc-score.c: Likewise.
3376 * config/tc-score7.c: Likewise.
3377 * config/tc-sh.c: Likewise.
3378 * config/tc-sh64.c: Likewise.
3379 * config/tc-sparc.c: Likewise.
3380 * config/tc-tic4x.c: Likewise.
3381 * config/tc-tic54x.c: Likewise.
3382 * config/tc-v850.c: Likewise.
3383 * config/tc-vax.c: Likewise.
3384 * config/tc-visium.c: Likewise.
3385 * config/tc-xgate.c: Likewise.
3386 * config/tc-xtensa.c: Likewise.
3387 * config/tc-z80.c: Likewise.
3388 * config/tc-z8k.c: Likewise.
3389 * config/te-vms.c: Likewise.
3390 * config/xtensa-relax.c: Likewise.
3391 * doc/as.texinfo: Likewise.
3392 * doc/c-arm.texi: Likewise.
3393 * doc/c-hppa.texi: Likewise.
3394 * doc/c-i370.texi: Likewise.
3395 * doc/c-i386.texi: Likewise.
3396 * doc/c-m32r.texi: Likewise.
3397 * doc/c-m68k.texi: Likewise.
3398 * doc/c-mmix.texi: Likewise.
3399 * doc/c-msp430.texi: Likewise.
3400 * doc/c-nds32.texi: Likewise.
3401 * doc/c-ns32k.texi: Likewise.
3402 * doc/c-riscv.texi: Likewise.
3403 * doc/c-rx.texi: Likewise.
3404 * doc/c-s390.texi: Likewise.
3405 * doc/c-tic6x.texi: Likewise.
3406 * doc/c-tilegx.texi: Likewise.
3407 * doc/c-tilepro.texi: Likewise.
3408 * doc/c-v850.texi: Likewise.
3409 * doc/c-xgate.texi: Likewise.
3410 * doc/c-xtensa.texi: Likewise.
3411 * dwarf2dbg.c: Likewise.
3412 * ecoff.c: Likewise.
3413 * itbl-ops.c: Likewise.
3414 * listing.c: Likewise.
3415 * macro.c: Likewise.
3416 * po/gas.pot: Likewise.
3417 * read.c: Likewise.
3418 * struc-symbol.h: Likewise.
3419 * symbols.h: Likewise.
3420 * testsuite/gas/arc/relocs-errors.err: Likewise.
3421 * write.c: Likewise.
3422
3423 2017-01-23 Nick Clifton <nickc@redhat.com>
3424
3425 * po/sv.po: Updated Swedish translation.
3426
3427 2017-01-20 Nick Clifton <nickc@redhat.com>
3428
3429 * config/tc-i386.c (parse_operands): Check for operand overflow
3430 before setting the unspecified bit.
3431
3432 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3433
3434 PR gas/20649
3435 * config/tc-mips.c (pic_need_relax): Don't check for linkonce
3436 symbols, remove the `segtype' parameter.
3437 (mips_frob_file, md_estimate_size_before_relax): Adjust
3438 accordingly.
3439 (s_is_linkonce): Add an explanatory comment.
3440 * testsuite/gas/mips/comdat-reloc.d: New test.
3441 * testsuite/gas/mips/comdat-reloc.s: New test source.
3442 * testsuite/gas/mips/mips.exp: Run the new test.
3443
3444 2017-01-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
3445
3446 * testsuite/gas/arm/armv8_3-a-simd.s: Add vcmla tests.
3447 * testsuite/gas/arm/armv8_3-a-simd.d: Update.
3448
3449 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
3450
3451 PR 21059
3452 * config/bfin-lex.l: Support processing with flex 2.6.3.
3453 * itbl-lex.l: Likewise.
3454
3455 2017-01-18 Nathan Sidwell <nathan@acm.org>
3456
3457 * as.h (gas_assert): Use abort.
3458 (as_assert): Remove.
3459 (signal_init): Declare.
3460 * as.c (main): Call signal_init.
3461 * messages.c: #include <signal.h>
3462 (as_assert): Delete.
3463 (as_abort): Allow NULL FILE.
3464 (signal_crash): New.
3465 (signal_init): Register fatal signal handlers.
3466 * configure.ac: Check for strsignal.
3467 * config.in: Rebuilt.
3468 * configure: Rebuilt.
3469
3470 2017-01-17 Nick Clifton <nickc@redhat.com>
3471
3472 * po/sv.po: Updated Swedish translation.
3473
3474 2017-01-12 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3475
3476 * config/tc-i386.c (cpu_arch): Add .avx512_vpopcntdq.
3477 (cpu_noarch): Add noavx512_vpopcntdq.
3478 * doc/c-i386.texi: Document avx512_vpopcntdq, noavx512_vpopcntdq.
3479 * testsuite/gas/i386/i386.exp: Run AVX512_VPOPCNTDQ tests.
3480 * testsuite/gas/i386/avx512_vpopcntdqd-intel.d: New file.
3481 * testsuite/gas/i386/avx512_vpopcntdqd.d: Ditto.
3482 * testsuite/gas/i386/avx512_vpopcntdqd.s: Ditto.
3483 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd-intel.d: Ditto.
3484 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.d: Ditto.
3485 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.s: Ditto.
3486
3487 2017-01-12 Nick Clifton <nickc@redhat.com>
3488
3489 * read.c (temp_ilp): New function. Installs a temporary input
3490 line pointer.
3491 (restore_ilp): New function. Restores the original input line
3492 pointer.
3493 * read.h (temp_ilp): Prototype.
3494 (restore_ilp): Prototype.
3495 * stabs.c (dot_func_p): Use bfd_boolean type.
3496 (generate_asm_file): Use temp_ilp and restore_ilp.
3497 (stabs_generate_asm_lineno): Likewise.
3498 (stabs_generate_asm_endfunc): Likewise.
3499
3500 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
3501
3502 * configure.tgt: Add entry for i386-redox.
3503
3504 2017-01-10 Nick Clifton <nickc@redhat.com>
3505
3506 * po/sv.po: Updated Swedish translation.
3507
3508 2017-01-10 Tristan Gingold <gingold@adacore.com>
3509
3510 * testsuite/gas/all/sleb128-8.d: Adjust test.
3511 * testsuite/gas/all/gas.exp (test_cond): Likewise.
3512
3513 2017-01-10 Tristan Gingold <gingold@adacore.com>
3514
3515 * read.c (emit_leb128_expr): Extended unsigned big number for
3516 sleb128.
3517 * testsuite/gas/all/gas.exp (test_cond): Add sleb128-8 test.
3518 * testsuite/gas/all/sleb128.d: New test.
3519 * testsuite/gas/all/sleb128.s: New test source.
3520
3521 2017-01-09 Andrew Waterman <andrew@sifive.com>
3522
3523 * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
3524 against constants.
3525 (md_apply_fix): Mark relocations against constants as "done."
3526
3527 2017-01-09 Andrew Waterman <andrew@sifive.com>
3528
3529 * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
3530 against constants.
3531 (md_apply_fix): Mark relocations against constants as "done."
3532
3533 2017-01-09 Palmer Dabbelt <palmer@dabbelt.com>
3534 Kito Cheng <kito.cheng@gmail.com>
3535
3536 * emulparams/elf32lriscv-defs.sh (INITIAL_READONLY_SECTIONS):
3537 Removed.
3538 (SDATA_START_SYMBOLS): Likewise.
3539
3540 2017-01-09 Nick Clifton <nickc@redhat.com>
3541
3542 * po/sv.po: New Swedish translation.
3543 * configure.ac (ALL_LINGUAS): Add sv.
3544 * configure: Regenerate.
3545
3546 2017-01-09 Andrew Waterman <andrew@sifive.com>
3547
3548 * config/tc-riscv.c (relaxed_branch_length): Use the long
3549 sequence when the target is a weak symbol.
3550
3551 2017-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3552
3553 * config/tc-aarch64.c (aarch64_features): Add rcpc.
3554 * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
3555 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Rename to ...
3556 * testsuite/gas/aarch64/ldst-rcpc.d: This.
3557 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Rename to ...
3558 * testsuite/gas/aarch64/ldst-rcpc.s: This.
3559 * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: New test.
3560
3561 2017-01-04 Norm Jacobs <norm.jacobs@oracle.com>
3562
3563 PR gas/20992
3564 * configure.tgt: Treat sparcv9 as sparc64.
3565
3566 2017-01-03 Kito Cheng <kito.cheng@gmail.com>
3567
3568 * config/tc-riscv.c (riscv_set_arch): Whitelist the "q" ISA
3569 extension.
3570 (riscv_after_parse_args): Set FLOAT_ABI_QUAD when the Q ISA is
3571 enabled and no other ABI is specified.
3572
3573 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
3574
3575 * config/tc-pru.c (md_number_to_chars): Fix parameter to be
3576 valueT, as declared in tc.h.
3577 (md_apply_fix): Fix to work on 32-bit hosts.
3578
3579 2017-01-02 Alan Modra <amodra@gmail.com>
3580
3581 Update year range in copyright notice of all files.
3582
3583 For older changes see ChangeLog-2016
3584 \f
3585 Copyright (C) 2017 Free Software Foundation, Inc.
3586
3587 Copying and distribution of this file, with or without modification,
3588 are permitted in any medium without royalty provided the copyright
3589 notice and this notice are preserved.
3590
3591 Local Variables:
3592 mode: change-log
3593 left-margin: 8
3594 fill-column: 74
3595 version-control: never
3596 End: