MIPS/BFD: Discard ineligible JALR relocations right away
[binutils-gdb.git] / gas / ChangeLog
1 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2
3 * testsuite/gas/mips/jalr4.d: New test.
4 * testsuite/gas/mips/jalr4-n32.d: New test.
5 * testsuite/gas/mips/jalr4-n64.d: New test.
6 * testsuite/gas/mips/jalr4.s: New test source.
7 * testsuite/gas/mips/mips.exp: Run the new tests.
8
9 2017-02-23 Sheldon Lobo <sheldon.lobo@oracle.com>
10
11 Add support for associating SPARC ASIs with an architecture level.
12 * config/tc-sparc.c (parse_sparc_asi): New encode SPARC ASIs.
13
14 2017-02-23 Jan Beulich <jbeulich@suse.com>
15
16 * testsuite/gas/all/err-sizeof.s: Don't use sums or differences
17 of symbols as expression.
18
19 2017-02-23 Jan Beulich <jbeulich@suse.com>
20
21 * gas/testsuite/gas/i386/x86-64-mpx-inval-2.d: Add 32- and 16-
22 bit GPR forms of BNDCL, BNDCU, and BNDCN. Add RSP-as-index
23 Intel syntax forms of BNDMK, BNDSTX, and BNDLDX.
24 * gas/testsuite/gas/i386/x86-64-mpx-inval-2.l: Adjust.
25
26 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
27
28 * ecoff.c (ecoff_directive_end) [md_flush_pending_output]: Call
29 `md_flush_pending_output'.
30 * config/tc-mips.c (s_mips_end) [md_flush_pending_output]: Call
31 `md_flush_pending_output' unconditionally.
32 * testsuite/gas/mips/debug-label-end-1.d: New test.
33 * testsuite/gas/mips/debug-label-end-2.d: New test.
34 * testsuite/gas/mips/debug-label-end-3.d: New test.
35 * testsuite/gas/mips/debug-label-end.s: New test source.
36 * testsuite/gas/mips/mips.exp: Run the new tests.
37
38 2017-02-22 Hans-Peter Nilsson <hp@axis.com>
39
40 * testsuite/gas/all/err-sizeof.s: Include cris*-*-* in the list of
41 targets yielding an error message matching "too complex".
42
43 2017-02-22 Nick Clifton <nickc@redhat.com>
44
45 * testsuite/gas/arm/vcmp-noprefix-imm.d: Skip for non-ELF targets.
46
47 2017-02-21 Jan Beulich <jbeulich@suse.com>
48
49 * expr.c (operand): Handle missing operand to .startof.() and
50 .sizeof.().
51 * testsuite/gas/all/err-sizeof.s: New.
52
53 2017-02-20 Alan Modra <amodra@gmail.com>
54
55 PR 21118
56 * NEWS: Revise powerpc register check.
57 * config/tc-ppc.c (ppc_optimize_expr, md_assemble): Make "invalid
58 register expression" a warning.
59
60 2017-02-17 Maciej W. Rozycki <macro@imgtec.com>
61
62 * ecoff.c (ecoff_directive_ent, add_procedure): Handle `.aent'.
63 * config/obj-ecoff.c (obj_pseudo_table): Add "aent" entry.
64 * config/obj-elf.c (ecoff_debug_pseudo_table): Likewise.
65 * testsuite/gas/mips/aent-2.d: New test.
66 * testsuite/gas/mips/aent-mdebug.d: New test.
67 * testsuite/gas/mips/aent-mdebug-2.d: New test.
68 * testsuite/gas/mips/mips.exp: Run the new tests.
69
70 2017-02-15 Richard Sandiford <richard.sandiford@arm.com>
71
72 * testsuite/gas/aarch64/sve-sysreg.s,
73 testsuite/gas/aarch64/sve-sysreg.d,
74 testsuite/gas/aarch64/sve-sysreg-invalid.d,
75 testsuite/gas/aarch64/sve-sysreg-invalid.l: New tests.
76
77 2017-02-15 Richard Sandiford <richard.sandiford@arm.com>
78
79 * doc/c-aarch64.texi: Fix sve entry.
80
81 2017-02-15 Claudiu Zissulescu <claziss@synopsys.com>
82
83 * config/tc-arc.c (md_convert_frag): Remove @pcl relocation
84 information from input expression.
85 (assemble_insn): Make sure pcrel is correctly set.
86 (arc_pcrel_adjust): Compensate for PCL rounding.
87 * testsuite/gas/arc/relax-add01.d: New file.
88 * testsuite/gas/arc/relax-add01.s: Likewise.
89 * testsuite/gas/arc/relax-add02.d: Likewise.
90 * testsuite/gas/arc/relax-add02.s: Likewise.
91 * testsuite/gas/arc/relax-add03.d: Likewise.
92 * testsuite/gas/arc/relax-add03.s: Likewise.
93 * testsuite/gas/arc/relax-add04.d: Likewise.
94 * testsuite/gas/arc/relax-add04.s: Likewise.
95 * testsuite/gas/arc/relax-ld01.d: Likewise.
96 * testsuite/gas/arc/relax-ld01.s: Likewise.
97 * testsuite/gas/arc/relax-ld02.d: Likewise.
98 * testsuite/gas/arc/relax-ld02.s: Likewise.
99 * testsuite/gas/arc/relax-mov01.d: Likewise.
100 * testsuite/gas/arc/relax-mov01.s: Likewise.
101 * testsuite/gas/arc/relax-mov02.d: Likewise.
102 * testsuite/gas/arc/relax-mov02.s: Likewise.
103 * testsuite/gas/arc/relax-mpy01.d: Likewise.
104 * testsuite/gas/arc/relax-mpy01.s: Likewise.
105 * testsuite/gas/arc/relax-sub01.d: Likewise.
106 * testsuite/gas/arc/relax-sub01.s: Likewise.
107 * testsuite/gas/arc/relax-sub02.d: Likewise.
108 * testsuite/gas/arc/relax-sub02.s: Likewise.
109 * testsuite/gas/arc/relax-sub03.d: Likewise.
110 * testsuite/gas/arc/relax-sub03.s: Likewise.
111 * testsuite/gas/arc/relax-sub04.d: Likewise.
112 * testsuite/gas/arc/relax-sub04.s: Likewise.
113
114 2017-02-09 Vineet Gupta <vgupta@synopsys.com>
115
116 * testsuite/gas/arc/st.d: Update for 0xe having a name now
117
118 2017-02-14 Alan Modra <amodra@gmail.com>
119
120 PR 21118
121 * NEWS: Mention powerpc register checks.
122 * config/tc-ppc.c (struct pd_reg): Make value a short. Add flags.
123 (pre_defined_registers): Delete fpscr and pmr entries. Set
124 register type in flags.
125 (cr_names): Set type in flags.
126 (reg_name_search): Return pointer to struct pd_reg rather than value.
127 (register_name): Adjust to suit. Set X_md from flags.
128 (ppc_parse_name): Likewise.
129 (ppc_optimize_expr): New function.
130 (md_assemble): Verify expresion reg flags match operand.
131 * config/tc-ppc.h (md_optimize_expr): Define.
132 (ppc_optimize_expr): Declare.
133
134 2017-02-14 Alan Modra <amodra@gmail.com>
135
136 * testsuite/gas/ppc/cell.s: Correct invalid registers.
137 * testsuite/gas/ppc/vle-simple-1.s: Likewise.
138 * testsuite/gas/ppc/vle-simple-2.s: Likewise.
139
140 2017-02-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
141
142 * config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified
143 syntax.
144 * testsuite/gas/arm/vcmp-noprefix-imm.d: New file.
145 * testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
146
147 2017-02-10 Nicholas Piggin <npiggin@gmail.com>
148
149 * testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
150
151 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
152
153 * doc/as.texinfo (Overview): Select MIPS options for man page
154 inclusion.
155
156 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
157
158 * config/tc-mips.c (mips_ignore_branch_isa): New variable.
159 (options): Add OPTION_IGNORE_BRANCH_ISA and
160 OPTION_NO_IGNORE_BRANCH_ISA enum values.
161 (md_longopts): Add "mignore-branch-isa" and
162 "mno-ignore-branch-isa" options.
163 (md_parse_option): Handle OPTION_IGNORE_BRANCH_ISA and
164 OPTION_NO_IGNORE_BRANCH_ISA.
165 (fix_bad_cross_mode_branch_p): Return FALSE if
166 `mips_ignore_branch_isa' has been set.
167 (md_show_usage): Add `-mignore-branch-isa' and
168 `-mno-ignore-branch-isa'.
169
170 * doc/as.texinfo (Target MIPS options): Add
171 `-mignore-branch-isa' and `-mno-ignore-branch-isa' options.
172 (-mignore-branch-isa, -mno-ignore-branch-isa): New options.
173 * doc/c-mips.texi (MIPS Options): Add `-mignore-branch-isa' and
174 `-mno-ignore-branch-isa' options.
175
176 * testsuite/gas/mips/branch-local-ignore-2.d: New test.
177 * testsuite/gas/mips/branch-local-ignore-3.d: New test.
178 * testsuite/gas/mips/branch-local-ignore-n32-2.d: New test.
179 * testsuite/gas/mips/branch-local-ignore-n32-3.d: New test.
180 * testsuite/gas/mips/branch-local-ignore-n64-2.d: New test.
181 * testsuite/gas/mips/branch-local-ignore-n64-3.d: New test.
182 * testsuite/gas/mips/mips.exp: Run the new tests.
183
184 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
185
186 * testsuite/gas/mips/branch-local-2.d: New test.
187 * testsuite/gas/mips/branch-local-3.d: New test.
188 * testsuite/gas/mips/branch-local-n32-2.d: New test.
189 * testsuite/gas/mips/branch-local-n32-3.d: New test.
190 * testsuite/gas/mips/branch-local-n64-2.d: New test.
191 * testsuite/gas/mips/branch-local-n64-3.d: New test.
192 * testsuite/gas/mips/mips.exp: Fold corresponding list tests
193 into the new tests.
194
195 2017-01-27 Alexis Deruell <alexis.deruelle@gmail.com>
196
197 PR 21056
198 * testsuite/gas/tic6x/insns16-parallel.s: New test case.
199 * testsuite/gas/tic6x/insns16-parallel.d: New test driver.
200
201 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
202
203 * configure.tgt (aarch64*-*-rtems*): Remove.
204 (bfin-*-rtems*): Likewise.
205 (h8300-*-rtems*): Likewise.
206 (i386-*-rtems*): Likewise.
207 (m32c-*-rtems*): Likewise.
208 (m32r-*-rtems*): Likewise.
209 (m68k-*-rtems*): Likewise.
210 (mips-*-rtems*): Likewise.
211 (nios2-*-rtems*): Likewise.
212 (ppc-*-rtems*): Likewise.
213 (sh-*-rtems*): Likewise.
214 (sparc64-*-rtems*): Likewise.
215 (sparc-*-rtems*): Likewise.
216 (*-*-rtems*) Use ELF format.
217
218 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
219
220 * configure.tgt (arm-*-rtems*): Move to (arm-*-eabi*).
221
222 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
223
224 * configure.tgt (sh-*-rtemscoff*): Remove.
225
226 2017-01-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
227
228 * configure.tgt (riscv*-*-*): Remove em=linux.
229
230 2017-01-23 Sebastian Rasmussen <sebras@gmail.com>
231
232 PR gas/21072
233 * asintl.h: Fix spelling mistakes and typos.
234 * atof-generic.c: Likewise.
235 * bit_fix.h: Likewise.
236 * config/atof-ieee.c: Likewise.
237 * config/bfin-defs.h: Likewise.
238 * config/bfin-parse.y: Likewise.
239 * config/obj-coff-seh.h: Likewise.
240 * config/obj-coff.c: Likewise.
241 * config/obj-evax.c: Likewise.
242 * config/obj-macho.c: Likewise.
243 * config/rx-parse.y: Likewise.
244 * config/tc-aarch64.c: Likewise.
245 * config/tc-alpha.c: Likewise.
246 * config/tc-arc.c: Likewise.
247 * config/tc-arm.c: Likewise.
248 * config/tc-avr.c: Likewise.
249 * config/tc-bfin.c: Likewise.
250 * config/tc-cr16.c: Likewise.
251 * config/tc-cris.c: Likewise.
252 * config/tc-crx.c: Likewise.
253 * config/tc-d10v.c: Likewise.
254 * config/tc-d30v.c: Likewise.
255 * config/tc-dlx.c: Likewise.
256 * config/tc-epiphany.c: Likewise.
257 * config/tc-frv.c: Likewise.
258 * config/tc-hppa.c: Likewise.
259 * config/tc-i370.c: Likewise.
260 * config/tc-i386-intel.c: Likewise.
261 * config/tc-i386.c: Likewise.
262 * config/tc-i960.c: Likewise.
263 * config/tc-ia64.c: Likewise.
264 * config/tc-m32r.c: Likewise.
265 * config/tc-m68hc11.c: Likewise.
266 * config/tc-m68k.c: Likewise.
267 * config/tc-mcore.c: Likewise.
268 * config/tc-mep.c: Likewise.
269 * config/tc-mep.h: Likewise.
270 * config/tc-metag.c: Likewise.
271 * config/tc-microblaze.c: Likewise.
272 * config/tc-mips.c: Likewise.
273 * config/tc-mmix.c: Likewise.
274 * config/tc-mn10200.c: Likewise.
275 * config/tc-mn10300.c: Likewise.
276 * config/tc-msp430.c: Likewise.
277 * config/tc-msp430.h: Likewise.
278 * config/tc-nds32.c: Likewise.
279 * config/tc-nds32.h: Likewise.
280 * config/tc-nios2.c: Likewise.
281 * config/tc-nios2.h: Likewise.
282 * config/tc-ns32k.c: Likewise.
283 * config/tc-pdp11.c: Likewise.
284 * config/tc-ppc.c: Likewise.
285 * config/tc-pru.c: Likewise.
286 * config/tc-rx.c: Likewise.
287 * config/tc-s390.c: Likewise.
288 * config/tc-score.c: Likewise.
289 * config/tc-score7.c: Likewise.
290 * config/tc-sh.c: Likewise.
291 * config/tc-sh64.c: Likewise.
292 * config/tc-sparc.c: Likewise.
293 * config/tc-tic4x.c: Likewise.
294 * config/tc-tic54x.c: Likewise.
295 * config/tc-v850.c: Likewise.
296 * config/tc-vax.c: Likewise.
297 * config/tc-visium.c: Likewise.
298 * config/tc-xgate.c: Likewise.
299 * config/tc-xtensa.c: Likewise.
300 * config/tc-z80.c: Likewise.
301 * config/tc-z8k.c: Likewise.
302 * config/te-vms.c: Likewise.
303 * config/xtensa-relax.c: Likewise.
304 * doc/as.texinfo: Likewise.
305 * doc/c-arm.texi: Likewise.
306 * doc/c-hppa.texi: Likewise.
307 * doc/c-i370.texi: Likewise.
308 * doc/c-i386.texi: Likewise.
309 * doc/c-m32r.texi: Likewise.
310 * doc/c-m68k.texi: Likewise.
311 * doc/c-mmix.texi: Likewise.
312 * doc/c-msp430.texi: Likewise.
313 * doc/c-nds32.texi: Likewise.
314 * doc/c-ns32k.texi: Likewise.
315 * doc/c-riscv.texi: Likewise.
316 * doc/c-rx.texi: Likewise.
317 * doc/c-s390.texi: Likewise.
318 * doc/c-tic6x.texi: Likewise.
319 * doc/c-tilegx.texi: Likewise.
320 * doc/c-tilepro.texi: Likewise.
321 * doc/c-v850.texi: Likewise.
322 * doc/c-xgate.texi: Likewise.
323 * doc/c-xtensa.texi: Likewise.
324 * dwarf2dbg.c: Likewise.
325 * ecoff.c: Likewise.
326 * itbl-ops.c: Likewise.
327 * listing.c: Likewise.
328 * macro.c: Likewise.
329 * po/gas.pot: Likewise.
330 * read.c: Likewise.
331 * struc-symbol.h: Likewise.
332 * symbols.h: Likewise.
333 * testsuite/gas/arc/relocs-errors.err: Likewise.
334 * write.c: Likewise.
335
336 2017-01-23 Nick Clifton <nickc@redhat.com>
337
338 * po/sv.po: Updated Swedish translation.
339
340 2017-01-20 Nick Clifton <nickc@redhat.com>
341
342 * config/tc-i386.c (parse_operands): Check for operand overflow
343 before setting the unspecified bit.
344
345 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
346
347 PR gas/20649
348 * config/tc-mips.c (pic_need_relax): Don't check for linkonce
349 symbols, remove the `segtype' parameter.
350 (mips_frob_file, md_estimate_size_before_relax): Adjust
351 accordingly.
352 (s_is_linkonce): Add an explanatory comment.
353 * testsuite/gas/mips/comdat-reloc.d: New test.
354 * testsuite/gas/mips/comdat-reloc.s: New test source.
355 * testsuite/gas/mips/mips.exp: Run the new test.
356
357 2017-01-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
358
359 * testsuite/gas/arm/armv8_3-a-simd.s: Add vcmla tests.
360 * testsuite/gas/arm/armv8_3-a-simd.d: Update.
361
362 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
363
364 PR 21059
365 * config/bfin-lex.l: Support processing with flex 2.6.3.
366 * itbl-lex.l: Likewise.
367
368 2017-01-18 Nathan Sidwell <nathan@acm.org>
369
370 * as.h (gas_assert): Use abort.
371 (as_assert): Remove.
372 (signal_init): Declare.
373 * as.c (main): Call signal_init.
374 * messages.c: #include <signal.h>
375 (as_assert): Delete.
376 (as_abort): Allow NULL FILE.
377 (signal_crash): New.
378 (signal_init): Register fatal signal handlers.
379 * configure.ac: Check for strsignal.
380 * config.in: Rebuilt.
381 * configure: Rebuilt.
382
383 2017-01-17 Nick Clifton <nickc@redhat.com>
384
385 * po/sv.po: Updated Swedish translation.
386
387 2017-01-12 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
388
389 * config/tc-i386.c (cpu_arch): Add .avx512_vpopcntdq.
390 (cpu_noarch): Add noavx512_vpopcntdq.
391 * doc/c-i386.texi: Document avx512_vpopcntdq, noavx512_vpopcntdq.
392 * testsuite/gas/i386/i386.exp: Run AVX512_VPOPCNTDQ tests.
393 * testsuite/gas/i386/avx512_vpopcntdqd-intel.d: New file.
394 * testsuite/gas/i386/avx512_vpopcntdqd.d: Ditto.
395 * testsuite/gas/i386/avx512_vpopcntdqd.s: Ditto.
396 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd-intel.d: Ditto.
397 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.d: Ditto.
398 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.s: Ditto.
399
400 2017-01-12 Nick Clifton <nickc@redhat.com>
401
402 * read.c (temp_ilp): New function. Installs a temporary input
403 line pointer.
404 (restore_ilp): New function. Restores the original input line
405 pointer.
406 * read.h (temp_ilp): Prototype.
407 (restore_ilp): Prototype.
408 * stabs.c (dot_func_p): Use bfd_boolean type.
409 (generate_asm_file): Use temp_ilp and restore_ilp.
410 (stabs_generate_asm_lineno): Likewise.
411 (stabs_generate_asm_endfunc): Likewise.
412
413 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
414
415 * configure.tgt: Add entry for i386-redox.
416
417 2017-01-10 Nick Clifton <nickc@redhat.com>
418
419 * po/sv.po: Updated Swedish translation.
420
421 2017-01-10 Tristan Gingold <gingold@adacore.com>
422
423 * testsuite/gas/all/sleb128-8.d: Adjust test.
424 * testsuite/gas/all/gas.exp (test_cond): Likewise.
425
426 2017-01-10 Tristan Gingold <gingold@adacore.com>
427
428 * read.c (emit_leb128_expr): Extended unsigned big number for
429 sleb128.
430 * testsuite/gas/all/gas.exp (test_cond): Add sleb128-8 test.
431 * testsuite/gas/all/sleb128.d: New test.
432 * testsuite/gas/all/sleb128.s: New test source.
433
434 2017-01-09 Andrew Waterman <andrew@sifive.com>
435
436 * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
437 against constants.
438 (md_apply_fix): Mark relocations against constants as "done."
439
440 2017-01-09 Andrew Waterman <andrew@sifive.com>
441
442 * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
443 against constants.
444 (md_apply_fix): Mark relocations against constants as "done."
445
446 2017-01-09 Palmer Dabbelt <palmer@dabbelt.com>
447 Kito Cheng <kito.cheng@gmail.com>
448
449 * emulparams/elf32lriscv-defs.sh (INITIAL_READONLY_SECTIONS):
450 Removed.
451 (SDATA_START_SYMBOLS): Likewise.
452
453 2017-01-09 Nick Clifton <nickc@redhat.com>
454
455 * po/sv.po: New Swedish translation.
456 * configure.ac (ALL_LINGUAS): Add sv.
457 * configure: Regenerate.
458
459 2017-01-09 Andrew Waterman <andrew@sifive.com>
460
461 * config/tc-riscv.c (relaxed_branch_length): Use the long
462 sequence when the target is a weak symbol.
463
464 2017-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
465
466 * config/tc-aarch64.c (aarch64_features): Add rcpc.
467 * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
468 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Rename to ...
469 * testsuite/gas/aarch64/ldst-rcpc.d: This.
470 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Rename to ...
471 * testsuite/gas/aarch64/ldst-rcpc.s: This.
472 * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: New test.
473
474 2017-01-04 Norm Jacobs <norm.jacobs@oracle.com>
475
476 PR gas/20992
477 * configure.tgt: Treat sparcv9 as sparc64.
478
479 2017-01-03 Kito Cheng <kito.cheng@gmail.com>
480
481 * config/tc-riscv.c (riscv_set_arch): Whitelist the "q" ISA
482 extension.
483 (riscv_after_parse_args): Set FLOAT_ABI_QUAD when the Q ISA is
484 enabled and no other ABI is specified.
485
486 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
487
488 * config/tc-pru.c (md_number_to_chars): Fix parameter to be
489 valueT, as declared in tc.h.
490 (md_apply_fix): Fix to work on 32-bit hosts.
491
492 2017-01-02 Alan Modra <amodra@gmail.com>
493
494 Update year range in copyright notice of all files.
495
496 For older changes see ChangeLog-2016
497 \f
498 Copyright (C) 2017 Free Software Foundation, Inc.
499
500 Copying and distribution of this file, with or without modification,
501 are permitted in any medium without royalty provided the copyright
502 notice and this notice are preserved.
503
504 Local Variables:
505 mode: change-log
506 left-margin: 8
507 fill-column: 74
508 version-control: never
509 End: