public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Matthew Malcomson <matmal01@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] Minor fix to __capability handling Date: Thu, 5 May 2022 12:04:19 +0000 (GMT) [thread overview] Message-ID: <20220505120419.5F5283856DFA@sourceware.org> (raw) https://gcc.gnu.org/g:30e16bf212a0692e9b3b34e19102c4f13af88740 commit 30e16bf212a0692e9b3b34e19102c4f13af88740 Author: Matthew Malcomson <matthew.malcomson@arm.com> Date: Thu Mar 17 15:49:44 2022 +0000 Minor fix to __capability handling Ensure we modify the `treetoedit` pointer we look through rather than `node` directly. Diff: --- gcc/c-family/c-attribs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c-attribs.c index 7ab3e41f626..7b299b9ce9e 100644 --- a/gcc/c-family/c-attribs.c +++ b/gcc/c-family/c-attribs.c @@ -857,7 +857,7 @@ handle_cheri_capability_attribute (tree *node, tree ARG_UNUSED (name), POINTER_TYPE_P. */ tree *treetoedit = node; for (int i = 1; i < capability_pointer_depth; i++) - treetoedit = &TREE_TYPE (*node); + treetoedit = &TREE_TYPE (*treetoedit); gcc_assert (TREE_CODE (*treetoedit) == POINTER_TYPE); /* Call build_pointer_type_for_mode to create a Capability Pointer
reply other threads:[~2022-05-05 12:04 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=20220505120419.5F5283856DFA@sourceware.org \ --to=matmal01@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /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: linkBe 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).