This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: section attribute of compound literals
- From: "Jason A. Donenfeld" <Jason at zx2c4 dot com>
- To: jimw at sifive dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 14 Sep 2018 17:16:16 +0200
- Subject: Re: section attribute of compound literals
- References: <CAHmME9o7T1csHUTxA5UH6GU2c3Kp=0BHxYT41ujmt21JokVT1g@mail.gmail.com> <c256bdfc-209d-f660-bd46-5cd03fc2340c@sifive.com> <CAHmME9piwj14zuHVYrgV75tpf6LhApk4u05tXVJTzcjvsN=9Hg@mail.gmail.com> <CAFyWVaY=fCiuTXBF+mRM+e25DiWZgfz594v04=e4fRQay7dcbw@mail.gmail.com>
Hi Jim,
That becomes a bit harder when there are many many items:
https://git.zx2c4.com/WireGuard/tree/src/crypto/zinc/selftest/chacha20poly1305.h#n87
Here I'd like to use compound literals to avoid wasting space, as
several members are variably sized. Unfortunately I can't do that per
https://git.zx2c4.com/WireGuard/commit/?id=f4698d20f13946afc6ce99e98685ba3f9adc4474
Jason