MIPS16/GAS: Improve [32768,65535] out-of-range operand error diagnostics
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2
3 * config/tc-mips.c (match_int_operand): Call
4 `match_out_of_range' before returning failure for 0x8000-0xffff
5 values conditionally allowed.
6
7 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
8
9 * config/tc-mips.c (match_int_operand): Call
10 `match_not_constant' before returning failure for a non-constant
11 16-bit immediate conditionally allowed.
12
13 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
14
15 * config/tc-mips.c (match_const_int): Call `match_out_of_range'
16 rather than `match_not_constant' for unrelocated operands
17 retrieved as an `O_big' expression.
18 (match_int_operand): Call `match_out_of_range' for relocatable
19 operands retrieved as an `O_big' expression.
20 (match_mips16_insn): Call `match_out_of_range' for relaxable
21 operands retrieved as an `O_big' expression.
22 * testsuite/gas/mips/addiu-error.d: New test.
23 * testsuite/gas/mips/mips16@addiu-error.d: New test.
24 * testsuite/gas/mips/micromips@addiu-error.d: New test.
25 * testsuite/gas/mips/break-error.d: New test.
26 * testsuite/gas/mips/lui-1.l: Adjust error message.
27 * testsuite/gas/mips/addiu-error.l: New stderr output.
28 * testsuite/gas/mips/mips16@addiu-error.l: New stderr output.
29 * testsuite/gas/mips/micromips@addiu-error.l: New stderr output.
30 * testsuite/gas/mips/break-error.l: New stderr output.
31 * testsuite/gas/mips/addiu-error.s: New test source.
32 * testsuite/gas/mips/break-error.s: New test source.
33 * testsuite/gas/mips/mips.exp: Run the new tests.
34
35 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
36
37 * config/tc-mips.c (match_mips16_insn): Remove the explicit
38 OT_INTEGER check before the `match_expression' call.
39 * testsuite/gas/mips/mips16-insn-e.l: Adjust messages.
40 * testsuite/gas/mips/mips16-32@mips16-insn-e.l: Likewise.
41 * testsuite/gas/mips/mips16-64@mips16-insn-e.l: Likewise.
42 * testsuite/gas/mips/mips16e-32@mips16-insn-e.l: Likewise.
43 * testsuite/gas/mips/mips16-reg-error.d: New test.
44 * testsuite/gas/mips/mips16-reg-error.l: New stderr output.
45 * testsuite/gas/mips/mips16-reg-error.s: New test source.
46 * testsuite/gas/mips/mips.exp: Run the new test.
47
48 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
49
50 * config/tc-mips.c (match_mips16_insn): Call
51 `match_not_constant' for a disallowed relocation operation.
52 * testsuite/gas/mips/mips16-reloc-error.d: New test.
53 * testsuite/gas/mips/mips16-reloc-error.l: New stderr output.
54 * testsuite/gas/mips/mips16-reloc-error.s: New test source.
55 * testsuite/gas/mips/mips.exp: Run the new test.
56
57 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
58
59 * testsuite/gas/mips/lui-1.d: New test.
60 * testsuite/gas/mips/lui-2.d: New test.
61 * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
62 into the new tests.
63
64 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
65
66 * config/tc-mips.c (match_const_int): Update description.
67
68 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
69
70 * doc/as.texinfo (-mips16, -no-mips16): Refer to `.module
71 mips16' rather than `.set mips16'.
72 (-mmicromips, -mno-micromips): Refer to `.module micromips' and
73 `.module nomicromips' rather than `.set micromips' and `.set
74 nomicromips'.
75 (-msmartmips, -mno-smartmips): Refer to `.module smartmips'
76 rather than `.set smartmips'.
77 * doc/c-mips.texi (MIPS Options): Refer to `.module mips16',
78 `.module micromips', `.module nomicromips' and `.module
79 smartmips' rather than `.set mips16', `.set micromips', `.set
80 nomicromips' and `.set smartmips' respectively.
81
82 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
83 Matthew Fortune <matthew.fortune@imgtec.com>
84
85 * config/tc-mips.c (mips_percent_op): Add "%gprel".
86 (mips16_percent_op): Add "%gp_rel".
87 * testsuite/gas/mips/elf-rel8.s:: Add `%gprel' forms.
88 * testsuite/gas/mips/elf-rel8-mips16.s: Add `%gp_rel' forms.
89 * testsuite/gas/mips/elf-rel8.d: Adjust accordingly.
90 * testsuite/gas/mips/elf-rel8-mips16.d: Likewise.
91
92 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
93
94 * testsuite/gas/mips/mips16.d: Adjust BREAK disassembly.
95 * testsuite/gas/mips/mips16-64@mips16.d: Likewise.
96 * testsuite/gas/mips/mips16-64.d: Likewise.
97 * testsuite/gas/mips/mips16-64@mips16-64.d: Likewise.
98 * testsuite/gas/mips/mips16-macro.d: Likewise.
99 * testsuite/gas/mips/mips16-64@mips16-macro.d: Likewise.
100 * testsuite/gas/mips/mips16-sub.d: Likewise.
101 * testsuite/gas/mips/mips16-32@mips16-sub.d: Likewise.
102
103 2017-05-11 Maciej W. Rozycki <macro@imgtec.com>
104
105 * testsuite/gas/mips/mips32r2-sync-1.d: New test.
106 * testsuite/gas/mips/micromips@mips32r2-sync-1.d: New test.
107 * testsuite/gas/mips/mips.exp: Run the new tests.
108
109 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
110
111 * testsuite/gas/mips/isa-override-2.d: New test.
112 * testsuite/gas/mips/mips1@isa-override-2.d: New test.
113 * testsuite/gas/mips/r3000@isa-override-2.d: New test.
114 * testsuite/gas/mips/r3900@isa-override-2.d: New test.
115 * testsuite/gas/mips/mips2@isa-override-2.d: New test.
116 * testsuite/gas/mips/mips32@isa-override-2.d: New test.
117 * testsuite/gas/mips/mips32r2@isa-override-2.d: New test.
118 * testsuite/gas/mips/mips32r3@isa-override-2.d: New test.
119 * testsuite/gas/mips/mips32r5@isa-override-2.d: New test.
120 * testsuite/gas/mips/mips32r6@isa-override-2.d: New test.
121 * testsuite/gas/mips/octeon3@isa-override-2.d: New test.
122 * testsuite/gas/mips/r3000@isa-override-2.l: Remove list test.
123 * testsuite/gas/mips/mips1@isa-override-2.s: Remove test source.
124 * testsuite/gas/mips/r3000@isa-override-2.s: Remove test source.
125 * testsuite/gas/mips/r3900@isa-override-2.s: Remove test source.
126 * testsuite/gas/mips/mips2@isa-override-2.s: Remove test source.
127 * testsuite/gas/mips/mips32@isa-override-2.s: Remove test
128 source.
129 * testsuite/gas/mips/mips32r2@isa-override-2.s: Remove test
130 source.
131 * testsuite/gas/mips/mips32r3@isa-override-2.s: Remove test
132 source.
133 * testsuite/gas/mips/mips32r5@isa-override-2.s: Remove test
134 source.
135 * testsuite/gas/mips/mips32r6@isa-override-2.s: Remove test
136 source.
137 * testsuite/gas/mips/octeon3@isa-override-2.s: Remove test
138 source.
139 * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
140 into the new tests.
141
142 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
143
144 * testsuite/gas/mips/mips16e-sub.d: Correct test name.
145 * testsuite/gas/mips/mips16-32@mips16e-sub.d: Likewise.
146 * testsuite/gas/mips/mips16-64@mips16e-sub.d: Likewise.
147 * testsuite/gas/mips/mips16e-64-sub.d: Likewise.
148 * testsuite/gas/mips/mips16-32@mips16e-64-sub.d: Likewise.
149 * testsuite/gas/mips/mips16-64@mips16e-64-sub.d: Likewise.
150 * testsuite/gas/mips/mips16e-32@mips16e-64-sub.d: Likewise.
151
152 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
153
154 * testsuite/gas/mips/mips16-macro.l: Remove list test.
155
156 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
157
158 * testsuite/gas/mips/r3900@ecoff@ld.d: Remove test.
159 * testsuite/gas/mips/mips2@ecoff@ld.d: Remove test.
160 * testsuite/gas/mips/mips32@ecoff@ld.d: Remove test.
161 * testsuite/gas/mips/mips32r2@ecoff@ld.d: Remove test.
162 * testsuite/gas/mips/r3900@ecoff@ld-forward.d: Remove test.
163 * testsuite/gas/mips/mips2@ecoff@ld-forward.d: Remove test.
164 * testsuite/gas/mips/mips32@ecoff@ld-forward.d: Remove test.
165 * testsuite/gas/mips/mips32r2@ecoff@ld-forward.d: Remove test.
166 * testsuite/gas/mips/mips1@ecoff@sd.d: Remove test.
167 * testsuite/gas/mips/r3000@ecoff@sd.d: Remove test.
168 * testsuite/gas/mips/r3900@ecoff@sd.d: Remove test.
169 * testsuite/gas/mips/mips2@ecoff@sd.d: Remove test.
170 * testsuite/gas/mips/mips32@ecoff@sd.d: Remove test.
171 * testsuite/gas/mips/mips32r2@ecoff@sd.d: Remove test.
172 * testsuite/gas/mips/mips1@ecoff@sd-forward.d: Remove test.
173 * testsuite/gas/mips/r3000@ecoff@sd-forward.d: Remove test.
174 * testsuite/gas/mips/r3900@ecoff@sd-forward.d: Remove test.
175 * testsuite/gas/mips/mips2@ecoff@sd-forward.d: Remove test.
176 * testsuite/gas/mips/mips32@ecoff@sd-forward.d: Remove test.
177 * testsuite/gas/mips/mips32r2@ecoff@sd-forward.d: Remove test.
178
179 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
180
181 * testsuite/gas/arc/attr-arc600.d: New file.
182 * testsuite/gas/arc/attr-arc600_mul32x16.d: Likewise.
183 * testsuite/gas/arc/attr-arc600_norm.d: Likewise.
184 * testsuite/gas/arc/attr-arc601.d: Likewise.
185 * testsuite/gas/arc/attr-arc601_mul32x16.d: Likewise.
186 * testsuite/gas/arc/attr-arc601_mul64.d: Likewise.
187 * testsuite/gas/arc/attr-arc601_norm.d: Likewise.
188 * testsuite/gas/arc/attr-arc700.d: Likewise.
189 * testsuite/gas/arc/attr-arcem.d: Likewise.
190 * testsuite/gas/arc/attr-archs.d: Likewise.
191 * testsuite/gas/arc/attr-autodetect-1.d: Likewise.
192 * testsuite/gas/arc/attr-autodetect-1.s: Likewise.
193 * testsuite/gas/arc/attr-cpu-a601.d: Likewise.
194 * testsuite/gas/arc/attr-cpu-a601.s: Likewise.
195 * testsuite/gas/arc/attr-cpu-a700.d: Likewise.
196 * testsuite/gas/arc/attr-cpu-a700.s: Likewise.
197 * testsuite/gas/arc/attr-cpu-em.d: Likewise.
198 * testsuite/gas/arc/attr-cpu-em.s: Likewise.
199 * testsuite/gas/arc/attr-cpu-hs.d: Likewise.
200 * testsuite/gas/arc/attr-cpu-hs.s: Likewise.
201 * testsuite/gas/arc/attr-em.d: Likewise.
202 * testsuite/gas/arc/attr-em4.d: Likewise.
203 * testsuite/gas/arc/attr-em4_dmips.d: Likewise.
204 * testsuite/gas/arc/attr-em4_fpuda.d: Likewise.
205 * testsuite/gas/arc/attr-em4_fpus.d: Likewise.
206 * testsuite/gas/arc/attr-hs.d: Likewise.
207 * testsuite/gas/arc/attr-hs34.d: Likewise.
208 * testsuite/gas/arc/attr-hs38.d: Likewise.
209 * testsuite/gas/arc/attr-hs38_linux.d: Likewise.
210 * testsuite/gas/arc/attr-mul64.d: Likewise.
211 * testsuite/gas/arc/attr-name.d: Likewise.
212 * testsuite/gas/arc/attr-name.s: Likewise.
213 * testsuite/gas/arc/attr-nps400.d: Likewise.
214 * testsuite/gas/arc/attr-override-mcpu.d: Likewise.
215 * testsuite/gas/arc/attr-override-mcpu.s
216 * testsuite/gas/arc/attr-quarkse_em.d: Likewise.
217 * testsuite/gas/arc/blank.s: Likewise.
218 * testsuite/gas/elf/section2.e-arc: Likewise.
219 * testsuite/gas/arc/cpu-pseudop-1.d: Update test.
220 * testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
221 * testsuite/gas/arc/nps400-0.d: Likewise.
222 * testsuite/gas/elf/elf.exp: Set target_machine for ARC.
223 * config/tc-arc.c (opcode/arc-attrs.h): Include.
224 (ARC_GET_FLAG, ARC_SET_FLAG, streq): Define.
225 (arc_attribute): Declare new function.
226 (md_pseudo_table): Add arc_attribute.
227 (cpu_types): Rename default cpu features.
228 (selected_cpu): Set the default OSABI flag.
229 (mpy_option): New variable.
230 (pic_option): Likewise.
231 (sda_option): Likewise.
232 (tls_option): Likewise.
233 (feature_type, feature_list): Remove.
234 (arc_initial_eflag): Likewise.
235 (attributes_set_explicitly): New variable.
236 (arc_check_feature): Check also for the conflicting features.
237 (arc_select_cpu): Refactor assignment of selected_cpu.eflags.
238 (arc_option): Remove setting of private flags and architecture.
239 (check_cpu_feature): Refactor feature names.
240 (autodetect_attributes): New function.
241 (assemble_tokens): Use above function.
242 (md_parse_option): Refactor feature names.
243 (arc_attribute): New function.
244 (arc_set_attribute_int): Likewise.
245 (arc_set_attribute_string): Likewise.
246 (arc_stralloc): Likewise.
247 (arc_set_public_attributes): Likewise.
248 (arc_md_end): Likewise.
249 (arc_copy_symbol_attributes): Likewise.
250 (rc_convert_symbolic_attribute): Likewise.
251 * config/tc-arc.h (md_end): Define.
252 (CONVERT_SYMBOLIC_ATTRIBUTE): Likewise.
253 (TC_COPY_SYMBOL_ATTRIBUTES): Likewise.
254 * doc/c-arc.texi: Document ARC object attributes.
255
256 2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
257
258 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `pic', `sym32' and
259 `nomacro' flags.
260 (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO):
261 New macros.
262 (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
263 (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
264 (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
265 (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
266 (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
267 (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): Shift bits.
268 (RELAX_MIPS16_MACRO, RELAX_MIPS16_MARK_MACRO)
269 (RELAX_MIPS16_CLEAR_MACRO): New macros.
270 (append_insn): Pass `mips_pic', HAVE_32BIT_SYMBOLS and
271 `mips_opts.warn_about_macros' settings to RELAX_MIPS16_ENCODE.
272 (mips16_macro_frag): New function.
273 (md_estimate_size_before_relax): Handle HI16/LO16 relaxation.
274 (mips_relax_frag): Likewise.
275 (md_convert_frag): Likewise.
276
277 * testsuite/gas/mips/mips16@relax-swap3.d: Remove error output,
278 add dump patterns.
279 * testsuite/gas/mips/mips16e@relax-swap3.d: New test
280 subarchitecture.
281 * testsuite/gas/mips/micromips@relax-swap3.d: Remove trailing
282 NOP padding.
283 * testsuite/gas/mips/mips16-pcrel-reloc-2.d: Remove error
284 output, add dump patterns.
285 * testsuite/gas/mips/mips16-pcrel-reloc-3.d: Remove error
286 output, add dump patterns.
287 * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Remove error
288 output, add dump patterns.
289 * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Remove error
290 output, add dump patterns.
291 * testsuite/gas/mips/mips16-pcrel-addend-2.d: Remove error
292 output, add dump patterns.
293 * testsuite/gas/mips/mips16-pcrel-addend-3.d: Remove error
294 output, add dump patterns.
295 * testsuite/gas/mips/mips16-pcrel-absolute.d: Remove error
296 output, add dump patterns.
297 * testsuite/gas/mips/mips16-pcrel-absolute-1.d: Remove error
298 output, add dump patterns.
299 * testsuite/gas/mips/mips16@relax-swap3.l: Remove file.
300 * testsuite/gas/mips/mips16-pcrel-reloc-2.l: Remove file.
301 * testsuite/gas/mips/mips16-pcrel-reloc-3.l: Remove file.
302 * testsuite/gas/mips/mips16-pcrel-reloc-6.l: Remove file.
303 * testsuite/gas/mips/mips16-pcrel-reloc-7.l: Remove file.
304 * testsuite/gas/mips/mips16-pcrel-addend-2.l: Remove file.
305 * testsuite/gas/mips/mips16-pcrel-addend-3.l: Remove file.
306 * testsuite/gas/mips/mips16-pcrel-absolute.l: Remove file.
307 * testsuite/gas/mips/mips16-pcrel-absolute-1.l: Remove file.
308 * testsuite/gas/mips/relax-swap3.s: Adjust trailing padding.
309
310 * testsuite/gas/mips/mips16-pcrel-0.d: New test.
311 * testsuite/gas/mips/mips16-pcrel-1.d: New test.
312 * testsuite/gas/mips/mips16-pcrel-2.d: New test.
313 * testsuite/gas/mips/mips16-pcrel-3.d: New test.
314 * testsuite/gas/mips/mips16-pcrel-4.d: New test.
315 * testsuite/gas/mips/mips16-pcrel-5.d: New test.
316 * testsuite/gas/mips/mips16-pcrel-pic-0.d: New test.
317 * testsuite/gas/mips/mips16-pcrel-pic-1.d: New test.
318 * testsuite/gas/mips/mips16-pcrel-n32-0.d: New test.
319 * testsuite/gas/mips/mips16-pcrel-n32-1.d: New test.
320 * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: New test.
321 * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: New test.
322 * testsuite/gas/mips/mips16-pcrel-n64-0.d: New test.
323 * testsuite/gas/mips/mips16-pcrel-n64-1.d: New test.
324 * testsuite/gas/mips/mips16-pcrel-delay-0.d: New test.
325 * testsuite/gas/mips/mips16-pcrel-delay-1.d: New test.
326 * testsuite/gas/mips/mips16-pcrel-addend-4.d: New test.
327 * testsuite/gas/mips/mips16-pcrel-addend-5.d: New test.
328 * testsuite/gas/mips/mips16-pcrel-addend-6.d: New test.
329 * testsuite/gas/mips/mips16-pcrel-addend-7.d: New test.
330 * testsuite/gas/mips/mips16-pcrel-addend-8.d: New test.
331 * testsuite/gas/mips/mips16-pcrel-addend-9.d: New test.
332 * testsuite/gas/mips/mips16-pcrel-addend-pic-8.d: New test.
333 * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: New test.
334 * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: New test.
335 * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: New test.
336 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d: New test.
337 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d: New test.
338 * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: New test.
339 * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: New test.
340 * testsuite/gas/mips/mips16-pcrel-absolute-2.d: New test.
341 * testsuite/gas/mips/mips16-pcrel-absolute-3.d: New test.
342 * testsuite/gas/mips/mips16-pcrel-absolute-4.d: New test.
343 * testsuite/gas/mips/mips16-pcrel-absolute-5.d: New test.
344 * testsuite/gas/mips/mips16-pcrel-absolute-6.d: New test.
345 * testsuite/gas/mips/mips16-pcrel-absolute-7.d: New test.
346 * testsuite/gas/mips/mips16-pcrel-absolute-pic-4.d: New test.
347 * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: New test.
348 * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: New test.
349 * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: New test.
350 * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: New test.
351 * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: New test.
352 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d: New
353 test.
354 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d: New
355 test.
356 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d: New
357 test.
358 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d: New
359 test.
360 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d: New
361 test.
362 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d: New
363 test.
364 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
365 New test.
366 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
367 New test.
368 * testsuite/gas/mips/mips16-pcrel-0.l: New stderr output.
369 * testsuite/gas/mips/mips16-pcrel-1.l: New stderr output.
370 * testsuite/gas/mips/mips16-pcrel-2.l: New stderr output.
371 * testsuite/gas/mips/mips16-pcrel-3.l: New stderr output.
372 * testsuite/gas/mips/mips16-pcrel-4.l: New stderr output.
373 * testsuite/gas/mips/mips16-pcrel-5.l: New stderr output.
374 * testsuite/gas/mips/mips16-pcrel-delay-0.l: New stderr output.
375 * testsuite/gas/mips/mips16-pcrel-delay-1.l: New stderr output.
376 * testsuite/gas/mips/mips16-pcrel-addend-8.l: New stderr output.
377 * testsuite/gas/mips/mips16-pcrel-addend-9.l: New stderr output.
378 * testsuite/gas/mips/mips16-pcrel-absolute-4.l: New stderr
379 output.
380 * testsuite/gas/mips/mips16-pcrel-absolute-6.l: New stderr
381 output.
382 * testsuite/gas/mips/mips16-pcrel-0.s: New test source.
383 * testsuite/gas/mips/mips16-pcrel-1.s: New test source.
384 * testsuite/gas/mips/mips16-pcrel-2.s: New test source.
385 * testsuite/gas/mips/mips16-pcrel-3.s: New test source.
386 * testsuite/gas/mips/mips16-pcrel-4.s: New test source.
387 * testsuite/gas/mips/mips16-pcrel-5.s: New test source.
388 * testsuite/gas/mips/mips16-pcrel-delay-0.s: New test source.
389 * testsuite/gas/mips/mips16-pcrel-delay-1.s: New test source.
390 * testsuite/gas/mips/mips16-pcrel-addend-4.s: New test source.
391 * testsuite/gas/mips/mips16-pcrel-addend-5.s: New test source.
392 * testsuite/gas/mips/mips16-pcrel-addend-6.s: New test source.
393 * testsuite/gas/mips/mips16-pcrel-addend-7.s: New test source.
394 * testsuite/gas/mips/mips16-pcrel-addend-8.s: New test source.
395 * testsuite/gas/mips/mips16-pcrel-addend-9.s: New test source.
396 * testsuite/gas/mips/mips16-pcrel-absolute-2.s: New test.
397 * testsuite/gas/mips/mips16-pcrel-absolute-3.s: New test.
398 * testsuite/gas/mips/mips16-pcrel-absolute-4.s: New test.
399 * testsuite/gas/mips/mips16-pcrel-absolute-5.s: New test.
400 * testsuite/gas/mips/mips16-pcrel-absolute-6.s: New test.
401 * testsuite/gas/mips/mips16-pcrel-absolute-7.s: New test.
402 * testsuite/gas/mips/mips.exp: Run the new tests.
403
404 2017-05-03 Nick Clifton <nickc@redhat.com>
405
406 PR gas/20941
407 * symbols.c (snapshot_symbol): Handle the case where
408 resolve_expression returns a local symbol.
409
410 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
411
412 * config/tc-mips.c (append_insn): Call `symbol_append' for any
413 expression symbol created for MIPS16 relaxation.
414 (match_mips16_insn): Don't encode a constant value as an
415 immediate with a PC-relative operand.
416
417 * testsuite/gas/mips/mips16-pcrel-absolute-1.d: New test.
418 * testsuite/gas/mips/mips16-branch-absolute-1.d: New test.
419 * testsuite/gas/mips/mips16-branch-absolute-2.d: New test.
420 * testsuite/gas/mips/mips16-branch-absolute-addend-1.d: New
421 test.
422 * testsuite/gas/mips/mips16-branch-absolute-n32-1.d: New test.
423 * testsuite/gas/mips/mips16-branch-absolute-n32-2.d: New test.
424 * testsuite/gas/mips/mips16-branch-absolute-addend-n32-1.d: New
425 test.
426 * testsuite/gas/mips/mips16-branch-absolute-n64-1.d: New test.
427 * testsuite/gas/mips/mips16-branch-absolute-n64-2.d: New test.
428 * testsuite/gas/mips/mips16-branch-absolute-addend-n64-1.d: New
429 test.
430 * testsuite/gas/mips/mips16-pcrel-absolute-1.l: New stderr
431 output.
432 * testsuite/gas/mips/mips16-pcrel-absolute-1.s: New test source.
433 * testsuite/gas/mips/mips16-branch-absolute-1.s: New test
434 source.
435 * testsuite/gas/mips/mips16-branch-absolute-2.s: New test
436 source.
437 * testsuite/gas/mips/mips16-branch-absolute-addend-1.s: New test
438 source.
439 * testsuite/gas/mips/mips.exp: Run the new tests.
440
441 2017-04-27 Maciej W. Rozycki <macro@imgtec.com>
442
443 * config/tc-mips.c (mips16_pcrel_val): New function, factored
444 out from...
445 (mips16_extended_frag): ... here.
446 (md_convert_frag): Use `mips16_pcrel_val' rather than repeated
447 code in MIPS16 relaxation, with `stretch' hardcoded to 0.
448
449 2017-04-27 Maciej W. Rozycki <macro@imgtec.com>
450
451 * config/tc-mips.c (RELAX_MIPS16_LONG_BRANCH): Rename to...
452 (RELAX_MIPS16_ALWAYS_EXTENDED): ... this.
453 (RELAX_MIPS16_MARK_LONG_BRANCH): Rename to...
454 (RELAX_MIPS16_MARK_ALWAYS_EXTENDED): ... this.
455 (RELAX_MIPS16_CLEAR_LONG_BRANCH): Rename to...
456 (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): ... this.
457 (mips16_extended_frag): Adjust accordingly.
458
459 2017-04-27 Alan Modra <amodra@gmail.com>
460
461 * symbols.c (S_FORCE_RELOC): Separate section and symbol tests.
462
463 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
464
465 * config/tc-mips.c (RELAX_ENCODE): Add `PIC' flag.
466 (RELAX_PIC): New macro.
467 (RELAX_USE_SECOND, RELAX_SECOND_LONGER, RELAX_NOMACRO)
468 (RELAX_DELAY_SLOT, RELAX_DELAY_SLOT_16BIT)
469 (RELAX_DELAY_SLOT_SIZE_FIRST, RELAX_DELAY_SLOT_SIZE_SECOND):
470 Shift bits.
471 (RELAX_BRANCH_ENCODE): Add `pic' flag.
472 (RELAX_BRANCH_UNCOND, RELAX_BRANCH_LIKELY, RELAX_BRANCH_LINK)
473 (RELAX_BRANCH_TOOFAR): Shift bits.
474 (RELAX_BRANCH_PIC): New macro.
475 (RELAX_MICROMIPS_ENCODE): Add `pic' flag.
476 (RELAX_MICROMIPS_PIC): New macro.
477 (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
478 (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_NODS)
479 (RELAX_MICROMIPS_RELAX32): Shift bits.
480 (relax_close_frag): Pass `mips_pic' setting to RELAX_ENCODE.
481 (append_insn): Pass `mips_pic' setting to RELAX_BRANCH_ENCODE
482 and RELAX_MICROMIPS_ENCODE, and record it in `fx_tcbit2' of the
483 first fixup created.
484 (md_apply_fix) <BFD_RELOC_16_PCREL_S2>: Use `fx_tcbit2' of the
485 fixup processed rather than `mips_pic' in choosing to relax an
486 out of range branch to a jump.
487 (relaxed_branch_length): Use the `pic' flag of the relaxed frag
488 rather than `mips_pic'.
489 (relaxed_micromips_32bit_branch_length): Likewise.
490 (md_estimate_size_before_relax): Likewise.
491 (md_convert_frag): Likewise.
492
493 * testsuite/gas/mips/option-pic-relax-0.d: New test.
494 * testsuite/gas/mips/option-pic-relax-1.d: New test.
495 * testsuite/gas/mips/option-pic-relax-2.d: New test.
496 * testsuite/gas/mips/option-pic-relax-3.d: New test.
497 * testsuite/gas/mips/option-pic-relax-3a.d: New test.
498 * testsuite/gas/mips/option-pic-relax-4.d: New test.
499 * testsuite/gas/mips/option-pic-relax-5.d: New test.
500 * testsuite/gas/mips/option-pic-relax-2.l: New stderr output.
501 * testsuite/gas/mips/option-pic-relax-3.l: New stderr output.
502 * testsuite/gas/mips/option-pic-relax-4.l: New stderr output.
503 * testsuite/gas/mips/option-pic-relax-5.l: New stderr output.
504 * testsuite/gas/mips/option-pic-relax-0.s: New test source.
505 * testsuite/gas/mips/option-pic-relax-1.s: New test source.
506 * testsuite/gas/mips/option-pic-relax-2.s: New test source.
507 * testsuite/gas/mips/option-pic-relax-3.s: New test source.
508 * testsuite/gas/mips/option-pic-relax-4.s: New test source.
509 * testsuite/gas/mips/option-pic-relax-5.s: New test source.
510 * testsuite/gas/mips/mips.exp: Run the new tests.
511
512 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
513
514 * testsuite/gas/arc/leave_enter.d: Update test.
515 * testsuite/gas/arc/leave_enter.s: Likewise.
516
517 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
518
519 * testsuite/gas/arc/b.d: Update test.
520 * testsuite/gas/arc/noargs_hs.d: Likewise.
521
522 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
523
524 * config/tc-mips.c (md_convert_frag): Correct
525 BFD_RELOC_MIPS16_16_PCREL_S1 fixup size.
526 * testsuite/gas/mips/mips16-branch-addend-4.d: New test.
527 * testsuite/gas/mips/mips16-branch-addend-5.d: New test.
528 * testsuite/gas/mips/mips16-branch-addend-5.l: New stderr
529 output.
530 * testsuite/gas/mips/mips16-branch-addend-4.s: New test source.
531 * testsuite/gas/mips/mips16-branch-addend-5.s: New test source.
532 * testsuite/gas/mips/mips.exp: Run the new tests.
533
534 2017-04-25 Jose E. Marchesi <jose.marchesi@oracle.com>
535
536 PR gas/21407
537 * config/tc-sparc.c (md_apply_fix): Do not transform `call'
538 instructions into branch instructions in fixups generating
539 additional relocations.
540 * testsuite/gas/sparc/call-relax.s: New file.
541 * testsuite/gas/sparc/call-relax.d: Likewise.
542 * testsuite/gas/sparc/call-relax-aout.d: Likewise.
543 * testsuite/gas/sparc/sparc.exp: Test call-relax and call-relax-aout.
544
545 2017-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
546
547 * config/tc-arm.c (move_or_literal_pool): Remove code generating MOVS.
548 Forbid MOV.W and MOVW if destination is SP or PC.
549 * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s: Explain
550 expectation of LDR not generating a MOVS for low registers and small
551 constants. Add tests of MOVW generation.
552 * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Update
553 expected disassembly.
554
555 2017-04-22 Alan Modra <amodra@gmail.com>
556
557 * testsuite/gas/ppc/vle.s: Format. Add se_rfgi and e_sc.
558 * testsuite/gas/ppc/vle.d: Update.
559
560 2017-04-21 Nick Clifton <nickc@redhat.com>
561
562 PR binutils/21380
563 * testsuite/gas/aarch64/illegal-3.s: New file.
564 * testsuite/gas/aarch64/illegal-3.d: New file.
565
566 2017-04-11 Alan Modra <amodra@gmail.com>
567
568 * config/tc-ppc.c (md_show_usage): Delete mention of -mhtm.
569 * testsuite/gas/ppc/htm.d: Pass -mpower8 and -Mpower8.
570
571 2017-04-10 Max Filippov <jcmvbkbc@gmail.com>
572
573 * config/tc-xtensa.c (xtensa_maybe_create_literal_pool_frag):
574 Initialize lps->frag_count with auto_litpool_limit.
575 (xg_promote_candidate_litpool): New function.
576 (xtensa_move_literals): Extract candidate litpool promotion code
577 into separate function. Call it for all possible found
578 candidates.
579 (xtensa_switch_to_literal_fragment): Drop 'recursive' flag and
580 call to xtensa_mark_literal_pool_location that it guards.
581 Replace it with call to xtensa_maybe_create_literal_pool_frag.
582 Initialize pool_location with created literal pool candidate.
583 * testsuite/gas/xtensa/all.exp: Add new tests.
584 * testsuite/gas/xtensa/auto-litpools-first1.d: New test results.
585 * testsuite/gas/xtensa/auto-litpools-first1.s: New test.
586 * testsuite/gas/xtensa/auto-litpools-first2.d: New test results.
587 * testsuite/gas/xtensa/auto-litpools-first2.s: New test.
588 * testsuite/gas/xtensa/auto-litpools.d: Fix offsets changed due
589 to additional jump instruction.
590
591 2017-04-07 Alan Modra <amodra@gmail.com>
592
593 * testsuite/gas/ppc/altivec2.s: Delete E6500 vector insns.
594 * testsuite/gas/ppc/altivec2.d: Adjust to suit.
595
596 2017-04-07 Alan Modra <amodra@gmail.com>
597
598 * testsuite/gas/elf/section12a.d: Don't expect alignment of 1
599 for .mbind.text.
600
601 2017-04-06 Pip Cet <pipcet@gmail.com>
602
603 * testsuite/gas/wasm32/allinsn.d: Adjust test for disassembler
604 changes.
605 * testsuite/gas/wasm32/disass.d: New test.
606 * testsuite/gas/wasm32/disass.s: New test.
607 * testsuite/gas/wasm32/disass-2.d: New test.
608 * testsuite/gas/wasm32/disass-2.s: New test.
609 * testsuite/gas/wasm32/reloc.d: Adjust test for changed reloc
610 names.
611 * testsuite/gas/wasm32/reloc.s: Update test for changed assembler
612 syntax.
613 * testsuite/gas/wasm32/wasm32.exp: Run new tests. Expect allinsn
614 test to succeed.
615
616 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
617
618 * NEWS: Mention support for ELF SHF_GNU_MBIND.
619 * config/obj-elf.c (section_match): New.
620 (get_section): Match both sh_info and group name.
621 (obj_elf_change_section): Add argument for sh_info. Pass both
622 sh_info and group name to get_section. Issue an error for
623 SHF_GNU_MBIND section without SHF_ALLOC. Set sh_info.
624 (obj_elf_parse_section_letters): Set SHF_GNU_MBIND for 'd'.
625 (obj_elf_section): Support SHF_GNU_MBIND section info.
626 * config/obj-elf.h (obj_elf_change_section): Add argument for
627 sh_info.
628 * config/tc-arm.c (start_unwind_section): Pass 0 as sh_info to
629 obj_elf_change_section.
630 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
631 * config/tc-microblaze.c (microblaze_s_data): Likewise.
632 (microblaze_s_sdata): Likewise.
633 (microblaze_s_rdata): Likewise.
634 (microblaze_s_bss): Likewise.
635 * config/tc-mips.c (s_change_section): Likewise.
636 * config/tc-msp430.c (msp430_profiler): Likewise.
637 * config/tc-rx.c (parse_rx_section): Likewise.
638 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
639 * doc/as.texinfo: Document 'd' for SHF_GNU_MBIND.
640 * testsuite/gas/elf/elf.exp: Run section12a, section12b and
641 section13.
642 * testsuite/gas/elf/section10.d: Updated.
643 * testsuite/gas/elf/section10.s: Likewise.
644 * testsuite/gas/elf/section12.s: New file.
645 * testsuite/gas/elf/section12a.d: Likewise.
646 * testsuite/gas/elf/section12b.d: Likewise.
647 * testsuite/gas/elf/section13.l: Likewise.
648 * testsuite/gas/elf/section13.d: Likewise.
649 * testsuite/gas/elf/section13.s: Likewise.
650
651 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
652
653 * config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to
654 avoid const warnings.
655
656 2017-03-30 Palmer Dabbelt <palmer@dabbelt.com>
657
658 * config/tc-riscv.c (riscv_clear_subsets): New function.
659 (riscv_add_subset): Call riscv_clear_subsets and riscv_set_rvc to
660 clear RVC when it's been previously set.
661
662 2017-03-31 Nick Clifton <nickc@redhat.com>
663
664 PR gas/21333
665 * config/tc-s390.c (tc_s390_fix_adjustable): Allow non pc-relative
666 fixups in mergeable sections to be adjusted.
667
668 2017-03-30 Pip Cet <pipcet@gmail.com>
669
670 * config/tc-wasm32.h: New file: Add WebAssembly assembler target.
671 * config/tc-wasm32.c: New file: Add WebAssembly assembler target.
672 * Makefile.am: Add WebAssembly assembler target.
673 * configure.tgt: Add WebAssembly assembler target.
674 * doc/c-wasm32.texi: New file: Start documenting WebAssembly
675 assembler.
676 * doc/all.texi: Define WASM32.
677 * doc/as.texinfo: Add WebAssembly entries.
678 * NEWS: Mention the new support.
679 * Makefile.in: Regenerate.
680 * po/gas.pot: Regenerate.
681 * po/POTFILES.in: Regenerate.
682 * testsuite/gas/wasm32: New directory.
683 * testsuite/gas/wasm32/allinsn.d: New file.
684 * testsuite/gas/wasm32/allinsn.s: New file.
685 * testsuite/gas/wasm32/illegal.l: New file.
686 * testsuite/gas/wasm32/illegal.s: New file.
687 * testsuite/gas/wasm32/illegal-2.l: New file.
688 * testsuite/gas/wasm32/illegal-2.s: New file.
689 * testsuite/gas/wasm32/illegal-3.l: New file.
690 * testsuite/gas/wasm32/illegal-3.s: New file.
691 * testsuite/gas/wasm32/illegal-4.l: New file.
692 * testsuite/gas/wasm32/illegal-4.s: New file.
693 * testsuite/gas/wasm32/illegal-5.l: New file.
694 * testsuite/gas/wasm32/illegal-5.s: New file.
695 * testsuite/gas/wasm32/illegal-6.l: New file.
696 * testsuite/gas/wasm32/illegal-6.s: New file.
697 * testsuite/gas/wasm32/illegal-7.l: New file.
698 * testsuite/gas/wasm32/illegal-7.s: New file.
699 * testsuite/gas/wasm32/illegal-8.l: New file.
700 * testsuite/gas/wasm32/illegal-8.s: New file.
701 * testsuite/gas/wasm32/illegal-9.l: New file.
702 * testsuite/gas/wasm32/illegal-9.s: New file.
703 * testsuite/gas/wasm32/illegal-10.l: New file.
704 * testsuite/gas/wasm32/illegal-10.s: New file.
705 * testsuite/gas/wasm32/illegal-11.l: New file.
706 * testsuite/gas/wasm32/illegal-11.s: New file.
707 * testsuite/gas/wasm32/illegal-12.l: New file.
708 * testsuite/gas/wasm32/illegal-12.s: New file.
709 * testsuite/gas/wasm32/illegal-13.l: New file.
710 * testsuite/gas/wasm32/illegal-13.s: New file.
711 * testsuite/gas/wasm32/illegal-14.l: New file.
712 * testsuite/gas/wasm32/illegal-14.s: New file.
713 * testsuite/gas/wasm32/illegal-15.l: New file.
714 * testsuite/gas/wasm32/illegal-15.s: New file.
715 * testsuite/gas/wasm32/illegal-16.l: New file.
716 * testsuite/gas/wasm32/illegal-16.s: New file.
717 * testsuite/gas/wasm32/illegal-17.l: New file.
718 * testsuite/gas/wasm32/illegal-17.s: New file.
719 * testsuite/gas/wasm32/illegal-18.l: New file.
720 * testsuite/gas/wasm32/illegal-18.s: New file.
721 * testsuite/gas/wasm32/illegal-19.l: New file.
722 * testsuite/gas/wasm32/illegal-19.s: New file.
723 * testsuite/gas/wasm32/illegal-20.l: New file.
724 * testsuite/gas/wasm32/illegal-20.s: New file.
725 * testsuite/gas/wasm32/illegal-21.l: New file.
726 * testsuite/gas/wasm32/illegal-21.s: New file.
727 * testsuite/gas/wasm32/illegal-22.l: New file.
728 * testsuite/gas/wasm32/illegal-22.s: New file.
729 * testsuite/gas/wasm32/illegal-24.l: New file.
730 * testsuite/gas/wasm32/illegal-24.s: New file.
731 * testsuite/gas/wasm32/illegal-25.l: New file.
732 * testsuite/gas/wasm32/illegal-25.s: New file.
733 * testsuite/gas/wasm32/reloc.d: New file.
734 * testsuite/gas/wasm32/reloc.s: New file.
735 * testsuite/gas/wasm32/wasm32.exp: New tests for WebAssembly
736 architecture.
737
738 2017-03-29 Alan Modra <amodra@gmail.com>
739
740 * config/tc-ppc.c (md_parse_option): Reject -mraw.
741
742 2017-03-27 Alan Modra <amodra@gmail.com>
743
744 PR 21303
745 * testsuite/gas/ppc/pr21303.d,
746 * testsuite/gas/ppc/pr21303.s: New test
747 * testsuite/gas/ppc/ppc.exp: Run it.
748
749 2017-03-27 Rinat Zelig <rinat@mellanox.com>
750
751 * testsuite/gas/arc/nps400-12.s: New file.
752 * testsuite/gas/arc/nps400-12.d: New file.
753
754 2017-03-24 Thomas preud'homme <thomas.preudhomme@arm.com>
755
756 * config/tc-arm.: (md_begin): Set selected_cpu from *mcpu_cpu_opt when
757 CPU_DEFAULT is defined.
758
759 2017-03-21 Palmer Dabbbelt <palmer@dabbelt.com>
760
761 * config/tc-riscv.c (md_show_usage): Remode defuct -m32, -m64,
762 -msoft-float, -mhard-float, -mno-rvc, and -mrvc options; and don't
763 print an invalid default ISA string.
764 * doc/c-riscv.texi (OPTIONS): Add -fpic and -fno-pic options.
765
766 2017-03-22 Max Filippov <jcmvbkbc@gmail.com>
767
768 * config/tc-xtensa.c (xtensa_relax_frag): Change fx_size of the
769 reassigned fixup to size of jump instruction (3) and fx_r_type
770 to BFD_RELOC_XTENSA_SLOT0_OP, as there's only one slot.
771 (add_jump_to_trampoline): Search
772 origfrag->tc_frag_data.slot_symbols for the slot with non-NULL
773 symbol and use that slot instead of slot 0.
774
775 2017-03-21 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
776
777 * config/tc-s390.c (s390_parse_cpu): Remove S390_INSTR_FLAG_VX2
778 from cpu_table. Remove vx2, and novx2 from cpu_flags.
779
780 2017-03-21 Rinat Zelig <rinat@mellanox.com>
781
782 * testsuite/gas/arc/nps400-11.s: New file.
783 * testsuite/gas/arc/nps400-11.d: New file.
784
785 2017-03-20 Nick Clifton <nickc@redhat.com>
786
787 * doc/as.texinfo (2byte): Note that if no expressions are present
788 the directive does nothing. Emphasize that the output is
789 unaligned, and that this can have an effect on the relocations
790 generated.
791 (4byte): Simplify description. Refer back to the 2byte
792 description.
793 (8byte): Likewise.
794
795 2017-03-20 Richard Earnshaw <rearnsha@arm.com>
796
797 * config/tc-arm.c (arm_fpus): Note entires that should not be
798 documented.
799 * doc/c-arm.texi (-mfpu): Add missing FPU entries for neon-vfpv3 and
800 neon-fp16. Fix spelling error.
801
802 2017-03-20 Richard Earnshaw <rearnsha@arm.com>
803
804 * config/tc-arm.c (arm_fpus): Add neon-vfpv3 as an alias for neon.
805
806 2017-03-16 Rinat Zelig <rinat@mellanox.com>
807
808 * config/tc-arc.c (assemble_insn): Only handle ".t" and ".nt"
809 specially for ARCv2.
810
811 2017-03-14 Kito Cheng <kito.cheng@gmail.com>
812
813 * config/tc-riscv.c (validate_riscv_insn): Add 'o' RVC immediate
814 encoding format, which can accept 0-valued immediates.
815 (riscv_ip): Likewise.
816
817 2017-03-15 Nick Clifton <nickc@redhat.com>
818
819 * config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
820 warning about discarding a const qualifier.
821
822 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
823
824 * config/tc-riscv.h (HWARD2_USE_FIXED_ADVANCE_PC): New define.
825
826 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
827
828 * config/tc-riscv.c (md_apply_fix): Set fx_frag and
829 fx_next->fx_frag for CFA_advance_loc relocations.
830
831 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
832
833 * config/tc-riscv.c (md_apply_fix): Compute the correct offsets
834 for CFA relocations.
835
836 2017-03-13 Nick Clifton <nickc@redhat.com>
837
838 PR binutils/21202
839 * config/tc-aarch64.c (reloc_table): Rename
840 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC to
841 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. Rname
842 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC to
843 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
844 (md_apply_fix): Likewise.
845 (aarch64_force_relocation): Likewise.
846 * testsuite/gas/aarch64/tls.d: Update regexp.
847
848 2017-03-10 Tobin C. Harding <me@tobin.cc>
849 Nick Clifton <nickc@redhat.com>
850
851 * doc/as.texinfo (2byte): Tidy up wording. Add note that
852 overlarge values will produce a warning message and be trunacted.
853 (4byte): Likewise.
854
855 2017-03-09 H.J. Lu <hongjiu.lu@intel.com>
856
857 * config/tc-i386.c (_i386_insn): Add dir_encoding and
858 vec_encoding. Remove swap_operand and need_vrex.
859 (extra_symbol_chars): Add '}'.
860 (md_begin): Mark '}' with LEX_BEGIN_NAME. Allow '}' in
861 mnemonic.
862 (build_vex_prefix): Don't use 2-byte VEX encoding with
863 {vex3}. Check dir_encoding and load.
864 (parse_insn): Check pseudo prefixes. Set dir_encoding.
865 (VEX_check_operands): Likewise.
866 (match_template): Check dir_encoding and load.
867 (parse_real_register): Set vec_encoding instead of need_vrex.
868 (parse_register): Likewise.
869 * doc/c-i386.texi: Document {disp8}, {disp32}, {load}, {store},
870 {vex2}, {vex3} and {evex}. Remove ".s", ".d8" and ".d32"
871 * testsuite/gas/i386/i386.exp: Run pseudos and x86-64-pseudos.
872 * testsuite/gas/i386/pseudos.d: New file.
873 * testsuite/gas/i386/pseudos.s: Likewise.
874 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
875 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
876
877 2017-03-08 Peter Bergner <bergner@vnet.ibm.com>
878
879 * testsuite/gas/ppc/altivec2.d (as): Use the -mpower8 option.
880 (objdump): Use the -Mpower8 option.
881
882 2017-03-08 Peter Bergner <bergner@vnet.ibm.com>
883
884 * testsuite/gas/ppc/power9.d <lnia> New test.
885 * testsuite/gas/ppc/power9.s: Likewise.
886
887 2017-03-07 Alan Modra <amodra@gmail.com>
888
889 * doc/as.texinfo (2byte, 4byte, 8byte): Correct @section placement.
890
891 2017-03-07 Tobin C. Harding <me@tobin.cc>
892 Alan Modra <amodra@gmail.com>
893
894 * doc/as.texinfo (2byte, 4byte, 8byte): Document.
895 * doc/c-arm.texi (2byte, 4byte, 8byte): Omit if ELF.
896
897 2017-03-06 H.J. Lu <hongjiu.lu@intel.com>
898
899 * config/tc-i386.c (cpu_arch): Add .cet.
900 * doc/c-i386.texi: Document cet.
901 * testsuite/gas/i386/cet-intel.d: New file.
902 * testsuite/gas/i386/cet.d: Likewise.
903 * testsuite/gas/i386/cet.s: Likewise.
904 * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
905 * testsuite/gas/i386/x86-64-cet.d: Likewise.
906 * testsuite/gas/i386/x86-64-cet.s: Likewise.
907 * testsuite/gas/i386/i386.exp: Run Intel CET tests.
908
909 2017-03-06 H.J. Lu <hongjiu.lu@intel.com>
910
911 * testsuite/gas/i386/x86-64-mpx-inval-2.s: Force a good alignment.
912 * testsuite/gas/i386/x86-64-mpx-inval-2.l: Expect [0-9A-F]+.
913
914 2017-03-06 Alan Modra <amodra@gmail.com>
915
916 * dw2gencfi.c (encoding_size): Return unsigned int.
917 (emit_expr_encoded): Assert size matches reloc bitsize.
918 (output_fde): Use unsigned for offset_size and addr_size. Set
919 addr_size earlier and use in place of constant 4 and uses of
920 DWARF2_FDE_RELOC_SIZE. Assert it matches reloc bitsize.
921
922 2017-03-06 Alan Modra <amodra@gmail.com>
923
924 * dw2gencfi.c: Wrap overlong lines. Add parens for emacs
925 auto reformat. Formatting and whitespace fixes.
926
927 2017-03-05 Mark Wielaard <mark@klomp.org>
928
929 * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_strp instead of
930 DW_FORM_string for DW_AT_name, DW_AT_comp_dir and DW_AT_producer.
931 (out_debug_info): Accept symbols to name, comp_dir and producer in
932 the .debug_str section and emit those offsets not full strings.
933 (out_debug_str): New function that outputs the strings for name,
934 comp_dir and producer in .debug_str and generates symbols to those
935 strings.
936 (out_debug_line): Create a .debug_str section if necessary and call
937 out_debug_str before calling out_debug_info.
938 * testsuite/gas/aarch64/dwarf.d: Add extra section symbol to expected
939 output.
940
941 2017-03-02 Maciej W. Rozycki <macro@imgtec.com>
942
943 * write.c (relax_segment) <rs_org>: Only bail out if the fixed
944 part of the frag has overrun the location requested.
945
946 * testsuite/gas/all/org-1.d: New test.
947 * testsuite/gas/all/org-2.d: New test.
948 * testsuite/gas/all/org-3.d: New test.
949 * testsuite/gas/all/org-4.d: New test.
950 * testsuite/gas/all/org-5.d: New test.
951 * testsuite/gas/all/org-6.d: New test.
952 * testsuite/gas/all/org-1.l: New stderr output.
953 * testsuite/gas/all/org-2.l: New stderr output.
954 * testsuite/gas/all/org-3.l: New stderr output.
955 * testsuite/gas/all/org-1.s: New test source.
956 * testsuite/gas/all/org-2.s: New test source.
957 * testsuite/gas/all/org-3.s: New test source.
958 * testsuite/gas/all/org-4.s: New test source.
959 * testsuite/gas/all/org-5.s: New test source.
960 * testsuite/gas/all/org-6.s: New test source.
961 * testsuite/gas/all/gas.exp: Run the new tests.
962
963 * testsuite/gas/mips/org-1.d: New test.
964 * testsuite/gas/mips/org-2.d: New test.
965 * testsuite/gas/mips/org-3.d: New test.
966 * testsuite/gas/mips/org-4.d: New test.
967 * testsuite/gas/mips/org-5.d: New test.
968 * testsuite/gas/mips/org-6.d: New test.
969 * testsuite/gas/mips/org-7.d: New test.
970 * testsuite/gas/mips/org-8.d: New test.
971 * testsuite/gas/mips/org-9.d: New test.
972 * testsuite/gas/mips/org-10.d: New test.
973 * testsuite/gas/mips/org-11.d: New test.
974 * testsuite/gas/mips/org-12.d: New test.
975 * testsuite/gas/mips/org-1.l: New stderr output.
976 * testsuite/gas/mips/org-4.l: New stderr output.
977 * testsuite/gas/mips/org-5.l: New stderr output.
978 * testsuite/gas/mips/org-6.l: New stderr output.
979 * testsuite/gas/mips/org-10.l: New stderr output.
980 * testsuite/gas/mips/org-1.s: New test source.
981 * testsuite/gas/mips/org-2.s: New test source.
982 * testsuite/gas/mips/org-3.s: New test source.
983 * testsuite/gas/mips/org-4.s: New test source.
984 * testsuite/gas/mips/org-5.s: New test source.
985 * testsuite/gas/mips/org-6.s: New test source.
986 * testsuite/gas/mips/org-7.s: New test source.
987 * testsuite/gas/mips/org-8.s: New test source.
988 * testsuite/gas/mips/org-9.s: New test source.
989 * testsuite/gas/mips/org-10.s: New test source.
990 * testsuite/gas/mips/org-11.s: New test source.
991 * testsuite/gas/mips/org-12.s: New test source.
992 * testsuite/gas/mips/mips.exp: Run the new tests.
993
994 2017-03-01 Szabolcs Nagy <szabolcs.nagy@arm.com>
995
996 * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
997
998 2017-02-28 Jan Beulich <jbeulich@suse.com>
999
1000 * testsuite/gas/i386/x86-64-avx.s: Add suffixed variants of
1001 VPCMPESTR{I,M}.
1002 * testsuite/gas/i386/x86-64-sse2avx.s: Likewise.
1003 * testsuite/gas/i386/x86-64-sse4_2.s: Add suffixed variants
1004 of PCMPESTR{I,M}.
1005 * testsuite/gas/i386/ilp32/x86-64-avx-intel.d: Likewise.
1006 * testsuite/gas/i386/ilp32/x86-64-avx.d: Likewise.
1007 * testsuite/gas/i386/ilp32/x86-64-sse2avx.d: Likewise.
1008 * testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d: Likewise.
1009 * testsuite/gas/i386/ilp32/x86-64-sse4_2.d: Likewise.
1010 * testsuite/gas/i386/x86-64-avx-intel.d: Likewise.
1011 * testsuite/gas/i386/x86-64-avx.d: Likewise.
1012 * testsuite/gas/i386/x86-64-sse2avx.d: Likewise.
1013 * testsuite/gas/i386/x86-64-sse4_2-intel.d: Likewise.
1014 * testsuite/gas/i386/x86-64-sse4_2.d: Likewise.
1015
1016 2017-02-28 Alan Modra <amodra@gmail.com>
1017
1018 * config/tc-nios2.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1019
1020 2017-02-28 Alan Modra <amodra@gmail.com>
1021
1022 * config/tc-ppc.c (md_assemble): Use BFD_RELOC_PPC_16DX_HA for addpcis.
1023 (md_apply_fix): Remove fx_subsy check. Move code converting to
1024 pcrel reloc earlier and handle BFD_RELOC_PPC_16DX_HA. Remove code
1025 emiiting errors on seeing fx_pcrel set on unexpected relocs, as
1026 that is done now by the generic code via..
1027 * config/tc-ppc.h (TC_FORCE_RELOCATION_SUB_LOCAL): ..this. Define.
1028 (TC_VALIDATE_FIX_SUB): Define.
1029
1030 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
1031
1032 * testsuite/gas/mips/jalr4.s: Add `jalr $0, $25' instructions.
1033 * testsuite/gas/mips/jalr4.d: Adjust accordingly. Remove MIPSr6
1034 encoding patterns.
1035 * testsuite/gas/mips/jalr4-n64.d: Likewise.
1036 * testsuite/gas/mips/mipsr6@jalr4.d: New test.
1037 * testsuite/gas/mips/mipsr6@jalr4-n32.d: New test.
1038 * testsuite/gas/mips/mipsr6@jalr4-n64.d: New test.
1039
1040 2017-02-25 Alan Modra <amodra@gmail.com>
1041
1042 * testsuite/gas/elf/strtab.s: Don't put directives on first
1043 column or continuation with labels not in first column.
1044
1045 2017-02-24 Richard Sandiford <richard.sandiford@arm.com>
1046
1047 * doc/c-aarch64.texi: Document that sve implies fp16, simd and compnum.
1048 * config/tc-aarch64.c (parse_vector_type_for_operand): Allow .q
1049 to be used with SVE registers.
1050 (parse_operands): Handle new SVE operands.
1051 (aarch64_features): Make "sve" require F16 rather than FP. Also
1052 require COMPNUM.
1053 * testsuite/gas/aarch64/sve.s: Add tests for new instructions.
1054 Include compnum tests.
1055 * testsuite/gas/aarch64/sve.d: Update accordingly.
1056 * testsuite/gas/aarch64/sve-invalid.s: Add tests for new instructions.
1057 * testsuite/gas/aarch64/sve-invalid.l: Update accordingly. Also
1058 update expected output for new FMOV and MOV alternatives.
1059
1060 2017-02-24 Richard Sandiford <richard.sandiford@arm.com>
1061
1062 * doc/c-aarch64.texi: Add a "compnum" entry.
1063 * config/tc-aarch64.c (aarch64_features): Likewise,
1064 * testsuite/gas/aarch64/advsimd-compnum.s: New test.
1065 * testsuite/gas/aarch64/advsimd-compnum.d: Likewise.
1066
1067 2017-02-24 Jan Beulich <jbeulich@suse.com>
1068
1069 * testsuite/gas/i386/opcode.s: Add alternative TEST forms.
1070 * testsuite/gas/i386/x86-64-opcode.s: Likewise.
1071 * testsuite/gas/i386/opcode.d: Adjust accordingly.
1072 * testsuite/gas/i386/opcode-intel.d: Likewise.
1073 * testsuite/gas/i386/x86-64-opcode.d: Likewise.
1074 * testsuite/gas/i386/ilp32/x86-64-opcode.d: Likewise.
1075
1076 2017-02-24 Sheldon Lobo <sheldon.lobo@oracle.com>
1077
1078 Test cases for the architecture level aware SPARC ASI work.
1079 * gas/testsuite/gas/sparc/sparc.exp: 2 new tests
1080 * gas/testsuite/gas/sparc/asi-bump-warn.s: New test
1081 * gas/testsuite/gas/sparc/asi-bump-warn.l: Likewise
1082 * gas/testsuite/gas/sparc/asi-arch-error.s: Likewise
1083 * gas/testsuite/gas/sparc/asi-arch-error.l: Likewise
1084
1085 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1086
1087 * testsuite/gas/mips/jalr4.d: New test.
1088 * testsuite/gas/mips/jalr4-n32.d: New test.
1089 * testsuite/gas/mips/jalr4-n64.d: New test.
1090 * testsuite/gas/mips/jalr4.s: New test source.
1091 * testsuite/gas/mips/mips.exp: Run the new tests.
1092
1093 2017-02-23 Sheldon Lobo <sheldon.lobo@oracle.com>
1094
1095 Add support for associating SPARC ASIs with an architecture level.
1096 * config/tc-sparc.c (parse_sparc_asi): New encode SPARC ASIs.
1097
1098 2017-02-23 Jan Beulich <jbeulich@suse.com>
1099
1100 * testsuite/gas/all/err-sizeof.s: Don't use sums or differences
1101 of symbols as expression.
1102
1103 2017-02-23 Jan Beulich <jbeulich@suse.com>
1104
1105 * gas/testsuite/gas/i386/x86-64-mpx-inval-2.d: Add 32- and 16-
1106 bit GPR forms of BNDCL, BNDCU, and BNDCN. Add RSP-as-index
1107 Intel syntax forms of BNDMK, BNDSTX, and BNDLDX.
1108 * gas/testsuite/gas/i386/x86-64-mpx-inval-2.l: Adjust.
1109
1110 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1111
1112 * ecoff.c (ecoff_directive_end) [md_flush_pending_output]: Call
1113 `md_flush_pending_output'.
1114 * config/tc-mips.c (s_mips_end) [md_flush_pending_output]: Call
1115 `md_flush_pending_output' unconditionally.
1116 * testsuite/gas/mips/debug-label-end-1.d: New test.
1117 * testsuite/gas/mips/debug-label-end-2.d: New test.
1118 * testsuite/gas/mips/debug-label-end-3.d: New test.
1119 * testsuite/gas/mips/debug-label-end.s: New test source.
1120 * testsuite/gas/mips/mips.exp: Run the new tests.
1121
1122 2017-02-22 Hans-Peter Nilsson <hp@axis.com>
1123
1124 * testsuite/gas/all/err-sizeof.s: Include cris*-*-* in the list of
1125 targets yielding an error message matching "too complex".
1126
1127 2017-02-22 Nick Clifton <nickc@redhat.com>
1128
1129 * testsuite/gas/arm/vcmp-noprefix-imm.d: Skip for non-ELF targets.
1130
1131 2017-02-21 Jan Beulich <jbeulich@suse.com>
1132
1133 * expr.c (operand): Handle missing operand to .startof.() and
1134 .sizeof.().
1135 * testsuite/gas/all/err-sizeof.s: New.
1136
1137 2017-02-20 Alan Modra <amodra@gmail.com>
1138
1139 PR 21118
1140 * NEWS: Revise powerpc register check.
1141 * config/tc-ppc.c (ppc_optimize_expr, md_assemble): Make "invalid
1142 register expression" a warning.
1143
1144 2017-02-17 Maciej W. Rozycki <macro@imgtec.com>
1145
1146 * ecoff.c (ecoff_directive_ent, add_procedure): Handle `.aent'.
1147 * config/obj-ecoff.c (obj_pseudo_table): Add "aent" entry.
1148 * config/obj-elf.c (ecoff_debug_pseudo_table): Likewise.
1149 * testsuite/gas/mips/aent-2.d: New test.
1150 * testsuite/gas/mips/aent-mdebug.d: New test.
1151 * testsuite/gas/mips/aent-mdebug-2.d: New test.
1152 * testsuite/gas/mips/mips.exp: Run the new tests.
1153
1154 2017-02-15 Richard Sandiford <richard.sandiford@arm.com>
1155
1156 * testsuite/gas/aarch64/sve-sysreg.s,
1157 testsuite/gas/aarch64/sve-sysreg.d,
1158 testsuite/gas/aarch64/sve-sysreg-invalid.d,
1159 testsuite/gas/aarch64/sve-sysreg-invalid.l: New tests.
1160
1161 2017-02-15 Richard Sandiford <richard.sandiford@arm.com>
1162
1163 * doc/c-aarch64.texi: Fix sve entry.
1164
1165 2017-02-15 Claudiu Zissulescu <claziss@synopsys.com>
1166
1167 * config/tc-arc.c (md_convert_frag): Remove @pcl relocation
1168 information from input expression.
1169 (assemble_insn): Make sure pcrel is correctly set.
1170 (arc_pcrel_adjust): Compensate for PCL rounding.
1171 * testsuite/gas/arc/relax-add01.d: New file.
1172 * testsuite/gas/arc/relax-add01.s: Likewise.
1173 * testsuite/gas/arc/relax-add02.d: Likewise.
1174 * testsuite/gas/arc/relax-add02.s: Likewise.
1175 * testsuite/gas/arc/relax-add03.d: Likewise.
1176 * testsuite/gas/arc/relax-add03.s: Likewise.
1177 * testsuite/gas/arc/relax-add04.d: Likewise.
1178 * testsuite/gas/arc/relax-add04.s: Likewise.
1179 * testsuite/gas/arc/relax-ld01.d: Likewise.
1180 * testsuite/gas/arc/relax-ld01.s: Likewise.
1181 * testsuite/gas/arc/relax-ld02.d: Likewise.
1182 * testsuite/gas/arc/relax-ld02.s: Likewise.
1183 * testsuite/gas/arc/relax-mov01.d: Likewise.
1184 * testsuite/gas/arc/relax-mov01.s: Likewise.
1185 * testsuite/gas/arc/relax-mov02.d: Likewise.
1186 * testsuite/gas/arc/relax-mov02.s: Likewise.
1187 * testsuite/gas/arc/relax-mpy01.d: Likewise.
1188 * testsuite/gas/arc/relax-mpy01.s: Likewise.
1189 * testsuite/gas/arc/relax-sub01.d: Likewise.
1190 * testsuite/gas/arc/relax-sub01.s: Likewise.
1191 * testsuite/gas/arc/relax-sub02.d: Likewise.
1192 * testsuite/gas/arc/relax-sub02.s: Likewise.
1193 * testsuite/gas/arc/relax-sub03.d: Likewise.
1194 * testsuite/gas/arc/relax-sub03.s: Likewise.
1195 * testsuite/gas/arc/relax-sub04.d: Likewise.
1196 * testsuite/gas/arc/relax-sub04.s: Likewise.
1197
1198 2017-02-09 Vineet Gupta <vgupta@synopsys.com>
1199
1200 * testsuite/gas/arc/st.d: Update for 0xe having a name now
1201
1202 2017-02-14 Alan Modra <amodra@gmail.com>
1203
1204 PR 21118
1205 * NEWS: Mention powerpc register checks.
1206 * config/tc-ppc.c (struct pd_reg): Make value a short. Add flags.
1207 (pre_defined_registers): Delete fpscr and pmr entries. Set
1208 register type in flags.
1209 (cr_names): Set type in flags.
1210 (reg_name_search): Return pointer to struct pd_reg rather than value.
1211 (register_name): Adjust to suit. Set X_md from flags.
1212 (ppc_parse_name): Likewise.
1213 (ppc_optimize_expr): New function.
1214 (md_assemble): Verify expresion reg flags match operand.
1215 * config/tc-ppc.h (md_optimize_expr): Define.
1216 (ppc_optimize_expr): Declare.
1217
1218 2017-02-14 Alan Modra <amodra@gmail.com>
1219
1220 * testsuite/gas/ppc/cell.s: Correct invalid registers.
1221 * testsuite/gas/ppc/vle-simple-1.s: Likewise.
1222 * testsuite/gas/ppc/vle-simple-2.s: Likewise.
1223
1224 2017-02-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1225
1226 * config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified
1227 syntax.
1228 * testsuite/gas/arm/vcmp-noprefix-imm.d: New file.
1229 * testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
1230
1231 2017-02-10 Nicholas Piggin <npiggin@gmail.com>
1232
1233 * testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
1234
1235 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1236
1237 * doc/as.texinfo (Overview): Select MIPS options for man page
1238 inclusion.
1239
1240 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1241
1242 * config/tc-mips.c (mips_ignore_branch_isa): New variable.
1243 (options): Add OPTION_IGNORE_BRANCH_ISA and
1244 OPTION_NO_IGNORE_BRANCH_ISA enum values.
1245 (md_longopts): Add "mignore-branch-isa" and
1246 "mno-ignore-branch-isa" options.
1247 (md_parse_option): Handle OPTION_IGNORE_BRANCH_ISA and
1248 OPTION_NO_IGNORE_BRANCH_ISA.
1249 (fix_bad_cross_mode_branch_p): Return FALSE if
1250 `mips_ignore_branch_isa' has been set.
1251 (md_show_usage): Add `-mignore-branch-isa' and
1252 `-mno-ignore-branch-isa'.
1253
1254 * doc/as.texinfo (Target MIPS options): Add
1255 `-mignore-branch-isa' and `-mno-ignore-branch-isa' options.
1256 (-mignore-branch-isa, -mno-ignore-branch-isa): New options.
1257 * doc/c-mips.texi (MIPS Options): Add `-mignore-branch-isa' and
1258 `-mno-ignore-branch-isa' options.
1259
1260 * testsuite/gas/mips/branch-local-ignore-2.d: New test.
1261 * testsuite/gas/mips/branch-local-ignore-3.d: New test.
1262 * testsuite/gas/mips/branch-local-ignore-n32-2.d: New test.
1263 * testsuite/gas/mips/branch-local-ignore-n32-3.d: New test.
1264 * testsuite/gas/mips/branch-local-ignore-n64-2.d: New test.
1265 * testsuite/gas/mips/branch-local-ignore-n64-3.d: New test.
1266 * testsuite/gas/mips/mips.exp: Run the new tests.
1267
1268 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1269
1270 * testsuite/gas/mips/branch-local-2.d: New test.
1271 * testsuite/gas/mips/branch-local-3.d: New test.
1272 * testsuite/gas/mips/branch-local-n32-2.d: New test.
1273 * testsuite/gas/mips/branch-local-n32-3.d: New test.
1274 * testsuite/gas/mips/branch-local-n64-2.d: New test.
1275 * testsuite/gas/mips/branch-local-n64-3.d: New test.
1276 * testsuite/gas/mips/mips.exp: Fold corresponding list tests
1277 into the new tests.
1278
1279 2017-01-27 Alexis Deruell <alexis.deruelle@gmail.com>
1280
1281 PR 21056
1282 * testsuite/gas/tic6x/insns16-parallel.s: New test case.
1283 * testsuite/gas/tic6x/insns16-parallel.d: New test driver.
1284
1285 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1286
1287 * configure.tgt (aarch64*-*-rtems*): Remove.
1288 (bfin-*-rtems*): Likewise.
1289 (h8300-*-rtems*): Likewise.
1290 (i386-*-rtems*): Likewise.
1291 (m32c-*-rtems*): Likewise.
1292 (m32r-*-rtems*): Likewise.
1293 (m68k-*-rtems*): Likewise.
1294 (mips-*-rtems*): Likewise.
1295 (nios2-*-rtems*): Likewise.
1296 (ppc-*-rtems*): Likewise.
1297 (sh-*-rtems*): Likewise.
1298 (sparc64-*-rtems*): Likewise.
1299 (sparc-*-rtems*): Likewise.
1300 (*-*-rtems*) Use ELF format.
1301
1302 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1303
1304 * configure.tgt (arm-*-rtems*): Move to (arm-*-eabi*).
1305
1306 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1307
1308 * configure.tgt (sh-*-rtemscoff*): Remove.
1309
1310 2017-01-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1311
1312 * configure.tgt (riscv*-*-*): Remove em=linux.
1313
1314 2017-01-23 Sebastian Rasmussen <sebras@gmail.com>
1315
1316 PR gas/21072
1317 * asintl.h: Fix spelling mistakes and typos.
1318 * atof-generic.c: Likewise.
1319 * bit_fix.h: Likewise.
1320 * config/atof-ieee.c: Likewise.
1321 * config/bfin-defs.h: Likewise.
1322 * config/bfin-parse.y: Likewise.
1323 * config/obj-coff-seh.h: Likewise.
1324 * config/obj-coff.c: Likewise.
1325 * config/obj-evax.c: Likewise.
1326 * config/obj-macho.c: Likewise.
1327 * config/rx-parse.y: Likewise.
1328 * config/tc-aarch64.c: Likewise.
1329 * config/tc-alpha.c: Likewise.
1330 * config/tc-arc.c: Likewise.
1331 * config/tc-arm.c: Likewise.
1332 * config/tc-avr.c: Likewise.
1333 * config/tc-bfin.c: Likewise.
1334 * config/tc-cr16.c: Likewise.
1335 * config/tc-cris.c: Likewise.
1336 * config/tc-crx.c: Likewise.
1337 * config/tc-d10v.c: Likewise.
1338 * config/tc-d30v.c: Likewise.
1339 * config/tc-dlx.c: Likewise.
1340 * config/tc-epiphany.c: Likewise.
1341 * config/tc-frv.c: Likewise.
1342 * config/tc-hppa.c: Likewise.
1343 * config/tc-i370.c: Likewise.
1344 * config/tc-i386-intel.c: Likewise.
1345 * config/tc-i386.c: Likewise.
1346 * config/tc-i960.c: Likewise.
1347 * config/tc-ia64.c: Likewise.
1348 * config/tc-m32r.c: Likewise.
1349 * config/tc-m68hc11.c: Likewise.
1350 * config/tc-m68k.c: Likewise.
1351 * config/tc-mcore.c: Likewise.
1352 * config/tc-mep.c: Likewise.
1353 * config/tc-mep.h: Likewise.
1354 * config/tc-metag.c: Likewise.
1355 * config/tc-microblaze.c: Likewise.
1356 * config/tc-mips.c: Likewise.
1357 * config/tc-mmix.c: Likewise.
1358 * config/tc-mn10200.c: Likewise.
1359 * config/tc-mn10300.c: Likewise.
1360 * config/tc-msp430.c: Likewise.
1361 * config/tc-msp430.h: Likewise.
1362 * config/tc-nds32.c: Likewise.
1363 * config/tc-nds32.h: Likewise.
1364 * config/tc-nios2.c: Likewise.
1365 * config/tc-nios2.h: Likewise.
1366 * config/tc-ns32k.c: Likewise.
1367 * config/tc-pdp11.c: Likewise.
1368 * config/tc-ppc.c: Likewise.
1369 * config/tc-pru.c: Likewise.
1370 * config/tc-rx.c: Likewise.
1371 * config/tc-s390.c: Likewise.
1372 * config/tc-score.c: Likewise.
1373 * config/tc-score7.c: Likewise.
1374 * config/tc-sh.c: Likewise.
1375 * config/tc-sh64.c: Likewise.
1376 * config/tc-sparc.c: Likewise.
1377 * config/tc-tic4x.c: Likewise.
1378 * config/tc-tic54x.c: Likewise.
1379 * config/tc-v850.c: Likewise.
1380 * config/tc-vax.c: Likewise.
1381 * config/tc-visium.c: Likewise.
1382 * config/tc-xgate.c: Likewise.
1383 * config/tc-xtensa.c: Likewise.
1384 * config/tc-z80.c: Likewise.
1385 * config/tc-z8k.c: Likewise.
1386 * config/te-vms.c: Likewise.
1387 * config/xtensa-relax.c: Likewise.
1388 * doc/as.texinfo: Likewise.
1389 * doc/c-arm.texi: Likewise.
1390 * doc/c-hppa.texi: Likewise.
1391 * doc/c-i370.texi: Likewise.
1392 * doc/c-i386.texi: Likewise.
1393 * doc/c-m32r.texi: Likewise.
1394 * doc/c-m68k.texi: Likewise.
1395 * doc/c-mmix.texi: Likewise.
1396 * doc/c-msp430.texi: Likewise.
1397 * doc/c-nds32.texi: Likewise.
1398 * doc/c-ns32k.texi: Likewise.
1399 * doc/c-riscv.texi: Likewise.
1400 * doc/c-rx.texi: Likewise.
1401 * doc/c-s390.texi: Likewise.
1402 * doc/c-tic6x.texi: Likewise.
1403 * doc/c-tilegx.texi: Likewise.
1404 * doc/c-tilepro.texi: Likewise.
1405 * doc/c-v850.texi: Likewise.
1406 * doc/c-xgate.texi: Likewise.
1407 * doc/c-xtensa.texi: Likewise.
1408 * dwarf2dbg.c: Likewise.
1409 * ecoff.c: Likewise.
1410 * itbl-ops.c: Likewise.
1411 * listing.c: Likewise.
1412 * macro.c: Likewise.
1413 * po/gas.pot: Likewise.
1414 * read.c: Likewise.
1415 * struc-symbol.h: Likewise.
1416 * symbols.h: Likewise.
1417 * testsuite/gas/arc/relocs-errors.err: Likewise.
1418 * write.c: Likewise.
1419
1420 2017-01-23 Nick Clifton <nickc@redhat.com>
1421
1422 * po/sv.po: Updated Swedish translation.
1423
1424 2017-01-20 Nick Clifton <nickc@redhat.com>
1425
1426 * config/tc-i386.c (parse_operands): Check for operand overflow
1427 before setting the unspecified bit.
1428
1429 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1430
1431 PR gas/20649
1432 * config/tc-mips.c (pic_need_relax): Don't check for linkonce
1433 symbols, remove the `segtype' parameter.
1434 (mips_frob_file, md_estimate_size_before_relax): Adjust
1435 accordingly.
1436 (s_is_linkonce): Add an explanatory comment.
1437 * testsuite/gas/mips/comdat-reloc.d: New test.
1438 * testsuite/gas/mips/comdat-reloc.s: New test source.
1439 * testsuite/gas/mips/mips.exp: Run the new test.
1440
1441 2017-01-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1442
1443 * testsuite/gas/arm/armv8_3-a-simd.s: Add vcmla tests.
1444 * testsuite/gas/arm/armv8_3-a-simd.d: Update.
1445
1446 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1447
1448 PR 21059
1449 * config/bfin-lex.l: Support processing with flex 2.6.3.
1450 * itbl-lex.l: Likewise.
1451
1452 2017-01-18 Nathan Sidwell <nathan@acm.org>
1453
1454 * as.h (gas_assert): Use abort.
1455 (as_assert): Remove.
1456 (signal_init): Declare.
1457 * as.c (main): Call signal_init.
1458 * messages.c: #include <signal.h>
1459 (as_assert): Delete.
1460 (as_abort): Allow NULL FILE.
1461 (signal_crash): New.
1462 (signal_init): Register fatal signal handlers.
1463 * configure.ac: Check for strsignal.
1464 * config.in: Rebuilt.
1465 * configure: Rebuilt.
1466
1467 2017-01-17 Nick Clifton <nickc@redhat.com>
1468
1469 * po/sv.po: Updated Swedish translation.
1470
1471 2017-01-12 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1472
1473 * config/tc-i386.c (cpu_arch): Add .avx512_vpopcntdq.
1474 (cpu_noarch): Add noavx512_vpopcntdq.
1475 * doc/c-i386.texi: Document avx512_vpopcntdq, noavx512_vpopcntdq.
1476 * testsuite/gas/i386/i386.exp: Run AVX512_VPOPCNTDQ tests.
1477 * testsuite/gas/i386/avx512_vpopcntdqd-intel.d: New file.
1478 * testsuite/gas/i386/avx512_vpopcntdqd.d: Ditto.
1479 * testsuite/gas/i386/avx512_vpopcntdqd.s: Ditto.
1480 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd-intel.d: Ditto.
1481 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.d: Ditto.
1482 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.s: Ditto.
1483
1484 2017-01-12 Nick Clifton <nickc@redhat.com>
1485
1486 * read.c (temp_ilp): New function. Installs a temporary input
1487 line pointer.
1488 (restore_ilp): New function. Restores the original input line
1489 pointer.
1490 * read.h (temp_ilp): Prototype.
1491 (restore_ilp): Prototype.
1492 * stabs.c (dot_func_p): Use bfd_boolean type.
1493 (generate_asm_file): Use temp_ilp and restore_ilp.
1494 (stabs_generate_asm_lineno): Likewise.
1495 (stabs_generate_asm_endfunc): Likewise.
1496
1497 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
1498
1499 * configure.tgt: Add entry for i386-redox.
1500
1501 2017-01-10 Nick Clifton <nickc@redhat.com>
1502
1503 * po/sv.po: Updated Swedish translation.
1504
1505 2017-01-10 Tristan Gingold <gingold@adacore.com>
1506
1507 * testsuite/gas/all/sleb128-8.d: Adjust test.
1508 * testsuite/gas/all/gas.exp (test_cond): Likewise.
1509
1510 2017-01-10 Tristan Gingold <gingold@adacore.com>
1511
1512 * read.c (emit_leb128_expr): Extended unsigned big number for
1513 sleb128.
1514 * testsuite/gas/all/gas.exp (test_cond): Add sleb128-8 test.
1515 * testsuite/gas/all/sleb128.d: New test.
1516 * testsuite/gas/all/sleb128.s: New test source.
1517
1518 2017-01-09 Andrew Waterman <andrew@sifive.com>
1519
1520 * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
1521 against constants.
1522 (md_apply_fix): Mark relocations against constants as "done."
1523
1524 2017-01-09 Andrew Waterman <andrew@sifive.com>
1525
1526 * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
1527 against constants.
1528 (md_apply_fix): Mark relocations against constants as "done."
1529
1530 2017-01-09 Palmer Dabbelt <palmer@dabbelt.com>
1531 Kito Cheng <kito.cheng@gmail.com>
1532
1533 * emulparams/elf32lriscv-defs.sh (INITIAL_READONLY_SECTIONS):
1534 Removed.
1535 (SDATA_START_SYMBOLS): Likewise.
1536
1537 2017-01-09 Nick Clifton <nickc@redhat.com>
1538
1539 * po/sv.po: New Swedish translation.
1540 * configure.ac (ALL_LINGUAS): Add sv.
1541 * configure: Regenerate.
1542
1543 2017-01-09 Andrew Waterman <andrew@sifive.com>
1544
1545 * config/tc-riscv.c (relaxed_branch_length): Use the long
1546 sequence when the target is a weak symbol.
1547
1548 2017-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1549
1550 * config/tc-aarch64.c (aarch64_features): Add rcpc.
1551 * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
1552 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Rename to ...
1553 * testsuite/gas/aarch64/ldst-rcpc.d: This.
1554 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Rename to ...
1555 * testsuite/gas/aarch64/ldst-rcpc.s: This.
1556 * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: New test.
1557
1558 2017-01-04 Norm Jacobs <norm.jacobs@oracle.com>
1559
1560 PR gas/20992
1561 * configure.tgt: Treat sparcv9 as sparc64.
1562
1563 2017-01-03 Kito Cheng <kito.cheng@gmail.com>
1564
1565 * config/tc-riscv.c (riscv_set_arch): Whitelist the "q" ISA
1566 extension.
1567 (riscv_after_parse_args): Set FLOAT_ABI_QUAD when the Q ISA is
1568 enabled and no other ABI is specified.
1569
1570 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
1571
1572 * config/tc-pru.c (md_number_to_chars): Fix parameter to be
1573 valueT, as declared in tc.h.
1574 (md_apply_fix): Fix to work on 32-bit hosts.
1575
1576 2017-01-02 Alan Modra <amodra@gmail.com>
1577
1578 Update year range in copyright notice of all files.
1579
1580 For older changes see ChangeLog-2016
1581 \f
1582 Copyright (C) 2017 Free Software Foundation, Inc.
1583
1584 Copying and distribution of this file, with or without modification,
1585 are permitted in any medium without royalty provided the copyright
1586 notice and this notice are preserved.
1587
1588 Local Variables:
1589 mode: change-log
1590 left-margin: 8
1591 fill-column: 74
1592 version-control: never
1593 End:
This page took 0.061938 seconds and 5 git commands to generate.