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