[Ada] Improve error message for .ali file version mismatch

2021-09-30 Thread Pierre-Marie de Rodat via Gcc-patches
When the binder detects a mismatch between the versions of two .ali files, include the version information in the resulting message. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * bcheck.adb (Check_Versions): Add support for the case where the .ali file contains bot

[Ada] Improve error message for .ali file version mismatch

2021-09-30 Thread Pierre-Marie de Rodat via Gcc-patches
When the binder detects a mismatch between the versions of two .ali files, include the version information in the resulting message. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * bcheck.adb (Check_Versions): In the case of an ali file version mismatch, if distinct