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)] Restore some grokdeclarator code Date: Thu, 5 May 2022 12:07:27 +0000 (GMT) [thread overview] Message-ID: <20220505120727.2021C385626C@sourceware.org> (raw) https://gcc.gnu.org/g:2d4829319d27485a96d9935446c47e91ee0fca40 commit 2d4829319d27485a96d9935446c47e91ee0fca40 Author: Richard Sandiford <richard.sandiford@arm.com> Date: Tue Apr 26 15:05:03 2022 +0100 Restore some grokdeclarator code Restore some grokdeclarator code lost in the previous patch. This restores bootstrap and fixes some attribute testsuite regressions. Diff: --- gcc/c/c-decl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 0c6722d95e8..0dfcf5ed4ae 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -7054,6 +7054,10 @@ grokdeclarator (const struct c_declarator *declarator, && deprecated_capability_uses > 1 && !POINTER_TYPE_P (declspecs->type)) error_at (input_location, "use of %<__capability%> is ambiguous"); + + *decl_attrs = chainon (returned_attrs, *decl_attrs); + *decl_attrs = chainon (decl_id_attrs, *decl_attrs); + /* Now TYPE has the actual type, apart from any qualifiers in TYPE_QUALS. */
reply other threads:[~2022-05-05 12:07 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=20220505120727.2021C385626C@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).