[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FEATURE REQUEST] Implement gcc_jit_sig_atomic_type.
- To: jit@gcc.gnu.org
- Subject: [FEATURE REQUEST] Implement gcc_jit_sig_atomic_type.
- From: Marc Nieper-Wißkirchen <marc.nieper@gmail.com>
- Date: Mon, 14 Jan 2019 16:53:36 +0100
- Authentication-results: sourceware.org; auth=none
- Delivered-to: listarch-jit@gcc.gnu.org
- Delivered-to: mailing list jit@gcc.gnu.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=vHveEuKFgB/5JHltkyr/t7caEXtTF1bJBzpd3tr2xXo=; b=VYhMh67sq5WqzWDl7boO3YZ0VsiNXdBXm6DYW0l6VhgnzQvmE4KBqY1l/80cJz2/Xh HB0BShAQV1CmyBPCtrsghJUHdwAl2vhuCVyZwp8td5paUa3aeZimBSZjVFRk51KfcwVQ nQugO7ZidQw9XyV72KzHtertY7b6SVSTwj2CLpWhr0UC5j/Am7J5eJ4kQnlGuyxia5C1 KwOHXAHKFYpab2mVQcNROyVYJVctxO43sL5cG7Y5D9IgzLcZS471oWfxYyFk3RZJXnVZ U+e7t/Yw+gWmJEJ6O3+sDx/vkUfhYNJTBsdpZXa4+p6N/WPIZyDAyfnqTvZNxp3RroYm xIdA==
- List-help: <mailto:jit-help@gcc.gnu.org>
- List-post: <mailto:jit@gcc.gnu.org>
- List-subscribe: <mailto:jit-subscribe@gcc.gnu.org>
- Mailing-list: contact jit-help@gcc.gnu.org; run by ezmlm
- Sender: jit-owner@gcc.gnu.org
Each target of gcc defines `SIG_ATOMIC_TYPE', which is then used to
implement the built-in preprocessor macro `__SIG_ATOMIC_TYPE__', which
is then used by <signal.h> to typedef `sig_atomic_t'.
This type is used, for example, when writing POSIX-compliant signal handlers.
It is defined as: "An integer type which can be accessed as an atomic
entity even in the presence of asynchronous interrupts made by
signals."
This is a feature request to expose this type to libgccjit by
providing the following function:
gcc_jit_type *gcc_jit_sig_atomic_type (gcc_jit_context *ctxt)
-- Marc
P.S.: Depending on my spare time, I may be able to write a patch that
would implement this feature request.