aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorDaniel Cederman <cederman@gaisler.com>2017-12-19 08:04:52 +0000
committerSebastian Huber <sh@gcc.gnu.org>2017-12-19 08:04:52 +0000
commita1eb62d35c16c354632ad1f7f3280f1c1021d7ee (patch)
treed95cd8535957692d6070d199de82ca39f8f8e59c /gcc/predict.c
parentf744bfec7ffb92b476da82bc62a81eaf087b2391 (diff)
downloadgcc-a1eb62d35c16c354632ad1f7f3280f1c1021d7ee.zip
gcc-a1eb62d35c16c354632ad1f7f3280f1c1021d7ee.tar.gz
gcc-a1eb62d35c16c354632ad1f7f3280f1c1021d7ee.tar.bz2
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
Diffstat (limited to 'gcc/predict.c')
0 files changed, 0 insertions, 0 deletions