diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-11 14:52:45 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-11 14:52:45 +0100 |
commit | ec1b8711945e99677fe5b135d343781bc2e106ad (patch) | |
tree | ddffaa1186f42cf949f26c8ee1adb502a5d9e8b9 /gcc/ada/gcc-interface/utils.c | |
parent | 1c91516aeb8362696786e17f83d8366de9a31f81 (diff) | |
download | gcc-ec1b8711945e99677fe5b135d343781bc2e106ad.zip gcc-ec1b8711945e99677fe5b135d343781bc2e106ad.tar.gz gcc-ec1b8711945e99677fe5b135d343781bc2e106ad.tar.bz2 |
Fix segfault on elaboration of empty 1-element array at -O
This is a rather obscure case where the elaboration of an empty array
whose base type is an array type of length at most 1 goes awry when
the code is compiled with optimization.
gcc/ada/ChangeLog:
* gcc-interface/trans.c (can_be_lower_p): Remove.
(Regular_Loop_to_gnu): Add ENTRY_COND unconditionally if
BOTTOM_COND is non-zero.
gcc/testsuite/ChangeLog:
* gnat.dg/opt89.adb: New test.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions