MIPS: Verify the ISA mode and alignment of branch and jump targets
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2016-07-19 Maciej W. Rozycki <macro@imgtec.com>
2
3 * config/tc-mips.c (mips_force_relocation): Also retain branch
4 relocations against MIPS16 and microMIPS symbols.
5 (fix_bad_cross_mode_jump_p): New function.
6 (fix_bad_same_mode_jalx_p): Likewise.
7 (fix_bad_misaligned_jump_p): Likewise.
8 (fix_bad_cross_mode_branch_p): Likewise.
9 (fix_bad_misaligned_branch_p): Likewise.
10 (fix_validate_branch): Likewise.
11 (md_apply_fix) <BFD_RELOC_MIPS_JMP, BFD_RELOC_MIPS16_JMP>
12 <BFD_RELOC_MICROMIPS_JMP>: Separate from BFD_RELOC_MIPS_SHIFT5,
13 etc. Verify the ISA mode and alignment of the jump target.
14 <BFD_RELOC_MIPS_21_PCREL_S2>: Replace the inline alignment check
15 with a call to `fix_validate_branch'.
16 <BFD_RELOC_MIPS_26_PCREL_S2>: Likewise.
17 <BFD_RELOC_16_PCREL_S2>: Likewise.
18 <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
19 <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Retain the original addend.
20 Verify the ISA mode and alignment of the branch target.
21 (md_convert_frag): Verify the ISA mode and alignment of resolved
22 MIPS16 branch targets.
23 * testsuite/gas/mips/branch-misc-1.s: Annotate non-instruction
24 branch targets with `.insn'.
25 * testsuite/gas/mips/branch-misc-5.s: Likewise.
26 * testsuite/gas/mips/micromips@branch-misc-5-64.d: Update
27 accordingly.
28 * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
29 * testsuite/gas/mips/micromips-branch-relax.s: Annotate
30 non-instruction branch target with `.insn'.
31 * testsuite/gas/mips/micromips.s: Replace microMIPS JALX targets
32 with external symbols.
33 * testsuite/gas/mips/micromips-insn32.d: Update accordingly.
34 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
35 * testsuite/gas/mips/micromips-trap.d: Likewise.
36 * testsuite/gas/mips/micromips.d: Likewise.
37 * testsuite/gas/mips/mips16.s: Annotate non-instruction branch
38 targets with `.insn'.
39 * testsuite/gas/mips/mips16.d: Update accordingly.
40 * testsuite/gas/mips/mips16-64.d: Likewise.
41 * testsuite/gas/mips/mips16-dwarf2.s: Annotate non-instruction
42 branch target with `.insn'.
43 * testsuite/gas/mips/relax-swap3.s: Likewise.
44 * testsuite/gas/mips/branch-local-2.l: New list test.
45 * testsuite/gas/mips/branch-local-3.l: New list test.
46 * testsuite/gas/mips/branch-local-n32-2.l: New list test.
47 * testsuite/gas/mips/branch-local-n32-3.l: New list test.
48 * testsuite/gas/mips/branch-local-n64-2.l: New list test.
49 * testsuite/gas/mips/branch-local-n64-3.l: New list test.
50 * testsuite/gas/mips/unaligned-jump-1.l: New list test.
51 * testsuite/gas/mips/unaligned-jump-2.l: New list test.
52 * testsuite/gas/mips/unaligned-jump-3.d: New test.
53 * testsuite/gas/mips/unaligned-jump-mips16-1.l: New list test.
54 * testsuite/gas/mips/unaligned-jump-mips16-2.l: New list test.
55 * testsuite/gas/mips/unaligned-jump-mips16-3.d: New test.
56 * testsuite/gas/mips/unaligned-jump-micromips-1.l: New list
57 test.
58 * testsuite/gas/mips/unaligned-jump-micromips-2.l: New list
59 test.
60 * testsuite/gas/mips/unaligned-jump-micromips-3.d: New test.
61 * testsuite/gas/mips/unaligned-branch-1.l: New list test.
62 * testsuite/gas/mips/unaligned-branch-2.l: New list test.
63 * testsuite/gas/mips/unaligned-branch-3.d: New test.
64 * testsuite/gas/mips/unaligned-branch-r6-1.l: New list test.
65 * testsuite/gas/mips/unaligned-branch-r6-2.l: New list test.
66 * testsuite/gas/mips/unaligned-branch-r6-3.l: New list test.
67 * testsuite/gas/mips/unaligned-branch-r6-4.l: New list test.
68 * testsuite/gas/mips/unaligned-branch-r6-5.d: New test.
69 * testsuite/gas/mips/unaligned-branch-r6-6.d: New test.
70 * testsuite/gas/mips/unaligned-branch-mips16-1.l: New list test.
71 * testsuite/gas/mips/unaligned-branch-mips16-2.l: New list test.
72 * testsuite/gas/mips/unaligned-branch-mips16-3.d: New test.
73 * testsuite/gas/mips/unaligned-branch-micromips-1.l: New list
74 test.
75 * testsuite/gas/mips/unaligned-branch-micromips-2.l: New list
76 test.
77 * testsuite/gas/mips/unaligned-branch-micromips-3.d: New test.
78 * testsuite/gas/mips/branch-local-2.s: New test source.
79 * testsuite/gas/mips/branch-local-3.s: New test source.
80 * testsuite/gas/mips/branch-local-n32-2.s: New test source.
81 * testsuite/gas/mips/branch-local-n32-3.s: New test source.
82 * testsuite/gas/mips/branch-local-n64-2.s: New test source.
83 * testsuite/gas/mips/branch-local-n64-3.s: New test source.
84 * testsuite/gas/mips/unaligned-jump-1.s: New test source.
85 * testsuite/gas/mips/unaligned-jump-2.s: New test source.
86 * testsuite/gas/mips/unaligned-jump-mips16-1.s: New test source.
87 * testsuite/gas/mips/unaligned-jump-mips16-2.s: New test source.
88 * testsuite/gas/mips/unaligned-jump-micromips-1.s: New test
89 source.
90 * testsuite/gas/mips/unaligned-jump-micromips-2.s: New test
91 source.
92 * testsuite/gas/mips/unaligned-branch-1.s: New test source.
93 * testsuite/gas/mips/unaligned-branch-2.s: New test source.
94 * testsuite/gas/mips/unaligned-branch-r6-1.s: New test source.
95 * testsuite/gas/mips/unaligned-branch-r6-2.s: New test source.
96 * testsuite/gas/mips/unaligned-branch-r6-3.s: New test source.
97 * testsuite/gas/mips/unaligned-branch-r6-4.s: New test source.
98 * testsuite/gas/mips/unaligned-branch-mips16-1.s: New test
99 source.
100 * testsuite/gas/mips/unaligned-branch-mips16-2.s: New test
101 source.
102 * testsuite/gas/mips/unaligned-branch-micromips-1.s: New test
103 source.
104 * testsuite/gas/mips/unaligned-branch-micromips-2.s: New test
105 source.
106 * testsuite/gas/mips/mips.exp: Run the new tests.
107
108 2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
109
110 * config/tc-nds32.c (struct nds32_pseudo_opcode): Make pseudo_val
111 unsigned int.
112 (do_pseudo_b): Adjust.
113 (do_pseudo_bal): Likewise.
114 (do_pseudo_bge): Likewise.
115 (do_pseudo_bges): Likewise.
116 (do_pseudo_bgt): Likewise.
117 (do_pseudo_bgts): Likewise.
118 (do_pseudo_ble): Likewise.
119 (do_pseudo_bles): Likewise.
120 (do_pseudo_blt): Likewise.
121 (do_pseudo_blts): Likewise.
122 (do_pseudo_br): Likewise.
123 (do_pseudo_bral): Likewise.
124 (do_pseudo_la): Likewise.
125 (do_pseudo_li): Likewise.
126 (do_pseudo_ls_bhw): Likewise.
127 (do_pseudo_ls_bhwp): Likewise.
128 (do_pseudo_ls_bhwpc): Likewise.
129 (do_pseudo_ls_bhwi): Likewise.
130 (do_pseudo_move): Likewise.
131 (do_pseudo_neg): Likewise.
132 (do_pseudo_not): Likewise.
133 (do_pseudo_pushpopm): Likewise.
134 (do_pseudo_pushpop): Likewise.
135 (do_pseudo_v3push): Likewise.
136 (do_pseudo_v3pop): Likewise.
137 (do_pseudo_pushpop_stack): Likewise.
138 (do_pseudo_push_bhwd): Likewise.
139 (do_pseudo_pop_bhwd): Likewise.
140 (do_pseudo_pusha): Likewise.
141 (do_pseudo_pushi): Likewise.
142
143 2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
144
145 * config/tc-sparc.c (struct pop_entry): Make the type of reloc
146 bfd_reloc_code_real_type.
147
148 2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
149
150 * config/tc-sparc.c (pop_table): Remove sentinel.
151 (NUM_PERC_ENTRIES): Use ARRAY_SIZE on pop_table.
152 (md_begin): Adjust.
153
154 2016-07-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
155
156 * config/tc-z8k.c (newfix): Make type of type argument
157 bfd_reloc_code_real_type.
158 (apply_fix): Likewise.
159
160 2016-07-16 Alan Modra <amodra@gmail.com>
161
162 * config/tc-epiphany.c: Don't include libbfd.h.
163 * config/tc-frv.c: Likewise.
164 * config/tc-ip2k.c: Likewise.
165 * config/tc-iq2000.c: Likewise.
166 * config/tc-m32c.c: Likewise.
167 * config/tc-mep.c: Likewise.
168 * config/tc-mt.c: Likewise.
169 * config/tc-nios2.c: Likewise.
170
171 2016-07-16 Alan Modra <amodra@gmail.com>
172
173 * config/bfin-parse.y: Don't include libbfd.h.
174 * config/tc-bfin.c: Likewise.
175 * config/tc-rl78.c: Likewise.
176 * config/tc-rx.c: Likewise.
177 * config/tc-metag.c: Likewise.
178 (create_dspreg_htabs, create_scond_htab): Use gas_assert not BFD_ASSERT.
179 * Makefile.am: Update dependencies.
180 * Makefile.in: Regenerate.
181
182 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
183
184 * config/tc-mips.h (TC_FORCE_RELOCATION_ABS): New macro.
185 (mips_force_relocation_abs): New prototype.
186 * config/tc-mips.c (mips_force_relocation_abs): New function.
187 * testsuite/gas/mips/branch-absolute.d: Adjust dump patterns.
188 * testsuite/gas/mips/mips16-branch-absolute.d: Likewise.
189 * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
190 * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
191 * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
192 Likewise.
193 * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
194 Likewise.
195 * testsuite/gas/mips/branch-absolute-addend.d: New test.
196 * testsuite/gas/mips/mips16-branch-absolute-addend.d: New test.
197 * testsuite/gas/mips/micromips-branch-absolute-addend.d: New
198 test.
199 * testsuite/gas/mips/mips.exp: Run the new tests.
200
201 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
202
203 * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS16_16_PCREL_S1>
204 <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
205 <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Keep the ISA bit in the
206 addend calculated.
207 * testsuite/gas/mips/mips16-branch-absolute.s: Set the ISA bit
208 in `bar', export `foo'.
209 * testsuite/gas/mips/mips16-branch-absolute.d: Adjust
210 accordingly.
211 * testsuite/gas/mips/mips16-branch-absolute-n32.d: Likewise.
212 * testsuite/gas/mips/mips16-branch-absolute-n64.d: Likewise.
213 * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d:
214 Likewise.
215 * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d:
216 Likewise.
217
218 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
219
220 * testsuite/gas/mips/mips16-branch-absolute.d: Update patterns.
221 * testsuite/gas/mips/branch-absolute.d: New test.
222 * testsuite/gas/mips/branch-absolute-n32.d: New test.
223 * testsuite/gas/mips/branch-absolute-n64.d: New test.
224 * testsuite/gas/mips/branch-absolute-addend-n32.d: New test.
225 * testsuite/gas/mips/branch-absolute-addend-n64.d: New test.
226 * testsuite/gas/mips/mips16-branch-absolute-n32.d: New test.
227 * testsuite/gas/mips/mips16-branch-absolute-n64.d: New test.
228 * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d: New
229 test.
230 * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d: New
231 test.
232 * testsuite/gas/mips/micromips-branch-absolute.d: New test.
233 * testsuite/gas/mips/micromips-branch-absolute-n32.d: New test.
234 * testsuite/gas/mips/micromips-branch-absolute-n64.d: New test.
235 * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d: New
236 test.
237 * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d: New
238 test.
239 * testsuite/gas/mips/branch-absolute.s: New test source.
240 * testsuite/gas/mips/branch-absolute-addend.s: New test source.
241 * testsuite/gas/mips/mips16-branch-absolute-addend.s: New test
242 source.
243 * testsuite/gas/mips/micromips-branch-absolute.s: New test
244 source.
245 * testsuite/gas/mips/micromips-branch-absolute-addend.s: New
246 test source.
247 * testsuite/gas/mips/mips.exp: Run the new tests.
248
249 2016-07-13 Maciej W. Rozycki <macro@imgtec.com>
250
251 * testsuite/gas/mips/nal-1.d: New test.
252 * testsuite/gas/mips/mipsr6@nal-1.d: New test.
253 * testsuite/gas/mips/nal-2.d: New test.
254 * testsuite/gas/mips/mipsr6@nal-2.d: New test.
255 * testsuite/gas/mips/nal.s: New test source.
256 * testsuite/gas/mips/mips.exp: Run the new tests.
257
258 2016-07-12 Jose E. Marchesi <jose.marchesi@oracle.com>
259
260 * testsuite/gas/sparc/ldtxa.s: New file.
261 * testsuite/gas/sparc/ldtxa.d: Likewise.
262 * testsuite/gas/sparc/sparc.exp: Execute the ldtxa test.
263
264 2016-07-11 Claudiu Zissulescu <claziss@synopsys.com>
265
266 * config/tc-arc.c (arc_reloc_op_tag): Allow complex ops for dtpoff.
267 (tc_gen_reloc): Remove passing DTPOFF base info into reloc addendum
268 as it is no longer needed.
269
270 2016-07-08 Maciej W. Rozycki <macro@imgtec.com>
271
272 * config/tc-mips.c (append_insn): Remove extraneous
273 `install_insn' call.
274
275 2016-07-04 Jan Beulich <jbeulich@suse.com>
276
277 * config/tc-i386.c (check_qword_reg): Correct register kind
278 checked.
279 * testsuite/gas/i386/x86-64-suffix-bad.s: Add q-suffix with
280 16-bit register cases.
281 * testsuite/gas/i386/x86-64-suffix-bad.l: Adjust expectations.
282
283
284 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
285
286 * testsuite/gas/mips/ecoff@ld.d: Remove test.
287 * testsuite/gas/mips/ecoff@ld-forward.d: Remove test.
288 * testsuite/gas/mips/ecoff@ld-zero-3.d: Remove test.
289 * testsuite/gas/mips/ecoff@sd.d: Remove test.
290 * testsuite/gas/mips/ecoff@sd-forward.d: Remove test.
291 * testsuite/gas/mips/beq.d: Remove a.out and ECOFF support from
292 reloc patterns.
293 * testsuite/gas/mips/mipsr6@beq.d: Likewise.
294 * testsuite/gas/mips/bge.d: Likewise.
295 * testsuite/gas/mips/mipsr6@bge.d: Likewise.
296 * testsuite/gas/mips/bgeu.d: Likewise.
297 * testsuite/gas/mips/mipsr6@bgeu.d: Likewise.
298 * testsuite/gas/mips/blt.d: Likewise.
299 * testsuite/gas/mips/mipsr6@blt.d: Likewise.
300 * testsuite/gas/mips/bltu.d: Likewise.
301 * testsuite/gas/mips/mipsr6@bltu.d: Likewise.
302 * testsuite/gas/mips/branch-likely.d: Likewise.
303 * testsuite/gas/mips/la.d: Likewise.
304 * testsuite/gas/mips/lb.d: Likewise.
305 * testsuite/gas/mips/lifloat.d: Likewise.
306 * testsuite/gas/mips/sb.d: Likewise.
307 * testsuite/gas/mips/uld.d: Likewise.
308 * testsuite/gas/mips/ulh.d: Likewise.
309 * testsuite/gas/mips/ulw.d: Likewise.
310 * testsuite/gas/mips/usd.d: Likewise.
311 * testsuite/gas/mips/ush.d: Likewise.
312 * testsuite/gas/mips/usw.d: Likewise.
313
314 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
315
316 * testsuite/gas/mips/branch-misc-2.s: Move non
317 locally-defined-global symbol tests...
318 * testsuite/gas/mips/branch-misc-5.s: ... to this new test.
319 * testsuite/gas/mips/branch-misc-2.d: Update accordingly.
320 * testsuite/gas/mips/branch-misc-2-64.d: Likewise.
321 * testsuite/gas/mips/branch-misc-2pic.d: Likewise.
322 * testsuite/gas/mips/branch-misc-2pic-64.d: Likewise.
323 * testsuite/gas/mips/mipsr6@branch-misc-2-64.d: Likewise.
324 * testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d: Likewise.
325 * testsuite/gas/mips/micromips@branch-misc-2.d: Likewise.
326 * testsuite/gas/mips/micromips@branch-misc-2-64.d: Likewise.
327 * testsuite/gas/mips/micromips@branch-misc-2pic.d: Likewise.
328 * testsuite/gas/mips/micromips@branch-misc-2pic-64.d: Likewise.
329 * testsuite/gas/mips/branch-misc-5.d: New test.
330 * testsuite/gas/mips/branch-misc-5pic.d: New test.
331 * testsuite/gas/mips/branch-misc-5-64.d: New test.
332 * testsuite/gas/mips/branch-misc-5pic-64.d: New test.
333 * testsuite/gas/mips/mipsr6@branch-misc-5-64.d: New test.
334 * testsuite/gas/mips/mipsr6@branch-misc-5pic-64.d: New test.
335 * testsuite/gas/mips/micromips@branch-misc-5.d: New test.
336 * testsuite/gas/mips/micromips@branch-misc-5pic.d: New test.
337 * testsuite/gas/mips/micromips@branch-misc-5-64.d: New test.
338 * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: New test.
339 * testsuite/gas/mips/mips.exp: Run the new tests.
340
341 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
342
343 * testsuite/gas/mips/beq.s: Uncomment branches to undefined
344 symbols.
345 * testsuite/gas/mips/beq.d: Update accordingly.
346 * testsuite/gas/mips/mipsr6@beq.d: Likewise.
347 * testsuite/gas/mips/micromips@beq.d: Likewise.
348
349 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
350
351 * testsuite/gas/mips/mips.exp: Restrict 64-bit `branch-mips'
352 tests to NewABI targets.
353
354 2016-07-02 Maciej W. Rozycki <macro@imgtec.com>
355
356 * testsuite/gas/mips/mips.exp: Group `branch-misc' tests
357 together.
358
359 2016-07-01 Szabolcs Nagy <szabolcs.nagy@arm.com>
360
361 * config/tc-aarch64.c (struct aarch64_option_cpu_value_table): Add
362 require field.
363 (aarch64_features): Initialize require fields.
364 (aarch64_parse_features): Handle dependencies.
365 (aarch64_feature_enable_set, aarch64_feature_disable_set): New.
366 (md_assemble): Use AARCH64_CPU_HAS_ALL_FEATURES.
367 * testsuite/gas/aarch64/illegal-nofp16.s: New.
368 * testsuite/gas/aarch64/illegal-nofp16.l: New.
369 * testsuite/gas/aarch64/illegal-nofp16.d: New.
370
371 2016-07-01 Nick Clifton <nickc@redhat.com>
372
373 * macro.c (macro_expand_body): Use a buffer big enough to hold an
374 extremely large integer.
375
376 2016-07-01 Jan Beulich <jbeulich@suse.com>
377
378 * testsuite/gas/i386/mpx-inval-2.l: Relax for COFF targets.
379
380 2016-07-01 Tristan Gingold <gingold@adacore.com>
381
382 * NEWS: Add marker for 2.27.
383
384 2016-07-01 Jan Beulich <jbeulich@suse.com>
385
386 * tc-i386.c (i386_index_check): Add special checks for bndmk,
387 bndldx, and bndstx.
388 * testsuite/gas/i386/mpx-inval-2.s: Add %rip and %eip relative
389 as well as scaling by other than 1 tests.
390 * testsuite/gas/i386/mpx-inval-2.l: Adjust accordingly.
391
392 2016-07-01 Jan Beulich <jbeulich@suse.com>
393
394 * tc-i386.c (md_assemble): Alter address size checking for MPX
395 instructions.
396 * testsuite/gas/i386/mpx-inval-2.s: New.
397 * testsuite/gas/i386/mpx-inval-2.l: New.
398 * testsuite/gas/i386/i386.exp: Run new test.
399
400 2016-07-01 Jan Beulich <jbeulich@suse.com>
401
402 PR gas/20318
403 * config/tc-i386.c (match_template): Add char parameter,
404 consumed in Intel mode for an extra suffix check.
405 (md_assemble): New local variable mnem_suffix.
406 * testsuite/gas/i386/suffix-bad.s: New.
407 * testsuite/gas/i386/suffix-bad.l: New.
408 * testsuite/gas/i386/i386.exp: Run new test (twice).
409
410 2016-07-01 Jan Beulich <jbeulich@suse.com>
411
412 * testsuite/gas/i386/movz.s: New.
413 * testsuite/gas/i386/movz32.d: New.
414 * testsuite/gas/i386/movz64.d: New.
415 * testsuite/gas/i386/i386.exp: Run new tests.
416
417 2016-07-01 Jan Beulich <jbeulich@suse.com>
418
419 * config/tc-i386.c (struct _i386_insn): New field memop1_string.
420 (md_assemble): Free first memory operand string.
421 (i386_index_check): Use repprefixok to distingush xlat from
422 other (real) string ops.
423 (maybe_adjust_templates): New.
424 (i386_att_operand). Call it. Store first memory operand string.
425 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
426 * testsuite/gas/i386/intel-movs.s: New.
427 * testsuite/gas/i386/intel-movs32.d: New.
428 * testsuite/gas/i386/intel-movs64.d: New.
429 * testsuite/gas/i386/i386.exp: Run new tests. Invoke as for
430 64-bits tests with "--defsym x86_64=1 --strip-local-absolute".
431
432 2016-06-30 Maciej W. Rozycki <macro@imgtec.com>
433
434 * config/tc-mips.c (get_append_method): Fix a comment typo.
435
436 2016-06-30 Matthew Fortune <Matthew.Fortune@imgtec.com>
437 Maciej W. Rozycki <macro@imgtec.com>
438
439 * config/tc-mips.c (append_insn) <APPEND_SWAP>: Do not special
440 case MIPS16 handling.
441 * testsuite/gas/mips/branch-swap-3.d: New test.
442 * testsuite/gas/mips/branch-swap-4.d: New test.
443 * testsuite/gas/mips/mips16@branch-swap-3.d: New test.
444 * testsuite/gas/mips/mips16@branch-swap-4.d: New test.
445 * testsuite/gas/mips/micromips@branch-swap-3.d: New test.
446 * testsuite/gas/mips/micromips@branch-swap-4.d: New test.
447 * testsuite/gas/mips/branch-swap-3.s: New test source.
448 * testsuite/gas/mips/mips.exp: Run the new tests.
449
450 2016-06-30 Maciej W. Rozycki <macro@imgtec.com>
451
452 * config/tc-mips.c (append_insn): Simplify non-MIPS16 branch
453 swapping sequence.
454
455 2016-06-30 Maciej W. Rozycki <macro@imgtec.com>
456
457 PR gas/20312
458 * write.c (subsegs_finish_section): Force no section padding to
459 alignment on failed assembly, always set last frag's alignment
460 from section.
461 * testsuite/gas/all/pr20312.l: New list test.
462 * testsuite/gas/all/pr20312.s: New test source.
463 * testsuite/gas/all/gas.exp: Run the new test
464
465 2016-06-30 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * config.in (TARGET_WITH_CPU): Undefine.
468 * configure.ac: Add --with-cpu support, and define in config.h.
469 * configure: Regenerate.
470 * config/tc-arc.c: Use TARGET_WITH_CPU to select default CPU.
471 * NEWS: Mention new configure option.
472
473 2016-06-30 Matthew Wahab <matthew.wahab@arm.com>
474
475 * testsuite/gas/arm/armv8_2+rdma.d: New.
476
477 2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
478
479 * NEWS: Mention --enable-compressed-debug-sections=gas is the
480 default for Linux/x86 targets.
481 * configure.tgt (ac_default_compressed_debug_sections): Default
482 to yes for Linux/x86 targets.
483
484 2016-06-29 Maciej W. Rozycki <macro@imgtec.com>
485
486 * write.c: Remove "libbfd.h" inclusion.
487
488 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
489
490 * testsuite/gas/elf/elf.exp: Use `supports_gnu_unique' with the
491 `type' test.
492
493 2016-06-28 Alan Modra <amodra@gmail.com>
494
495 PR gas/20247
496 * testsuite/gas/elf/section11.s: Don't start directives in first column.
497
498 2016-06-28 Richard Sandiford <richard.sandiford@arm.com>
499
500 * testsuite/gas/aarch64/diagnostic.s,
501 testsuite/gas/aarch64/diagnostic.l: Add tests for out-of-range indices.
502
503 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
504
505 * config/tc-mips.c (mips16_reloc_p): Handle
506 BFD_RELOC_MIPS16_16_PCREL_S1.
507 (b_reloc_p): Likewise.
508 (limited_pcrel_reloc_p): Likewise.
509 (md_pcrel_from): Likewise.
510 (md_apply_fix): Likewise.
511 (tc_gen_reloc): Likewise.
512 (md_convert_frag): Likewise.
513 (mips_fix_adjustable): Update comment.
514 * testsuite/gas/mips/mips16-branch-reloc-2.d: Remove error
515 output, add dump patterns.
516 * testsuite/gas/mips/mips16-branch-reloc-3.d: Remove error
517 output, add dump patterns.
518 * testsuite/gas/mips/mips16-branch-addend-2.d: Remove error
519 output, add dump patterns.
520 * testsuite/gas/mips/mips16-branch-addend-3.d: Remove error
521 output, add dump patterns.
522 * testsuite/gas/mips/mips16-branch-absolute.d: Remove error
523 output, add dump patterns.
524 * testsuite/gas/mips/mips16-branch-reloc-2.l: Remove file.
525 * testsuite/gas/mips/mips16-branch-reloc-3.l: Remove file.
526 * testsuite/gas/mips/mips16-branch-addend-2.l: Remove file.
527 * testsuite/gas/mips/mips16-branch-addend-3.l: Remove file.
528 * testsuite/gas/mips/mips16-branch-absolute.l: Remove file.
529 * testsuite/gas/mips/mips16-branch-addend-2.s: Add padding.
530 * testsuite/gas/mips/branch-weak.s: Adjust alignment, avoid
531 implicit instruction padding, avoid MIPS16 JR->JRC conversion.
532 * testsuite/gas/mips/branch-weak-6.d: New test.
533 * testsuite/gas/mips/branch-weak-7.d: New test.
534 * testsuite/gas/mips/mips.exp: Run the new tests.
535
536 2016-06-27 Vineet Gupta <vgupta@synopsys.com>
537
538 * config//tc-arc.c (tc_arc_frame_initial_instructions): Use
539 cfi_add_CFA_def_cfa to generate default CFA with offset
540 * testsuite/gas/cfi/cfi-arc-1.d: Update expected output.
541
542 2016-06-27 Nick Clifton <nickc@redhat.com>
543
544 PR gas/20247
545 * as.h (do_not_pad_sections_to_alignment): New global variable.
546 * as.c (show_usage): Add --no-pad-sections.
547 (parse_args): Likewise.
548 * write.c (size_seg): Skip padding the end of the section if
549 requested from the command line.
550 (SUB_SEGMENT_ALIGN): Likewise.
551 * doc/as.texinfo: Document the new option.
552 * NEWS: Mention the new feature.
553 * testsuite/gas/elf/section11.s: New test.
554 * testsuite/gas/elf/section11.d: New test driver.
555 * testsuite/gas/elf/elf.exp: Run the new test.
556
557 2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
558
559 * config/tc-dlx.c: Include bfd/elf32-dlx.h.
560 * config/tc-dlx.h: Remove prototype of dlx_set_skip_hi16.
561
562 2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
563
564 * config/tc-xtensa.c (xtensa_elf_suffix): Use ARRAY_SIZE instead of a
565 sentinal element.
566 (map_suffix_reloc_to_operator): Likewise.
567 (map_operator_to_reloc): Likewise.
568
569 2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
570
571 * config/tc-nds32.c (md_begin): Use ARRAY_SIZE instead of a sentinal
572 element in relax_table.
573
574 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
575
576 * config/tc-aarch64.c: Make the type of reg_entry::type
577 aarch_reg_type.
578
579 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
580
581 * config/tc-bfin.c (bfin_cpus): Remove sentinal.
582 (md_parse_option): Adjust.
583 * config/tc-aarch64.c (aarch64_parse_abi): Replace use of a sentinal
584 with iteration from 0 to ARRAY_SIZE.
585 * config/tc-mcore.c (md_begin): Likewise.
586 * config/tc-visium.c (visium_parse_arch): Likewise.
587
588 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
589
590 * config/tc-tic54x.c (tic54x_set_default_include): remove argument
591 and simplify accordingly.
592 (tic54x_include): Adjust.
593 (tic54x_mlib): Likewise.
594
595 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
596
597 * config/tc-xtensa.c (xtensa_make_property_section): Remove prototype.
598
599 2016-06-24 Maciej W. Rozycki <macro@imgtec.com>
600
601 * config/tc-mips.c (append_insn): Use any `O_symbol' expression
602 unchanged with relaxed MIPS16 instructions.
603 (mips16_extended_frag): Adjust accordingly. Return 1 right
604 away if a relocation will be required for the symbol requested.
605 Remove dead first relaxation pass code.
606 (mips_relax_frag): Pass `sec' down to `mips16_extended_frag'.
607 (md_convert_frag): Adjust symbol value calculation. Raise an
608 error if a relocation is required for the symbol requested.
609 * testsuite/gas/mips/mips16@relax-swap3.d: Remove dump patterns,
610 add error output.
611 * testsuite/gas/mips/mips16@relax-swap3.l: New error output.
612 * testsuite/gas/mips/mips16-pcrel-relax-0.d: New test.
613 * testsuite/gas/mips/mips16-pcrel-relax-1.d: New test.
614 * testsuite/gas/mips/mips16-pcrel-relax-2.d: New test.
615 * testsuite/gas/mips/mips16-pcrel-relax-3.d: New test.
616 * testsuite/gas/mips/mips16-pcrel-reloc-0.d: New test.
617 * testsuite/gas/mips/mips16-pcrel-reloc-1.d: New test.
618 * testsuite/gas/mips/mips16-pcrel-reloc-2.d: New test.
619 * testsuite/gas/mips/mips16-pcrel-reloc-3.d: New test.
620 * testsuite/gas/mips/mips16-pcrel-reloc-4.d: New test.
621 * testsuite/gas/mips/mips16-pcrel-reloc-5.d: New test.
622 * testsuite/gas/mips/mips16-pcrel-reloc-6.d: New test.
623 * testsuite/gas/mips/mips16-pcrel-reloc-7.d: New test.
624 * testsuite/gas/mips/mips16-pcrel-addend-0.d: New test.
625 * testsuite/gas/mips/mips16-pcrel-addend-1.d: New test.
626 * testsuite/gas/mips/mips16-pcrel-addend-2.d: New test.
627 * testsuite/gas/mips/mips16-pcrel-addend-3.d: New test.
628 * testsuite/gas/mips/mips16-pcrel-absolute.d: New test.
629 * testsuite/gas/mips/mips16-branch-reloc-0.d: New test.
630 * testsuite/gas/mips/mips16-branch-reloc-1.d: New test.
631 * testsuite/gas/mips/mips16-branch-reloc-2.d: New test.
632 * testsuite/gas/mips/mips16-branch-reloc-3.d: New test.
633 * testsuite/gas/mips/mips16-branch-addend-0.d: New test.
634 * testsuite/gas/mips/mips16-branch-addend-1.d: New test.
635 * testsuite/gas/mips/mips16-branch-addend-2.d: New test.
636 * testsuite/gas/mips/mips16-branch-addend-3.d: New test.
637 * testsuite/gas/mips/mips16-branch-absolute.d: New test.
638 * testsuite/gas/mips/mips16-absolute-reloc-0.d: New test.
639 * testsuite/gas/mips/mips16-absolute-reloc-1.d: New test.
640 * testsuite/gas/mips/mips16-absolute-reloc-2.d: New test.
641 * testsuite/gas/mips/mips16-absolute-reloc-3.d: New test.
642 * testsuite/gas/mips/mips16-pcrel-reloc-2.l: New error output.
643 * testsuite/gas/mips/mips16-pcrel-reloc-3.l: New error output.
644 * testsuite/gas/mips/mips16-pcrel-reloc-6.l: New error output.
645 * testsuite/gas/mips/mips16-pcrel-reloc-7.l: New error output.
646 * testsuite/gas/mips/mips16-pcrel-addend-2.l: New error output.
647 * testsuite/gas/mips/mips16-pcrel-addend-3.l: New error output.
648 * testsuite/gas/mips/mips16-pcrel-absolute.l: New error output.
649 * testsuite/gas/mips/mips16-branch-reloc-2.l: New error output.
650 * testsuite/gas/mips/mips16-branch-reloc-3.l: New error output.
651 * testsuite/gas/mips/mips16-branch-addend-2.l: New error output.
652 * testsuite/gas/mips/mips16-branch-addend-3.l: New error output.
653 * testsuite/gas/mips/mips16-branch-absolute.l: New error output.
654 * testsuite/gas/mips/mips16-absolute-reloc-2.l: New error output.
655 * testsuite/gas/mips/mips16-absolute-reloc-3.l: New error output.
656 * testsuite/gas/mips/mips16-pcrel-relax-0.s: New test source.
657 * testsuite/gas/mips/mips16-pcrel-relax-2.s: New test source.
658 * testsuite/gas/mips/mips16-pcrel-reloc-0.s: New test source.
659 * testsuite/gas/mips/mips16-pcrel-reloc-1.s: New test source.
660 * testsuite/gas/mips/mips16-pcrel-reloc-2.s: New test source.
661 * testsuite/gas/mips/mips16-pcrel-reloc-3.s: New test source.
662 * testsuite/gas/mips/mips16-pcrel-reloc-4.s: New test source.
663 * testsuite/gas/mips/mips16-pcrel-reloc-5.s: New test source.
664 * testsuite/gas/mips/mips16-pcrel-reloc-6.s: New test source.
665 * testsuite/gas/mips/mips16-pcrel-reloc-7.s: New test source.
666 * testsuite/gas/mips/mips16-pcrel-addend-0.s: New test source.
667 * testsuite/gas/mips/mips16-pcrel-addend-1.s: New test source.
668 * testsuite/gas/mips/mips16-pcrel-addend-2.s: New test source.
669 * testsuite/gas/mips/mips16-pcrel-addend-3.s: New test source.
670 * testsuite/gas/mips/mips16-pcrel-absolute.s: New test source.
671 * testsuite/gas/mips/mips16-branch-reloc-0.s: New test source.
672 * testsuite/gas/mips/mips16-branch-reloc-1.s: New test source.
673 * testsuite/gas/mips/mips16-branch-reloc-2.s: New test source.
674 * testsuite/gas/mips/mips16-branch-reloc-3.s: New test source.
675 * testsuite/gas/mips/mips16-branch-addend-0.s: New test source.
676 * testsuite/gas/mips/mips16-branch-addend-1.s: New test source.
677 * testsuite/gas/mips/mips16-branch-addend-2.s: New test source.
678 * testsuite/gas/mips/mips16-branch-addend-3.s: New test source.
679 * testsuite/gas/mips/mips16-branch-absolute.s: New test source.
680 * testsuite/gas/mips/mips16-absolute-reloc-0.s: New test source.
681 * testsuite/gas/mips/mips16-absolute-reloc-1.s: New test source.
682 * testsuite/gas/mips/mips16-absolute-reloc-2.s: New test source.
683 * testsuite/gas/mips/mips16-absolute-reloc-3.s: New test source.
684 * testsuite/gas/mips/mips.exp: Run the new tests.
685
686 2016-06-24 Alan Modra <amodra@gmail.com>
687
688 * configure.tgt (alpha-*-openbsd*): Use em=nbsd.
689
690 2016-06-23 Maciej W. Rozycki <macro@imgtec.com>
691
692 * config/tc-mips.c (b_reloc_p): New function.
693 (mips_fix_adjustable): Also keep the original microMIPS symbol
694 referred from branch relocations.
695 * testsuite/gas/mips/branch-local-1.d: New test.
696 * testsuite/gas/mips/branch-local-n32-1.d: New test.
697 * testsuite/gas/mips/branch-local-n64-1.d: New test.
698 * testsuite/gas/mips/micromips@branch-misc-4-64.d: Update
699 relocations.
700 * testsuite/gas/mips/branch-local-1.s: New test source.
701 * testsuite/gas/mips/mips.exp: Run the new cases.
702
703 2016-06-23 Graham Markall <graham.markall@embecosm.com>
704
705 * config/tc-arc.c (options, md_longopts, md_parse_option): Move
706 -mspfp, -mdpfp and -mfpuda out of the sections for dummy
707 options. Correct erroneous enabling of SPFP instructions when
708 using -mnps400.
709
710 2016-06-22 Peter Bergner <bergner@vnet.ibm.com>
711
712 * testsuite/gas/ppc/power9.d <brd, brh, brw, mffs, mffs., mffsce,
713 mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl, nandxor, rldixor,
714 setbool, xor3>: New tests.
715 * testsuite/gas/ppc/power9.s: Likewise.
716
717 2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
718
719 * config/tc-xtensa.c: Include elf/xtensa.h.
720
721 2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
722
723 * config/tc-mips.c (calculate_reloc) <BFD_RELOC_HI16_S_PCREL>
724 <BFD_RELOC_LO16_PCREL>: New switch cases.
725 (md_apply_fix) <BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL>:
726 Move switch cases along `BFD_RELOC_MIPS_JMP'.
727 <BFD_RELOC_MIPS_21_PCREL_S2, BFD_RELOC_MIPS_26_PCREL_S2>
728 <BFD_RELOC_MIPS_18_PCREL_S3, BFD_RELOC_MIPS_19_PCREL_S2>: Handle
729 the resolved case.
730 * testsuite/gas/mips/pcrel-reloc-4.d: New test.
731 * testsuite/gas/mips/pcrel-reloc-4-r6.d: New test.
732 * testsuite/gas/mips/pcrel-reloc-5.d: New test.
733 * testsuite/gas/mips/pcrel-reloc-5-r6.d: New test.
734 * testsuite/gas/mips/pcrel-reloc-6.d: New test.
735 * testsuite/gas/mips/pcrel-reloc-6.l: New list test.
736 * testsuite/gas/mips/pcrel-reloc-4.s: New test source.
737 * testsuite/gas/mips/pcrel-reloc-6.s: New test source.
738 * testsuite/gas/mips/mips.exp: Run the new tests.
739
740 2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
741
742 * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS_18_PCREL_S3>
743 <BFD_RELOC_MIPS_19_PCREL_S2>: Avoid null pointer dereferences
744 via `fixP->fx_addsy'.
745
746 2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
747
748 * config/tc-mips.c (md_pcrel_from) <BFD_RELOC_MIPS_18_PCREL_S3>:
749 Calculate relocation from the containing aligned doubleword.
750 (tc_gen_reloc) <BFD_RELOC_MIPS_18_PCREL_S3>: Calculate the
751 addend from the containing aligned doubleword.
752
753 2016-06-21 Maciej W. Rozycki <macro@imgtec.com>
754
755 * config/tc-mips.c (mips_force_relocation): Use `file_mips_opts'
756 rather than `mips_opts' for the R6 ISA check.
757 (mips_fix_adjustable): Likewise.
758 * testsuite/gas/mips/pcrel-reloc-1.d: New test.
759 * testsuite/gas/mips/pcrel-reloc-1-r6.d: New test.
760 * testsuite/gas/mips/pcrel-reloc-2.d: New test.
761 * testsuite/gas/mips/pcrel-reloc-2-r6.d: New test.
762 * testsuite/gas/mips/pcrel-reloc-3.d: New test.
763 * testsuite/gas/mips/pcrel-reloc-3-r6.d: New test.
764 * testsuite/gas/mips/pcrel-reloc-1.s: New test source.
765 * testsuite/gas/mips/mips.exp: Run the new tests.
766
767 2016-06-21 Graham Markall <graham.markall@embecosm.com>
768
769 * config/tc-arc.c (check_cpu_feature, md_parse_option):
770 Add nps400 option and feature. Add check for nps400
771 feature. Refactor existing checks to check subclass before
772 feature enablement.
773 (md_show_usage): Document flags for NPS-400 and add some other
774 undocumented flags.
775 (cpu_type): Remove nps400 CPU type entry
776 (check_zol): Remove bfd_mach_arc_nps400 case.
777 (md_show_usage): Add help on -mcpu=nps400.
778 (cpu_types): Add entry for nps400 as arc700 plus nps400 extension
779 set.
780 * doc/c-arc.texi: Document the -mnps400, -mspfp, -mdpfp, and
781 -fpuda flags. Document -mcpu=nps400.
782 * testsuite/gas/arc/nps-400-0.d: Use -mcpu=arc700 -mnps400. Change
783 expected flags to match ARC700 instead of NPS400.
784 * testsuite/gas/arc/nps-400-1.d: Use -mcpu=arc700 -mnps400.
785 * testsuite/gas/arc/nps-400-2.d: Likewise.
786 * testsuite/gas/arc/nps-400-3.d: Likewise.
787 * testsuite/gas/arc/nps-400-4.d: Likewise.
788 * testsuite/gas/arc/nps-400-5.d: Likewise.
789 * testsuite/gas/arc/nps-400-6.d: Likewise.
790 * testsuite/gas/arc/nps-400-7.d: Likewise.
791 * testsuite/gas/arc/textinsn2op01.s: Change opcode of myinsn to
792 avoid clash with cbba instruction.
793 * testsuite/gas/arc/textinsn2op01.d: Likewise.
794 * testsuite/gas/arc/textinsn3op.d: Likewise.
795 * testsuite/gas/arc/textinsn3op.s: Likewise.
796 * testsuite/gas/arc/nps-400-0.d: Test using NPS-400 using
797 -mcpu=nps400 as an alternative to -mcpu=arc700 -mnps400 flags.
798
799 2016-06-20 Maciej W. Rozycki <macro@imgtec.com>
800
801 * testsuite/gas/mips/r6-64-n32.d: Change the `name' tag.
802 * testsuite/gas/mips/r6-64-n64.d: Likewise.
803
804 2016-06-20 Maciej W. Rozycki <macro@imgtec.com>
805
806 * config/tc-mips.c (mips_fix_adjustable): Update comment on jump
807 reloc conversion.
808
809 2016-06-20 Virendra Pathak <virendra.pathak@broadcom.com>
810
811 * config/tc-aarch64.c (aarch64_cpus): Update vulcan feature set.
812
813 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
814
815 * config/tc-sparc.c (hpriv_reg_table): Add registers %hmcdper,
816 %hmcddfr and %hva_mask_nz.
817 (sparc_ip): New handling of asr/privileged/hyperprivileged
818 registers, adapted to the new form of the sparc opcodes table.
819 * testsuite/gas/sparc/rdasr.s: New file.
820 * testsuite/gas/sparc/rdasr.d: Likewise.
821 * testsuite/gas/sparc/wrasr.s: Likewise.
822 * testsuite/gas/sparc/wrasr.d: Likewise.
823 * testsuite/gas/sparc/sparc.exp (sparc_elf_setup): Add rdasr and
824 wrasr tests.
825 * testsuite/gas/sparc/rdpr.d: Use -Av9m, as some privileged
826 registers require it.
827 * testsuite/gas/sparc/wrpr.s: Complete to cover all privileged
828 registers and write instruction modalities.
829 * testsuite/gas/sparc/wrpr.d: Likewise.
830 * testsuite/gas/sparc/rdhpr.s: Likewise for hyperprivileged
831 registers.
832 * testsuite/gas/sparc/rdhpr.d: Likewise.
833 * testsuite/gas/sparc/wrhpr.s: Likewise.
834 * testsuite/gas/sparc/wrhpr.d: Likewise.
835
836 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
837
838 * config/tc-sparc.c (sparc_arch_table): adjust the GAS
839 architectures to use the right opcode architecture.
840 (sparc_md_end): Handle v9{c,d,e,v,m}.
841 (sparc_ip): Fix some comments.
842 * testsuite/gas/sparc/ldx_efsr.d: Fix the architecture of this
843 instruction, which is v9d.
844 * testsuite/gas/sparc/mwait.s: Remove the `rd %mwait,%g1'
845 instruction from the test, as %mwait is not readable.
846 * testsuite/gas/sparc/mwait.d: Likewise.
847 * testsuite/gas/sparc/mism-1.s: Expand to check v9b and v9e
848 mismatch architecture errors.
849 * testsuite/gas/sparc/mism-2.s: New file.
850
851 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
852
853 * config/tc-sparc.c (priv_reg_table): Use NULL instead of the
854 empty string to mark the end of the array.
855 (hpriv_reg_table): Likewise.
856 (v9a_asr_table): Likewise.
857 (cmp_reg_entry): Handle entries with NULL names.
858 (F_POP_V9): Define.
859 (F_POP_PCREL): Likewise.
860 (F_POP_TLS_CALL): Likewise.
861 (F_POP_POSTFIX): Likewise.
862 (struct pop_entry): New type.
863 (pop_table): New variable.
864 (enum pop_entry_type): New type.
865 (struct perc_entry): Likewise.
866 (NUM_PERC_ENTRIES): Define.
867 (perc_table): New variable.
868 (cmp_perc_entry): New function.
869 (md_begin): Sort hpriv_reg_table and v9a_asr_table, and initialize
870 perc_table.
871 (sparc_ip): Handle entries with NULL names in priv_reg_table,
872 hpriv_reg_table and v9a_asr_table. Use perc_table to handle
873 %-pseudo-ops.
874
875 2016-06-15 Nick Clifton <nickc@redhat.com>
876
877 * config/tc-ft32.c (md_assemble): Call dwarf2_emit_insn with the
878 instruction size.
879 * config/tc-mcore.c (md_assemble): Likewise.
880 * config/tc-mn10200.c (md_assemble): Likewise.
881 * config/tc-moxie.c (md_assemble): Likewise.
882 * config/tc-pj.c (md_apply_fix): Handle BFD_RELOC_PJ_CODE_REL32.
883 * testsuite/gas/all/gas.exp (diff1 test): Alpha sort list of
884 exception targets. Add alpha, hppa, microblaze and rl78 to list
885 of exceptions.
886 (forward): Add microblaze to list of exceptions.
887 (fwdexp): Add alpha to list of exceptions.
888 (redef2): Add arm-epoc-pe and rl78 to list of exceptions.
889 (redef3): Add rl78 and x86_64 cygwin to list of exceptions.
890 (do_930509a): Alpha sort list of exception targets. Add h8300 and
891 mn10200 to list of exceptions.
892 (align2): Expect to fail for nds32.
893 (cond): Add alpha and rl78 to list of exceptions.
894 * testsuite/gas/all/none.d: Skip for ft32 and hppa.
895 * testsuite/gas/all/string.d: Skip for tic4x.
896 * testsuite/gas/alpha/alpha.exp: Note that the alpha-linuxecoff
897 target does not support ELF.
898 * testsuite/gas/arm/blx-bl-convert.dL Skip for the nto target.
899 * testsuite/gas/cfi/cfi-alpha-2.d: All extended format names.
900 * testsuite/gas/cfi/cfi.exp: Alpha sort list of targets. Skip SH
901 tests for sh-pe and sh-rtemscoff targets.
902 * testsuite/gas/elf/elf.exp (redef): Add rl78, xgate and vax to
903 list of exceptions.
904 (type): Run the noifunc version for alpha-freebsd and visium.
905 * testsuite/gas/elf/warn-2.s: Do not expect to fail on the mcore,
906 mn10200 or moxie targets.
907 * testsuite/gas/ft32/insn.d: Update expected disassembly.
908 * testsuite/gas/i386/i386.exp (x86-64-pcrel): Skip for cygwin
909 targets.
910 * testsuite/gas/lns/lns.exp (lns-common-1): No longer skip for
911 mcore and rx targets.
912 * testsuite/gas/macros/macros.exp (dot): Add exceptions for ns32k,
913 rl78 and vax.
914 (purge): Expect to fail on the ns32k and vax.
915 * testsuite/gas/nds32/alu-2.d: Update expected disassembly.
916 * testsuite/gas/nds32/ls.d: Likewise.
917 * testsuite/gas/nds32/sys-reg.d: Likewise.
918 * testsuite/gas/nds32/usr-spe-reg.d: Likewise.
919 * testsuite/gas/pe/aligncomm-d.d: Skip for the sh.
920 * testsuite/gas/pe/section-align-3.d: Likewise.
921 * testsuite/gas/pe/section-exclude.d: Likewise.
922 * testsuite/gas/ppc/test2xcoff32.d: Pass once all the required
923 data has been seen.
924 * testsuite/gas/ppc/textalign-xcoff-001.d: Fix up regexp to allow
925 for variations in whitespace.
926 * testsuite/gas/tilepro/t_constants.d: Pass once all the required
927 data has been seen.
928 * testsuite/gas/tilepro/t_constants.s (.safe_word): New macro.
929 Installs a 32-bit value without generating warnings on 64-bit
930 hosts.
931 Use the new macro to replace the .word directives.
932
933 2016-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * testsuite/gas/arc/add_s.d: New file.
936 * testsuite/gas/arc/add_s.s: New file.
937
938 2016-06-14 Graham Markall <graham.markall@embecosm.com>
939
940 * testsuite/gas/arc/nps400-6.s: Add tests of ldbit.
941 * testsuite/gas/arc/nps400-6.d: Likewise.
942
943 2016-06-14 Graham Markall <graham.markall@embecosm.com>
944
945 * testsuite/gas/arc/nps400-6.s: Add tests of hash, tr, utf8, e4by, and
946 addf.
947 * testsuite/gas/arc/nps400-6.d: Likewise.
948
949 2016-06-14 Graham Markall <graham.markall@embecosm.com>
950
951 * testsuite/gas/arc/nps400-6.s: Add tests of calcbsd, calcbxd,
952 calckey, calcxkey, mxb, imxb, addl, subl, andl, orl, xorl, andab, orab,
953 lbdsize, bdlen, csms, csma, cbba, zncv, and hofs.
954 * testsuite/gas/arc/nps400-6.d: Likewise.
955
956 2016-06-14 Nick Clifton <nickc@redhat.com>
957
958 * config/tc-nds32.c (nds32_get_align): Avoid left shifting a
959 signed constant.
960
961 2016-06-13 Maciej W. Rozycki <macro@imgtec.com>
962
963 * config/tc-mips.c (mips_fix_adjustable): Don't convert RELA
964 JALR relocations on R6.
965 * testsuite/gas/mips/jal-svr4pic-local.d: New test.
966 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: New test.
967 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: New test.
968 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: New test.
969 * testsuite/gas/mips/jal-svr4pic-local-n32.d: New test.
970 * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d: New
971 test.
972 * testsuite/gas/mips/jal-svr4pic-local-n64.d: New test.
973 * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d: New
974 test.
975 * testsuite/gas/mips/jal-svr4pic-local.s: New test source.
976 * testsuite/gas/mips/jal-svr4pic-local-newabi.s: New test
977 source.
978 * testsuite/gas/mips/mips.exp: Run the new tests.
979
980 2016-06-13 Virendra Pathak <virendra.pathak@broadcom.com>
981
982 * config/tc-aarch64.c (aarch64_cpus): Add Broadcom Vulcan.
983 * doc/c-aarch64.texi: Document that vulcan is a valid processor
984 name.
985
986 2016-06-13 Nick Clifton <nickc@redhat.com>
987
988 * config/tc-arm.c: For non-ELF based targets skip ARM feature sets
989 that are not supported.
990
991 * config/tc-arc.c (md_apply_fix): Avoid left shifting a signed
992 constant.
993 * config/tc-cr16.c (check_range): Likewise.
994 * config/tc-nios2.c (nios2_check_overflow): Likewise.
995
996 2016-06-08 Renlin Li <renlin.li@arm.com>
997
998 * config/tc-aarch64.c (print_operands): Substitute size.
999 (output_operand_error_record): Likewise.
1000
1001 2016-06-07 Alan Modra <amodra@gmail.com>
1002
1003 * config/tc-ppc.c (PPC_APUINFO_ISEL, PPC_APUINFO_PMR,
1004 PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE,
1005 PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK, PPC_APUINFO_VLE): Don't define.
1006 (ppc_setup_opcodes): Check vle disables powerpc_opcodes overridden
1007 by vle_opcodes, and that vle flag doesn't enable opcodes. Don't
1008 add vle_opcodes twice.
1009 (ppc_cleanup): Use APUINFO_SECTION_NAME and APUINFO_LABEL.
1010
1011 2016-06-07 Matthew Wahab <matthew.wahab@arm.com>
1012
1013 * config/tc-arm.c (arm_ext_v8_2): Rename to arm_ext_ras.
1014 (arm_ext_ras): Renamed from arm_ext_v8_2.
1015 (insns): Update for arm_ext_v8_2 renaming.
1016 (arm_extensions): Add "ras".
1017 * doc/c-arm.texi (ARM Options): Add an entry for "ras".
1018 * testsuite/gas/arm/armv8-a+ras.d: New.
1019 * testsuite/gas/arm/armv8_2-a.d: Add explicit command line
1020 options.
1021
1022 2016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1023
1024 * itbl-parse.y (yyerror): Use modern argument declaration style.
1025
1026 2016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1027
1028 * config/tc-sh.c (parse_reg): Change type of mode argument to
1029 sh_arg_type.
1030 (get_operand): Adjust.
1031 (insert): Change type of how to bfd_reloc_code_real_type.
1032 (insert4): Likewise.
1033 * config/tc-sh64.c (shmedia_get_operand): Adjust.
1034 (shmedia_parse_reg): Change type of mode to shmedia_arg_type.
1035
1036 2016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1037
1038 * config/tc-nds32.c (nds32_parse_option): Make the type of ptr_arg
1039 const char *.
1040
1041 2016-06-03 Peter Bergner <bergner@vnet.ibm.com>
1042
1043 PR binutils/20196
1044 * gas/testsuite/gas/ppc/e6500.s <lbarx, lharx, lwarx, ldarx,
1045 stbcx., sthcx., stwcx., stdcx.>: Add tests.
1046 * gas/testsuite/gas/ppc/e6500.d: Likewise.
1047 * gas/testsuite/gas/ppc/power8.s: Likewise.
1048 * gas/testsuite/gas/ppc/power8.d: Likewise.
1049 * gas/testsuite/gas/ppc/power4.s <lwarx, ldarx, stwcx.,
1050 stdcx.>: Add tests.
1051 * gas/testsuite/gas/ppc/power4.d: Likewise.
1052
1053 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
1054
1055 PR binutis/18386
1056 * testsuite/gas/i386/i386.exp: Run x86-64-branch-4.
1057 * testsuite/gas/i386/x86-64-branch.d: Updated.
1058 * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
1059 * testsuite/gas/i386/x86-64-branch-4.l: New file.
1060 * testsuite/gas/i386/x86-64-branch-4.s: Likewise.
1061
1062 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1063
1064 * config/tc-aarch64.c (aarch64_cpus): Add cortex-a73 entry.
1065 * doc/c-aarch64.texi (-mcpu): Document cortex-a73 value.
1066
1067 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1068
1069 * config/tc-arm.c (arm_cpus): Add cortex-a73 entry.
1070 * doc/c-arm.texi (-mcpu=): Document cortex-a73 value.
1071
1072 2016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com>
1073
1074 * configure.tgt: Replace -uclibc with *.
1075
1076 2016-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * config/tc-arc.c (parse_opcode_flags): New function.
1079 (find_opcode_match): Move flag parsing code out to new function.
1080 Ignore operands marked IGNORE.
1081 (build_fake_opcode_hash_entry): New function.
1082 (find_special_case_long_opcode): New function.
1083 (find_special_case): Lookup long opcodes.
1084 * testsuite/gas/arc/nps400-7.d: New file.
1085 * testsuite/gas/arc/nps400-7.s: New file.
1086
1087 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1088
1089 * config/tc-ns32k.c: Remove definition of input_line_pointer.
1090
1091 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1092
1093 * config/tc-avr.c (avr_parse_cons_expression): Replace iteration to
1094 sentinal with iteration to array size.
1095
1096 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1097
1098 * config/xtensa-relax.h: Move typedefs of enums to the enums
1099 definition.
1100
1101 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1102
1103 * config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW
1104 macro.
1105
1106 2016-06-01 Graham Markall <graham.markall@embecosm.com>
1107
1108 * testsuite/gas/arc/nps-400-1.s: Add rflt variants with
1109 operands of types a,b,u6, 0,b,u6, and 0,b,limm.
1110 * testsuite/gas/arc/nps-400-1.d: Likewise.
1111
1112 2016-05-29 H.J. Lu <hongjiu.lu@intel.com>
1113
1114 PR gas/20145
1115 * config/tc-i386.c (cpu_noarch): Add noavx512f, noavx512cd,
1116 noavx512er, noavx512pf, noavx512dq, noavx512bw, noavx512vl,
1117 noavx512ifma and noavx512vbmi.
1118 * doc/c-i386.texi: Mention noavx512f, noavx512cd, noavx512er,
1119 noavx512pf, noavx512dq, noavx512bw, noavx512vl, noavx512ifma
1120 and noavx512vbmi.
1121 * testsuite/gas/i386/i386.exp: Run noavx512-1 and noavx512-2.
1122 * testsuite/gas/i386/noavx512-1.l: New file.
1123 * testsuite/gas/i386/noavx512-1.s: Likewise.
1124 * testsuite/gas/i386/noavx512-2.l: Likewise.
1125 * testsuite/gas/i386/noavx512-2.s: Likewise.
1126
1127 2016-05-27 H.J. Lu <hongjiu.lu@intel.com>
1128
1129 PR gas/20145
1130 * config/tc-i386.c (cpu_arch): Add 687.
1131 (cpu_noarch): Add no287, no387, no687, nosse2, nosse3, nossse3,
1132 nosse4.1, nosse4.2, nosse4 and noavx2.
1133 (parse_real_register): Check cpuregmmx instead of cpummx for MMX
1134 register. Check cpuregxmm instead of cpusse for XMM register.
1135 Check cpuregymm instead of cpuavx for YMM register. Check
1136 cpuregzmm/cpuregmask instead of cpuavx512f for ZMMM/mask register.
1137 * doc/c-i386.texi: Mention 687, no287, no387, no687, nosse2,
1138 nosse3, nossse3, nosse4.1, nosse4.2, nosse4 and noavx2.
1139 * testsuite/gas/i386/arch-10-prefetchw.d (as): Add mmx.
1140 * testsuite/gas/i386/arch-10.d (as): Likewise.
1141 * testsuite/gas/i386/arch-11.s: Add ".arch .mmx".
1142 * testsuite/gas/i386/i386.exp: Pass mmx to assembler for
1143 arch-10-3 and arch-10-4. Run no87-3, nosse-4, nosse-5, noavx-3
1144 and noavx-4.
1145 * testsuite/gas/i386/no87-3.l: New file.
1146 * testsuite/gas/i386/no87-3.s: Likewise.
1147 * testsuite/gas/i386/noavx-3.l: Likewise.
1148 * testsuite/gas/i386/noavx-3.s: Likewise.
1149 * testsuite/gas/i386/noavx-4.d: Likewise.
1150 * testsuite/gas/i386/noavx-4.s: Likewise.
1151 * testsuite/gas/i386/nosse-4.l: Likewise.
1152 * testsuite/gas/i386/nosse-4.s: Likewise.
1153 * testsuite/gas/i386/nosse-5.d: Likewise.
1154 * testsuite/gas/i386/nosse-5.s: Likewise.
1155
1156 2016-05-27 H.J. Lu <hongjiu.lu@intel.com>
1157
1158 PR gas/20154
1159 * config/tc-i386.c (cpu_flags_match): Don't set cpuamd64 nor
1160 cpuintel64.
1161 (match_template): Check Intel64/AMD64 ISA.
1162
1163 2016-05-27 H.J. Lu <hongjiu.lu@intel.com>
1164
1165 PR gas/20154
1166 * config/tc-i386.c (intel64): New.
1167 (cpu_flags_match): Set cpuamd64 and cpuintel64.
1168 (md_parse_option): Set intel64 instead of cpuamd64 and
1169 cpuintel64.
1170
1171 2016-05-27 H.J. Lu <hongjiu.lu@intel.com>
1172
1173 * config/tc-i386.c (cpu_flags_match): Don't clear cpu64 nor
1174 cpuno64.
1175
1176 2016-05-26 Peter Bergner <bergner@vnet.ibm.com>
1177
1178 * testsuite/gas/ppc/altivec3.d <vmsumudm>: Add test.
1179 * testsuite/gas/ppc/altivec3.s: Likewise.
1180 * testsuite/gas/ppc/power9.d <addex[.], lwzmx, vmsumudm>: Add tests.
1181 * testsuite/gas/ppc/power9.s: Likewise.
1182
1183 2016-05-26 H.J. Lu <hongjiu.lu@intel.com>
1184
1185 * testsuite/gas/i386/avx512vl-2.l: Append "#pass".
1186 * testsuite/gas/i386/noavx-1.l: Likewise.
1187 * testsuite/gas/i386/nommx-1.l: Likewise.
1188 * testsuite/gas/i386/nosse-1.l: Likewise.
1189 * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
1190 * testsuite/gas/i386/avx512vl-2.s: Append ".p2align 4".
1191 * testsuite/gas/i386/noavx-1.s: Likewise.
1192 * testsuite/gas/i386/nommx-1.s: Likewise.
1193 * testsuite/gas/i386/nosse-1.s: Likewise.
1194 * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
1195
1196 2016-05-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1197
1198 * config/tc-metag.c (metag_handle_align): Make the type of noop
1199 unsigned char.
1200
1201 2016-05-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1202
1203 * config/tc-rx.c (md_convert_frag): Make the type of reloc_type
1204 bfd_reloc_code_real_type.
1205
1206 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
1207
1208 PR gas/20140
1209 * config/tc-i386.c (cpu_flags_match): Require another match
1210 for AVX512VL.
1211 * testsuite/gas/i386/i386.exp: Run avx512vl-1, avx512vl-2,
1212 x86-64-avx512vl-1 and x86-64-avx512vl-2.
1213 * testsuite/gas/i386/avx512vl-1.l: New file.
1214 * testsuite/gas/i386/avx512vl-1.s: Likewise.
1215 * testsuite/gas/i386/avx512vl-2.l: Likewise.
1216 * testsuite/gas/i386/avx512vl-2.s: Likewise.
1217 * testsuite/gas/i386/x86-64-avx512vl-1.l: Likewise.
1218 * testsuite/gas/i386/x86-64-avx512vl-1.s: Likewise.
1219 * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
1220 * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
1221
1222 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
1223
1224 PR gas/20141
1225 * testsuite/gas/i386/i386.exp: Run x86-64-pr20141.
1226 * testsuite/gas/i386/x86-64-pr20141.d: New file.
1227 * testsuite/gas/i386/x86-64-pr20141.s: Likewise.
1228
1229 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 * config/tc-i386.c (arch_entry): Remove negated.
1232 (noarch_entry): New struct.
1233 (cpu_arch): Updated. Remove .no87, .nommx, .nosse and .noavx.
1234 (cpu_noarch): New.
1235 (set_cpu_arch): Check cpu_noarch after cpu_arch.
1236 (md_parse_option): Allow -march=+nosse. Check cpu_noarch after
1237 cpu_arch.
1238 (output_message): New function.
1239 (show_arch): Use it. Handle cpu_noarch.
1240 * testsuite/gas/i386/i386.exp: Run nommx-1, nommx-2, nommx-3,
1241 nosse-1, nosse-2, nosse-3, noavx-1 and noavx-2.
1242 * testsuite/gas/i386/noavx-1.l: New file.
1243 * testsuite/gas/i386/noavx-1.s: Likewise.
1244 * testsuite/gas/i386/noavx-2.s: Likewise.
1245 * testsuite/gas/i386/noavx-2.l: Likewise.
1246 * testsuite/gas/i386/nommx-1.s: Likewise.
1247 * testsuite/gas/i386/nommx-1.l: Likewise.
1248 * testsuite/gas/i386/nommx-2.s: Likewise.
1249 * testsuite/gas/i386/nommx-2.l: Likewise.
1250 * testsuite/gas/i386/nommx-3.s: Likewise.
1251 * testsuite/gas/i386/nommx-3.l: Likewise.
1252 * testsuite/gas/i386/nosse-1.s: Likewise.
1253 * testsuite/gas/i386/nosse-1.l: Likewise.
1254 * testsuite/gas/i386/nosse-2.s: Likewise.
1255 * testsuite/gas/i386/nosse-2.l: Likewise.
1256 * testsuite/gas/i386/nosse-3.s: Likewise.
1257 * testsuite/gas/i386/nosse-3.l: Likewise.
1258
1259 2016-05-25 Chua Zheng Leong <chuazl@comp.nus.edu.sg>
1260
1261 PR target/20067
1262 * config/tc-arm.c (move_or_literal_pool): Only generate a VMOV.I64
1263 instruction if supported by the currently selected fpu variant.
1264 * testsuite/gas/arm/vfpv3-ldr_immediate.s: Add test of this PR.
1265 * testsuite/gas/arm/vfpv3-ldr_immediate.d: Update expected disassembly.
1266
1267 2016-05-24 Maciej W. Rozycki <macro@imgtec.com>
1268
1269 * config/tc-mips.c (mips_fix_adjustable): Also return 0 for
1270 jump relocations against MIPS16 or microMIPS symbols on RELA
1271 targets.
1272 * testsuite/gas/mips/jalx-local.d: New test.
1273 * testsuite/gas/mips/jalx-local-n32.d: New test.
1274 * testsuite/gas/mips/jalx-local-n64.d: New test.
1275 * testsuite/gas/mips/jalx-local.s: New test source.
1276 * testsuite/gas/mips/mips.exp: Run the new tests.
1277
1278 2016-05-24 Maciej W. Rozycki <macro@imgtec.com>
1279
1280 * config/tc-mips.c (md_apply_fix)
1281 <BFD_RELOC_MIPS16_TLS_TPREL_LO16>: Remove fall-through, adjust
1282 code accordingly.
1283
1284 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1285
1286 * config/tc-xtensa.c (struct suffix_reloc_map): Change type of field
1287 operator to operatorT.
1288 (map_suffix_reloc_to_operator): Change return type to operatorT.
1289
1290 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1291
1292 * config/tc-d30v.c (find_format): Change type of X_op to operatorT.
1293
1294 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1295
1296 * config/tc-mmix.c (mmix_parse_predefined_name): Change type of
1297 handler_charp to const char *.
1298
1299 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1300
1301 * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
1302 (ft32_target_format): Likewise.
1303 (TARGET_FORMAT): Adjust.
1304
1305 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1306
1307 * config/tc-ia64.c (dot_rot): simplify allocations from obstacks.
1308 (ia64_frob_label): Likewise.
1309
1310 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1311
1312 * config/tc-cr16.c (check_range): Make type of retval op_err.
1313 * config/tc-crx.c: Likewise.
1314
1315 2016-05-23 Claudiu Zissulescu <claziss@synopsys.com>
1316
1317 * config/tc-arc.c (md_begin): Add XY registers.
1318 (cpu_types): Code density is default off for ARC EM.
1319
1320 2016-05-23 Cupertino Miranda <cmiranda@synopsys.com>
1321
1322 * config/tc-arc.c (attributes_t): Renamed attribute class to
1323 attr_class.
1324 (find_opcode_match, assemble_insn, tokenize_extinsn): Changed.
1325
1326 2016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com>
1327
1328 * configuse.tgt: Add entry for arm-phoenix.
1329
1330 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1331
1332 * config/tc-tic54x.c (tic54x_sect): simplify string creation.
1333
1334 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1335
1336 * config/tc-spu.c (APUOP): Use OPCODE as an unsigned constant.
1337
1338 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1339
1340 * config/tc-tic54x.c (tic54x_mmregs): Adjust.
1341 (md_begin): Likewise.
1342 (encode_condition): Likewise.
1343 (encode_cc3): Likewise.
1344 (encode_cc2): Likewise.
1345 (encode_operand): Likewise.
1346 (tic54x_undefined_symbol): Likewise.
1347
1348 2016-05-20 Matthew Fortune <matthew.fortune@imgtec.com>
1349
1350 * config/tc-mips.c (mips_cpu_info_table): Update comment. Add
1351 p6600 entry.
1352 * doc/c-mips.texi: Document p6600 -march option.
1353
1354 2016-05-20 H.J. Lu <hongjiu.lu@intel.com>
1355
1356 PR gas/19600
1357 * config/tc-i386.c (md_apply_fix): Preserve addend for
1358 BFD_RELOC_386_GOT32 and BFD_RELOC_X86_64_GOT32.
1359 * testsuite/gas/i386/addend.d: New file.
1360 * testsuite/gas/i386/addend.s: Likewise.
1361 * testsuite/gas/i386/x86-64-addend.d: Likewise.
1362 * testsuite/gas/i386/x86-64-addend.s: Likewise.
1363 * testsuite/gas/i386/i386.exp: Run addend and x86-64-addend.
1364 * testsuite/gas/i386/reloc32.d: Updated.
1365
1366 2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
1367
1368 * config/tc-mips.c (append_insn): Correct the encoding of a
1369 constant argument for microMIPS JALX.
1370 (tc_gen_reloc): Correct the encoding of an in-place addend for
1371 microMIPS JALX.
1372 * testsuite/gas/mips/jalx-addend.d: New test.
1373 * testsuite/gas/mips/jalx-addend-n32.d: New test.
1374 * testsuite/gas/mips/jalx-addend-n64.d: New test.
1375 * testsuite/gas/mips/jalx-imm.d: New test.
1376 * testsuite/gas/mips/jalx-imm-n32.d: New test.
1377 * testsuite/gas/mips/jalx-imm-n64.d: New test.
1378 * testsuite/gas/mips/jalx-addend.s: New test source.
1379 * testsuite/gas/mips/jalx-imm.s: New test source.
1380 * testsuite/gas/mips/mips.exp: Run the new tests.
1381
1382 2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
1383
1384 * config/tc-mips.c: Correct tab-after-space formatting mistakes
1385 throughout.
1386
1387 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1388
1389 * config/tc-arc.c (find_opcode_match): Remove casting away of
1390 const.
1391 * config/tc-arc.h (struct arc_flags): Make flgp field const.
1392
1393 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * config/tc-arc.c (md_pcrel_from_section): Use BFD_VMA_FMT where
1396 appropriate.
1397 (md_convert_frag): Likewise.
1398
1399 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * config/tc-arc.c (arc_opcode_hash_entry_iterator_next): Set
1402 cached opcode to NULL when we reach a non-matching opcode.
1403 * testsuite/gas/arc/asm-errors-2.d: New file.
1404 * testsuite/gas/arc/asm-errors-2.err: New file.
1405 * testsuite/gas/arc/asm-errors-2.s: New file.
1406
1407 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1408
1409 * config/tc-arc.c (tokenize_arguments): Add checks for array
1410 overflow.
1411 * testsuite/gas/arc/asm-errors.s: Addition test line added.
1412 * testsuite/gas/arc/asm-errors.err: Update expected results.
1413
1414 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1415
1416 * config/tc-rx.c (struct cpu_type): Change the type of a field from
1417 int to enum rx_cpu_types.
1418
1419 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1420
1421 * config/tc-dlx.c (struct machine_it): change the type of a field from
1422 int to bfd_reloc_code_real_type.
1423 * config/tc-tic4x.c: Likewise.
1424
1425 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1426
1427 * config/tc-v850.c (v850_target_arch): change type to enum
1428 bfd_architecture.
1429 * config/tc-v850.h (v850_target_arch): Likewise.
1430
1431 2016-05-18 Alan Modra <amodra@gmail.com>
1432
1433 * config/tc-ppc.c (ppc_insert_operand): Trim PPC_OPERAND_SIGNOPT
1434 allowed negative range.
1435 * testsuite/gas/ppc/power9.s: Test xxspltib of -128, not -256.
1436 * testsuite/gas/ppc/power9.d: Update.
1437
1438 2016-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
1439
1440 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when
1441 disassembling and stop skipping targets.
1442 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1443 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1444 * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last
1445 instruction for targets that have stronger alignment requirement.
1446 * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
1447 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
1448 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
1449 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
1450 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
1451 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
1452 * testsuite/gas/arm/archv8m-main.d: Likewise.
1453 * testsuite/gas/arm/archv8m.s: Add label.
1454 * testsuite/gas/arm/archv8m-cmse.s: Likewise.
1455 * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
1456 * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
1457
1458 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1459
1460 * config/tc-m32r.c (mach_table): Make static and const.
1461
1462 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1463
1464 * config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
1465 definition.
1466
1467 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1468
1469 * config/tc-mn10300.c (md_begin): set linkrelax here instead of
1470 defining it.
1471 * config/tc-msp430.c (md_begin): Likewise.
1472
1473 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1474
1475 * config/tc-m68hc11.c (fixup8): Change variables type from int to
1476 bfd_reloc_code_real_type where appropriate.
1477 (fixup16): Likewise.
1478 (fixup8_xg): Likewise.
1479
1480 2016-05-15 Maciej W. Rozycki <macro@imgtec.com>
1481
1482 * config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
1483
1484 2016-05-13 Peter Bergner <bergner@vnet.ibm.com>
1485
1486 * testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
1487 * testsuite/gas/ppc/power9.s: Likewise.
1488
1489 2016-05-13 Alan Modra <amodra@gmail.com>
1490
1491 * config/obj-coff.c (weak_uniquify): Delete unused var.
1492
1493 2016-05-13 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1494
1495 * app.c (app_push): Use XNEW and related macros.
1496 * as.c (parse_args): Likewise.
1497 * cgen.c (make_right_shifted_expr): Likewise.
1498 (gas_cgen_tc_gen_reloc): Likewise.
1499 * config/bfin-defs.h: Likewise.
1500 * config/bfin-parse.y: Likewise.
1501 * config/obj-coff.c (stack_init): Likewise.
1502 (stack_push): Likewise.
1503 (coff_obj_symbol_new_hook): Likewise.
1504 (coff_obj_symbol_clone_hook): Likewise.
1505 (add_lineno): Likewise.
1506 (coff_frob_symbol): Likewise.
1507 * config/obj-elf.c (obj_elf_section_name): Likewise.
1508 (build_group_lists): Likewise.
1509 * config/obj-evax.c (evax_symbol_new_hook): Likewise.
1510 * config/obj-macho.c (obj_mach_o_indirect_symbol): Likewise.
1511 * config/tc-aarch64.c (insert_reg_alias): Likewise.
1512 (find_or_make_literal_pool): Likewise.
1513 (add_to_lit_pool): Likewise.
1514 (fill_instruction_hash_table): Likewise.
1515 * config/tc-alpha.c (load_expression): Likewise.
1516 (emit_jsrjmp): Likewise.
1517 (s_alpha_ent): Likewise.
1518 (s_alpha_end): Likewise.
1519 (s_alpha_linkage): Likewise.
1520 (md_begin): Likewise.
1521 (tc_gen_reloc): Likewise.
1522 * config/tc-arc.c (arc_insert_opcode): Likewise.
1523 (arc_extcorereg): Likewise.
1524 * config/tc-bfin.c: Likewise.
1525 * config/tc-cr16.c: Likewise.
1526 * config/tc-cris.c: Likewise.
1527 * config/tc-crx.c (preprocess_reglist): Likewise.
1528 * config/tc-d10v.c: Likewise.
1529 * config/tc-frv.c (frv_insert_vliw_insn): Likewise.
1530 (frv_tomcat_shuffle): Likewise.
1531 * config/tc-h8300.c: Likewise.
1532 * config/tc-i370.c (i370_macro): Likewise.
1533 * config/tc-i386.c (lex_got): Likewise.
1534 (md_parse_option): Likewise.
1535 * config/tc-ia64.c (alloc_record): Likewise.
1536 (set_imask): Likewise.
1537 (save_prologue_count): Likewise.
1538 (dot_proc): Likewise.
1539 (dot_endp): Likewise.
1540 (ia64_frob_label): Likewise.
1541 (add_qp_imply): Likewise.
1542 (add_qp_mutex): Likewise.
1543 (mark_resource): Likewise.
1544 (dot_alias): Likewise.
1545 * config/tc-m68hc11.c: Likewise.
1546 * config/tc-m68k.c (m68k_frob_label): Likewise.
1547 (s_save): Likewise.
1548 (mri_control_label): Likewise.
1549 (push_mri_control): Likewise.
1550 (build_mri_control_operand): Likewise.
1551 (s_mri_else): Likewise.
1552 (s_mri_break): Likewise.
1553 (s_mri_next): Likewise.
1554 (s_mri_for): Likewise.
1555 (s_mri_endw): Likewise.
1556 * config/tc-metag.c (create_mnemonic_htab): Likewise.
1557 * config/tc-microblaze.c: Likewise.
1558 * config/tc-mmix.c (s_loc): Likewise.
1559 * config/tc-nds32.c (nds32_relax_hint): Likewise.
1560 * config/tc-nios2.c (nios2_insn_reloc_new): Likewise.
1561 * config/tc-rl78.c: Likewise.
1562 * config/tc-rx.c (rx_include): Likewise.
1563 * config/tc-sh.c: Likewise.
1564 * config/tc-sh64.c (shmedia_frob_section_type): Likewise.
1565 * config/tc-sparc.c: Likewise.
1566 * config/tc-spu.c: Likewise.
1567 * config/tc-tic6x.c (static tic6x_unwind_info *tic6x_get_unwind): Likewise.
1568 (tic6x_start_unwind_section): Likewise.
1569 * config/tc-tilegx.c: Likewise.
1570 * config/tc-tilepro.c: Likewise.
1571 * config/tc-v850.c: Likewise.
1572 * config/tc-visium.c: Likewise.
1573 * config/tc-xgate.c: Likewise.
1574 * config/tc-xtensa.c (xtensa_translate_old_userreg_ops): Likewise.
1575 (new_resource_table): Likewise.
1576 (resize_resource_table): Likewise.
1577 (xtensa_create_trampoline_frag): Likewise.
1578 (xtensa_maybe_create_literal_pool_frag): Likewise.
1579 (cache_literal_section): Likewise.
1580 * config/xtensa-relax.c (append_transition): Likewise.
1581 (append_condition): Likewise.
1582 (append_value_condition): Likewise.
1583 (append_constant_value_condition): Likewise.
1584 (append_literal_op): Likewise.
1585 (append_label_op): Likewise.
1586 (append_constant_op): Likewise.
1587 (append_field_op): Likewise.
1588 (append_user_fn_field_op): Likewise.
1589 (enter_opname_n): Likewise.
1590 (enter_opname): Likewise.
1591 (split_string): Likewise.
1592 (parse_insn_templ): Likewise.
1593 (clone_req_or_option_list): Likewise.
1594 (clone_req_option_list): Likewise.
1595 (parse_option_cond): Likewise.
1596 (parse_insn_pattern): Likewise.
1597 (parse_insn_repl): Likewise.
1598 (build_transition): Likewise.
1599 (build_transition_table): Likewise.
1600 * dw2gencfi.c (alloc_fde_entry): Likewise.
1601 (alloc_cfi_insn_data): Likewise.
1602 (cfi_add_CFA_remember_state): Likewise.
1603 (dot_cfi_escape): Likewise.
1604 (dot_cfi_fde_data): Likewise.
1605 (select_cie_for_fde): Likewise.
1606 * dwarf2dbg.c (dwarf2_directive_loc): Likewise.
1607 * ecoff.c (ecoff_add_bytes): Likewise.
1608 (ecoff_build_debug): Likewise.
1609 * input-scrub.c (input_scrub_push): Likewise.
1610 (input_scrub_begin): Likewise.
1611 (input_scrub_next_buffer): Likewise.
1612 * itbl-ops.c (append_insns_as_macros): Likewise.
1613 (alloc_entry): Likewise.
1614 (alloc_field): Likewise.
1615 * listing.c (listing_newline): Likewise.
1616 (listing_listing): Likewise.
1617 * macro.c (get_any_string): Likewise.
1618 (delete_macro): Likewise.
1619 * stabs.c (generate_asm_file): Likewise.
1620 (stabs_generate_asm_lineno): Likewise.
1621 * subsegs.c (subseg_change): Likewise.
1622 (subseg_get): Likewise.
1623 * symbols.c (define_dollar_label): Likewise.
1624 (symbol_relc_make_sym): Likewise.
1625 * write.c (write_relocs): Likewise.
1626
1627 2016-05-13 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1628
1629 * config/obj-coff.c (obj_coff_def): Simplify string copying.
1630 (weak_name2altname): Likewise.
1631 (weak_uniquify): Likewise.
1632 (obj_coff_section): Likewise.
1633 (obj_coff_init_stab_section): Likewise.
1634 * config/obj-elf.c (obj_elf_section_name): Likewise.
1635 (obj_elf_init_stab_section): Likewise.
1636 * config/obj-evax.c (evax_shorten_name): Likewise.
1637 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Likewise.
1638 * config/tc-aarch64.c (create_register_alias): Likewise.
1639 * config/tc-alpha.c (load_expression): Likewise.
1640 (s_alpha_file): Likewise.
1641 (s_alpha_section_name): Likewise.
1642 (tc_gen_reloc): Likewise.
1643 * config/tc-arc.c (md_assemble): Likewise.
1644 * config/tc-arm.c (create_neon_reg_alias): Likewise.
1645 (start_unwind_section): Likewise.
1646 * config/tc-hppa.c (pa_build_unwind_subspace): Likewise.
1647 (hppa_elf_mark_end_of_function): Likewise.
1648 * config/tc-nios2.c (nios2_modify_arg): Likewise.
1649 (nios2_negate_arg): Likewise.
1650 * config/tc-rx.c (rx_section): Likewise.
1651 * config/tc-sh64.c (sh64_consume_datalabel): Likewise.
1652 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
1653 * config/tc-tic54x.c (tic54x_include): Likewise.
1654 (tic54x_macro_info): Likewise.
1655 (subsym_get_arg): Likewise.
1656 (subsym_substitute): Likewise.
1657 (tic54x_start_line_hook): Likewise.
1658 * config/tc-xtensa.c (xtensa_literal_prefix): Likewise.
1659 (xg_reverse_shift_count): Likewise.
1660 * config/xtensa-relax.c (enter_opname_n): Likewise.
1661 (split_string): Likewise.
1662 * dwarf2dbg.c (get_filenum): Likewise.
1663 (process_entries): Likewise.
1664 * expr.c (operand): Likewise.
1665 * itbl-ops.c (alloc_entry): Likewise.
1666 * listing.c (listing_message): Likewise.
1667 (listing_title): Likewise.
1668 * macro.c (check_macro): Likewise.
1669 * stabs.c (s_xstab): Likewise.
1670 * symbols.c (symbol_relc_make_expr): Likewise.
1671 * write.c (compress_debug): Likewise.
1672
1673 2016-05-12 Nick Clifton <nickc@redhat.com>
1674
1675 PR target/20068
1676 * testsuite/gas/arm/pr20068.d: Use correct regexp syntax.
1677
1678 2016-05-11 Nick Clifton <nickc@redhat.com>
1679
1680 PR target/20068
1681 * testsuite/gas/arm/pr20068.d: Adjust expected output to allow for
1682 big endian ARM configurations.
1683
1684 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
1685 Matthew Fortune <matthew.fortune@imgtec.com>
1686
1687 * config/tc-mips.c (options): Add OPTION_DSPR3 and
1688 OPTION_NO_DSPR3.
1689 (md_longopts): Likewise.
1690 (md_show_usage): Add help for -mdspr3 and -mno-dspr3.
1691 (mips_ases): Define availability for DSPr3.
1692 (mips_ase_groups): Add ASE_DSPR3 to the DSP group.
1693 (mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3.
1694 * doc/as.texinfo: Document -mdspr3, -mno-dspr3. Fix -mdspr2
1695 formatting.
1696 * doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and
1697 .set nodspr3. Fix -mdspr2 formatting.
1698 * testsuite/gas/mips/mips32-dspr3.d: New file.
1699 * testsuite/gas/mips/mips32-dspr3.s: Likewise.
1700 * testsuite/gas/mips/mips.exp: Run mips32-dspr3 test.
1701
1702 2016-05-11 Nick Clifton <nickc@redhat.com>
1703
1704 PR target/20068
1705 * config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
1706 to the pool uses O_constant.
1707 * testsuite/gas/arm/pr20068.s: New test.
1708 * testsuite/gas/arm/pr20068.d: Test driver.
1709
1710 2016-05-11 Nick Clifton <nickc@redhat.com>
1711
1712 * testsuite/gas/arm/archv8m-cmse-base.d: Skip for non-ELF ARM targets.
1713 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
1714 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
1715 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
1716 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1717 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
1718 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
1719 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
1720 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1721
1722 2016-05-10 Alexander Fomin <alexander.fomin@intel.com>
1723
1724 * testsuite/gas/i386/i386.exp: Run RDPID tests.
1725 * testsuite/gas/i386/prefix.d: Adjust.
1726 * testsuite/gas/i386/rdpid.s: New test.
1727 * testsuite/gas/i386/rdpid.d: Ditto.
1728 * testsuite/gas/i386/rdpid-intel.d: Ditto.
1729 * testsuite/gas/i386/x86-64-rdpid.s: Ditto.
1730 * testsuite/gas/i386/x86-64-rdpid.d: Ditto.
1731 * testsuite/gas/i386/x86-64-rdpid-intel.d: Ditto.
1732
1733 2016-05-10 Alexander Fomin <alexander.fomin@intel.com>
1734
1735 * config/tc-i386.c (cpu_arch): Add RDPID.
1736 * doc/c-i386.texi: Document RDPID.
1737
1738 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1739
1740 * config/tc-arm.c (arm_adjust_symtab): Use ARM_SET_SYM_BRANCH_TYPE to
1741 set branch type of a symbol.
1742
1743 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1744
1745 * NEWS: Document ARMv8-M and ARMv8-M Security and DSP Extensions.
1746 * config/tc-arm.c (arm_ext_dsp): New feature for Thumb DSP
1747 instructions.
1748 (arm_extensions): Add dsp extension for ARMv8-M Mainline.
1749 (aeabi_set_public_attributes): Memorize the feature bits of the
1750 architecture selected for Tag_CPU_arch. Use it to set
1751 Tag_DSP_extension to 1 for ARMv8-M Mainline with DSP extension.
1752 (arm_convert_symbolic_attribute): Define Tag_DSP_extension.
1753 * testsuite/gas/arm/arch7em-bad.d: Rename to ...
1754 * testsuite/gas/arm/arch7em-bad-1.d: This.
1755 * testsuite/gas/arm/arch7em-bad-2.d: New file.
1756 * testsuite/gas/arm/arch7em-bad-3.d: Likewise.
1757 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
1758 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
1759 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
1760 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1761 * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
1762 * testsuite/gas/arm/attr-march-armv8m.main.dsp.d: Likewise.
1763
1764 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1765
1766 * config/tc-arm.c (struct arm_option_extension_value_table): Make
1767 allowed_archs an array with 2 entries.
1768 (ARM_EXT_OPT): Adapt to only fill the first entry of allowed_archs.
1769 (ARM_EXT_OPT2): New macro filling the two entries of allowed_archs.
1770 (arm_extensions): Use separate entries in allowed_archs when several
1771 archs are allowed to use an extension and change ARCH_ANY in
1772 ARM_ARCH_NONE in allowed_archs.
1773 (arm_parse_extension): Check that, for each allowed_archs entry, all
1774 bits are set in the current architecture, ignoring ARM_ANY entries.
1775 (s_arm_arch_extension): Likewise.
1776
1777 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1778
1779 * config/tc-arm.c (arm_ext_m): Add feature bit ARM_EXT2_V8M_MAIN.
1780 (arm_ext_v8m_main): New feature set for bit ARM_EXT2_V8M_MAIN.
1781 (arm_ext_v8m_m_only): New feature set for instructions in ARMv8-M not
1782 shared with a non M profile architecture.
1783 (do_rn): New function.
1784 (known_t32_only_insn): Check opcode against arm_ext_v8m_m_only rather
1785 than arm_ext_v8m.
1786 (v7m_psrs): Add ARMv8-M security extensions new special registers.
1787 (insns): Add ARMv8-M Security Extensions instructions.
1788 (aeabi_set_public_attributes): Use arm_ext_v8m_m_only instead of
1789 arm_ext_v8m_m to decide the profile and the Thumb ISA.
1790 * testsuite/gas/arm/archv8m-cmse.s: New file.
1791 * testsuite/gas/arm/archv8m-cmse-main.s: Likewise..
1792 * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
1793 * testsuite/gas/arm/any-cmse.d: Likewise.
1794 * testsuite/gas/arm/any-cmse-main.d: Likewise.
1795 * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
1796 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
1797 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
1798 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
1799 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1800
1801 2016-05-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1802
1803 * testsuite/gas/sparc/sparc5vis4.s: Fix mnemonic of faligndatai.
1804 * testsuite/gas/sparc/sparc5vis4.d: Likewise.
1805
1806 2016-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1807
1808 * config/tc-arm.c (fpu_arch_vfp_v1): Mark with ATTRIBUTE_UNUSED.
1809 (fpu_arch_vfp_v3): Likewise.
1810 (fpu_arch_neon_v1): Likewise.
1811 (arm_arch_full): Likewise.
1812 (parse_neon_el_struct_list): Initialize fields of firsttype.
1813
1814 2016-05-03 Claudiu Zissulescu <claziss@synopsys.com>
1815
1816 * config/tc-arc.c (syntaxclass): Add SYNTAX_NOP and SYNTAX_1OP.
1817 (arc_extinsn): Handle new introduced syntax.
1818 * testsuite/gas/arc/textinsn1op.d: New file.
1819 * testsuite/gas/arc/textinsn1op.s: Likewise.
1820 * doc/c-arc.texi: Document SYNTAX_NOP and SYNTAX_1OP.
1821
1822 2016-05-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1823
1824 * testsuite/gas/lns/lns.exp: Add avr to list of targets using
1825 DW_LNS_fixed_advance_pc.
1826
1827 2016-04-27 Alan Modra <amodra@gmail.com>
1828
1829 * as.h (inline, __PTR_TO_INT, __INT_TO_PTR): Don't define.
1830 (xmemdup0): New inline function.
1831
1832 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
1833
1834 * config/tc-mips.c (code_option_type): New enum.
1835 (parse_code_option): Return status indicating option type.
1836 (s_mipsset): Update `parse_code_option' call site accordingly.
1837 Always set register sizes from the ISA with ISA overrides.
1838 (s_module): Update `parse_code_option' call site.
1839 * testsuite/gas/mips/isa-override-1.d: New test.
1840 * testsuite/gas/mips/micromips@isa-override-1.d: New test.
1841 * testsuite/gas/mips/mips1@isa-override-1.d: New test.
1842 * testsuite/gas/mips/mips2@isa-override-1.d: New test.
1843 * testsuite/gas/mips/mips32@isa-override-1.d: New test.
1844 * testsuite/gas/mips/mips32r2@isa-override-1.d: New test.
1845 * testsuite/gas/mips/mips32r3@isa-override-1.d: New test.
1846 * testsuite/gas/mips/mips32r5@isa-override-1.d: New test.
1847 * testsuite/gas/mips/mips32r6@isa-override-1.d: New test.
1848 * testsuite/gas/mips/mips64r2@isa-override-1.d: New test.
1849 * testsuite/gas/mips/mips64r3@isa-override-1.d: New test.
1850 * testsuite/gas/mips/mips64r5@isa-override-1.d: New test.
1851 * testsuite/gas/mips/mips64r6@isa-override-1.d: New test.
1852 * testsuite/gas/mips/r3000@isa-override-1.d: New test.
1853 * testsuite/gas/mips/r3900@isa-override-1.d: New test.
1854 * testsuite/gas/mips/r5900@isa-override-1.d: New test.
1855 * testsuite/gas/mips/octeon@isa-override-1.d: New test.
1856 * testsuite/gas/mips/octeon3@isa-override-1.d: New test.
1857 * testsuite/gas/mips/isa-override-2.l: New list test.
1858 * testsuite/gas/mips/mips1@isa-override-2.l: New list test.
1859 * testsuite/gas/mips/mips2@isa-override-2.l: New list test.
1860 * testsuite/gas/mips/mips32@isa-override-2.l: New list test.
1861 * testsuite/gas/mips/mips32r2@isa-override-2.l: New list test.
1862 * testsuite/gas/mips/mips32r3@isa-override-2.l: New list test.
1863 * testsuite/gas/mips/mips32r5@isa-override-2.l: New list test.
1864 * testsuite/gas/mips/mips32r6@isa-override-2.l: New list test.
1865 * testsuite/gas/mips/r3000@isa-override-2.l: New list test.
1866 * testsuite/gas/mips/r3900@isa-override-2.l: New list test.
1867 * testsuite/gas/mips/octeon3@isa-override-2.l: New list test.
1868 * testsuite/gas/mips/octeon3@isa-override-1.l: New stderr
1869 output.
1870 * testsuite/gas/mips/isa-override-1.s: New test source.
1871 * testsuite/gas/mips/r5900@isa-override-1.s: New test source.
1872 * testsuite/gas/mips/isa-override-2.s: New test source.
1873 * testsuite/gas/mips/mips1@isa-override-2.s: New test source.
1874 * testsuite/gas/mips/mips2@isa-override-2.s: New test source.
1875 * testsuite/gas/mips/mips32@isa-override-2.s: New test source.
1876 * testsuite/gas/mips/mips32r2@isa-override-2.s: New test source.
1877 * testsuite/gas/mips/mips32r3@isa-override-2.s: New test source.
1878 * testsuite/gas/mips/mips32r5@isa-override-2.s: New test source.
1879 * testsuite/gas/mips/mips32r6@isa-override-2.s: New test source.
1880 * testsuite/gas/mips/r3000@isa-override-2.s: New test source.
1881 * testsuite/gas/mips/r3900@isa-override-2.s: New test source.
1882 * testsuite/gas/mips/octeon3@isa-override-2.s: New test source.
1883 * testsuite/gas/mips/mips.exp: Run the new tests.
1884
1885 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1886
1887 * cgen.c: Likewise.
1888 * config/tc-bfin.c: Likewise.
1889 * config/tc-ia64.c: Likewise.
1890 * config/tc-mep.c: Likewise.
1891 * config/tc-metag.c: Likewise.
1892 * config/tc-nios2.c: Likewise.
1893 * config/tc-rl78.c: Likewise.
1894
1895 2016-04-20 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * doc/c-arc.texi (ARC Options): Add nps400 to list of valus for
1898 -mcpu. Add cross reference to .cpu directive from -mcpu option.
1899 (ARC Directives): Add NPS400 to .cpu directive list.
1900
1901 2016-04-20 Matthew Wahab <matthew.wahab@arm.com>
1902
1903 * config/tc-aarch64.c (aarch64_features): Add "ras".
1904 * doc/c-aarch64.texi (AArch64 Extensions): Add "ras".
1905 * testsuite/gas/aarch64/armv8-ras-1.d: New.
1906 * testsuite/gas/aarch64/armv8-ras-1.s: New.
1907 * testsuite/gas/aarch64/illegal-ras-1.d: New.
1908 * testsuite/gas/aarch64/illegal-ras-1.s: New.
1909
1910 2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * testsuite/gas/arc/nps400-6.d: New file.
1913 * testsuite/gas/arc/nps400-6.s: New file.
1914
1915 2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1916
1917 * testsuite/gas/arc/nps400-4.d: New file.
1918 * testsuite/gas/arc/nps400-4.s: New file.
1919 * testsuite/gas/arc/nps400-5.d: New file.
1920 * testsuite/gas/arc/nps400-5.s: New file.
1921
1922 2016-04-19 Martin Galvan <martin.galvan@tallertechnologies.com>
1923
1924 * doc/as.texinfo (.cfi_remember_state, .cfi_restore_state): Improve
1925 documentation.
1926
1927 2016-04-17 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 Revert prevous change.
1930 * config/tc-arc.c (arc_option): Make .cpu directive
1931 case-sensitive again.
1932
1933 2016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
1934
1935 * config/tc-arc.c (arc_option): Make .cpu directive
1936 case-insensitive.
1937
1938 2016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
1939
1940 * config/tc-arc.c (arc_option): Allow NPS400 in .cpu directive.
1941
1942 2016-04-15 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1943
1944 * config/tc-mips.c (md_begin): Remove useless assignment.
1945
1946 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
1947
1948 * Makefile.in: Regenerated with automake 1.11.6.
1949 * aclocal.m4: Likewise.
1950 * doc/Makefile.in: Likewise.
1951
1952 2016-04-15 Alan Modra <amodra@gmail.com>
1953
1954 * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
1955
1956 2016-04-14 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1957
1958 * config/tc-nios2.c (nios2_as_options): Make file static.
1959 * config/tc-ppc.c (toc_reloc_ypes): Likewise.
1960 * config/tc-sparc.c (native_op_table): Likewise.
1961
1962 2016-04-14 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1963
1964 * config/tc-m32c.c (M32C_Macros): Remove.
1965 * config/tc-msp430.c (option_numbers): Likewise.
1966
1967 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * testsuite/gas/arc/nps400-3.d: New file.
1970 * testsuite/gas/arc/nps400-3.s: New file.
1971
1972 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * testsuite/gas/arc/add_s-err.s: Update target pattern.
1975 * testsuite/gas/arc/warn.s: Likewise.
1976 * testsuite/gas/elf/elf.exp: Run test for arc.
1977
1978 2016-04-14 Nick Clifton <nickc@redhat.com>
1979
1980 PR target/19938
1981 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Allow for the string
1982 sections possibly having the SHF_STRINGS flag bit set.
1983 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1984
1985 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
1986
1987 * config/tc-arc.c (mach_type_specified_p): Change type to
1988 bfd_boolean.
1989 (arc_option): Set private flags when parsing cpu pseudo-op.
1990 (md_parse_option): Set mach_type_specified_p to TRUE.
1991
1992 2016-04-13 Nick Clifton <nickc@redhat.com>
1993
1994 PR target/19937
1995 * testsuite/gas/v850/pr19937.s: New test.
1996 * testsuite/gas/v850/pr19937.d: New test control file.
1997 * testsuite/gas/v850/basic.exp: Run the new test.
1998
1999 2016-04-13 Maciej W. Rozycki <macro@imgtec.com>
2000 Andrew Bennett <andrew.bennett@imgtec.com>
2001
2002 * config/tc-mips.c (relaxed_branch_length): Use the long
2003 sequence where the target is a weak symbol.
2004 (relaxed_micromips_32bit_branch_length): Likewise.
2005 (relaxed_micromips_16bit_branch_length): Likewise.
2006 * testsuite/gas/mips/branch-weak-1.d: New test.
2007 * testsuite/gas/mips/branch-weak-2.d: New test.
2008 * testsuite/gas/mips/branch-weak-3.d: New test.
2009 * testsuite/gas/mips/branch-weak-4.d: New test.
2010 * testsuite/gas/mips/branch-weak-5.d: New test.
2011 * testsuite/gas/mips/branch-weak.l: New stderr output.
2012 * testsuite/gas/mips/branch-weak.s: New test source.
2013 * testsuite/gas/mips/mips.exp: Run the new tests.
2014
2015 2016-04-13 Maciej W. Rozycki <macro@imgtec.com>
2016
2017 * config/tc-mips.c (relaxed_branch_length): Use the long
2018 sequence where the distance cannot be determined.
2019 (relaxed_micromips_32bit_branch_length): Likewise.
2020 * testsuite/gas/mips/branch-extern-1.d: New test.
2021 * testsuite/gas/mips/branch-extern-2.d: New test.
2022 * testsuite/gas/mips/branch-extern-3.d: New test.
2023 * testsuite/gas/mips/branch-extern-4.d: New test.
2024 * testsuite/gas/mips/branch-extern.l: New stderr output.
2025 * testsuite/gas/mips/branch-extern.s: New test source.
2026 * testsuite/gas/mips/branch-section-1.d: New test.
2027 * testsuite/gas/mips/branch-section-2.d: New test.
2028 * testsuite/gas/mips/branch-section-3.d: New test.
2029 * testsuite/gas/mips/branch-section-4.d: New test.
2030 * testsuite/gas/mips/branch-section.l: New stderr output.
2031 * testsuite/gas/mips/branch-section.s: New test source.
2032 * testsuite/gas/mips/mips.exp: Run the new tests.
2033
2034 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
2035
2036 * testsuite/gas/arc/textauxregister.d: New file.
2037 * testsuite/gas/arc/textauxregister.s: Likewise.
2038 * testsuite/gas/arc/textcondcode.d: Likewise.
2039 * testsuite/gas/arc/textcondcode.s: Likewise.
2040 * testsuite/gas/arc/textcoreregister.d: Likewise.
2041 * testsuite/gas/arc/textcoreregister.s: Likewise.
2042 * testsuite/gas/arc/textpseudoop.d: Likewise.
2043 * testsuite/gas/arc/textpseudoop.s: Likewise.
2044 * testsuite/gas/arc/ld2.d: Update test.
2045 * testsuite/gas/arc/st.d: Likewise.
2046 * testsuite/gas/arc/taux.d: Likewise.
2047 * doc/c-arc.texi (ARC Directives): Add .extCondCode,
2048 .extCoreRegister and .extAuxRegister documentation.
2049 * config/tc-arc.c (arc_extcorereg): New function.
2050 (md_pseudo_table): Add .extCondCode, .extCoreRegister and
2051 .extAuxRegister pseudo-ops.
2052 (extRegister_t): New type.
2053 (ext_condcode, arc_aux_hash): New global variable.
2054 (find_opcode_match): Check for extensions.
2055 (preprocess_operands): Likewise.
2056 (md_begin): Add aux registers in a hash.
2057 (assemble_insn): Update use arc_flags member.
2058 (tokenize_extregister): New function.
2059 (create_extcore_section): Likewise.
2060 * config/tc-arc.h (arc_flags): Delete code, add flgp.
2061
2062 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
2063
2064 * testsuite/gas/arc/noargs_a7.d: New file.
2065 * testsuite/gas/arc/noargs_a7.s: Likewise.
2066 * testsuite/gas/arc/noargs_hs.d: Likewise.
2067 * testsuite/gas/arc/noargs_hs.s: Likewise.
2068
2069 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
2070
2071 * testsuite/gas/arc/textinsn-errors.d: New File.
2072 * testsuite/gas/arc/textinsn-errors.err: Likewise.
2073 * testsuite/gas/arc/textinsn-errors.s: Likewise.
2074 * testsuite/gas/arc/textinsn2op.d: Likewise.
2075 * testsuite/gas/arc/textinsn2op.s: Likewise.
2076 * testsuite/gas/arc/textinsn2op01.d: Likewise.
2077 * testsuite/gas/arc/textinsn2op01.s: Likewise.
2078 * testsuite/gas/arc/textinsn3op.d: Likewise.
2079 * testsuite/gas/arc/textinsn3op.s: Likewise.
2080 * doc/c-arc.texi (ARC Directives): Add .extInstruction
2081 documentation.
2082 * config/tc-arc.c (arcext_section): New variable.
2083 (arc_extinsn): New function.
2084 (md_pseudo_table): Add .extInstruction pseudo op.
2085 (attributes_t): New type.
2086 (suffixclass, syntaxclass, syntaxclassmod): New constant
2087 structures.
2088 (find_opcode_match): Remove arc_num_opcodes.
2089 (md_begin): Likewise.
2090 (tokenize_extinsn): New function.
2091 (arc_set_ext_seg): Likewise.
2092 (create_extinst_section): Likewise.
2093
2094 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
2095
2096 * config/tc-arc.c (preprocess_operands): Mark AUX symbol.
2097 (arc_adjust_symtab): New function.
2098 * config/tc-arc.h (ARC_FLAG_AUX): Define.
2099 (obj_adjust_symtab): Likewise.
2100 * testsuite/gas/arc/taux.d: New file.
2101 * testsuite/gas/arc/taux.s: Likewise.
2102
2103 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
2104
2105 * config/tc-mips.c (s_option): Sanitize `.option picX'
2106 pseudo-op.
2107 * testsuite/gas/mips/option-pic-1.d: New test.
2108 * testsuite/gas/mips/option-pic-2.l: New list test.
2109 * testsuite/gas/mips/option-pic-1.s: New test source.
2110 * testsuite/gas/mips/option-pic-2.s: New test source.
2111 * testsuite/gas/mips/mips.exp: Run the new tests.
2112
2113 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
2114
2115 * config/tc-mips.c (s_option): Reject `.option picX' if VxWorks
2116 PIC.
2117 * testsuite/gas/mips/option-pic-vxworks-1.l: New list test.
2118 * testsuite/gas/mips/option-pic-vxworks-2.l: New list test.
2119 * testsuite/gas/mips/option-pic-vxworks-1.s: New test source.
2120 * testsuite/gas/mips/option-pic-vxworks-2.s: New test source.
2121 * testsuite/gas/mips/mips.exp: Run the new tests.
2122
2123 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
2124
2125 * config/tc-mips.c (can_swap_branch_p): Correct call formatting.
2126
2127 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
2128
2129 * messages.c (as_bad): Fix a typo in description.
2130
2131 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
2132
2133 * config/tc-mips.c (mips_check_options): Unify messages.
2134
2135 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
2136
2137 * config/tc-mips.c (mips_check_options): Use `opts->isa'
2138 consistently.
2139
2140 2016-04-08 Nick Clifton <nickc@redhat.com>
2141
2142 PR target/19910
2143 * testsuite/gas/sparc/pr19910-1.d: Adjust regexps to work with
2144 COFF and AOUT sparc targets.
2145
2146 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * config/tc-arc.h (MAX_FLAG_NAME_LENGTH): Increase to 7.
2149 * testsuite/gas/arc/nps400-2.d: New file.
2150 * testsuite/gas/arc/nps400-2.s: New file.
2151
2152 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
2155 structure.
2156 (arc_opcode_hash_entry_iterator_init): New function.
2157 (arc_opcode_hash_entry_iterator_next): New function.
2158 (find_opcode_match): Iterate over all arc_opcode entries
2159 referenced by the arc_opcode_hash_entry passed in as a parameter.
2160
2161 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2162
2163 * config/tc-arc.c (arc_find_opcode): Now returns
2164 arc_opcode_hash_entry pointer.
2165 (find_opcode_match): Update argument type, extract arc_opcode from
2166 incoming arc_opcode_hash_entry.
2167 (find_special_case_pseudo): Update return type.
2168 (find_special_case_flag): Update return type.
2169 (find_special_case): Update return type.
2170 (assemble_tokens): Lookup arc_opcode_hash_entry based on
2171 instruction mnemonic, then use find_opcode_match to identify
2172 specific arc_opcode.
2173
2174 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
2177 (arc_find_opcode): New function.
2178 (find_special_case_pseudo): Use arc_find_opcode.
2179 (find_special_case_flag): Likewise.
2180 (assemble_tokens): Likewise.
2181 (md_begin): Build hash using struct arc_opcode_hash_entry.
2182
2183 2016-04-07 Claudiu Zissulescu <claziss@synopsys.com>
2184
2185 * config/tc-arc.c (arc_option): Prepare string for automatic
2186 translation.
2187 (declare_register): Likewise.
2188
2189 2016-04-06 James Greenhalgh <james.greenhalgh@arm.com>
2190
2191 * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
2192 Correct entry for RDMA. Alpha sort entries.
2193
2194 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * config/tc-arc.c (tokenize_flags): Allow greater range of
2197 characters into flag names.
2198
2199 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
2202 new de_fault label.
2203 (preprocess_operands): Delete.
2204 (assemble_tokens): Remove call to preprocess_operands.
2205
2206 2016-04-07 Nick Clifton <nickc@redhat.com>
2207
2208 PR gas/19910
2209 * config/tc-sparc.c (sparc_ip): Report an error if the expression
2210 inside a %-macro could not be fully parsed.
2211 * expr.c (integer_constant): Accept and ignore U suffixes to
2212 integers.
2213 (operand): When a missing closing parenthesis is encountered,
2214 report the character that was found instead.
2215 * testsuite/gas/mips/tls-ill.l: Update expected error message.
2216 * testsuite/gas/sparc/pr19910-1.d: New test driver.
2217 * testsuite/gas/sparc/pr19910-1.s: New test.
2218 * testsuite/gas/sparc/pr19910-2.l: Expected error output.
2219 * testsuite/gas/sparc/pr19910-2.s: New test.
2220 * testsuite/gas/sparc/sparc.exp: Run the new tests.
2221
2222 2016-04-06 Nick Clifton <nickc@redhat.com>
2223
2224 * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
2225 an EINT instruction. Warn/fix as necessary.
2226 * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
2227 * testsuite/gas/msp430/bad.l: Update expected messages.
2228
2229 2016-04-05 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * testsuite/gas/arc/nps400-1.d: Update expected results.
2232 * testsuite/gas/arc/nps400-1.s: Additional test cases.
2233
2234 2016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
2235
2236 * config/tc-arc.c (is_code_density_p): Compare directly the
2237 subclass field.
2238 (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
2239 (check_cpu_feature): New function.
2240 (find_opcode_match): Use check_cpu_feature function.
2241 (preprocess_operands): Likewise.
2242 (md_parse_option): Use mfpuda, mdpfp, mspfp options.
2243 * testsuite/gas/arc/tdpfp.d: New file.
2244 * testsuite/gas/arc/tfpuda.d: Likewise.
2245 * testsuite/gas/arc/tfpx.s: Likewise.
2246
2247 2016-04-05 Jiong Wang <jiong.wang@arm.com>
2248
2249 * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
2250 * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
2251 * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
2252 * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
2253 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
2254 * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
2255 * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
2256 * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
2257 for Thumb.
2258 * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
2259
2260 2016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
2261
2262 * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
2263 JUMP instructions type.
2264 * testsuite/gas/arc/relocs-errors.d: New file.
2265 * testsuite/gas/arc/relocs-errors.err: Likewise.
2266 * testsuite/gas/arc/relocs-errors.s: Likewise.
2267
2268 2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
2269
2270 PR gas/19909
2271 * config/tc-i386.c (check_VecOperands): Try vec_disp8 encoding
2272 only if i.disp_encoding != disp_encoding_32bit.
2273 * gas/testsuite/gas/i386/disp32.s: Add tests for vmovdqu64.d32.
2274 * gas/testsuite/gas/i386/x86-64-disp32.s: Likewise.
2275 * gas/testsuite/gas/i386/disp32.d: Updated.
2276 * gas/testsuite/gas/i386/x86-64-disp32.d: Likewise.
2277
2278 2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
2279
2280 PR gas/19498
2281 * testsuite/gas/i386/i386.exp: Run pr19498.
2282 * testsuite/gas/i386/pr19498.d: New file.
2283 * testsuite/gas/i386/pr19498.s: Likewise.
2284
2285 2016-04-04 Andrew Burgess <andrew.burgess@embecosm.com>
2286
2287 * config/tc-arc.h: Include 'opcode/arc.h'.
2288 (MAX_INSN_ARGS): Delete.
2289 (MAX_INSN_FLGS): Delete.
2290
2291 2016-04-04 Alan Modra <amodra@gmail.com>
2292
2293 PR 19498
2294 * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
2295 from function on all paths that set sy_resolving.
2296
2297 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2298
2299 * app.c (app_push): use XNEW macro.
2300 * as.c: Likewise.
2301 * config/obj-elf.c (obj_elf_change_section): Likewise.
2302 (elf_copy_symbol_attributes): Likewise.
2303 (obj_elf_size): Likewise.
2304 (build_group_lists): Likewise.
2305 * config/tc-aarch64.c (add_operand_error_record): Likewise.
2306 (md_assemble): Likewise.
2307 (tc_gen_reloc): Likewise.
2308 (get_upper_str): Likewise.
2309 (aarch64_parse_features): Likewise.
2310 * config/tc-arm.c (insert_reg_alias): Likewise.
2311 (insert_neon_reg_alias): Likewise.
2312 (find_or_make_literal_pool): Likewise.
2313 (s_arm_elf_cons): Likewise.
2314 (add_unwind_opcode): Likewise.
2315 (arm_parse_extension): Likewise.
2316 * config/tc-avr.c (create_record_for_frag): Likewise.
2317 * config/tc-crx.c: Likewise.
2318 * config/tc-d30v.c: Likewise.
2319 * config/tc-dlx.c (s_proc): Likewise.
2320 * config/tc-ft32.c: Likewise.
2321 * config/tc-h8300.c: Likewise.
2322 * config/tc-hppa.c (pa_proc): Likewise.
2323 (create_new_space): Likewise.
2324 (create_new_subspace): Likewise.
2325 * config/tc-i860.c: Likewise.
2326 * config/tc-i960.c: Likewise.
2327 * config/tc-ia64.c: Likewise.
2328 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
2329 (iq2000_record_hi16): Likewise.
2330 * config/tc-m32c.c (m32c_indirect_operand): Likewise.
2331 * config/tc-m32r.c (debug_sym): Likewise.
2332 (m32r_record_hi16): Likewise.
2333 * config/tc-m68k.c (m68k_ip): Likewise.
2334 (md_begin): Likewise.
2335 * config/tc-mcore.c: Likewise.
2336 * config/tc-microblaze.c (check_got): Likewise.
2337 * config/tc-mips.c (append_insn): Likewise.
2338 (s_mipsset): Likewise.
2339 (mips_record_label): Likewise.
2340 (s_mips_end): Likewise.
2341 * config/tc-mmix.c (mmix_frob_file): Likewise.
2342 * config/tc-mn10200.c: Likewise.
2343 * config/tc-mn10300.c: Likewise.
2344 * config/tc-moxie.c: Likewise.
2345 * config/tc-msp430.c: Likewise.
2346 * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
2347 * config/tc-ns32k.c: Likewise.
2348 * config/tc-or1k.c: Likewise.
2349 * config/tc-pdp11.c: Likewise.
2350 * config/tc-pj.c (fake_opcode): Likewise.
2351 * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
2352 (ppc_macro): Likewise.
2353 (ppc_dwsect): Likewise.
2354 (ppc_machine): Likewise.
2355 * config/tc-rl78.c (rl78_frag_init): Likewise.
2356 * config/tc-rx.c (rx_frag_init): Likewise.
2357 * config/tc-s390.c (s390_lit_suffix): Likewise.
2358 (s390_machine): Likewise.
2359 (s390_machinemode): Likewise.
2360 * config/tc-score.c (s3_insert_reg): Likewise.
2361 (s3_gen_reloc): Likewise.
2362 * config/tc-score7.c (s7_insert_reg): Likewise.
2363 (s7_gen_reloc): Likewise.
2364 * config/tc-tic30.c (tic30_operand): Likewise.
2365 * config/tc-tic4x.c (tic4x_inst_make): Likewise.
2366 * config/tc-tic54x.c (stag_add_field): Likewise.
2367 (tic54x_struct): Likewise.
2368 (tic54x_space): Likewise.
2369 (tic54x_field): Likewise.
2370 (tic54x_mlib): Likewise.
2371 (subsym_substitute): Likewise.
2372 * config/tc-tic6x.c (tic6x_frob_label): Likewise.
2373 * config/tc-vax.c: Likewise.
2374 * config/tc-xc16x.c: Likewise.
2375 * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
2376 (directive_push): Likewise.
2377 (xtensa_begin_directive): Likewise.
2378 (tokenize_arguments): Likewise.
2379 (xtensa_add_literal_sym): Likewise.
2380 (new_resource_table): Likewise.
2381 (resize_resource_table): Likewise.
2382 (emit_single_op): Likewise.
2383 (xtensa_create_trampoline_frag): Likewise.
2384 (xtensa_maybe_create_literal_pool_frag): Likewise.
2385 (xtensa_add_config_info): Likewise.
2386 (xtensa_realloc_fixup_cache): Likewise.
2387 (add_subseg_info): Likewise.
2388 (cache_literal_section): Likewise.
2389 (add_xt_block_frags): Likewise.
2390 (add_xt_prop_frags): Likewise.
2391 (init_op_placement_info_table): Likewise.
2392 (build_section_rename): Likewise.
2393 * config/tc-z80.c: Likewise.
2394 * config/tc-z8k.c: Likewise.
2395 * depend.c (register_dependency): Likewise.
2396 * dwarf2dbg.c (get_line_subseg): Likewise.
2397 (dwarf2_gen_line_info_1): Likewise.
2398 (get_filenum): Likewise.
2399 * ecoff.c (allocate_scope): Likewise.
2400 (allocate_vlinks): Likewise.
2401 (allocate_shash): Likewise.
2402 (allocate_thash): Likewise.
2403 (allocate_tag): Likewise.
2404 (allocate_forward): Likewise.
2405 (allocate_thead): Likewise.
2406 (allocate_lineno_list): Likewise.
2407 * expr.c (make_expr_symbol): Likewise.
2408 * hash.c (hash_new_sized): Likewise.
2409 * input-file.c (input_file_push): Likewise.
2410 * listing.c (file_info): Likewise.
2411 (listing_newline): Likewise.
2412 * macro.c (new_formal): Likewise.
2413 (define_macro): Likewise.
2414 * remap.c (add_debug_prefix_map): Likewise.
2415 * symbols.c (symbol_find_noref): Likewise.
2416 (define_dollar_label): Likewise.
2417 (fb_label_instance_inc): Likewise.
2418 (symbol_relc_make_value): Likewise.
2419
2420 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2421
2422 * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
2423 * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
2424 (ppc_znop): Likewise.
2425 (ppc_pe_section): Likewise.
2426 (ppc_frob_symbol): Likewise.
2427 * config/tc-tic30.c (tic30_operand): Likewise.
2428 * config/tc-tic4x.c (tic4x_sect): Likewise.
2429 (tic4x_usect): Likewise.
2430
2431 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2432
2433 * config/tc-alpha.c: Const qualify FLT_CHARS.
2434 * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
2435 * config/tc-cris.h: Likewise.
2436 * expr.c: Likewise.
2437 * config/tc-mmix.c (md_atof): Adjust comment.
2438 * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
2439 * tc.h: Declare FLT_CHARS and EXP_CHARS.
2440
2441 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2442
2443 * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
2444 * config/tc-score7.c (s7_gen_reloc): Likewise.
2445
2446 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2447
2448 * config/tc-arm.c (do_t_branch): Change the type of reloc to
2449 bfd_reloc_code_real_type.
2450
2451 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2452
2453 * config/bfin-parse.y (current_inputline): Remove definition.
2454 * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
2455
2456 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2457
2458 * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
2459 strings.
2460
2461 2016-04-02 Alan Modra <amodra@gmail.com>
2462
2463 PR 19896
2464 * read.c (assign_symbol): Consume rest of line after an error
2465 rather than continuing to process the line.
2466
2467 2016-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
2470 (MAX_FLAG_NAME_LENGTH): ...this.
2471 (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
2472 * config/tc-arc.c (tokenize_flags): Likewise.
2473
2474 2016-04-01 Alan Modra <amodra@gmail.com>
2475
2476 * cgen.c (weak_operand_overflow_check): Return const char*.
2477 * messages.c (as_internal_value_out_of_range): Formatting.
2478 (as_warn_value_out_of_range): Consify prefix param.
2479 (as_bad_value_out_of_range): Likewise.
2480 * read.c (s_errwarn): Constify msg..
2481 (s_float_space, float_cons): ..and err.
2482 * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
2483 ieee_md_atof, vax_md_atof): Update prototypes.
2484 * tc.h (md_atof): Update prototype.
2485 * config/atof-ieee.c (ieee_md_atof): Return const char*.
2486 * config/atof-vax.c (vax_md_atof): Likewise.
2487 * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
2488 * config/tc-aarch64.c (md_atof): Return const char*.
2489 * config/tc-alpha.c (s_alpha_section_name): Likewise.
2490 (s_alpha_comm): Constify sec_name.
2491 (section_name): Constify.
2492 (s_alpha_section): Consify name..
2493 (alpha_elf_section_letter): ..and ptr_msg param..
2494 (md_atof): ..and return.
2495 * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
2496 * config/tc-arc.c (md_atof): Return const char*.
2497 * config/tc-arm.c (md_atof): Likewise.
2498 * config/tc-avr.c (md_atof): Likewise.
2499 * config/tc-bfin.c (md_atof): Likewise.
2500 * config/tc-cr16.c (md_atof): Likewise.
2501 * config/tc-cris.c (md_atof): Likewise.
2502 * config/tc-crx.c (md_atof): Likewise.
2503 * config/tc-d10v.c (md_atof): Likewise.
2504 * config/tc-d30v.c (md_atof): Likewise.
2505 * config/tc-dlx.c (md_atof): Likewise.
2506 * config/tc-epiphany.c (md_atof): Likewise.
2507 * config/tc-fr30.c (md_atof): Likewise.
2508 * config/tc-frv.c (md_atof): Likewise.
2509 * config/tc-ft32.c (md_atof): Likewise.
2510 * config/tc-h8300.c (md_atof): Likewise.
2511 * config/tc-hppa.c (struct default_subspace_dict): Constify name.
2512 (struct default_space_dict): Likewise.
2513 (create_new_space): Constify name param.
2514 (create_new_subspace): Likewise.
2515 (is_defined_space, is_defined_subspace): Likewise.
2516 (pa_parse_space_stmt): Constify space_name param.
2517 (md_atof): Return const char*.
2518 (pa_spaces_begin): Constify name.
2519 * config/tc-i370.c (md_atof): Return const char*.
2520 * config/tc-i386.c (md_atof): Likewise.
2521 (x86_64_section_letter): Constify ptr_msg param.
2522 * config/tc-i386.h (x86_64_section_letter): Update prototype.
2523 * config/tc-i860.c (struct i860_it): Constify error.
2524 (md_atof): Return const char*.
2525 * config/tc-i960.c (md_atof): Likewise.
2526 * config/tc-ia64.c (md_atof): Likewise.
2527 (ia64_elf_section_letter): Constify ptr_msg param.
2528 * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
2529 * config/tc-ip2k.c (md_atof): Return const char*.
2530 * config/tc-iq2000.c (md_atof): Likewise.
2531 * config/tc-lm32.c (md_atof): Likewise.
2532 * config/tc-m32c.c (md_atof): Likewise.
2533 * config/tc-m32r.c (md_atof): Likewise.
2534 * config/tc-m68hc11.c (md_atof): Likewise.
2535 * config/tc-m68k.c (md_atof): Likewise.
2536 * config/tc-mcore.c (md_atof): Likewise.
2537 * config/tc-mep.c (md_atof): Likewise.
2538 (mep_elf_section_letter): Constify ptr_msg param.
2539 * config/tc-mep.h (mep_elf_section_letter): Update prototype.
2540 * config/tc-metag.c (md_atof): Return const char*.
2541 * config/tc-microblaze.c (md_atof): Likewise.
2542 * config/tc-microblaze.h (md_atof): Delete prototype.
2543 * config/tc-mips.c (mips_parse_argument_token): Constify err.
2544 (md_atof): Return const char*.
2545 * config/tc-mmix.c (md_atof): Likewise.
2546 * config/tc-mn10200.c (md_atof): Likewise.
2547 * config/tc-mn10300.c (md_atof): Likewise.
2548 * config/tc-moxie.c (md_atof): Likewise.
2549 * config/tc-msp430.c (md_atof): Likewise.
2550 * config/tc-mt.c (md_atof): Likewise.
2551 * config/tc-nds32.c (md_atof): Likewise.
2552 * config/tc-nios2.c (md_atof): Likewise.
2553 (nios2_elf_section_letter): Constify ptr_msg param.
2554 * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
2555 * config/tc-ns32k.c (md_atof): Return const char*.
2556 * config/tc-or1k.c (md_atof): Likewise.
2557 * config/tc-pdp11.c (struct pdp11_code): Constify error.
2558 (md_atof): Return const char*.
2559 * config/tc-pj.c (md_atof): Likewise.
2560 * config/tc-ppc.c (md_atof): Likewise.
2561 * config/tc-rl78.c (md_atof): Likewise.
2562 * config/tc-rx.c (md_atof): Likewise.
2563 * config/tc-s390.c (md_atof): Likewise.
2564 * config/tc-score.c (s3_atof, md_atof): Likewise.
2565 * config/tc-sh.c (md_atof): Likewise.
2566 * config/tc-sparc.c (struct sparc_it): Constify error.
2567 (md_atof): Return const char*.
2568 * config/tc-spu.c (md_atof): Likewise.
2569 * config/tc-tic30.c (md_atof): Likewise.
2570 * config/tc-tic4x.c (md_atof): Likewise.
2571 * config/tc-tic54x.c (md_atof): Likewise.
2572 * config/tc-tic6x.c (md_atof): Likewise.
2573 * config/tc-tilegx.c (md_atof): Likewise.
2574 * config/tc-tilepro.c (md_atof): Likewise.
2575 * config/tc-v850.c (parse_register_list, md_atof): Likewise.
2576 * config/tc-vax.c (md_atof): Likewise.
2577 * config/tc-visium.c (md_atof): Likewise.
2578 * config/tc-xc16x.c (md_atof): Likewise.
2579 * config/tc-xgate.c (md_atof): Likewise.
2580 * config/tc-xstormy16.c (md_atof): Likewise.
2581 * config/tc-xtensa.c (md_atof): Likewise.
2582 * config/tc-z80.c (md_atof): Likewise.
2583 * config/tc-z8k.c (md_atof): Likewise.
2584
2585 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2586
2587 * config/tc-xtensa.c (struct rename_section_struct): Make old_name
2588 const.
2589 (xtensa_section_rename): Make argument type const char *.
2590 * config/tc-xtensa.h (xtensa_section_rename): Adjust.
2591
2592 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2593
2594 * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
2595 args[0].
2596
2597 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2598
2599 * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
2600 char *.
2601 (m32c_indirect_operand): Likewise.
2602 * config/tc-nds32.c (do_pseudo_b): Likewise.
2603 (do_pseudo_bal): Likewise.
2604 (do_pseudo_ls_bhw): Likewise.
2605
2606 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2607
2608 * as.c (parse_args): Cast literal to char * when assigning to optarg.
2609
2610 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2611
2612 * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
2613 get_symbol_name ().
2614 * config/tc-sparc.c (s_register): Cast a literal to char * in
2615 assignment.
2616
2617 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2618
2619 * config/tc-i960.c (parse_expr): Cast to char * when assigning to
2620 input_line_pointer.
2621 * config/tc-m32r.c (expand_debug_syms): Likewise.
2622 * config/tc-msp430.c (msp430_dstoperand): Likewise.
2623 * config/tc-z80.c (md_begin): Likewise.
2624 * stabs.c (stabs_generate_asm_func): Likewise.
2625
2626 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2627
2628 * cgen.c: Modernize the way functions declare arguments.
2629 * config/tc-bfin.c: Likewise.
2630 * config/tc-pdp11.c: Likewise.
2631 * literal.c: Likewise.
2632 * read.c: Likewise.
2633 * stabs.c: Likewise.
2634
2635 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2636
2637 * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
2638 variables unsigned char[].
2639 * config/tc-alpha.c (alpha_handle_align): Likewise.
2640 * config/tc-arm.c (arm_handle_align): Likewise.
2641 * config/tc-z80.c: Likewise.
2642
2643 2016-03-30 Nick Clifton <nickc@redhat.com>
2644
2645 PR target/19880
2646 * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
2647 shifting.
2648
2649 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
2650
2651 * testsuite/gas/all/gas.exp: Don't xfail on ARC.
2652 * testsuite/gas/elf/elf.exp: Likewise.
2653 * testsuite/gas/all/redef3.d: Allow execution for ARC.
2654
2655 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
2656
2657 * testsuite/gas/arc/warn.exp: Fix matching pattern.
2658
2659 2016-03-29 Claudiu Zissulescu <claziss@synopsys.com>
2660
2661 * testsuite/gas/arc/ext2op.d: New file.
2662 * testsuite/gas/arc/ext2op.s: Likewise.
2663 * testsuite/gas/arc/ext3op.d: Likewise.
2664 * testsuite/gas/arc/ext3op.s: Likewise.
2665
2666 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2667
2668 * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
2669 qualifier.
2670 * config/tc-alpha.c (md_parse_option): Likewise.
2671 * config/tc-arc.c (md_parse_option): Likewise.
2672 * config/tc-arm.c (struct arm_long_option_table): Likewise.
2673 (md_parse_option): Likewise.
2674 * config/tc-avr.c (md_parse_option): Likewise.
2675 * config/tc-bfin.c (md_parse_option): Likewise.
2676 * config/tc-cr16.c (md_parse_option): Likewise.
2677 * config/tc-cris.c (s_cris_arch): Likewise.
2678 (md_parse_option): Likewise.
2679 * config/tc-crx.c (md_parse_option): Likewise.
2680 * config/tc-d10v.c (md_parse_option): Likewise.
2681 * config/tc-d30v.c (md_parse_option): Likewise.
2682 * config/tc-dlx.c (md_parse_option): Likewise.
2683 * config/tc-epiphany.c (md_parse_option): Likewise.
2684 * config/tc-fr30.c (md_parse_option): Likewise.
2685 * config/tc-frv.c (md_parse_option): Likewise.
2686 * config/tc-ft32.c (md_parse_option): Likewise.
2687 * config/tc-h8300.c (md_parse_option): Likewise.
2688 * config/tc-hppa.c (md_parse_option): Likewise.
2689 * config/tc-i370.c (md_parse_option): Likewise.
2690 * config/tc-i386.c (md_parse_option): Likewise.
2691 * config/tc-i860.c (md_parse_option): Likewise.
2692 * config/tc-i960.c (md_parse_option): Likewise.
2693 * config/tc-ia64.c (md_parse_option): Likewise.
2694 * config/tc-ip2k.c (md_parse_option): Likewise.
2695 * config/tc-iq2000.c (md_parse_option): Likewise.
2696 * config/tc-lm32.c (md_parse_option): Likewise.
2697 * config/tc-m32c.c (md_parse_option): Likewise.
2698 * config/tc-m32r.c (md_parse_option): Likewise.
2699 * config/tc-m68hc11.c (md_parse_option): Likewise.
2700 * config/tc-m68k.c (md_parse_option): Likewise.
2701 * config/tc-mcore.c (md_parse_option): Likewise.
2702 * config/tc-mep.c (md_parse_option): Likewise.
2703 * config/tc-metag.c (struct metag_long_option): Likewise.
2704 (md_parse_option): Likewise.
2705 * config/tc-microblaze.c (md_parse_option): Likewise.
2706 * config/tc-microblaze.h (md_parse_option): Remove prototype.
2707 * config/tc-mips.c (md_parse_option): Adjust.
2708 * config/tc-mmix.c (md_parse_option): Likewise.
2709 * config/tc-mn10200.c (md_parse_option): Likewise.
2710 * config/tc-mn10300.c (md_parse_option): Likewise.
2711 * config/tc-moxie.c (md_parse_option): Likewise.
2712 * config/tc-msp430.c (md_parse_option): Likewise.
2713 * config/tc-mt.c (md_parse_option): Likewise.
2714 * config/tc-nds32.c (md_parse_option): Likewise.
2715 * config/tc-nds32.h (nds32_parse_option): Likewise.
2716 * config/tc-nios2.c (md_parse_option): Likewise.
2717 * config/tc-ns32k.c (md_parse_option): Likewise.
2718 * config/tc-or1k.c (md_parse_option): Likewise.
2719 * config/tc-pdp11.c (md_parse_option): Likewise.
2720 * config/tc-pj.c (md_parse_option): Likewise.
2721 * config/tc-ppc.c (md_parse_option): Likewise.
2722 * config/tc-rl78.c (md_parse_option): Likewise.
2723 * config/tc-rx.c (md_parse_option): Likewise.
2724 * config/tc-s390.c (s390_parse_cpu): Likewise.
2725 * config/tc-score.c (md_parse_option): Likewise.
2726 * config/tc-sh.c (md_parse_option): Likewise.
2727 * config/tc-sparc.c (md_parse_option): Likewise.
2728 * config/tc-spu.c (md_parse_option): Likewise.
2729 * config/tc-tic30.c (md_parse_option): Likewise.
2730 * config/tc-tic4x.c (md_parse_option): Likewise.
2731 * config/tc-tic54x.c (md_parse_option): Likewise.
2732 * config/tc-tic6x.c (md_parse_option): Likewise.
2733 * config/tc-tilegx.c (md_parse_option): Likewise.
2734 * config/tc-tilepro.c (md_parse_option): Likewise.
2735 * config/tc-v850.c (md_parse_option): Likewise.
2736 * config/tc-vax.c (md_parse_option): Likewise.
2737 * config/tc-visium.c (struct visium_long_option_table): Likewise.
2738 * config/tc-xc16x.c (md_parse_option): Likewise.
2739 * config/tc-xgate.c (md_parse_option): Likewise.
2740 * config/tc-xstormy16.c (md_parse_option): Likewise.
2741 * config/tc-xtensa.c (md_parse_option): Likewise.
2742 * config/tc-z80.c (md_parse_option): Likewise.
2743 * config/tc-z8k.c (md_parse_option): Likewise.
2744 * tc.h (md_parse_option): Likewise.
2745
2746 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2747
2748 * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
2749 * config/tc-hppa.c (fix_new_hppa): Likewise.
2750 (pa_vtable_entry): Likewise.
2751 (pa_vtable_inherit): Likewise.
2752 * config/tc-m68k.c (md_begin): Likewise.
2753
2754 2016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2755
2756 * config/obj-elf.c (obj_elf_section_name): Return const char *.
2757 * config/obj-elf.h (obj_elf_section_name): Adjust.
2758 * config/tc-aarch64.c (aarch64_parse_features): Likewise.
2759 (aarch64_parse_cpu): Likewise.
2760 (aarch64_parse_arch): Likewise.
2761 * config/tc-arm.c (arm_parse_extension): Likewise.
2762 (arm_parse_cpu): Likewise.
2763 (arm_parse_arch): Likewise.
2764 * config/tc-nds32.c: Likewise.
2765 * config/xtensa-relax.c (parse_special_fn): Likewise.
2766 * stabs.c (generate_asm_file): Likewise.
2767
2768 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2769
2770 * config/tc-cr16.c (cr16_assemble): New function.
2771 (md_assemble): Call cr16_assemble.
2772
2773 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2774
2775 * as.c (parse_args): Adjust.
2776 * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
2777 * config/obj-elf.c (elf_frob_symbol): Adjust.
2778
2779 2016-03-24 Jose E. Marchesi <jose.marchesi@oracle.com>
2780
2781 * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
2782 registers to be in the 16..31 range.
2783
2784 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2785
2786 * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
2787 frag_var ().
2788
2789 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2790
2791 * config/tc-visium.c (md_atof): Localize the string returned on
2792 failure.
2793
2794 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2795
2796 * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
2797 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
2798 * config/tc-m68hc11.c (md_begin): Likewise.
2799 (print_opcode_list): Likewise.
2800 * config/tc-msp430.c (msp430_section): Likewise.
2801 * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
2802 (s3_build_dependency_insn_hsh): Likewise.
2803 * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
2804 (s7_build_dependency_insn_hsh): Likewise.
2805 * config/tc-tic4x.c: Likewise.
2806 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
2807 (subsym_get_arg): Likewise.
2808 * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
2809 (get_directive): Likewise.
2810 (cache_literal_section): Likewise.
2811 * config/xtensa-relax.c: Likewise.
2812 * symbols.c (symbol_create): Likewise.
2813 (local_symbol_make): Likewise.
2814 (symbol_relc_make_expr): Likewise.
2815
2816 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2817
2818 * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
2819 str.
2820
2821 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2822
2823 * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
2824 call with a switch.
2825
2826 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2827
2828 * config/tc-ia64.c (ia64_do_align): Remove.
2829 (ia64_cons_align): Call do_align () directly.
2830 (dot_proc): Likewise.
2831 (stmt_float_cons): Likewise.
2832
2833 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2834
2835 * listing.c (listing_message): Use XNEW style allocation macros.
2836 * read.c (read_a_source_file): Likewise.
2837 (read_symbol_name): Likewise.
2838 (s_mri_common): Likewise.
2839 (assign_symbol): Likewise.
2840 (s_reloc): Likewise.
2841 (emit_expr_with_reloc): Likewise.
2842 (s_incbin): Likewise.
2843 (s_include): Likewise.
2844 * sb.c (sb_build): Likewise.
2845 (sb_check): Likewise.
2846
2847 2016-03-22 Alan Modra <amodra@gmail.com>
2848
2849 * write.c (record_alignment): Revert 2016-02-18 change.
2850
2851 2016-03-22 Alan Modra <amodra@gmail.com>
2852
2853 * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
2854 (emit_jsrjmp, tc_gen_reloc): Likewise.
2855 * config/tc-i370.c (i370_macro): Likewise.
2856
2857 2016-03-22 Nick Clifton <nickc@redhat.com>
2858
2859 * configure: Regenerate.
2860
2861 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * testsuite/gas/arc/nps400-0.d: New file.
2864 * testsuite/gas/arc/nps400-0.s: New file.
2865 * testsuite/gas/arc/nps400-1.d: New file.
2866 * testsuite/gas/arc/nps400-1.s: New file.
2867
2868 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * config/tc-arc.c (find_opcode_match): Move lnflg, and i
2871 declarations to start of block. Reset code on all flags before
2872 attempting to match them. Handle multiple hits on the same flag.
2873 Handle flag class.
2874 * testsuite/gas/arc/asm-errors.d: New file.
2875 * testsuite/gas/arc/asm-errors.err: New file.
2876 * testsuite/gas/arc/asm-errors.s: New file.
2877
2878 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2879
2880 * config/tc-arc.c (cpu_types): Add nps400 entry.
2881 (check_zol): Handle nps400.
2882
2883 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2884
2885 * config/tc-arc.c (arc_select_cpu): Remove use of
2886 EF_ARC_CPU_GENERIC.
2887
2888 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2889
2890 * config/tc-arc.c (arc_target): Delay initialisation until
2891 arc_select_cpu.
2892 (arc_target_name): Likewise.
2893 (arc_features): Likewise.
2894 (arc_mach_type): Likewise.
2895 (cpu_types): Remove "all" entry.
2896 (arc_select_cpu): New function, most of the content is from...
2897 (md_parse_option): ... here. Call new arc_select_cpu.
2898 (md_begin): Call arc_select_cpu if needed, default is now arc700.
2899
2900 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * testsuite/gas/arc/inline-data-1.d: Add target restriction.
2903 * testsuite/gas/arc/inline-data-2.d: New file.
2904
2905 2016-03-21 Nick Clifton <nickc@redhat.com>
2906
2907 * atof-generic.c: Replace use of alloca with call to xmalloc.
2908 * cgen.c: Likewise.
2909 * dwarf2dbg.c: Likewise.
2910 * macro.c: Likewise.
2911 * remap.c: Likewise.
2912 * stabs.c: Likewise.
2913 * symbols.c: Likewise.
2914 * config/obj-elf.c: Likewise.
2915 * config/tc-aarch64.c: Likewise.
2916 * config/tc-arc.c: Likewise.
2917 * config/tc-arm.c: Likewise.
2918 * config/tc-avr.c: Likewise.
2919 * config/tc-ia64.c: Likewise.
2920 * config/tc-mips.c: Likewise.
2921 * config/tc-msp430.c: Likewise.
2922 * config/tc-nds32.c: Likewise.
2923 * config/tc-ppc.c: Likewise.
2924 * config/tc-sh.c: Likewise.
2925 * config/tc-tic30.c: Likewise.
2926 * config/tc-tic54x.c: Likewise.
2927 * config/tc-xstormy16.c: Likewise.
2928 * config/te-vms.c: Likewise.
2929 * configure: Regenerate.
2930
2931 2016-03-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2932
2933 * tc-i386.c (f32_1): Change type to unsigned char[].
2934 (f32_2): Likewise.
2935 (f32_3): Likewise.
2936 (f32_4): Likewise.
2937 (f32_5): Likewise.
2938 (f32_6): Likewise.
2939 (f32_7): Likewise.
2940 (f32_8): Likewise.
2941 (f32_9): Likewise.
2942 (f32_10): Likewise.
2943 (f32_11): Likewise.
2944 (f32_12): Likewise.
2945 (f32_13): Likewise.
2946 (f32_14): Likewise.
2947 (f16_3): Likewise.
2948 (f16_4): Likewise.
2949 (f16_5): Likewise.
2950 (f16_6): Likewise.
2951 (f16_7): Likewise.
2952 (f16_8): Likewise.
2953 (jump_31): Likewise.
2954 (f32_patt): Likewise.
2955 (f16_patt): Likewise.
2956 (alt_3): Likewise.
2957 (alt_4): Likewise.
2958 (alt_5): Likewise.
2959 (alt_6): Likewise.
2960 (alt_7): Likewise.
2961 (alt_8): Likewise.
2962 (alt_9): Likewise.
2963 (alt_10): Likewise.
2964 (alt_patt): Likewise.
2965
2966 2016-03-18 Nick Clifton <nickc@redhat.com>
2967
2968 * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
2969 .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
2970 .tlsdescldr and .xword directives.
2971
2972 PR target/19721
2973 * testsuite/gas/aarch64/pr19721.s: New test source file.
2974 * testsuite/gas/aarch64/pr19721.d: New test driver file.
2975
2976 * doc/as.texinfo: Place the target specific command line options
2977 into their own man page section.
2978
2979 2016-03-16 Jiong Wang <jiong.wang@arm.com>
2980
2981 * config/tc-arm.c (N_S_32): New.
2982 (N_F_16_32): Likewise.
2983 (N_SUF_32): Support N_F16.
2984 (N_IF_32): Likewise.
2985 (neon_dyadic_misc): Likewise.
2986 (do_neon_cmp): Likewise.
2987 (do_neon_cmp_inv): Likewise.
2988 (do_neon_mul): Likewise.
2989 (do_neon_fcmp_absolute): Likewise.
2990 (do_neon_step): Likewise.
2991 (do_neon_abs_neg): Likewise.
2992 (CVT_FLAVOR_VAR): Likewise.
2993 (do_neon_cvt_1): Likewise.
2994 (do_neon_recip_est): Likewise.
2995 (do_vmaxnm): Likewise.
2996 (do_vrint_1): Likewise.
2997 (neon_check_type): Check architecture support for FP16 extension.
2998 (insns): Update comments.
2999 * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
3000 * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
3001 * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
3002 * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
3003 arm mode.
3004 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
3005 thumb mode.
3006 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
3007 error file.
3008
3009 2016-03-16 Nick Clifton <nickc@redhat.com>
3010
3011 * read.c (emit_expr_with_reloc): Add code check a bignum with
3012 nbytes == 1.
3013 * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
3014 other than 32-bits.
3015 * testsuite/gas/elf/bignum.s: New test source file.
3016 * testsuite/gas/elf/bignum.d: New test driver file.
3017 * testsuite/gas/elf/elf.exp: Run the new test.
3018
3019 2016-03-15 Ulrich Drepper <drepper@gmail.com>
3020
3021 * doc/c-i386.texi (Register Naming): Update to details of the
3022 latest architecture version.
3023
3024 2016-03-10 Mickael Guene <mickael.guene@st.com>
3025
3026 PR gas/19744
3027 * config/tc-arm.c (do_arit): Protect against bad relocations usage.
3028 (do_mov): Likewise.
3029 (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
3030 (do_t_mov_cmp): Likewise.
3031 (do_t_add_sub): Protect against bad relocations usage.
3032 (do_t_mov_cmp): Likewise.
3033 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
3034 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
3035 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
3036 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
3037
3038 2016-03-09 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3039
3040 * config/tc-arm.c (neon_alignment_bit): Rename do_align to
3041 do_alignment.
3042 (do_neon_ld_st_lane): Likewise.
3043 (do_neon_ld_dup): Likewise.
3044
3045 2016-03-08 Andrew Burgess <andrew.burgess@embecosm.com>
3046
3047 * testsuite/gas/arc/inline-data-1.d: New file.
3048 * testsuite/gas/arc/inline-data-1.s: New file.
3049
3050 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
3051
3052 * config/tc-arm.c (arm_cpus): Add cortex-r8.
3053 * doc/c-arm.texi: Add cortex-r8.
3054
3055 2016-03-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3056
3057 * config/tc-arc.c: Add const qualifiers.
3058 * config/tc-h8300.c (md_begin): Likewise.
3059 * config/tc-ia64.c (print_prmask): Likewise.
3060 * config/tc-msp430.c (msp430_operands): Likewise.
3061 * config/tc-nds32.c (struct suffix_name): Likewise.
3062 (struct nds32_parse_option_table): Likewise.
3063 (struct nds32_set_option_table): Likewise.
3064 (do_pseudo_pushpopm): Likewise.
3065 (do_pseudo_pushpop_stack): Likewise.
3066 (nds32_relax_relocs): Likewise.
3067 (nds32_flag): Likewise.
3068 (struct nds32_hint_map): Likewise.
3069 (nds32_find_reloc_table): Likewise.
3070 (nds32_match_hint_insn): Likewise.
3071 * config/tc-s390.c: Likewise.
3072 * config/tc-sh.c (get_specific): Likewise.
3073 * config/tc-tic30.c: Likewise.
3074 * config/tc-tic4x.c (tic4x_inst_add): Likewise.
3075 (tic4x_indirect_parse): Likewise.
3076 * config/tc-vax.c (vax_cons): Likewise.
3077 * config/tc-z80.c (struct reg_entry): Likewise.
3078 * config/tc-epiphany.c (md_assemble): Adjust.
3079 (epiphany_assemble): New function.
3080 (epiphany_elf_section_rtn): Call do_align directly.
3081 (epiphany_elf_section_text): Likewise.
3082 * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
3083 (ip2k_elf_section_text): Likewise.
3084 * read.c (do_align): Make it not static.
3085 * read.h (do_align): New prototype.
3086
3087 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
3088
3089 * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
3090 for ARMv8.1 AdvSIMD use.
3091 * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
3092 * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
3093
3094 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
3095
3096 * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
3097 feature.
3098 (record_feature_use): New.
3099 (mark_feature_used): Use record_feature_use.
3100 (do_neon_qrdmlah): New.
3101 (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
3102 variants.
3103 (arm_extensions): Put into alphabetical order. Re-indent "simd"
3104 and "rdma" entries. Fix the incorrect merge value for "+rdma".
3105 * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
3106 * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
3107 Make source file explicit.
3108 * testsuite/gas/arm/armv8-a+rdma.l: New.
3109 * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
3110 directives. Fix white-space.
3111 * testsuite/gas/arm/armv8_1-a+simd.d: New.
3112
3113 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
3114
3115 * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
3116
3117 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
3118 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
3119
3120 * config/tc-arc.c (arc_extra_reloc): Change size to 0.
3121 (tc_arc_fix_adjustable): Changed default return value to 1.
3122 * testsuite/gas/arc/j.d: Updated expected symbol
3123 * testsuite/gas/arc/jl.d: Likewise
3124 * testsuite/gas/arc/relax-avoid1.d: Likewise
3125 * testsuite/gas/arc/st.d: Likewise
3126
3127 2016-02-29 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
3128
3129 * config/tc-arc.c: Enable code density instructions for ARC EM.
3130
3131 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
3132
3133 PR ld/19645
3134 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
3135 for ELF assemblers.
3136 * as.c (flag_use_elf_stt_common): New.
3137 (show_usage): Add --elf-stt-common=.
3138 (option_values): Add OPTION_ELF_STT_COMMON.
3139 (std_longopts): Add --elf-stt-common=.
3140 (parse_args): Handle --elf-stt-common=.
3141 * as.h (flag_use_elf_stt_common): New.
3142 * config.in: Regenerated.
3143 * configure: Likewise.
3144 * configure.ac: Add --enable-elf-stt-common and define
3145 DEFAULT_GENERATE_ELF_STT_COMMON.
3146 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
3147 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
3148 * doc/as.texinfo: Document --elf-stt-common=.
3149 * testsuite/gas/elf/common3.s: New file.
3150 * testsuite/gas/elf/common3a.d: Likewise.
3151 * testsuite/gas/elf/common3b.d: Likewise.
3152 * testsuite/gas/elf/common4.s: Likewise.
3153 * testsuite/gas/elf/common4a.d: Likewise.
3154 * testsuite/gas/elf/common4b.d: Likewise.
3155 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
3156 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
3157 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
3158 and common4b.
3159 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
3160 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
3161 --elf-stt-common=no to as.
3162 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
3163 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
3164 --elf-stt-common=no to as.
3165 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
3166 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
3167 of dw2-compress-3 and dw2-compressed-3.
3168
3169 2016-02-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3170
3171 * as.c (select_emulation_mode): Add const qualifiers.
3172 * as.h: Likewise.
3173 * config/bfin-defs.h: Likewise.
3174 * config/bfin-parse.y: Likewise.
3175 * config/rx-parse.y: Likewise.
3176 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
3177 (struct aarch64_cpu_option_table): Likewise.
3178 (struct aarch64_arch_option_table): Likewise.
3179 (struct aarch64_option_cpu_value_table): Likewise.
3180 (struct aarch64_long_option_table): Likewise.
3181 (struct aarch64_option_abi_value_table): Likewise.
3182 * config/tc-arm.c (struct reloc_entry): Likewise.
3183 (tc_gen_reloc): Likewise.
3184 (struct arm_option_table): Likewise.
3185 (struct arm_legacy_option_table): Likewise.
3186 (struct arm_cpu_option_table): Likewise.
3187 (struct arm_arch_option_table): Likewise.
3188 (struct arm_option_extension_value_table): Likewise.
3189 (struct arm_option_fpu_value_table): Likewise.
3190 (struct arm_option_value_table): Likewise.
3191 (struct arm_long_option_table): Likewise.
3192 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
3193 (struct mcu_type_s): Likewise.
3194 (struct exp_mod_s): Likewise.
3195 (avr_operand): Likewise.
3196 (avr_operands): Likewise.
3197 * config/tc-d10v.c (md_begin): Likewise.
3198 * config/tc-dlx.c: Likewise.
3199 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
3200 * config/tc-ft32.c (parse_condition): Likewise.
3201 * config/tc-h8300.c (do_a_fix_imm): Likewise.
3202 * config/tc-hppa.c (pa_ip): Likewise.
3203 (hppa_regname_to_dw2regnum): Likewise.
3204 * config/tc-i370.c (i370_elf_suffix): Likewise.
3205 * config/tc-i960.c (struct tabentry): Likewise.
3206 * config/tc-m32r.c: Likewise.
3207 * config/tc-m68k.c: Likewise.
3208 * config/tc-m68k.h: Likewise.
3209 * config/tc-mcore.c (parse_psrmod): Likewise.
3210 * config/tc-metag.c (struct metag_core_option): Likewise.
3211 (struct metag_long_option): Likewise.
3212 * config/tc-microblaze.c: Likewise.
3213 * config/tc-mips.c (macro): Likewise.
3214 * config/tc-mn10200.c: Likewise.
3215 * config/tc-mn10300.c: Likewise.
3216 * config/tc-msp430.c (struct rcodes_s): Likewise.
3217 (struct hcodes_s): Likewise.
3218 (md_parse_option): Likewise.
3219 * config/tc-ns32k.c (struct ns32k_option): Likewise.
3220 (optlist): Likewise.
3221 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
3222 (tc_ppc_regname_to_dw2regnum): Likewise.
3223 * config/tc-ppc.h: Likewise.
3224 * config/tc-rl78.c: Likewise.
3225 * config/tc-rx.c (struct cpu_type): Likewise.
3226 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
3227 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
3228 (sparc_ip): Likewise.
3229 * config/tc-spu.c (insn_fmt_string): Likewise.
3230 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
3231 * config/tc-v850.c: Likewise.
3232 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
3233 (struct visium_long_option_table): Likewise.
3234 * config/tc-xgate.c: Likewise.
3235 * config/tc-z8k.c: Likewise.
3236 * read.c (add_include_dir): Likewise.
3237 * read.h: Likewise.
3238
3239 2016-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3240
3241 * testsuite/gas/all/gas.exp: Change target pattern to cover
3242 arceb-*.
3243 * testsuite/gas/all/redef3.d: Likewise.
3244 * testsuite/gas/elf/elf.exp: Likewise.
3245
3246 2016-02-24 Renlin Li <renlin.li@arm.com>
3247
3248 * config/tc-arm.c (BAD_FP16): New error message macro.
3249 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
3250 fp16 scalar instructions.
3251 (neon_check_type): Allow different size from key.
3252 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
3253 (try_vfp_nsyn): Likewise.
3254 (do_vfp_nsyn_mla_mls): Likewise.
3255 (do_vfp_nsyn_fma_fms): Likewise.
3256 (do_vfp_nsyn_ldm_stm): Likewise
3257 (do_vfp_nsyn_sqrt): Likewise
3258 (do_vfp_nsyn_div): Likewise
3259 (do_vfp_nsyn_nmul): Likewise.
3260 (do_vfp_nsyn_cmp): Likewise.
3261 (do_neon_shll): Likewise.
3262 (do_vfp_nsyn_cvt_fpv8): Likewise.
3263 (do_neon_cvttb_2): Likewise.
3264 (do_neon_mov): Likewise.
3265 (do_neon_rshift_round_imm): Likewise.
3266 (do_neon_ldr_str): Likewise.
3267 (do_vfp_nsyn_fpv8): Likewise.
3268 (do_vmaxnm): Likewise.
3269 (do_vrint_1): Likewise.
3270 (insns): New entry for vins, vmovx.
3271 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
3272 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
3273 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
3274 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
3275 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
3276 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
3277 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
3278
3279 2016-02-24 Renlin Li <renlin.li@arm.com>
3280
3281 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
3282 (neon_shape_class): New SC_HALF.
3283 (neon_shape_el): New SE_H.
3284 (neon_shape_el_size): New size for SE_H.
3285 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
3286 (neon_select_shape): Add SE_H support code.
3287 (el_type_of_type_chk): Use N_F_ALL.
3288 (do_vfp_nsyn_cvt): Add SE_H shape support.
3289 (do_neon_cvtz): Likewise.
3290 (do_neon_cvt_1): Likewise.
3291 (do_neon_cvttb_1): Likewise.
3292
3293 2016-02-24 Renlin Li <renlin.li@arm.com>
3294
3295 * testsuite/gas/arm/copro.d: Adjust output.
3296 * testsuite/gas/arm/copro.s: Adjust co-processor num.
3297
3298 2016-02-24 Renlin Li <renlin.li@arm.com>
3299
3300 * testsuite/gas/arm/mask_1.d: New.
3301 * testsuite/gas/arm/mask_1.s: New.
3302
3303 2016-02-24 Renlin Li <renlin.li@arm.com>
3304
3305 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
3306 * testsuite/gas/arm/copro.d: Update.
3307
3308 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3309
3310 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
3311 * doc/c-arm.texi (ARM Options): Document cortex-a32.
3312
3313 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3314
3315 * doc/c-arm.texi (ARM Options): Document cortex-a17.
3316
3317 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
3318
3319 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
3320 hpux.
3321
3322 2016-02-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3323
3324 * output-file.c (output_file_create): Make file name argument const.
3325 (output_file_close): Likewise.
3326 * output-file.h (output_file_create): Adjust.
3327 (output_file_close): Likewise.
3328 * depend.c (quote_string_for_make): Make src argument const char *.
3329 (register_dependency): Likewise.
3330 (wrap_output): Likewise.
3331 * as.h (register_dependency): Adjust.
3332 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
3333 as_where ();
3334 * symbols.c (S_SET_EXTERNAL): Likewise.
3335 * input-scrub.c (as_where): Return the file name.
3336 * as.h (as_where): Adjust prototype.
3337 * app.c (do_scrub_chars): Adjust.
3338 * cond.c (s_elseif): Likewise.
3339 (s_else): Likewise.
3340 (initialize_cframe): Likewise.
3341 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
3342 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
3343 * config/obj-som.c (obj_som_init_stab_section): Likewise.
3344 * config/tc-aarch64.c (output_info): Likewise.
3345 * config/tc-ia64.c (md_assemble): Likewise.
3346 (dot_alias): Likewise.
3347 * config/tc-m68k.c (m68k_frob_label): Likewise.
3348 * config/tc-mmix.c (s_bspec): Likewise.
3349 (mmix_handle_mmixal): Likewise.
3350 * config/tc-rx.c (rx_include): Likewise.
3351 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
3352 (tic54x_adjust_symtab): Likewise.
3353 * config/tc-xtensa.c (directive_push): Likewise.
3354 (xtensa_sanity_check): Likewise.
3355 (xtensa_relax_frag): Likewise.
3356 (md_convert_frag): Likewise.
3357 (tinsn_to_slotbuf): Likewise.
3358 * dwarf2dbg.c (dwarf2_where): Likewise.
3359 * ecoff.c (add_file): Likewise.
3360 (ecoff_generate_asm_lineno): Likewise.
3361 * expr.c (make_expr_symbol): Likewise.
3362 * frags.c (frag_new): Likewise.
3363 (frag_var_init): Likewise.
3364 * listing.c (listing_newline): Likewise.
3365 * messages.c (identify): Likewise.
3366 (as_show_where): Likewise.
3367 (as_warn_internal): Likewise.
3368 (as_bad_internal): Likewise.
3369 * read.c (s_irp): Likewise.
3370 (s_macro): Likewise.
3371 (s_reloc): Likewise.
3372 * stabs.c (stabs_generate_asm_file): Likewise.
3373 (stabs_generate_asm_lineno): Likewise.
3374 (stabs_generate_asm_func): Likewise.
3375 * write.c (fix_new_internal): Likewise.
3376 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
3377 (as_warn_value_out_of_range): Adjust prototype.
3378 (as_bad_value_out_of_range): Adjust prototype.
3379 * messages.c (identify): Make file name argument const char *.
3380 (as_warn_internal): Likewise.
3381 (as_warn_where): Likewise.
3382 (as_bad_internal): Likewise.
3383 (as_bad_where): Likewise.
3384 (as_internal_value_out_of_range): Likewise.
3385 (as_warn_value_out_of_range): Likewise.
3386 (as_bad_value_out_of_range): Likewise.
3387 * as.h (found_comment_file): Change type to const char *.
3388 * cond.c (file_line::file): Likewise.
3389 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
3390 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
3391 * config/obj-som.c (obj_som_init_stab_section): Likewise.
3392 * config/tc-aarch64.c (output_info): Likewise.
3393 * config/tc-alpha.c (insert_operand): Likewise.
3394 * config/tc-arc.c (insert_operand): Likewise.
3395 * config/tc-d30v.c (check_size): Likewise.
3396 * config/tc-ia64.c (struct alias): Likewise.
3397 * config/tc-m68k.c (struct label_line): Likewise.
3398 * config/tc-mcore.c (md_apply_fix): Likewise.
3399 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
3400 * config/tc-mips.c (mips16_immed): Likewise.
3401 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
3402 * config/tc-ppc.c (ppc_insert_operand): Likewise.
3403 * config/tc-rx.c (rx_include): Likewise.
3404 * config/tc-s390.c (s390_insert_operand): Likewise.
3405 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
3406 (tic54x_adjust_symtab): Likewise.
3407 * config/tc-tilegx.c (insert_operand): Likewise.
3408 (apply_special_operator): Likewise.
3409 * config/tc-tilepro.c (insert_operand): Likewise.
3410 * config/tc-xtensa.c (directive_push): Likewise.
3411 * ecoff.c (add_file): Likewise.
3412 (ecoff_generate_asm_lineno): Likewise.
3413 * listing.c (listing_newline): Likewise.
3414 * read.c (s_irp): Likewise.
3415 * write.c (install_reloc): Likewise.
3416 * write.h (struct fix): Likewise.
3417 * input-file.c (file_name): Change type to const char *.
3418 (saved_file::file_name): Likewise.
3419 (input_file_open): Change type of argument to const char *.
3420 * input-file.h (input_file_open): Adjust.
3421 * input-scrub.c (logical_input_file): change type to const char *.
3422 (physical_input_file): Likewise.
3423 (struct input_save): Adjust.
3424 (input_scrub_push): Adjust.
3425 (input_scrub_begin): Adjust.
3426 (as_where): Adjust.
3427 * input-scrub.c (input_scrub_new_file): Make file name argument const.
3428 (input_scrub_include_file): Likewise.
3429 (new_logical_line_flags): Likewise.
3430 (new_logical_line): Likewise.
3431 * as.h: Adjust.
3432 * frags.h (struct frag): Change type of fr_file to const char *.
3433 * expr.c (expr_symbol_where): Change type of file argument to
3434 const char **.
3435 * expr.h (expr_symbol_where): Likewise.
3436 * config/tc-i370.c (md_apply_fix): adjust.
3437 * config/tc-mmix.c (mmix_md_end): Likewise.
3438 * config/tc-ppc.c (md_apply_fix): Likewise.
3439 * config/tc-s390.c (md_apply_fix): Likewise.
3440 * symbols.c (report_op_error): Likewise.
3441 (resolve_symbol_value): Likewise.
3442 * config/tc-ia64.c (slot::src_file): Change type to const char *.
3443 (rsrc::file): Likewise.
3444 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
3445 const char *.
3446 (xtensa_relax_frag): Likewise.
3447 (md_convert_frag): Likewise.
3448 (tinsn_to_slotbuf): Likewise.
3449 * expr.c (expr_symbol_line): Likewise.
3450 * macro.c (define_macro): Likewise.
3451 * macro.h (macro_struct): Likewise.
3452 * messages.c (as_show_where): Likewise.
3453 * read.c (s_macro): Likewise.
3454 * stabs.c (stabs_generate_asm_file): Likewise.
3455 (generate_asm_file): Likewise.
3456 (stabs_generate_asm_lineno): Likewise.
3457 * write.h (struct reloc_list): Likewise.
3458 * input-scrub.c (as_where): Change return type to const char *.
3459 * as.h (as_wheree): Adjust.
3460
3461 2016-02-21 H.J. Lu <hongjiu.lu@intel.com>
3462
3463 * write.c (compress_debug): Move BFD compression bits setting
3464 to ...
3465 (write_object_file): Here.
3466
3467 2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
3468
3469 * config/tc-i386.c (register_number): Check RegVRex.
3470 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
3471 with %zmm19 and %zmm3.
3472 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
3473 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
3474
3475 2016-02-19 Matthew Wahab <matthew.wahab@arm.com>
3476 Jiong Wang <jiong.wang@arm.com>
3477
3478 * config/tc-arm.c (arm_ext_fp16): New.
3479 (arm_extensions): New entry for "fp16".
3480
3481 2016-02-19 Nick Clifton <nickc@redhat.com>
3482
3483 PR 19630
3484 * read.c (read_a_source_file): Check for assemble_one returning
3485 with input_line_pointer set to NULL.
3486
3487 2016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3488
3489 * listing.c (rebuffer_line): Change return type to void.
3490
3491 * symbols.c (decode_local_label_name): Make type a const char *.
3492 * listing.c (print_source): Make type of p const char *.
3493 (print_line): Make type of string const char *.
3494 (buffer_line): Return const char *.
3495 (title): Make type const char *.
3496 (subtitle): Likewise.
3497 (listing_listing): Make type of p const char *.
3498 * messages.c (as_internal_value_out_of_range): Make type of prefix
3499 const char *.
3500 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
3501 and string const char *.
3502 * read.c (_bfd_rel): Make type of name const char *.
3503 * app.c (out_string): Change type to const char *.
3504 (struct app_save::out_string): Likewise.
3505
3506 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
3507 Nick Clifton <nickc@redhat.com>
3508
3509 * read.c (finish_bundle): Avoid recording a negative alignment.
3510 (do_align): Use unsigned values for n, len and max. Only create
3511 a frag if the alignment requirement is greater than the minimum
3512 byte alignment. Avoid recording a negative alignment.
3513 (s_align): Use unsigned values where appropriate.
3514 (bss_alloc): Use an unsigned value for the alignment.
3515 (sizeof_sleb128): Add a comment noting that we encode one octet
3516 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
3517 (emit_leb129_expr): Abort if the emitted encoding was longer than
3518 expected.
3519 * read.h (output_leb128): Update prototype.
3520 (sizeof_leb128): Update prototype.
3521 (bss_alloc): Update prototype.
3522 * write.c (record_alignment): Use an unsigned value for the
3523 alignment. Do not record alignments less than the minimum
3524 alignment for a byte.
3525 * write.h (record_alignment): Update prototype.
3526
3527 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
3528
3529 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
3530 .init.literal/.fini.literal section name.
3531 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
3532 list of xtensa tests.
3533 * testsuite/gas/xtensa/init-fini-literals.d: New file:
3534 init-fini-literals test result patterns.
3535 * testsuite/gas/xtensa/init-fini-literals.s: New file:
3536 init-fini-literals test.
3537
3538 2016-02-17 Nick Clifton <nickc@redhat.com>
3539
3540 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
3541 devices.csv file as of March 2016.
3542
3543 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
3544
3545 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
3546 function.
3547 (tc_arc_regname_to_dw2regnum): Likewise.
3548 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
3549 (tc_cfi_frame_initial_instructions): Likewise.
3550 (tc_regname_to_dw2regnum): Likewise.
3551 * testsuite/gas/cfi/cfi-arc-1.d: New file.
3552 * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
3553 * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
3554
3555 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
3556
3557 * doc/internals.texi (S_IS_EXTERN): Remove.
3558
3559 2016-02-16 Nick Clifton <nickc@redhat.com>
3560
3561 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
3562 update.
3563
3564 2016-02-16 Renlin Li <renlin.li@arm.com>
3565
3566 PR gas/19620
3567 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
3568 * testsuite/gas/aarch64/movw_label.d: New.
3569 * testsuite/gas/aarch64/movw_label.s: New.
3570
3571 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
3572
3573 PR gas/19556
3574 * config/rx-parse.y (MOV): Opcode generation for index
3575 register addressing mode.
3576 * testsuite/gas/rx/rx.exp: Updated for new testcase.
3577 * testsuite/gas/rx/pr19665.s: New file.
3578 * testsuite/gas/rx/pr19665.s: New file.
3579 * testsuite/gas/rx/mov.d: Update expected output.
3580
3581 2016-02-15 Nick Clifton <nickc@redhat.com>
3582
3583 * doc/as.texinfo (.section): Document that numeric values can now
3584 be used for the flags and type fields of the ELF target's .section
3585 directive. Add notes about the restrictions on setting flags and
3586 types.
3587 * config/obj-elf.c (obj_elf_change_section): Allow known sections
3588 to be given processor specific section types. Allow processor and
3589 application specific flags of a section to be set after
3590 definition.
3591 (obj_elf_parse_section_letters): Handle parsing numeric values.
3592 (obj_elf_section_type): Handle parsing numeric values.
3593 (obj_elf_section): Allow numeric type values.
3594 * config/obj-elf.h (obj_elf_change_section): Update prototype.
3595 * testsuite/gas/elf/section10.d: New test.
3596 * testsuite/gas/elf/section10.s: Source file for new test.
3597 * testsuite/gas/elf/elf.exp: Run the new test.
3598 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
3599 the description of the flags produced by readelf.
3600 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
3601 * NEWS: Mention the new feature.
3602
3603 2016-02-11 Nick Clifton <nickc@redhat.com>
3604
3605 PR gas/19614
3606 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
3607 until it is actually used.
3608 (cfi_set_sections): Set cfi_sections_set to true.
3609 (dot_cfi_startproc): Likewise.
3610 (dot_cfi_endproc): Likewise.
3611 (dot_cfi_fde_data): Likewise.
3612 (cfi_finish): Likewise.
3613 (dot_cfi_sections): Do not set cfi_sections_set.
3614 * doc/as.texinfo (.cfi_sections): Note that targets can provide
3615 their own cfi section name. Also note that the directive can be
3616 reissued provided that CFI generation has not started.
3617 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
3618 .cfi_endproc directives so that the redefinition of .cfi_sections
3619 will trigger the generation of the error message.
3620 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
3621 number of error message.
3622
3623 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
3624 Janek van Oirschot <jvanoirs@synopsys.com>
3625
3626 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
3627 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
3628 Define.
3629 (arc_flags, arc_relax_type): New structure.
3630 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
3631 (RELAX_TABLE_ENTRY_MAX): New define.
3632 (relaxation_state, md_relax_table, arc_relaxable_insns)
3633 (arc_num_relaxable_ins): New variable.
3634 (rlx_operand_type, arc_rlx_types): New enums.
3635 (arc_relaxable_ins): New structure.
3636 (OPTION_RELAX): New option.
3637 (arc_insn): New relax member.
3638 (arc_flags): Remove.
3639 (relax_insn_p): New function.
3640 (apply_fixups): Likewise.
3641 (relaxable_operand): Likewise.
3642 (may_relax_expr): Likewise.
3643 (relaxable_flag): Likewise.
3644 (arc_pcrel_adjust): Likewise.
3645 (md_estimate_size_before_relax): Implement.
3646 (md_convert_frag): Likewise.
3647 (md_parse_option): Handle new mrelax option.
3648 (md_show_usage): Likewise.
3649 (assemble_insn): Set relax member.
3650 (emit_insn0): New function.
3651 (emit_insn1): Likewise.
3652 (emit_insn): Handle relaxation case.
3653 * NEWS: Mention the new relaxation option.
3654 * doc/c-arc.texi (ARC Options): Document new mrelax option.
3655 * doc/as.texinfo (Target ARC Options): Likewise.
3656 * testsuite/gas/arc/relax-avoid1.d: New file.
3657 * testsuite/gas/arc/relax-avoid1.s: Likewise.
3658 * testsuite/gas/arc/relax-avoid2.d: Likewise.
3659 * testsuite/gas/arc/relax-avoid2.s: Likewise.
3660 * testsuite/gas/arc/relax-avoid3.d: Likewise.
3661 * testsuite/gas/arc/relax-avoid3.s: Likewise.
3662 * testsuite/gas/arc/relax-b.d: Likewise.
3663 * testsuite/gas/arc/relax-b.s: Likewise.
3664
3665 2016-02-08 Nick Clifton <nickc@redhat.com>
3666
3667 * config/tc-ia64.c (dot_prologue): Fix formatting.
3668
3669 2016-02-04 Nick Clifton <nickc@redhat.com>
3670
3671 * config/obj-elf.c (obj_elf_change_section): Remove support for
3672 ARM NOREAD sections.
3673 * config/tc-arm.c (arm_elf_section_letter): Delete.
3674 * config/tc-arm.h (md_elf_section_letter): Delete.
3675 * doc/c-arm.texi (ARM Section Attribute): Delete section.
3676 * testsuite/gas/arm/section-execute-only.d: Delete.
3677 * testsuite/gas/arm/section-execute-only.s: Delete.
3678
3679 2016-02-04 Nick Clifton <nickc@redhat.com>
3680
3681 PR target/19561
3682 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
3683 to handle encoding of RRUX instruction.
3684 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
3685 shift instructions.
3686 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
3687
3688 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
3689
3690 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
3691 substitutions for BFD_RELOC_* as unsigned.
3692 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
3693 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
3694 * testsuite/gas/xtensa/loc.s: New file: loc test.
3695
3696 2016-02-03 Kevin Buettner <kevinb@redhat.com>
3697
3698 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
3699
3700 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
3701
3702 PR gas/19520
3703 * NEWS: Mention new command line option -mrelax-relocations and
3704 new configure option --enable-x86-relax-relocations for x86
3705 target.
3706 * config.in: Regenerated.
3707 * configure.ac: Add --enable-x86-relax-relocations.
3708 (ac_default_x86_relax_relocations): New. Default to 1 except
3709 for x86 Solaris targets older than Solaris 12.
3710 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
3711 * configure: Likewise.
3712 * config/tc-i386.c (generate_relax_relocations): New.
3713 (OPTION_MRELAX_RELOCATIONS): Likewise.
3714 (output_disp): Don't generate relax relocations if
3715 generate_relax_relocations is 0.
3716 (md_longopts): Add -mrelax-relocations.
3717 (md_show_usage): Likewise.
3718 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
3719 * doc/c-i386.texi: Document -mrelax-relocations=.
3720 * testsuite/gas/i386/got-no-relax.d: New file.
3721 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
3722 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
3723 * testsuite/gas/i386/localpic.d: Likewise.
3724 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
3725 * testsuite/gas/i386/reloc32.d: Likewise.
3726 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
3727 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
3728 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
3729 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
3730 * testsuite/gas/i386/i386.exp: Run got-no-relax and
3731 x86-64-gotpcrel-no-relax.
3732
3733 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
3734
3735 * NEWS: Mention new command line option -mfence-as-lock-add=yes
3736 for x86 target.
3737
3738 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
3739
3740 * NEWS: Remove duplicated marker for 2.26.
3741
3742 2016-02-02 Renlin Li <renlin.li@arm.com>
3743
3744 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
3745
3746 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 * testsuite/gas/ip2k/allinsn.d: New file.
3749 * testsuite/gas/ip2k/allinsn.s: New file.
3750 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
3751
3752 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
3753
3754 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
3755 some load instructions.
3756 * testsuite/gas/epiphany/allinsn.d: Likewise.
3757 * testsuite/gas/epiphany/regression.d: Likewise.
3758
3759 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
3762 suffixes from instruction mnemonics in expected output.
3763 * testsuite/gas/epiphany/allinsn.d: Likewise.
3764 * testsuite/gas/epiphany/regression.d: Likewise.
3765 * testsuite/gas/epiphany/sample.d: Likewise.
3766
3767 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
3768
3769 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
3770 names.
3771 * testsuite/gas/epiphany/allinsn.d: Likewise.
3772 * testsuite/gas/epiphany/sample.d: Likewise.
3773
3774 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
3775
3776 * testsuite/gas/epiphany/sample.d: Update expected output.
3777
3778 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
3779
3780 * config/tc-arc.c (md_apply_fix): Allow addendum.
3781 (arc_reloc_op): Allow complex expressions for tpoff.
3782 (md_apply_fix): Handle resolved TLS local symbol.
3783 * testsuite/gas/arc/tls-relocs1.d: New file.
3784 * testsuite/gas/arc/tls-relocs1.s: Likewise.
3785
3786 2016-02-01 Loria <Loria@phantasia.org>
3787
3788 PR target/19311
3789 * config/tc-arm.c (encode_arm_immediate): Recode to improve
3790 efficiency and avoid an LLVM loop optimization bug.
3791
3792 2016-02-01 Nick Clifton <nickc@redhat.com>
3793
3794 * config/tc-microblaze.c (parse_imm): Fix compile time warning
3795 message extending a negative 32-bit value into a larger signed
3796 value on a 32-bit host.
3797
3798 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
3799
3800 PR gas/19532
3801 * configure.ac (compressed_debug_sections): Replace == with =.
3802 * configure: Regenerated.
3803
3804 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
3805 H.J. Lu <hongjiu.lu@intel.com>
3806
3807 * config/tc-i386.c (avoid_fence): New.
3808 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
3809 is true.
3810 (OPTION_FENCE_AS_LOCK_ADD): New.
3811 (md_longopts): Add -mfence-as-lock-add.
3812 (md_parse_option): Handle -mfence-as-lock-add.
3813 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
3814 * doc/c-i386.texi (-mfence-as-lock-add): Document.
3815 * testsuite/gas/i386/i386.exp: Run new tests.
3816 * testsuite/gas/i386/fence-as-lock-add.s: New.
3817 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
3818 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
3819 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
3820 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
3821
3822 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
3823
3824 * configure.ac (compressed_debug_sections): Remove trailing `]'.
3825 * configure: Regenerated.
3826
3827 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
3828
3829 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
3830 (OPTION_MOMIT_LOCK_PREFIX): This.
3831 (md_longopts): Updated.
3832 (md_parse_option): Likewise.
3833
3834 2016-01-25 Catherine Moore <clm@codesourcery.com>
3835
3836 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
3837 if abicalls are in effect.
3838 * testsuite/gas/mips/sdata-gp.s: New test.
3839 * testsuite/gas/mips/sdata-gp.d: New expected output
3840 * testsuite/gas/mips/mips.exp: Run new test.
3841
3842 2016-01-25 Renlin Li <renlin.li@arm.com>
3843
3844 * testsuite/gas/arm/thumb2_it_search.d: New.
3845 * testsuite/gas/arm/thumb2_it_search.s: New.
3846
3847 2016-01-21 Nick Clifton <nickc@redhat.com>
3848
3849 PR gas/19454
3850 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
3851 with arm-netbsdelf target.
3852 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
3853
3854 2016-01-20 Nick Clifton <nickc@redhat.com>
3855
3856 PR 19456
3857 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
3858 * testsuite/gas/arm/blx-bl-convert.d
3859 * testsuite/gas/arm/plt-1.d: Likewise.
3860 * testsuite/gas/arm/reloc-bad.d: Likewise.
3861 * testsuite/gas/arm/thumb-w-good.d: Likewise.
3862 * testsuite/gas/arm/thumb2_pool.d: Likewise.
3863 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
3864 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
3865
3866 PR 19499
3867 * doc/as.texinfo (Errors): Correct documentation describing the
3868 interaction of .file and .line with warning and error messages.
3869
3870 PR 19458
3871 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
3872 * testsuite/gas/arm/archv8m-main.d: Likewise.
3873 * testsuite/gas/arm/archv8m-base.d: Likewise.
3874
3875 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
3876
3877 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
3878 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
3879 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
3880
3881 2016-01-20 Mickael Guene <mickael.guene@st.com>
3882 Terry Guo <terry.guo@arm.com>
3883
3884 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
3885 SHF_ARM_NOREAD section flag.
3886 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
3887 handle letter 'y'.
3888 (arm_elf_section_letter) : Declare it.
3889 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
3890 SHF_ARM_NOREAD section flag.
3891 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
3892
3893 * testsuite/gas/arm/section-execute-only.s: New test case.
3894 * testsuite/gas/arm/section-execute-only.d: Expected output.
3895
3896 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
3897
3898 * config/tc-mips.c (micromips_insn_length): Remove the mention
3899 of 48-bit microMIPS instructions.
3900
3901 2016-01-18 Alan Modra <amodra@gmail.com>
3902
3903 * configure: Regenerate.
3904
3905 2016-01-17 Alan Modra <amodra@gmail.com>
3906
3907 * configure: Regenerate.
3908
3909 2016-01-17 Alan Modra <amodra@gmail.com>
3910
3911 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
3912
3913 2016-01-14 Nick Clifton <nickc@redhat.com>
3914
3915 * testsuite/gas/rl78/sp-relative-movw.s: New test.
3916 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
3917 * testsuite/gas/rl78/rl78.exp: Run the new test.
3918
3919 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
3920
3921 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
3922 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
3923
3924 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
3925
3926 * config/tc-nios2.c (output_movia): Preset `code' to 0.
3927
3928 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
3929
3930 * config/tc-h8300.c (get_operand): Remove spurious condition in
3931 test for closing parenthesis.
3932
3933 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
3934
3935 * config/tc-arm.c (arm_ext_v8_2): New.
3936 (insns): Add "esb".
3937 * testsuite/gas/arm/armv8_2-a.d: New.
3938 * testsuite/gas/arm/armv8_2-a.s: New.
3939
3940 2016-01-12 Alan Modra <amodra@gmail.com>
3941
3942 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
3943
3944 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
3945
3946 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
3947 xvcmpnesp, xvcmpnesp.>: Delete tests.
3948 * testsuite/gas/ppc/power9.s: Likewise.
3949 * testsuite/gas/ppc/vsx3.d: Likewise.
3950 * testsuite/gas/ppc/vsx3.s: Likewise.
3951
3952 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
3953
3954 PR gas/13050
3955 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
3956 * testsuite/gas/m68k/p13050-1.s: New file.
3957 * testsuite/gas/m68k/p13050-2.d: New file.
3958 * testsuite/gas/m68k/p13050-2.s: New file.
3959
3960 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
3961
3962 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
3963 * testsuite/gas/arc/add.d: Likewise.
3964 * testsuite/gas/arc/and.d: Likewise.
3965 * testsuite/gas/arc/asl.d: Likewise.
3966 * testsuite/gas/arc/asr.d: Likewise.
3967 * testsuite/gas/arc/bic.d: Likewise.
3968 * testsuite/gas/arc/extb.d: Likewise.
3969 * testsuite/gas/arc/extw.d: Likewise.
3970 * testsuite/gas/arc/j.d: Likewise.
3971 * testsuite/gas/arc/jl.d: Likewise.
3972 * testsuite/gas/arc/ld2.d: Likewise.
3973 * testsuite/gas/arc/lsr.d: Likewise.
3974 * testsuite/gas/arc/mov.d: Likewise.
3975 * testsuite/gas/arc/or.d: Likewise.
3976 * testsuite/gas/arc/pcl-relocs.d: Likewise.
3977 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
3978 * testsuite/gas/arc/pic-relocs.d: Likewise.
3979 * testsuite/gas/arc/plt-relocs.d: Likewise.
3980 * testsuite/gas/arc/rlc.d: Likewise.
3981 * testsuite/gas/arc/ror.d: Likewise.
3982 * testsuite/gas/arc/rrc.d: Likewise.
3983 * testsuite/gas/arc/sbc.d: Likewise.
3984 * testsuite/gas/arc/sda-relocs.d: Likewise.
3985 * testsuite/gas/arc/sda-relocs2.d: Likewise.
3986 * testsuite/gas/arc/sexb.d: Likewise.
3987 * testsuite/gas/arc/sexw.d: Likewise.
3988 * testsuite/gas/arc/st.d: Likewise.
3989 * testsuite/gas/arc/sub.d: Likewise.
3990 * testsuite/gas/arc/tls-relocs.d: Likewise.
3991 * testsuite/gas/arc/xor.d: Likewise.
3992
3993 2016-01-01 Alan Modra <amodra@gmail.com>
3994
3995 Update year range in copyright notice of all files.
3996
3997 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
3998 \f
3999 Copyright (C) 2016 Free Software Foundation, Inc.
4000
4001 Copying and distribution of this file, with or without modification,
4002 are permitted in any medium without royalty provided the copyright
4003 notice and this notice are preserved.
4004
4005 Local Variables:
4006 mode: change-log
4007 left-margin: 8
4008 fill-column: 74
4009 version-control: never
4010 End:
This page took 0.128266 seconds and 5 git commands to generate.