]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Rework disabling signals when calling pthread_create on QNX
authorJohannes Kliemann <kliemann@adacore.com>
Fri, 26 Sep 2025 16:16:07 +0000 (18:16 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 28 Oct 2025 10:24:06 +0000 (11:24 +0100)
commit7ad3907689aed6a7937c3d82dc3e79fe8fc5b8cb
treeb81e632d5ffe963f537294cec9370acbae727bbd
parent9f88ab6a60cf0222fba4952acff022f3cc5b9ff3
ada: Rework disabling signals when calling pthread_create on QNX

Use the correct pthread_sigmask instead of sigprocmask when disabling
signals on QNX. Furthermore make use of the already existing bindings to
implement that functionality in Ada instead of C. Enable signals in both
Create_Task and Enter_Task as they need to be enabled in both the parent
and the child.

gcc/ada/ChangeLog:

* adaint.c: Remove __gnat_enable_signals, __gnat_disable_signals
and related code for QNX.
* libgnarl/s-taprop__qnx.adb: Disable and enable
signals in Ada.
gcc/ada/adaint.c
gcc/ada/libgnarl/s-taprop__qnx.adb