From: Richard Sandiford <richard.sandiford@arm.com>
To: Xi Ruoyao via Gcc-patches <gcc-patches@gcc.gnu.org>
Cc: Lulu Cheng <chenglulu@loongson.cn>,
Xi Ruoyao <xry111@xry111.site>,
Jinyang He <hejinyang@loongson.cn>,
Chenghua Xu <xuchenghua@loongson.cn>,
Huacai Chen <chenhuacai@kernel.org>,
Youling Tang <tangyouling@loongson.cn>,
Wang Xuerui <i@xen0n.name>
Subject: Re: LoongArch: add model attribute
Date: Tue, 30 Aug 2022 14:42:25 +0100 [thread overview]
Message-ID: <mptilm9etku.fsf@arm.com> (raw)
In-Reply-To: <fc317f3943c4ea7810ccf532707c6a3255ecd3a0.camel@xry111.site> (Xi Ruoyao via Gcc-patches's message of "Tue, 23 Aug 2022 22:51:45 +0800")
Xi Ruoyao via Gcc-patches <gcc-patches@gcc.gnu.org> writes:
> Another attempt to make kernel module happy.
>
> One remaining issue: the patch cannot diagnostic some insane thing like
>
> int x __attribute__((model("normal")));
> int x __attribute__((model("extreme")));
>
> It seems incredibly difficult to diagnose such thing: I can't figure out
> any solution w/o invasion into the frontend. IA-64 model() only accepts
> small so this is not a problem for them, and M32R model() also cannot
> diagnose such error.
>
> Any suggestion is welcomed.
You might be able to detect this in the merge_decl_attributes hook.
Thanks,
Richard
prev parent reply other threads:[~2022-08-30 13:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-23 14:51 Xi Ruoyao
2022-08-24 6:54 ` Lulu Cheng
2022-08-24 6:54 ` Lulu Cheng
2022-08-30 13:42 ` Richard Sandiford [this message]
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=mptilm9etku.fsf@arm.com \
--to=richard.sandiford@arm.com \
--cc=chenglulu@loongson.cn \
--cc=chenhuacai@kernel.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=hejinyang@loongson.cn \
--cc=i@xen0n.name \
--cc=tangyouling@loongson.cn \
--cc=xry111@xry111.site \
--cc=xuchenghua@loongson.cn \
/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).