[Ada] gnatbind: Fix No_Entry_Calls_In_Elaboration_Code message
Pierre-Marie de Rodat
derodat@adacore.com
Thu Jul 16 09:20:51 GMT 2020
This patch fixes a bug where gnatbind would suggest adding the
No_Entry_Calls_In_Elaboration_Code restriction, when that restriction is
already present.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* bindo-diagnostics.adb (Output_Invocation_Related_Suggestions):
Use Cumulative_Restrictions.Set, because Restriction_Active only
works at compile time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 752 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200716/5ce0e85c/attachment-0001.bin>
More information about the Gcc-patches
mailing list