[Ada] Do not indicate a pending abort if the task is already aborting

Pierre-Marie de Rodat derodat@adacore.com
Tue Nov 9 09:46:20 GMT 2021


Check_Abort_Status would return the equivalent of True while a task was
in the process of aborting causing another Abort exception to be raised
and not to terminate cleanly. This only affects targets that use stack
check emulation, which is currently limited to RTEMS.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* libgnarl/s-tasini.adb (Check_Abort_Status): Don't return 1 if
	the task is aborting.
	* libgnarl/s-tasini.ads (Check_Abort_Status): Update comment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 951 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211109/38f49ebd/attachment.bin>


More information about the Gcc-patches mailing list