aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-08-12 09:01:20 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-08-12 09:01:20 +0000
commit39571eeaeb6e993f259cc603c64d5483be5afc65 (patch)
tree88c4a9c1c414fde1ac9d52d6f4d2cfa06ceb05e4 /gcc/tree.c
parent18ba4b0dbd971fc879c8db3cbe50726c8bd7c25e (diff)
downloadgcc-39571eeaeb6e993f259cc603c64d5483be5afc65.zip
gcc-39571eeaeb6e993f259cc603c64d5483be5afc65.tar.gz
gcc-39571eeaeb6e993f259cc603c64d5483be5afc65.tar.bz2
[Ada] Prevent crash in Is_Reachable
This patch fixes a bug in Is_Reachable, which causes a crash when checks are on. 2019-08-12 Bob Duff <duff@adacore.com> gcc/ada/ * libgnat/a-cbmutr.adb (Is_Reachable): Declare Idx to be of the base subtype. Clearly it makes no sense to loop "while Idx >= 0", if Idx is of a nonnegative subtype. From-SVN: r274301
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions