bb-reorder.c (copy_bb_p): Don't overflow size calculation.
authorAlan Modra <amodra@gmail.com>
Mon, 3 Jun 2019 17:35:47 +0000 (03:05 +0930)
committerJeff Law <law@gcc.gnu.org>
Mon, 3 Jun 2019 17:35:47 +0000 (11:35 -0600)
commita0d87c29e29ba298f80e47fad57431ae3104447f
tree1f67eb71410c97fcac80dafc5aa3f008ebabd34e
parent7cfe71d1d271cd6f5d181a75a25d535e67448f0d
bb-reorder.c (copy_bb_p): Don't overflow size calculation.

* bb-reorder.c (copy_bb_p): Don't overflow size calculation.
(get_uncond_jump_length): Assert length less than INT_MAX and
non-negative.

From-SVN: r271877
gcc/ChangeLog
gcc/bb-reorder.c