[Ada] Factor out the "size for& too small..." error message
authorBob Duff <duff@adacore.com>
Mon, 19 Aug 2019 08:36:12 +0000 (08:36 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 19 Aug 2019 08:36:12 +0000 (08:36 +0000)
commitdafa2ae46c9f0d95821fd365e8c554008b934819
tree6556de1317772ac7eefd9f6c2b0b063164a6b8b2
parent27b2fbc95cea0512e71a4cd3090e68ae2bf4fe1d
[Ada] Factor out the "size for& too small..." error message

Use a constant for the Size_Too_Small_Message, so if it changes, it
won't change in one place but not another.  DRY. It might be better to
move this code out of errout.adb, but that's for another day.

2019-08-19  Bob Duff  <duff@adacore.com>

gcc/ada/

* errout.ads (Size_Too_Small_Message): New constant.
* errout.adb, freeze.adb, sem_ch13.adb: Use it.

From-SVN: r274648
gcc/ada/ChangeLog
gcc/ada/errout.adb
gcc/ada/errout.ads
gcc/ada/freeze.adb
gcc/ada/sem_ch13.adb