From: David Malcolm <dmalcolm@redhat.com>
To: Antoni Boucher <bouanto@zoho.com>,
"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
"jit@gcc.gnu.org" <jit@gcc.gnu.org>
Subject: Re: [PATCH] libgccjit: Add gcc_jit_global_set_readonly
Date: Wed, 24 Jan 2024 10:09:44 -0500 [thread overview]
Message-ID: <0f2e509a56e2d01adbe6dca3b3868f5e8d82fc9c.camel@redhat.com> (raw)
In-Reply-To: <20a1db244d8234683b61c7d124999ba45462af90.camel@zoho.com>
On Fri, 2024-01-19 at 16:57 -0500, Antoni Boucher wrote:
> Hi.
> This patch adds a new API gcc_jit_global_set_readonly: it's
> equivalent
> to having a const global variable, but it is useful in the case of
> complex compilers where it is not convenient to use const.
> Thanks for the review.
Hi Antoni; thanks for the patch.
Can you give an example of where/why this might be used?
Presumably this is motivated by a use case you had inside the rustc
backend?
Thanks
Dave
next prev parent reply other threads:[~2024-01-24 15:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-19 21:57 Antoni Boucher
2024-01-24 15:09 ` David Malcolm [this message]
2024-01-24 15:36 ` Antoni Boucher
2024-02-17 16:56 ` Antoni Boucher
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=0f2e509a56e2d01adbe6dca3b3868f5e8d82fc9c.camel@redhat.com \
--to=dmalcolm@redhat.com \
--cc=bouanto@zoho.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jit@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: 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).