diff options
author | Steve Baird <baird@adacore.com> | 2025-01-30 13:28:50 -0800 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2025-06-05 15:39:45 +0200 |
commit | 48a5910dde566180a0a0878651a78ccece89be45 (patch) | |
tree | 5e83729db45ac6625d8881da539b525fb3a1e058 /gcc/tree-ssa-phiopt.cc | |
parent | 257a8dc92efbc5f523d388da10d63bf126af2aa3 (diff) | |
download | gcc-48a5910dde566180a0a0878651a78ccece89be45.zip gcc-48a5910dde566180a0a0878651a78ccece89be45.tar.gz gcc-48a5910dde566180a0a0878651a78ccece89be45.tar.bz2 |
ada: Exception-raising loop incorrectly eliminated
If the body of a loop includes a raise statement then the loop should not be
considered to be free of side-effects and therefore eligible for elimination
by the compiler.
gcc/ada/ChangeLog:
* sem_util.adb
(Side_Effect_Free_Statements): Return False if the statement list
includes an explicit (i.e. Comes_From_Source) raise statement.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions