public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Marc Nieper-Wißkirchen" <marc.nieper+gnu@gmail.com>
To: jit@gcc.gnu.org
Subject: Flexible array member
Date: Fri, 10 Dec 2021 18:44:00 +0100	[thread overview]
Message-ID: <CAEYrNrR4LxR7Wj=Zk60Jmazm7OrK5eKNZ2hHuz00oNZ_kTDkZg@mail.gmail.com> (raw)

C99 (and thus GCC) allow defining structures that end in a flexible array
member ([1]).

How can this be encoded in libgccjit? Is it valid to create an array type
of length 0 and use that to define the last field in a struct?

Thanks,

Marc

--

[1] https://en.wikipedia.org/wiki/Flexible_array_member

             reply	other threads:[~2021-12-10 17:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-10 17:44 Marc Nieper-Wißkirchen [this message]
2021-12-10 21:00 ` 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='CAEYrNrR4LxR7Wj=Zk60Jmazm7OrK5eKNZ2hHuz00oNZ_kTDkZg@mail.gmail.com' \
    --to=marc.nieper+gnu@gmail.com \
    --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).