From: Pierre-Marie de Rodat <derodat@adacore.com>
To: gcc-patches@gcc.gnu.org
Cc: Doug Rupp <rupp@adacore.com>
Subject: [Ada] qnx-7.1: warning in sigtramp-qnx.c __gnat_sigtramp
Date: Wed, 18 May 2022 08:43:30 +0000 [thread overview]
Message-ID: <20220518084330.GA3387191@adacore.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 243 bytes --]
Fix compilation warning. The code was using a cast to struct sigcontext
*, which doesn't exist. It worked by accident.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* sigtramp-qnx.c: Change struct sigcontext * to mcontext_t *.
[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 513 bytes --]
diff --git a/gcc/ada/sigtramp-qnx.c b/gcc/ada/sigtramp-qnx.c
--- a/gcc/ada/sigtramp-qnx.c
+++ b/gcc/ada/sigtramp-qnx.c
@@ -49,7 +49,7 @@ void __gnat_sigtramp (int signo, void *si, void *sc,
void __gnat_sigtramp (int signo, void *si, void *ucontext,
__sigtramphandler_t * handler)
{
- struct sigcontext *mcontext = &((ucontext_t *) ucontext)->uc_mcontext;
+ mcontext_t *mcontext = &((ucontext_t *) ucontext)->uc_mcontext;
__gnat_sigtramp_common (signo, si, mcontext, handler);
}
reply other threads:[~2022-05-18 8:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220518084330.GA3387191@adacore.com \
--to=derodat@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=rupp@adacore.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).