public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: Eric Wong <e@80x24.org>
To: jit@gcc.gnu.org
Subject: __attribute__((cleanup)) support in libgccjit?
Date: Thu, 8 Jun 2023 13:46:26 +0000	[thread overview]
Message-ID: <20230608134626.M184090@dcvr> (raw)

Hi, I'm considering libgccjit for use in a new GPL3+ scripting
language and I am wondering if declaring locals with
__attribute__((cleanup)) is supported by libgccjit.

I find gcc_jit_lvalue_set_alignment in libgccjit.h, but not
many other attributes for locals..

I'll likely use libgccjit regardless since it seems like it could
make libffi redundant (or maybe I'm wrong on that bit...).

I might steal LuaJIT's C parser to deal with parsing headers and
structs; not sure if gcc exposes a C parser as a stable API...


Thanks.

             reply	other threads:[~2023-06-08 13:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-08 13:46 Eric Wong [this message]
2023-06-08 14:54 ` David Malcolm

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=20230608134626.M184090@dcvr \
    --to=e@80x24.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).