SPARC: Make sure that jump is to a label in errata workaround
commita1eb62d35c16c354632ad1f7f3280f1c1021d7ee
authorDaniel Cederman <cederman@gaisler.com>
Tue, 19 Dec 2017 08:04:52 +0000 (19 08:04 +0000)
committerSebastian Huber <sh@gcc.gnu.org>
Tue, 19 Dec 2017 08:04:52 +0000 (19 08:04 +0000)
treed95cd8535957692d6070d199de82ca39f8f8e59c
parentf744bfec7ffb92b476da82bc62a81eaf087b2391
SPARC: Make sure that jump is to a label in errata workaround

In some cases the jump could be to a return instruction and in those cases the
next_active_insn() function tries to follow an invalid pointer which leads to a
crash. This error did not manifest when using a 32-bit version of GCC which is
why I did not detect it before.

gcc/
* config/sparc/sparc.c (sparc_do_work_around_errata): Make sure
the jump is to a label.

From-SVN: r255807
gcc/ChangeLog
gcc/config/sparc/sparc.c