Avoid exception propagation during bootstrap
commit8fe93cc664ded8cc1952da28b23f3fc68504a73e
authorArnaud Charlet <charlet@adacore.com>
Wed, 20 Oct 2021 08:23:40 +0000 (20 10:23 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 20 Oct 2021 08:45:48 +0000 (20 10:45 +0200)
tree6abe9a6dbd5db638339298890fc84c96cb482fb3
parentc7abdf46fb7ac9a0c37f120feff3fcc3a752584f
Avoid exception propagation during bootstrap

This addresses PR ada/100486, which is the bootstrap failure of GCC 11 for
32-bit Windows in the MSYS setup.  The PR shows that we cannot rely on
exception propagation being operational during the bootstrap, at least on
the 11 branch, so fix this by removing the problematic raise statement.

gcc/ada/
PR ada/100486
* sem_prag.adb (Check_Valid_Library_Unit_Pragma): Do not raise an
exception as part of the bootstrap.
gcc/ada/sem_prag.adb