ada: Fix miscompilation of loop over boolean range
commit4649c079409ec6cb67cd2cca0df81877e53c78b4
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 25 Oct 2023 15:52:38 +0000 (25 17:52 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 21 Nov 2023 09:57:43 +0000 (21 10:57 +0100)
tree149b4e28c454e089d39b6c349aa1a89521560450
parent4d011701c074cac9bab7edfcf07c1868f0472177
ada: Fix miscompilation of loop over boolean range

The optimized form generated in this case turns out to be problematic.

gcc/ada/

* gcc-interface/trans.cc (Loop_Statement_to_gnu): Always use the
simpler form for a loop with a boolean iteration variable.
gcc/ada/gcc-interface/trans.cc